don't re-do setup operations for translators that can dynamically register themselves
[asterisk-bristuff.git] / configure
blobe2ea44edbfa3ad3e820c8edf0de423e2104334c1
1 #! /bin/sh
2 # From configure.ac Revision: 46253 .
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 INSTALL_PROGRAM
678 INSTALL_SCRIPT
679 INSTALL_DATA
680 LN_S
681 GNU_MAKE
682 GREP
683 FIND
684 COMPRESS
685 BASENAME
687 DIRNAME
690 AST_DEVMODE
691 ALSA_LIB
692 ALSA_INCLUDE
693 PBX_ALSA
694 CURL_LIB
695 CURL_INCLUDE
696 PBX_CURL
697 CURSES_LIB
698 CURSES_INCLUDE
699 PBX_CURSES
700 GNUTLS_LIB
701 GNUTLS_INCLUDE
702 PBX_GNUTLS
703 GSM_LIB
704 GSM_INCLUDE
705 PBX_GSM
706 IKSEMEL_LIB
707 IKSEMEL_INCLUDE
708 PBX_IKSEMEL
709 IMAP_TK_LIB
710 IMAP_TK_INCLUDE
711 PBX_IMAP_TK
712 ISDNNET_LIB
713 ISDNNET_INCLUDE
714 PBX_ISDNNET
715 KDE_LIB
716 KDE_INCLUDE
717 PBX_KDE
718 MISDN_LIB
719 MISDN_INCLUDE
720 PBX_MISDN
721 NBS_LIB
722 NBS_INCLUDE
723 PBX_NBS
724 NCURSES_LIB
725 NCURSES_INCLUDE
726 PBX_NCURSES
727 NETSNMP_LIB
728 NETSNMP_INCLUDE
729 PBX_NETSNMP
730 NEWT_LIB
731 NEWT_INCLUDE
732 PBX_NEWT
733 UNIXODBC_LIB
734 UNIXODBC_INCLUDE
735 PBX_UNIXODBC
736 OGG_LIB
737 OGG_INCLUDE
738 PBX_OGG
739 OSPTK_LIB
740 OSPTK_INCLUDE
741 PBX_OSPTK
742 OSS_LIB
743 OSS_INCLUDE
744 PBX_OSS
745 POPT_LIB
746 POPT_INCLUDE
747 PBX_POPT
748 PGSQL_LIB
749 PGSQL_INCLUDE
750 PBX_PGSQL
751 PRI_LIB
752 PRI_INCLUDE
753 PBX_PRI
754 PWLIB_LIB
755 PWLIB_INCLUDE
756 PBX_PWLIB
757 OPENH323_LIB
758 OPENH323_INCLUDE
759 PBX_OPENH323
760 QT_LIB
761 QT_INCLUDE
762 PBX_QT
763 RADIUS_LIB
764 RADIUS_INCLUDE
765 PBX_RADIUS
766 SPEEX_LIB
767 SPEEX_INCLUDE
768 PBX_SPEEX
769 SQLITE_LIB
770 SQLITE_INCLUDE
771 PBX_SQLITE
772 SUPPSERV_LIB
773 SUPPSERV_INCLUDE
774 PBX_SUPPSERV
775 OPENSSL_LIB
776 OPENSSL_INCLUDE
777 PBX_OPENSSL
778 FREETDS_LIB
779 FREETDS_INCLUDE
780 PBX_FREETDS
781 TERMCAP_LIB
782 TERMCAP_INCLUDE
783 PBX_TERMCAP
784 TINFO_LIB
785 TINFO_INCLUDE
786 PBX_TINFO
787 TONEZONE_LIB
788 TONEZONE_INCLUDE
789 PBX_TONEZONE
790 VORBIS_LIB
791 VORBIS_INCLUDE
792 PBX_VORBIS
793 VPB_LIB
794 VPB_INCLUDE
795 PBX_VPB
796 ZLIB_LIB
797 ZLIB_INCLUDE
798 PBX_ZLIB
799 ZAPTEL_LIB
800 ZAPTEL_INCLUDE
801 PBX_ZAPTEL
802 ALLOCA
803 EGREP
804 LIBOBJS
805 POW_LIB
806 GC_CFLAGS
807 GC_LDFLAGS
808 GSM_INTERNAL
809 KDEINIT
810 KDEDIR
811 NETSNMP_CONFIG
812 PG_CONFIG
813 PTLIB_CONFIG
814 PWLIBDIR
815 PWLIB_INCDIR
816 PWLIB_LIBDIR
817 PWLIB_PLATFORM
818 OPENH323DIR
819 OPENH323_INCDIR
820 OPENH323_LIBDIR
821 OPENH323_SUFFIX
822 OPENH323_BUILD
823 QTMOC
824 EDITLINE_LIB
825 PBX_H323
826 PBX_IXJUSER
827 GTKCONFIG
828 PBX_GTK
829 GTK_INCLUDE
830 GTK_LIB
831 CURL
832 LTLIBOBJS'
833 ac_subst_files=''
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
842 CXXFLAGS
845 CXXCPP'
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
971 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
972 { (exit 1); exit 1; }; }
973 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
974 eval enable_$ac_feature=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1164 -with-* | --with-*)
1165 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid package name: $ac_package" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_package=`echo $ac_package| sed 's/-/_/g'`
1171 eval with_$ac_package=\$ac_optarg ;;
1173 -without-* | --without-*)
1174 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid package name: $ac_package" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_package=`echo $ac_package | sed 's/-/_/g'`
1180 eval with_$ac_package=no ;;
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) { echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202 { (exit 1); exit 1; }; }
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1209 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210 { (exit 1); exit 1; }; }
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1222 esac
1223 done
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 { echo "$as_me: error: missing argument to $ac_option" >&2
1228 { (exit 1); exit 1; }; }
1231 # Be sure to have absolute directory names.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1243 { (exit 1); exit 1; }; }
1244 done
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used." >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 { echo "$as_me: error: Working directory cannot be determined" >&2
1274 { (exit 1); exit 1; }; }
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 { echo "$as_me: error: pwd does not report name of working directory" >&2
1277 { (exit 1); exit 1; }; }
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$0" ||
1285 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$0" : 'X\(//\)[^/]' \| \
1287 X"$0" : 'X\(//\)$' \| \
1288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1289 echo X"$0" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1298 /^X\(\/\/\)$/{
1299 s//\1/
1302 /^X\(\/\).*/{
1303 s//\1/
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1311 else
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1317 { (exit 1); exit 1; }; }
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1322 { (exit 1); exit 1; }; }
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures this package to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1403 cat <<\_ACEOF
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1411 if test -n "$ac_init_help"; then
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-dev-mode Turn on developer mode
1419 --disable-largefile omit support for large files
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1425 --with-curl=PATH use cURL files in PATH
1426 --with-curses=PATH use curses files in PATH
1427 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1428 PATH
1429 --with-gsm=PATH use GSM files in PATH , or 'internal'
1430 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1431 --with-imap=PATH use UW IMAP Toolkit files in PATH
1432 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1433 --with-kde=PATH use KDE files in PATH
1434 --with-misdn=PATH use mISDN User Library files in PATH
1435 --with-nbs=PATH use Network Broadcast Sound files in PATH
1436 --with-ncurses=PATH use ncurses files in PATH
1437 --with-netsnmp=PATH use Net-SNMP files in PATH
1438 --with-newt=PATH use newt files in PATH
1439 --with-odbc=PATH use unixODBC files in PATH
1440 --with-ogg=PATH use OGG files in PATH
1441 --with-osptk=PATH use OSP Toolkit files in PATH
1442 --with-oss=PATH use Open Sound System files in PATH
1443 --with-popt=PATH use popt files in PATH
1444 --with-postgres=PATH use PostgreSQL files in PATH
1445 --with-pri=PATH use ISDN PRI files in PATH
1446 --with-pwlib=PATH use PWlib files in PATH
1447 --with-h323=PATH use OpenH323 files in PATH
1448 --with-qt=PATH use Qt files in PATH
1449 --with-radius=PATH use Radius Client files in PATH
1450 --with-speex=PATH use Speex files in PATH
1451 --with-sqlite=PATH use SQLite files in PATH
1452 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1453 --with-ssl=PATH use OpenSSL files in PATH
1454 --with-tds=PATH use FreeTDS files in PATH
1455 --with-termcap=PATH use Termcap files in PATH
1456 --with-tinfo=PATH use Term Info files in PATH
1457 --with-tonezone=PATH use tonezone files in PATH
1458 --with-vorbis=PATH use Vorbis files in PATH
1459 --with-vpb=PATH use Voicetronix API files in PATH
1460 --with-z=PATH use zlib files in PATH
1461 --with-zaptel=PATH use Zaptel files in PATH
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1472 CPP C preprocessor
1473 CXXCPP C++ preprocessor
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" || continue
1486 ac_builddir=.
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 configure
1539 generated by GNU Autoconf 2.60a
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1546 "Asterisk"
1547 _ACEOF
1548 exit
1550 cat >config.log <<_ACEOF
1551 This file contains any messages produced by compilers while
1552 running configure, to aid debugging if configure makes a mistake.
1554 It was created by $as_me, which was
1555 generated by GNU Autoconf 2.60a. Invocation command line was
1557 $ $0 $@
1559 _ACEOF
1560 exec 5>>config.log
1562 cat <<_ASUNAME
1563 ## --------- ##
1564 ## Platform. ##
1565 ## --------- ##
1567 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1568 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1569 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1570 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1571 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1573 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1574 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1576 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1577 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1578 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1579 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1580 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1581 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1582 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 _ASUNAME
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 echo "PATH: $as_dir"
1592 done
1593 IFS=$as_save_IFS
1595 } >&5
1597 cat >&5 <<_ACEOF
1600 ## ----------- ##
1601 ## Core tests. ##
1602 ## ----------- ##
1604 _ACEOF
1607 # Keep a trace of the command line.
1608 # Strip out --no-create and --no-recursion so they do not pile up.
1609 # Strip out --silent because we don't want to record it for future runs.
1610 # Also quote any args containing shell meta-characters.
1611 # Make two passes to allow for proper duplicate-argument suppression.
1612 ac_configure_args=
1613 ac_configure_args0=
1614 ac_configure_args1=
1615 ac_must_keep_next=false
1616 for ac_pass in 1 2
1618 for ac_arg
1620 case $ac_arg in
1621 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1623 | -silent | --silent | --silen | --sile | --sil)
1624 continue ;;
1625 *\'*)
1626 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 esac
1628 case $ac_pass in
1629 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1631 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1632 if test $ac_must_keep_next = true; then
1633 ac_must_keep_next=false # Got value, back to normal.
1634 else
1635 case $ac_arg in
1636 *=* | --config-cache | -C | -disable-* | --disable-* \
1637 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1638 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1639 | -with-* | --with-* | -without-* | --without-* | --x)
1640 case "$ac_configure_args0 " in
1641 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 esac
1644 -* ) ac_must_keep_next=true ;;
1645 esac
1647 ac_configure_args="$ac_configure_args '$ac_arg'"
1649 esac
1650 done
1651 done
1652 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1653 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1655 # When interrupted or exit'd, cleanup temporary files, and complete
1656 # config.log. We remove comments because anyway the quotes in there
1657 # would cause problems or look ugly.
1658 # WARNING: Use '\'' to represent an apostrophe within the trap.
1659 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1660 trap 'exit_status=$?
1661 # Save into config.log some information that might help in debugging.
1663 echo
1665 cat <<\_ASBOX
1666 ## ---------------- ##
1667 ## Cache variables. ##
1668 ## ---------------- ##
1669 _ASBOX
1670 echo
1671 # The following way of writing the cache mishandles newlines in values,
1673 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1674 eval ac_val=\$$ac_var
1675 case $ac_val in #(
1676 *${as_nl}*)
1677 case $ac_var in #(
1678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 esac
1681 case $ac_var in #(
1682 _ | IFS | as_nl) ;; #(
1683 *) $as_unset $ac_var ;;
1684 esac ;;
1685 esac
1686 done
1687 (set) 2>&1 |
1688 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1689 *${as_nl}ac_space=\ *)
1690 sed -n \
1691 "s/'\''/'\''\\\\'\'''\''/g;
1692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 ;; #(
1695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697 esac |
1698 sort
1700 echo
1702 cat <<\_ASBOX
1703 ## ----------------- ##
1704 ## Output variables. ##
1705 ## ----------------- ##
1706 _ASBOX
1707 echo
1708 for ac_var in $ac_subst_vars
1710 eval ac_val=\$$ac_var
1711 case $ac_val in
1712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 esac
1714 echo "$ac_var='\''$ac_val'\''"
1715 done | sort
1716 echo
1718 if test -n "$ac_subst_files"; then
1719 cat <<\_ASBOX
1720 ## ------------------- ##
1721 ## File substitutions. ##
1722 ## ------------------- ##
1723 _ASBOX
1724 echo
1725 for ac_var in $ac_subst_files
1727 eval ac_val=\$$ac_var
1728 case $ac_val in
1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 esac
1731 echo "$ac_var='\''$ac_val'\''"
1732 done | sort
1733 echo
1736 if test -s confdefs.h; then
1737 cat <<\_ASBOX
1738 ## ----------- ##
1739 ## confdefs.h. ##
1740 ## ----------- ##
1741 _ASBOX
1742 echo
1743 cat confdefs.h
1744 echo
1746 test "$ac_signal" != 0 &&
1747 echo "$as_me: caught signal $ac_signal"
1748 echo "$as_me: exit $exit_status"
1749 } >&5
1750 rm -f core *.core core.conftest.* &&
1751 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 exit $exit_status
1754 for ac_signal in 1 2 13 15; do
1755 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1756 done
1757 ac_signal=0
1759 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1760 rm -f -r conftest* confdefs.h
1762 # Predefined preprocessor variables.
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_NAME "$PACKAGE_NAME"
1766 _ACEOF
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 _ACEOF
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1776 _ACEOF
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_STRING "$PACKAGE_STRING"
1781 _ACEOF
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786 _ACEOF
1789 # Let the site file select an alternate cache file if it wants to.
1790 # Prefer explicitly selected file to automatically selected ones.
1791 if test -n "$CONFIG_SITE"; then
1792 set x "$CONFIG_SITE"
1793 elif test "x$prefix" != xNONE; then
1794 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1795 else
1796 set x "$ac_default_prefix/share/config.site" \
1797 "$ac_default_prefix/etc/config.site"
1799 shift
1800 for ac_site_file
1802 if test -r "$ac_site_file"; then
1803 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804 echo "$as_me: loading site script $ac_site_file" >&6;}
1805 sed 's/^/| /' "$ac_site_file" >&5
1806 . "$ac_site_file"
1808 done
1810 if test -r "$cache_file"; then
1811 # Some versions of bash will fail to source /dev/null (special
1812 # files actually), so we avoid doing that.
1813 if test -f "$cache_file"; then
1814 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815 echo "$as_me: loading cache $cache_file" >&6;}
1816 case $cache_file in
1817 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818 *) . "./$cache_file";;
1819 esac
1821 else
1822 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823 echo "$as_me: creating cache $cache_file" >&6;}
1824 >$cache_file
1827 # Check that the precious variables saved in the cache have kept the same
1828 # value.
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832 eval ac_new_set=\$ac_env_${ac_var}_set
1833 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834 eval ac_new_val=\$ac_env_${ac_var}_value
1835 case $ac_old_set,$ac_new_set in
1836 set,)
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1840 ,set)
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,);;
1846 if test "x$ac_old_val" != "x$ac_new_val"; then
1847 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1849 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1850 echo "$as_me: former value: $ac_old_val" >&2;}
1851 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1852 echo "$as_me: current value: $ac_new_val" >&2;}
1853 ac_cache_corrupted=:
1854 fi;;
1855 esac
1856 # Pass precious variables to config.status.
1857 if test "$ac_new_set" = set; then
1858 case $ac_new_val in
1859 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1860 *) ac_arg=$ac_var=$ac_new_val ;;
1861 esac
1862 case " $ac_configure_args " in
1863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1864 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865 esac
1867 done
1868 if $ac_cache_corrupted; then
1869 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1870 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1871 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1872 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1873 { (exit 1); exit 1; }; }
1892 ac_ext=c
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 # cross-compile macros
1901 ac_aux_dir=
1902 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1903 if test -f "$ac_dir/install-sh"; then
1904 ac_aux_dir=$ac_dir
1905 ac_install_sh="$ac_aux_dir/install-sh -c"
1906 break
1907 elif 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/shtool"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/shtool install -c"
1914 break
1916 done
1917 if test -z "$ac_aux_dir"; then
1918 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1919 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1920 { (exit 1); exit 1; }; }
1923 # These three variables are undocumented and unsupported,
1924 # and are intended to be withdrawn in a future Autoconf release.
1925 # They can cause serious problems if a builder's source tree is in a directory
1926 # whose full name contains unusual characters.
1927 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1928 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1929 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1932 # Make sure we can run config.sub.
1933 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1934 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1935 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1936 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: checking build system type" >&5
1939 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1940 if test "${ac_cv_build+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 ac_build_alias=$build_alias
1944 test "x$ac_build_alias" = x &&
1945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1946 test "x$ac_build_alias" = x &&
1947 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1948 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1949 { (exit 1); exit 1; }; }
1950 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1951 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1952 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1953 { (exit 1); exit 1; }; }
1956 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1957 echo "${ECHO_T}$ac_cv_build" >&6; }
1958 case $ac_cv_build in
1959 *-*-*) ;;
1960 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1961 echo "$as_me: error: invalid value of canonical build" >&2;}
1962 { (exit 1); exit 1; }; };;
1963 esac
1964 build=$ac_cv_build
1965 ac_save_IFS=$IFS; IFS='-'
1966 set x $ac_cv_build
1967 shift
1968 build_cpu=$1
1969 build_vendor=$2
1970 shift; shift
1971 # Remember, the first character of IFS is used to create $*,
1972 # except with old shells:
1973 build_os=$*
1974 IFS=$ac_save_IFS
1975 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1978 { echo "$as_me:$LINENO: checking host system type" >&5
1979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1980 if test "${ac_cv_host+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test "x$host_alias" = x; then
1984 ac_cv_host=$ac_cv_build
1985 else
1986 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1987 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1989 { (exit 1); exit 1; }; }
1993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1994 echo "${ECHO_T}$ac_cv_host" >&6; }
1995 case $ac_cv_host in
1996 *-*-*) ;;
1997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1998 echo "$as_me: error: invalid value of canonical host" >&2;}
1999 { (exit 1); exit 1; }; };;
2000 esac
2001 host=$ac_cv_host
2002 ac_save_IFS=$IFS; IFS='-'
2003 set x $ac_cv_host
2004 shift
2005 host_cpu=$1
2006 host_vendor=$2
2007 shift; shift
2008 # Remember, the first character of IFS is used to create $*,
2009 # except with old shells:
2010 host_os=$*
2011 IFS=$ac_save_IFS
2012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2016 # check existence of the package
2019 # specify output header file
2020 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2026 case "${host_os}" in
2027 freebsd*)
2028 ac_default_prefix=/usr/local
2031 ac_default_prefix=/usr
2032 if test ${sysconfdir} = '${prefix}/etc'; then
2033 sysconfdir=/etc
2035 if test ${mandir} = '${prefix}/man'; then
2036 mandir=/usr/share/man
2039 esac
2041 if test ${localstatedir} = '${prefix}/var'; then
2042 localstatedir=/var
2045 BUILD_PLATFORM=${build}
2046 BUILD_CPU=${build_cpu}
2047 BUILD_VENDOR=${build_vendor}
2048 BUILD_OS=${build_os}
2055 HOST_PLATFORM=${host}
2056 HOST_CPU=${host_cpu}
2057 HOST_VENDOR=${host_vendor}
2058 HOST_OS=${host_os}
2065 case "${host_os}" in
2066 freebsd*)
2067 OSARCH=FreeBSD
2069 netbsd*)
2070 OSARCH=NetBSD
2072 openbsd*)
2073 OSARCH=OpenBSD
2075 solaris*)
2076 OSARCH=SunOS
2079 OSARCH=${HOST_OS}
2081 esac
2085 # check for uname
2086 if test -n "$ac_tool_prefix"; then
2087 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}uname; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_path_UNAME+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 case $UNAME in
2095 [\\/]* | ?:[\\/]*)
2096 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2112 IFS=$as_save_IFS
2115 esac
2117 UNAME=$ac_cv_path_UNAME
2118 if test -n "$UNAME"; then
2119 { echo "$as_me:$LINENO: result: $UNAME" >&5
2120 echo "${ECHO_T}$UNAME" >&6; }
2121 else
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2128 if test -z "$ac_cv_path_UNAME"; then
2129 ac_pt_UNAME=$UNAME
2130 # Extract the first word of "uname", so it can be a program name with args.
2131 set dummy uname; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 case $ac_pt_UNAME in
2138 [\\/]* | ?:[\\/]*)
2139 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2153 done
2154 done
2155 IFS=$as_save_IFS
2158 esac
2160 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2161 if test -n "$ac_pt_UNAME"; then
2162 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2163 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2164 else
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2169 if test "x$ac_pt_UNAME" = x; then
2170 UNAME="No"
2171 else
2172 case $cross_compiling:$ac_tool_warned in
2173 yes:)
2174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&5
2177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet. If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2180 ac_tool_warned=yes ;;
2181 esac
2182 UNAME=$ac_pt_UNAME
2184 else
2185 UNAME="$ac_cv_path_UNAME"
2188 if test ! x"${UNAME}" = xNo; then
2189 PBX_OSREV=$(${UNAME} -r)
2193 # This needs to be before any macros that use the C compiler
2195 cat >>confdefs.h <<\_ACEOF
2196 #define _GNU_SOURCE 1
2197 _ACEOF
2207 # cross-compile checks
2208 if test "${cross_compiling}" = "yes";
2209 then
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2232 done
2233 done
2234 IFS=$as_save_IFS
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 { echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6; }
2242 else
2243 { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2249 if test -z "$ac_cv_prog_CC"; then
2250 ac_ct_CC=$CC
2251 # Extract the first word of "gcc", so it can be a program name with args.
2252 set dummy gcc; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_ac_ct_CC="gcc"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2272 done
2273 done
2274 IFS=$as_save_IFS
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 echo "${ECHO_T}$ac_ct_CC" >&6; }
2282 else
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2287 if test "x$ac_ct_CC" = x; then
2288 CC=":"
2289 else
2290 case $cross_compiling:$ac_tool_warned in
2291 yes:)
2292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2293 whose name does not start with the host triplet. If you think this
2294 configuration is useful to you, please write to autoconf@gnu.org." >&5
2295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2298 ac_tool_warned=yes ;;
2299 esac
2300 CC=$ac_ct_CC
2302 else
2303 CC="$ac_cv_prog_CC"
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}g++; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_CXX+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$CXX"; then
2315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2328 done
2329 done
2330 IFS=$as_save_IFS
2334 CXX=$ac_cv_prog_CXX
2335 if test -n "$CXX"; then
2336 { echo "$as_me:$LINENO: result: $CXX" >&5
2337 echo "${ECHO_T}$CXX" >&6; }
2338 else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2345 if test -z "$ac_cv_prog_CXX"; then
2346 ac_ct_CXX=$CXX
2347 # Extract the first word of "g++", so it can be a program name with args.
2348 set dummy g++; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 if test -n "$ac_ct_CXX"; then
2355 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_CXX="g++"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2368 done
2369 done
2370 IFS=$as_save_IFS
2374 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2375 if test -n "$ac_ct_CXX"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2377 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2383 if test "x$ac_ct_CXX" = x; then
2384 CXX=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387 yes:)
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2395 esac
2396 CXX=$ac_ct_CXX
2398 else
2399 CXX="$ac_cv_prog_CXX"
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}ld; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_LD+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$LD"; then
2411 ac_cv_prog_LD="$LD" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_LD="${ac_tool_prefix}ld"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2424 done
2425 done
2426 IFS=$as_save_IFS
2430 LD=$ac_cv_prog_LD
2431 if test -n "$LD"; then
2432 { echo "$as_me:$LINENO: result: $LD" >&5
2433 echo "${ECHO_T}$LD" >&6; }
2434 else
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2441 if test -z "$ac_cv_prog_LD"; then
2442 ac_ct_LD=$LD
2443 # Extract the first word of "ld", so it can be a program name with args.
2444 set dummy ld; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 if test -n "$ac_ct_LD"; then
2451 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_LD="ld"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2464 done
2465 done
2466 IFS=$as_save_IFS
2470 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2471 if test -n "$ac_ct_LD"; then
2472 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2473 echo "${ECHO_T}$ac_ct_LD" >&6; }
2474 else
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2479 if test "x$ac_ct_LD" = x; then
2480 LD=":"
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492 LD=$ac_ct_LD
2494 else
2495 LD="$ac_cv_prog_LD"
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_RANLIB+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 if test -n "$RANLIB"; then
2507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2520 done
2521 done
2522 IFS=$as_save_IFS
2526 RANLIB=$ac_cv_prog_RANLIB
2527 if test -n "$RANLIB"; then
2528 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2529 echo "${ECHO_T}$RANLIB" >&6; }
2530 else
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2537 if test -z "$ac_cv_prog_RANLIB"; then
2538 ac_ct_RANLIB=$RANLIB
2539 # Extract the first word of "ranlib", so it can be a program name with args.
2540 set dummy ranlib; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 if test -n "$ac_ct_RANLIB"; then
2547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_ac_ct_RANLIB="ranlib"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2560 done
2561 done
2562 IFS=$as_save_IFS
2566 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2567 if test -n "$ac_ct_RANLIB"; then
2568 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2569 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2570 else
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2575 if test "x$ac_ct_RANLIB" = x; then
2576 RANLIB=":"
2577 else
2578 case $cross_compiling:$ac_tool_warned in
2579 yes:)
2580 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2581 whose name does not start with the host triplet. If you think this
2582 configuration is useful to you, please write to autoconf@gnu.org." >&5
2583 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2586 ac_tool_warned=yes ;;
2587 esac
2588 RANLIB=$ac_ct_RANLIB
2590 else
2591 RANLIB="$ac_cv_prog_RANLIB"
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2596 set dummy ${ac_tool_prefix}ar; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_AR+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$AR"; then
2603 ac_cv_prog_AR="$AR" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_AR="${ac_tool_prefix}ar"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2616 done
2617 done
2618 IFS=$as_save_IFS
2622 AR=$ac_cv_prog_AR
2623 if test -n "$AR"; then
2624 { echo "$as_me:$LINENO: result: $AR" >&5
2625 echo "${ECHO_T}$AR" >&6; }
2626 else
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2633 if test -z "$ac_cv_prog_AR"; then
2634 ac_ct_AR=$AR
2635 # Extract the first word of "ar", so it can be a program name with args.
2636 set dummy ar; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642 if test -n "$ac_ct_AR"; then
2643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_AR="ar"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2658 IFS=$as_save_IFS
2662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2663 if test -n "$ac_ct_AR"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2665 echo "${ECHO_T}$ac_ct_AR" >&6; }
2666 else
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2671 if test "x$ac_ct_AR" = x; then
2672 AR=":"
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675 yes:)
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684 AR=$ac_ct_AR
2686 else
2687 AR="$ac_cv_prog_AR"
2692 # Checks for programs.
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2720 done
2721 done
2722 IFS=$as_save_IFS
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 { echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6; }
2730 else
2731 { echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6; }
2737 if test -z "$ac_cv_prog_CC"; then
2738 ac_ct_CC=$CC
2739 # Extract the first word of "gcc", so it can be a program name with args.
2740 set dummy gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_CC="gcc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2762 IFS=$as_save_IFS
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2769 echo "${ECHO_T}$ac_ct_CC" >&6; }
2770 else
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2775 if test "x$ac_ct_CC" = x; then
2776 CC=""
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2781 whose name does not start with the host triplet. If you think this
2782 configuration is useful to you, please write to autoconf@gnu.org." >&5
2783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2784 whose name does not start with the host triplet. If you think this
2785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2786 ac_tool_warned=yes ;;
2787 esac
2788 CC=$ac_ct_CC
2790 else
2791 CC="$ac_cv_prog_CC"
2794 if test -z "$CC"; then
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2797 set dummy ${ac_tool_prefix}cc; ac_word=$2
2798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_CC="${ac_tool_prefix}cc"
2814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2817 done
2818 done
2819 IFS=$as_save_IFS
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825 { echo "$as_me:$LINENO: result: $CC" >&5
2826 echo "${ECHO_T}$CC" >&6; }
2827 else
2828 { echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6; }
2835 if test -z "$CC"; then
2836 # Extract the first word of "cc", so it can be a program name with args.
2837 set dummy cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 ac_prog_rejected=no
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2855 ac_prog_rejected=yes
2856 continue
2858 ac_cv_prog_CC="cc"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2862 done
2863 done
2864 IFS=$as_save_IFS
2866 if test $ac_prog_rejected = yes; then
2867 # We found a bogon in the path, so make sure we never use it.
2868 set dummy $ac_cv_prog_CC
2869 shift
2870 if test $# != 0; then
2871 # We chose a different compiler from the bogus one.
2872 # However, it has the same basename, so the bogon will be chosen
2873 # first if we set CC to just the basename; use the full file name.
2874 shift
2875 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2880 CC=$ac_cv_prog_CC
2881 if test -n "$CC"; then
2882 { echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6; }
2884 else
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2891 if test -z "$CC"; then
2892 if test -n "$ac_tool_prefix"; then
2893 for ac_prog in cl.exe
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 { echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6; }
2926 else
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2932 test -n "$CC" && break
2933 done
2935 if test -z "$CC"; then
2936 ac_ct_CC=$CC
2937 for ac_prog in cl.exe
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_ac_ct_CC="$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2960 done
2961 done
2962 IFS=$as_save_IFS
2966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967 if test -n "$ac_ct_CC"; then
2968 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2969 echo "${ECHO_T}$ac_ct_CC" >&6; }
2970 else
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$ac_ct_CC" && break
2977 done
2979 if test "x$ac_ct_CC" = x; then
2980 CC=""
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet. If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&5
2987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet. If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2990 ac_tool_warned=yes ;;
2991 esac
2992 CC=$ac_ct_CC
2999 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: no acceptable C compiler found in \$PATH
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3005 # Provide some information about the compiler.
3006 echo "$as_me:$LINENO: checking for C compiler version" >&5
3007 ac_compiler=`set X $ac_compile; echo $2`
3008 { (ac_try="$ac_compiler --version >&5"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compiler --version >&5") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (ac_try="$ac_compiler -v >&5"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler -v >&5") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -V >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -V >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3047 main ()
3051 return 0;
3053 _ACEOF
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3058 # of exeext.
3059 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3060 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3061 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 # List of possible output files, starting from the most likely.
3064 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3065 # only as a last resort. b.out is created by i960 compilers.
3066 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3068 # The IRIX 6 linker writes into existing files which may not be
3069 # executable, retaining their permissions. Remove them first so a
3070 # subsequent execution test works.
3071 ac_rmfiles=
3072 for ac_file in $ac_files
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3076 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3077 esac
3078 done
3079 rm -f $ac_rmfiles
3081 if { (ac_try="$ac_link_default"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_link_default") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; then
3091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3092 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3093 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3094 # so that the user can short-circuit this test for compilers unknown to
3095 # Autoconf.
3096 for ac_file in $ac_files ''
3098 test -f "$ac_file" || continue
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3102 [ab].out )
3103 # We found the default executable, but exeext='' is most
3104 # certainly right.
3105 break;;
3106 *.* )
3107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3108 then :; else
3109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111 # We set ac_cv_exeext here because the later test for it is not
3112 # safe: cross compilers may not add the suffix if given an `-o'
3113 # argument, so we may need to know it at that point already.
3114 # Even if this section looks crufty: it has the advantage of
3115 # actually working.
3116 break;;
3118 break;;
3119 esac
3120 done
3121 test "$ac_cv_exeext" = no && ac_cv_exeext=
3123 else
3124 ac_file=''
3127 { echo "$as_me:$LINENO: result: $ac_file" >&5
3128 echo "${ECHO_T}$ac_file" >&6; }
3129 if test -z "$ac_file"; then
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: C compiler cannot create executables
3136 See \`config.log' for more details." >&2;}
3137 { (exit 77); exit 77; }; }
3140 ac_exeext=$ac_cv_exeext
3142 # Check that the compiler produces executables we can run. If not, either
3143 # the compiler is broken, or we cross compile.
3144 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3147 # If not cross compiling, check that we can run a simple program.
3148 if test "$cross_compiling" != yes; then
3149 if { ac_try='./$ac_file'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 cross_compiling=no
3160 else
3161 if test "$cross_compiling" = maybe; then
3162 cross_compiling=yes
3163 else
3164 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3174 { echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6; }
3177 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3178 ac_clean_files=$ac_clean_files_save
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3182 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3183 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3184 echo "${ECHO_T}$cross_compiling" >&6; }
3186 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3187 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3188 if { (ac_try="$ac_link"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_link") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 # `rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 break;;
3208 * ) break;;
3209 esac
3210 done
3211 else
3212 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3219 rm -f conftest$ac_cv_exeext
3220 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3221 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3223 rm -f conftest.$ac_ext
3224 EXEEXT=$ac_cv_exeext
3225 ac_exeext=$EXEEXT
3226 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3228 if test "${ac_cv_objext+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3239 main ()
3243 return 0;
3245 _ACEOF
3246 rm -f conftest.o conftest.obj
3247 if { (ac_try="$ac_compile"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compile") 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; then
3257 for ac_file in conftest.o conftest.obj conftest.*; do
3258 test -f "$ac_file" || continue;
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262 break;;
3263 esac
3264 done
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3272 See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3279 echo "${ECHO_T}$ac_cv_objext" >&6; }
3280 OBJEXT=$ac_cv_objext
3281 ac_objext=$OBJEXT
3282 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3283 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3284 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 main ()
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3302 return 0;
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } &&
3319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3320 { (case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_try") 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 ac_compiler_gnu=yes
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 ac_compiler_gnu=no
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3351 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3353 GCC=`test $ac_compiler_gnu = yes && echo yes`
3354 ac_test_CFLAGS=${CFLAGS+set}
3355 ac_save_CFLAGS=$CFLAGS
3356 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_cc_g+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 ac_save_c_werror_flag=$ac_c_werror_flag
3362 ac_c_werror_flag=yes
3363 ac_cv_prog_cc_g=no
3364 CFLAGS="-g"
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3373 main ()
3377 return 0;
3379 _ACEOF
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3395 { (case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_try") 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; } &&
3404 { ac_try='test -s conftest.$ac_objext'
3405 { (case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_try") 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3414 ac_cv_prog_cc_g=yes
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 CFLAGS=""
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3450 { (case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_try") 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475 CFLAGS="-g"
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3484 main ()
3488 return 0;
3490 _ACEOF
3491 rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3506 { (case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_try") 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_try") 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_cv_prog_cc_g=yes
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3543 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3544 if test "$ac_test_CFLAGS" = set; then
3545 CFLAGS=$ac_save_CFLAGS
3546 elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
3548 CFLAGS="-g -O2"
3549 else
3550 CFLAGS="-g"
3552 else
3553 if test "$GCC" = yes; then
3554 CFLAGS="-O2"
3555 else
3556 CFLAGS=
3559 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3560 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_c89+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 ac_cv_prog_cc_c89=no
3565 ac_save_CC=$CC
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <stdarg.h>
3573 #include <stdio.h>
3574 #include <sys/types.h>
3575 #include <sys/stat.h>
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3580 char **p;
3581 int i;
3583 return p[i];
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3587 char *s;
3588 va_list v;
3589 va_start (v,p);
3590 s = g (p, va_arg (v,int));
3591 va_end (v);
3592 return s;
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3596 function prototypes and stuff, but not '\xHH' hex character constants.
3597 These don't provoke an error unfortunately, instead are silently treated
3598 as 'x'. The following induces an error, until -std is added to get
3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3600 array size at least. It's necessary to write '\x00'==0 to get something
3601 that's true only with -std. */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605 inside strings and character constants. */
3606 #define FOO(x) 'x'
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3613 int argc;
3614 char **argv;
3616 main ()
3618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3620 return 0;
3622 _ACEOF
3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3626 CC="$ac_save_CC $ac_arg"
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3642 { (case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_try") 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_try") 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 ac_cv_prog_cc_c89=$ac_arg
3662 else
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f core conftest.err conftest.$ac_objext
3670 test "x$ac_cv_prog_cc_c89" != "xno" && break
3671 done
3672 rm -f conftest.$ac_ext
3673 CC=$ac_save_CC
3676 # AC_CACHE_VAL
3677 case "x$ac_cv_prog_cc_c89" in
3679 { echo "$as_me:$LINENO: result: none needed" >&5
3680 echo "${ECHO_T}none needed" >&6; } ;;
3681 xno)
3682 { echo "$as_me:$LINENO: result: unsupported" >&5
3683 echo "${ECHO_T}unsupported" >&6; } ;;
3685 CC="$CC $ac_cv_prog_cc_c89"
3686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3687 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3688 esac
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 ac_ext=cpp
3698 ac_cpp='$CXXCPP $CPPFLAGS'
3699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3702 if test -z "$CXX"; then
3703 if test -n "$CCC"; then
3704 CXX=$CCC
3705 else
3706 if test -n "$ac_tool_prefix"; then
3707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_CXX+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 if test -n "$CXX"; then
3717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 CXX=$ac_cv_prog_CXX
3737 if test -n "$CXX"; then
3738 { echo "$as_me:$LINENO: result: $CXX" >&5
3739 echo "${ECHO_T}$CXX" >&6; }
3740 else
3741 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3746 test -n "$CXX" && break
3747 done
3749 if test -z "$CXX"; then
3750 ac_ct_CXX=$CXX
3751 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy $ac_prog; ac_word=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 if test -n "$ac_ct_CXX"; then
3761 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_ac_ct_CXX="$ac_prog"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3776 IFS=$as_save_IFS
3780 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3781 if test -n "$ac_ct_CXX"; then
3782 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3783 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3784 else
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3790 test -n "$ac_ct_CXX" && break
3791 done
3793 if test "x$ac_ct_CXX" = x; then
3794 CXX="g++"
3795 else
3796 case $cross_compiling:$ac_tool_warned in
3797 yes:)
3798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3799 whose name does not start with the host triplet. If you think this
3800 configuration is useful to you, please write to autoconf@gnu.org." >&5
3801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3802 whose name does not start with the host triplet. If you think this
3803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3804 ac_tool_warned=yes ;;
3805 esac
3806 CXX=$ac_ct_CXX
3812 # Provide some information about the compiler.
3813 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3814 ac_compiler=`set X $ac_compile; echo $2`
3815 { (ac_try="$ac_compiler --version >&5"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_compiler --version >&5") 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }
3825 { (ac_try="$ac_compiler -v >&5"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compiler -v >&5") 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }
3835 { (ac_try="$ac_compiler -V >&5"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_compiler -V >&5") 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }
3846 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3847 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3848 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3859 main ()
3861 #ifndef __GNUC__
3862 choke me
3863 #endif
3866 return 0;
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3884 { (case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_compiler_gnu=yes
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 ac_compiler_gnu=no
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3915 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3916 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3917 GXX=`test $ac_compiler_gnu = yes && echo yes`
3918 ac_test_CXXFLAGS=${CXXFLAGS+set}
3919 ac_save_CXXFLAGS=$CXXFLAGS
3920 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3921 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3922 if test "${ac_cv_prog_cxx_g+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3926 ac_cxx_werror_flag=yes
3927 ac_cv_prog_cxx_g=no
3928 CXXFLAGS="-g"
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 main ()
3941 return 0;
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_try") 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_prog_cxx_g=yes
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 CXXFLAGS=""
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3992 main ()
3996 return 0;
3998 _ACEOF
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_try") 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4039 CXXFLAGS="-g"
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4048 main ()
4052 return 0;
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest.$ac_objext'
4080 { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_prog_cxx_g=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4106 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4107 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4108 if test "$ac_test_CXXFLAGS" = set; then
4109 CXXFLAGS=$ac_save_CXXFLAGS
4110 elif test $ac_cv_prog_cxx_g = yes; then
4111 if test "$GXX" = yes; then
4112 CXXFLAGS="-g -O2"
4113 else
4114 CXXFLAGS="-g"
4116 else
4117 if test "$GXX" = yes; then
4118 CXXFLAGS="-O2"
4119 else
4120 CXXFLAGS=
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
4134 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4135 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4136 # On Suns, sometimes $CPP names a directory.
4137 if test -n "$CPP" && test -d "$CPP"; then
4138 CPP=
4140 if test -z "$CPP"; then
4141 if test "${ac_cv_prog_CPP+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 # Double quotes because CPP needs to be expanded
4145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4147 ac_preproc_ok=false
4148 for ac_c_preproc_warn_flag in '' yes
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #ifdef __STDC__
4163 # include <limits.h>
4164 #else
4165 # include <assert.h>
4166 #endif
4167 Syntax error
4168 _ACEOF
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null; then
4182 if test -s conftest.err; then
4183 ac_cpp_err=$ac_c_preproc_warn_flag
4184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4185 else
4186 ac_cpp_err=
4188 else
4189 ac_cpp_err=yes
4191 if test -z "$ac_cpp_err"; then
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 # Broken: fails on valid input.
4198 continue
4201 rm -f conftest.err conftest.$ac_ext
4203 # OK, works on sane cases. Now check whether nonexistent headers
4204 # can be detected and how.
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if { (ac_try="$ac_cpp conftest.$ac_ext"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null; then
4226 if test -s conftest.err; then
4227 ac_cpp_err=$ac_c_preproc_warn_flag
4228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4229 else
4230 ac_cpp_err=
4232 else
4233 ac_cpp_err=yes
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4237 continue
4238 else
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4247 rm -f conftest.err conftest.$ac_ext
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then
4253 break
4256 done
4257 ac_cv_prog_CPP=$CPP
4260 CPP=$ac_cv_prog_CPP
4261 else
4262 ac_cv_prog_CPP=$CPP
4264 { echo "$as_me:$LINENO: result: $CPP" >&5
4265 echo "${ECHO_T}$CPP" >&6; }
4266 ac_preproc_ok=false
4267 for ac_c_preproc_warn_flag in '' yes
4269 # Use a header file that comes with gcc, so configuring glibc
4270 # with a fresh cross-compiler works.
4271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272 # <limits.h> exists even on freestanding compilers.
4273 # On the NeXT, cc -E runs the code through the compiler's parser,
4274 # not just through cpp. "Syntax error" is here to catch this case.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #ifdef __STDC__
4282 # include <limits.h>
4283 #else
4284 # include <assert.h>
4285 #endif
4286 Syntax error
4287 _ACEOF
4288 if { (ac_try="$ac_cpp conftest.$ac_ext"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } >/dev/null; then
4301 if test -s conftest.err; then
4302 ac_cpp_err=$ac_c_preproc_warn_flag
4303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4304 else
4305 ac_cpp_err=
4307 else
4308 ac_cpp_err=yes
4310 if test -z "$ac_cpp_err"; then
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 # Broken: fails on valid input.
4317 continue
4320 rm -f conftest.err conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ac_nonexistent.h>
4331 _ACEOF
4332 if { (ac_try="$ac_cpp conftest.$ac_ext"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null; then
4345 if test -s conftest.err; then
4346 ac_cpp_err=$ac_c_preproc_warn_flag
4347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4348 else
4349 ac_cpp_err=
4351 else
4352 ac_cpp_err=yes
4354 if test -z "$ac_cpp_err"; then
4355 # Broken: success on invalid input.
4356 continue
4357 else
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 # Passes both tests.
4362 ac_preproc_ok=:
4363 break
4366 rm -f conftest.err conftest.$ac_ext
4368 done
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.err conftest.$ac_ext
4371 if $ac_preproc_ok; then
4373 else
4374 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4375 See \`config.log' for more details." >&5
4376 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details." >&2;}
4378 { (exit 1); exit 1; }; }
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 ac_ext=cpp
4388 ac_cpp='$CXXCPP $CPPFLAGS'
4389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4392 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4393 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4394 if test -z "$CXXCPP"; then
4395 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 # Double quotes because CXXCPP needs to be expanded
4399 for CXXCPP in "$CXX -E" "/lib/cpp"
4401 ac_preproc_ok=false
4402 for ac_cxx_preproc_warn_flag in '' yes
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #ifdef __STDC__
4417 # include <limits.h>
4418 #else
4419 # include <assert.h>
4420 #endif
4421 Syntax error
4422 _ACEOF
4423 if { (ac_try="$ac_cpp conftest.$ac_ext"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_cxx_preproc_warn_flag
4438 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4439 else
4440 ac_cpp_err=
4442 else
4443 ac_cpp_err=yes
4445 if test -z "$ac_cpp_err"; then
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Broken: fails on valid input.
4452 continue
4455 rm -f conftest.err conftest.$ac_ext
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4466 _ACEOF
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null; then
4480 if test -s conftest.err; then
4481 ac_cpp_err=$ac_cxx_preproc_warn_flag
4482 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4483 else
4484 ac_cpp_err=
4486 else
4487 ac_cpp_err=yes
4489 if test -z "$ac_cpp_err"; then
4490 # Broken: success on invalid input.
4491 continue
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 # Passes both tests.
4497 ac_preproc_ok=:
4498 break
4501 rm -f conftest.err conftest.$ac_ext
4503 done
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then
4507 break
4510 done
4511 ac_cv_prog_CXXCPP=$CXXCPP
4514 CXXCPP=$ac_cv_prog_CXXCPP
4515 else
4516 ac_cv_prog_CXXCPP=$CXXCPP
4518 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4519 echo "${ECHO_T}$CXXCPP" >&6; }
4520 ac_preproc_ok=false
4521 for ac_cxx_preproc_warn_flag in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #ifdef __STDC__
4536 # include <limits.h>
4537 #else
4538 # include <assert.h>
4539 #endif
4540 Syntax error
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null; then
4555 if test -s conftest.err; then
4556 ac_cpp_err=$ac_cxx_preproc_warn_flag
4557 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4558 else
4559 ac_cpp_err=
4561 else
4562 ac_cpp_err=yes
4564 if test -z "$ac_cpp_err"; then
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 # Broken: fails on valid input.
4571 continue
4574 rm -f conftest.err conftest.$ac_ext
4576 # OK, works on sane cases. Now check whether nonexistent headers
4577 # can be detected and how.
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #include <ac_nonexistent.h>
4585 _ACEOF
4586 if { (ac_try="$ac_cpp conftest.$ac_ext"
4587 case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } >/dev/null; then
4599 if test -s conftest.err; then
4600 ac_cpp_err=$ac_cxx_preproc_warn_flag
4601 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4602 else
4603 ac_cpp_err=
4605 else
4606 ac_cpp_err=yes
4608 if test -z "$ac_cpp_err"; then
4609 # Broken: success on invalid input.
4610 continue
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 # Passes both tests.
4616 ac_preproc_ok=:
4617 break
4620 rm -f conftest.err conftest.$ac_ext
4622 done
4623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4624 rm -f conftest.err conftest.$ac_ext
4625 if $ac_preproc_ok; then
4627 else
4628 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4631 See \`config.log' for more details." >&2;}
4632 { (exit 1); exit 1; }; }
4635 ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 for ac_prog in gawk mawk nawk awk
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_AWK+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 if test -n "$AWK"; then
4651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_AWK="$ac_prog"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 AWK=$ac_cv_prog_AWK
4671 if test -n "$AWK"; then
4672 { echo "$as_me:$LINENO: result: $AWK" >&5
4673 echo "${ECHO_T}$AWK" >&6; }
4674 else
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4680 test -n "$AWK" && break
4681 done
4683 # Find a good install program. We prefer a C program (faster),
4684 # so one script is as good as another. But avoid the broken or
4685 # incompatible versions:
4686 # SysV /etc/install, /usr/sbin/install
4687 # SunOS /usr/etc/install
4688 # IRIX /sbin/install
4689 # AIX /bin/install
4690 # AmigaOS /C/install, which installs bootblocks on floppy discs
4691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4694 # OS/2's system install, which has a completely different semantic
4695 # ./install, which can be erroneously created by make from ./install.sh.
4696 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4697 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4698 if test -z "$INSTALL"; then
4699 if test "${ac_cv_path_install+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 # Account for people who put trailing slashes in PATH elements.
4708 case $as_dir/ in
4709 ./ | .// | /cC/* | \
4710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4712 /usr/ucb/* ) ;;
4714 # OSF1 and SCO ODT 3.0 have their own names for install.
4715 # Don't use installbsd from OSF since it installs stuff as root
4716 # by default.
4717 for ac_prog in ginstall scoinst install; do
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4720 if test $ac_prog = install &&
4721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4722 # AIX install. It has an incompatible calling convention.
4724 elif test $ac_prog = install &&
4725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4726 # program-specific install script used by HP pwplus--don't use.
4728 else
4729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4730 break 3
4733 done
4734 done
4736 esac
4737 done
4738 IFS=$as_save_IFS
4742 if test "${ac_cv_path_install+set}" = set; then
4743 INSTALL=$ac_cv_path_install
4744 else
4745 # As a last resort, use the slow shell script. Don't cache a
4746 # value for INSTALL within a source directory, because that will
4747 # break other packages using the cache if that directory is
4748 # removed, or if the value is a relative name.
4749 INSTALL=$ac_install_sh
4752 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4753 echo "${ECHO_T}$INSTALL" >&6; }
4755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4756 # It thinks the first close brace ends the variable substitution.
4757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4763 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4764 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4765 LN_S=$as_ln_s
4766 if test "$LN_S" = "ln -s"; then
4767 { echo "$as_me:$LINENO: result: yes" >&5
4768 echo "${ECHO_T}yes" >&6; }
4769 else
4770 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4771 echo "${ECHO_T}no, using $LN_S" >&6; }
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_prog_RANLIB+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782 if test -n "$RANLIB"; then
4783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 RANLIB=$ac_cv_prog_RANLIB
4803 if test -n "$RANLIB"; then
4804 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4805 echo "${ECHO_T}$RANLIB" >&6; }
4806 else
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4813 if test -z "$ac_cv_prog_RANLIB"; then
4814 ac_ct_RANLIB=$RANLIB
4815 # Extract the first word of "ranlib", so it can be a program name with args.
4816 set dummy ranlib; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 if test -n "$ac_ct_RANLIB"; then
4823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_RANLIB="ranlib"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4843 if test -n "$ac_ct_RANLIB"; then
4844 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4845 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4846 else
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4851 if test "x$ac_ct_RANLIB" = x; then
4852 RANLIB=":"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4857 whose name does not start with the host triplet. If you think this
4858 configuration is useful to you, please write to autoconf@gnu.org." >&5
4859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4860 whose name does not start with the host triplet. If you think this
4861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4862 ac_tool_warned=yes ;;
4863 esac
4864 RANLIB=$ac_ct_RANLIB
4866 else
4867 RANLIB="$ac_cv_prog_RANLIB"
4870 { echo "$as_me:$LINENO: checking for GNU make" >&5
4871 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
4872 if test "${GNU_MAKE+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 GNU_MAKE='Not Found' ;
4876 GNU_MAKE_VERSION_MAJOR=0 ;
4877 GNU_MAKE_VERSION_MINOR=0 ;
4878 for a in make gmake gnumake ; do
4879 if test -z "$a" ; then continue ; fi ;
4880 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4881 GNU_MAKE=$a ;
4882 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
4883 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
4884 break;
4886 done ;
4889 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
4890 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
4891 if test "x$GNU_MAKE" = "xNot Found" ; then
4892 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
4893 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
4894 { (exit 1); exit 1; }; }
4895 exit 1
4900 # Extract the first word of "grep", so it can be a program name with args.
4901 set dummy grep; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_GREP+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907 case $GREP in
4908 [\\/]* | ?:[\\/]*)
4909 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4927 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
4929 esac
4931 GREP=$ac_cv_path_GREP
4932 if test -n "$GREP"; then
4933 { echo "$as_me:$LINENO: result: $GREP" >&5
4934 echo "${ECHO_T}$GREP" >&6; }
4935 else
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4941 # Extract the first word of "ar", so it can be a program name with args.
4942 set dummy ar; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_path_AR+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 case $AR in
4949 [\\/]* | ?:[\\/]*)
4950 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4968 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
4970 esac
4972 AR=$ac_cv_path_AR
4973 if test -n "$AR"; then
4974 { echo "$as_me:$LINENO: result: $AR" >&5
4975 echo "${ECHO_T}$AR" >&6; }
4976 else
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4982 # Extract the first word of "find", so it can be a program name with args.
4983 set dummy find; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_path_FIND+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 case $FIND in
4990 [\\/]* | ?:[\\/]*)
4991 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5009 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
5011 esac
5013 FIND=$ac_cv_path_FIND
5014 if test -n "$FIND"; then
5015 { echo "$as_me:$LINENO: result: $FIND" >&5
5016 echo "${ECHO_T}$FIND" >&6; }
5017 else
5018 { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5023 # Extract the first word of "compress", so it can be a program name with args.
5024 set dummy compress; ac_word=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_path_COMPRESS+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 case $COMPRESS in
5031 [\\/]* | ?:[\\/]*)
5032 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5048 IFS=$as_save_IFS
5050 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
5052 esac
5054 COMPRESS=$ac_cv_path_COMPRESS
5055 if test -n "$COMPRESS"; then
5056 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5057 echo "${ECHO_T}$COMPRESS" >&6; }
5058 else
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5064 # Extract the first word of "basename", so it can be a program name with args.
5065 set dummy basename; ac_word=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_path_BASENAME+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 case $BASENAME in
5072 [\\/]* | ?:[\\/]*)
5073 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5091 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
5093 esac
5095 BASENAME=$ac_cv_path_BASENAME
5096 if test -n "$BASENAME"; then
5097 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5098 echo "${ECHO_T}$BASENAME" >&6; }
5099 else
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5105 # Extract the first word of "id", so it can be a program name with args.
5106 set dummy id; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_ID+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 case $ID in
5113 [\\/]* | ?:[\\/]*)
5114 ac_cv_path_ID="$ID" # Let the user override the test with a path.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5132 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
5134 esac
5136 ID=$ac_cv_path_ID
5137 if test -n "$ID"; then
5138 { echo "$as_me:$LINENO: result: $ID" >&5
5139 echo "${ECHO_T}$ID" >&6; }
5140 else
5141 { echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6; }
5146 # Extract the first word of "dirname", so it can be a program name with args.
5147 set dummy dirname; ac_word=$2
5148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5150 if test "${ac_cv_path_DIRNAME+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 case $DIRNAME in
5154 [\\/]* | ?:[\\/]*)
5155 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5173 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
5175 esac
5177 DIRNAME=$ac_cv_path_DIRNAME
5178 if test -n "$DIRNAME"; then
5179 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5180 echo "${ECHO_T}$DIRNAME" >&6; }
5181 else
5182 { echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6; }
5187 # Extract the first word of "sh", so it can be a program name with args.
5188 set dummy sh; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_SHELL+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 case $SHELL in
5195 [\\/]* | ?:[\\/]*)
5196 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5214 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
5216 esac
5218 SHELL=$ac_cv_path_SHELL
5219 if test -n "$SHELL"; then
5220 { echo "$as_me:$LINENO: result: $SHELL" >&5
5221 echo "${ECHO_T}$SHELL" >&6; }
5222 else
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 # Extract the first word of "ln", so it can be a program name with args.
5229 set dummy ln; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_LN+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 case $LN in
5236 [\\/]* | ?:[\\/]*)
5237 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5255 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
5257 esac
5259 LN=$ac_cv_path_LN
5260 if test -n "$LN"; then
5261 { echo "$as_me:$LINENO: result: $LN" >&5
5262 echo "${ECHO_T}$LN" >&6; }
5263 else
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5269 # Extract the first word of "dot", so it can be a program name with args.
5270 set dummy dot; ac_word=$2
5271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5273 if test "${ac_cv_path_DOT+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 case $DOT in
5277 [\\/]* | ?:[\\/]*)
5278 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5296 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
5298 esac
5300 DOT=$ac_cv_path_DOT
5301 if test -n "$DOT"; then
5302 { echo "$as_me:$LINENO: result: $DOT" >&5
5303 echo "${ECHO_T}$DOT" >&6; }
5304 else
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5311 ac_ext=c
5312 ac_cpp='$CPP $CPPFLAGS'
5313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318 # Check whether --enable-dev-mode was given.
5319 if test "${enable_dev_mode+set}" = set; then
5320 enableval=$enable_dev_mode; case "${enableval}" in
5321 y|ye|yes) AST_DEVMODE=yes ;;
5322 n|no) AST_DEVMODE=no ;;
5323 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5324 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5325 { (exit 1); exit 1; }; } ;;
5326 esac
5331 # package option names should be in alphabetical order
5332 # by the --with option name, to make things easier for the users :-)
5335 ALSA_DESCRIP="Advanced Linux Sound Architecture"
5336 ALSA_OPTION="asound"
5338 # Check whether --with-asound was given.
5339 if test "${with_asound+set}" = set; then
5340 withval=$with_asound;
5341 case ${withval} in
5342 n|no)
5343 USE_ALSA=no
5345 y|ye|yes)
5346 ALSA_MANDATORY="yes"
5349 ALSA_DIR="${withval}"
5350 ALSA_MANDATORY="yes"
5352 esac
5356 PBX_ALSA=0
5362 CURL_DESCRIP="cURL"
5363 CURL_OPTION="curl"
5365 # Check whether --with-curl was given.
5366 if test "${with_curl+set}" = set; then
5367 withval=$with_curl;
5368 case ${withval} in
5369 n|no)
5370 USE_CURL=no
5372 y|ye|yes)
5373 CURL_MANDATORY="yes"
5376 CURL_DIR="${withval}"
5377 CURL_MANDATORY="yes"
5379 esac
5383 PBX_CURL=0
5389 CURSES_DESCRIP="curses"
5390 CURSES_OPTION="curses"
5392 # Check whether --with-curses was given.
5393 if test "${with_curses+set}" = set; then
5394 withval=$with_curses;
5395 case ${withval} in
5396 n|no)
5397 USE_CURSES=no
5399 y|ye|yes)
5400 CURSES_MANDATORY="yes"
5403 CURSES_DIR="${withval}"
5404 CURSES_MANDATORY="yes"
5406 esac
5410 PBX_CURSES=0
5416 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
5417 GNUTLS_OPTION="gnutls"
5419 # Check whether --with-gnutls was given.
5420 if test "${with_gnutls+set}" = set; then
5421 withval=$with_gnutls;
5422 case ${withval} in
5423 n|no)
5424 USE_GNUTLS=no
5426 y|ye|yes)
5427 GNUTLS_MANDATORY="yes"
5430 GNUTLS_DIR="${withval}"
5431 GNUTLS_MANDATORY="yes"
5433 esac
5437 PBX_GNUTLS=0
5443 GSM_DESCRIP="GSM"
5444 GSM_OPTION="gsm"
5446 # Check whether --with-gsm was given.
5447 if test "${with_gsm+set}" = set; then
5448 withval=$with_gsm;
5449 case ${withval} in
5450 n|no)
5451 USE_GSM=no
5453 y|ye|yes)
5454 GSM_MANDATORY="yes"
5457 GSM_DIR="${withval}"
5458 GSM_MANDATORY="yes"
5460 esac
5464 PBX_GSM=0
5470 IKSEMEL_DESCRIP="Iksemel Jabber Library"
5471 IKSEMEL_OPTION="iksemel"
5473 # Check whether --with-iksemel was given.
5474 if test "${with_iksemel+set}" = set; then
5475 withval=$with_iksemel;
5476 case ${withval} in
5477 n|no)
5478 USE_IKSEMEL=no
5480 y|ye|yes)
5481 IKSEMEL_MANDATORY="yes"
5484 IKSEMEL_DIR="${withval}"
5485 IKSEMEL_MANDATORY="yes"
5487 esac
5491 PBX_IKSEMEL=0
5497 IMAP_TK_DESCRIP="UW IMAP Toolkit"
5498 IMAP_TK_OPTION="imap"
5500 # Check whether --with-imap was given.
5501 if test "${with_imap+set}" = set; then
5502 withval=$with_imap;
5503 case ${withval} in
5504 n|no)
5505 USE_IMAP_TK=no
5507 y|ye|yes)
5508 IMAP_TK_MANDATORY="yes"
5511 IMAP_TK_DIR="${withval}"
5512 IMAP_TK_MANDATORY="yes"
5514 esac
5518 PBX_IMAP_TK=0
5524 ISDNNET_DESCRIP="ISDN4Linux Library"
5525 ISDNNET_OPTION="isdnnet"
5527 # Check whether --with-isdnnet was given.
5528 if test "${with_isdnnet+set}" = set; then
5529 withval=$with_isdnnet;
5530 case ${withval} in
5531 n|no)
5532 USE_ISDNNET=no
5534 y|ye|yes)
5535 ISDNNET_MANDATORY="yes"
5538 ISDNNET_DIR="${withval}"
5539 ISDNNET_MANDATORY="yes"
5541 esac
5545 PBX_ISDNNET=0
5551 KDE_DESCRIP="KDE"
5552 KDE_OPTION="kde"
5554 # Check whether --with-kde was given.
5555 if test "${with_kde+set}" = set; then
5556 withval=$with_kde;
5557 case ${withval} in
5558 n|no)
5559 USE_KDE=no
5561 y|ye|yes)
5562 KDE_MANDATORY="yes"
5565 KDE_DIR="${withval}"
5566 KDE_MANDATORY="yes"
5568 esac
5572 PBX_KDE=0
5578 MISDN_DESCRIP="mISDN User Library"
5579 MISDN_OPTION="misdn"
5581 # Check whether --with-misdn was given.
5582 if test "${with_misdn+set}" = set; then
5583 withval=$with_misdn;
5584 case ${withval} in
5585 n|no)
5586 USE_MISDN=no
5588 y|ye|yes)
5589 MISDN_MANDATORY="yes"
5592 MISDN_DIR="${withval}"
5593 MISDN_MANDATORY="yes"
5595 esac
5599 PBX_MISDN=0
5605 NBS_DESCRIP="Network Broadcast Sound"
5606 NBS_OPTION="nbs"
5608 # Check whether --with-nbs was given.
5609 if test "${with_nbs+set}" = set; then
5610 withval=$with_nbs;
5611 case ${withval} in
5612 n|no)
5613 USE_NBS=no
5615 y|ye|yes)
5616 NBS_MANDATORY="yes"
5619 NBS_DIR="${withval}"
5620 NBS_MANDATORY="yes"
5622 esac
5626 PBX_NBS=0
5632 NCURSES_DESCRIP="ncurses"
5633 NCURSES_OPTION="ncurses"
5635 # Check whether --with-ncurses was given.
5636 if test "${with_ncurses+set}" = set; then
5637 withval=$with_ncurses;
5638 case ${withval} in
5639 n|no)
5640 USE_NCURSES=no
5642 y|ye|yes)
5643 NCURSES_MANDATORY="yes"
5646 NCURSES_DIR="${withval}"
5647 NCURSES_MANDATORY="yes"
5649 esac
5653 PBX_NCURSES=0
5659 NETSNMP_DESCRIP="Net-SNMP"
5660 NETSNMP_OPTION="netsnmp"
5662 # Check whether --with-netsnmp was given.
5663 if test "${with_netsnmp+set}" = set; then
5664 withval=$with_netsnmp;
5665 case ${withval} in
5666 n|no)
5667 USE_NETSNMP=no
5669 y|ye|yes)
5670 NETSNMP_MANDATORY="yes"
5673 NETSNMP_DIR="${withval}"
5674 NETSNMP_MANDATORY="yes"
5676 esac
5680 PBX_NETSNMP=0
5686 NEWT_DESCRIP="newt"
5687 NEWT_OPTION="newt"
5689 # Check whether --with-newt was given.
5690 if test "${with_newt+set}" = set; then
5691 withval=$with_newt;
5692 case ${withval} in
5693 n|no)
5694 USE_NEWT=no
5696 y|ye|yes)
5697 NEWT_MANDATORY="yes"
5700 NEWT_DIR="${withval}"
5701 NEWT_MANDATORY="yes"
5703 esac
5707 PBX_NEWT=0
5713 UNIXODBC_DESCRIP="unixODBC"
5714 UNIXODBC_OPTION="odbc"
5716 # Check whether --with-odbc was given.
5717 if test "${with_odbc+set}" = set; then
5718 withval=$with_odbc;
5719 case ${withval} in
5720 n|no)
5721 USE_UNIXODBC=no
5723 y|ye|yes)
5724 UNIXODBC_MANDATORY="yes"
5727 UNIXODBC_DIR="${withval}"
5728 UNIXODBC_MANDATORY="yes"
5730 esac
5734 PBX_UNIXODBC=0
5740 OGG_DESCRIP="OGG"
5741 OGG_OPTION="ogg"
5743 # Check whether --with-ogg was given.
5744 if test "${with_ogg+set}" = set; then
5745 withval=$with_ogg;
5746 case ${withval} in
5747 n|no)
5748 USE_OGG=no
5750 y|ye|yes)
5751 OGG_MANDATORY="yes"
5754 OGG_DIR="${withval}"
5755 OGG_MANDATORY="yes"
5757 esac
5761 PBX_OGG=0
5767 OSPTK_DESCRIP="OSP Toolkit"
5768 OSPTK_OPTION="osptk"
5770 # Check whether --with-osptk was given.
5771 if test "${with_osptk+set}" = set; then
5772 withval=$with_osptk;
5773 case ${withval} in
5774 n|no)
5775 USE_OSPTK=no
5777 y|ye|yes)
5778 OSPTK_MANDATORY="yes"
5781 OSPTK_DIR="${withval}"
5782 OSPTK_MANDATORY="yes"
5784 esac
5788 PBX_OSPTK=0
5794 OSS_DESCRIP="Open Sound System"
5795 OSS_OPTION="oss"
5797 # Check whether --with-oss was given.
5798 if test "${with_oss+set}" = set; then
5799 withval=$with_oss;
5800 case ${withval} in
5801 n|no)
5802 USE_OSS=no
5804 y|ye|yes)
5805 OSS_MANDATORY="yes"
5808 OSS_DIR="${withval}"
5809 OSS_MANDATORY="yes"
5811 esac
5815 PBX_OSS=0
5821 POPT_DESCRIP="popt"
5822 POPT_OPTION="popt"
5824 # Check whether --with-popt was given.
5825 if test "${with_popt+set}" = set; then
5826 withval=$with_popt;
5827 case ${withval} in
5828 n|no)
5829 USE_POPT=no
5831 y|ye|yes)
5832 POPT_MANDATORY="yes"
5835 POPT_DIR="${withval}"
5836 POPT_MANDATORY="yes"
5838 esac
5842 PBX_POPT=0
5848 PGSQL_DESCRIP="PostgreSQL"
5849 PGSQL_OPTION="postgres"
5851 # Check whether --with-postgres was given.
5852 if test "${with_postgres+set}" = set; then
5853 withval=$with_postgres;
5854 case ${withval} in
5855 n|no)
5856 USE_PGSQL=no
5858 y|ye|yes)
5859 PGSQL_MANDATORY="yes"
5862 PGSQL_DIR="${withval}"
5863 PGSQL_MANDATORY="yes"
5865 esac
5869 PBX_PGSQL=0
5875 PRI_DESCRIP="ISDN PRI"
5876 PRI_OPTION="pri"
5878 # Check whether --with-pri was given.
5879 if test "${with_pri+set}" = set; then
5880 withval=$with_pri;
5881 case ${withval} in
5882 n|no)
5883 USE_PRI=no
5885 y|ye|yes)
5886 PRI_MANDATORY="yes"
5889 PRI_DIR="${withval}"
5890 PRI_MANDATORY="yes"
5892 esac
5896 PBX_PRI=0
5902 PWLIB_DESCRIP="PWlib"
5903 PWLIB_OPTION="pwlib"
5905 # Check whether --with-pwlib was given.
5906 if test "${with_pwlib+set}" = set; then
5907 withval=$with_pwlib;
5908 case ${withval} in
5909 n|no)
5910 USE_PWLIB=no
5912 y|ye|yes)
5913 PWLIB_MANDATORY="yes"
5916 PWLIB_DIR="${withval}"
5917 PWLIB_MANDATORY="yes"
5919 esac
5923 PBX_PWLIB=0
5929 OPENH323_DESCRIP="OpenH323"
5930 OPENH323_OPTION="h323"
5932 # Check whether --with-h323 was given.
5933 if test "${with_h323+set}" = set; then
5934 withval=$with_h323;
5935 case ${withval} in
5936 n|no)
5937 USE_OPENH323=no
5939 y|ye|yes)
5940 OPENH323_MANDATORY="yes"
5943 OPENH323_DIR="${withval}"
5944 OPENH323_MANDATORY="yes"
5946 esac
5950 PBX_OPENH323=0
5956 QT_DESCRIP="Qt"
5957 QT_OPTION="qt"
5959 # Check whether --with-qt was given.
5960 if test "${with_qt+set}" = set; then
5961 withval=$with_qt;
5962 case ${withval} in
5963 n|no)
5964 USE_QT=no
5966 y|ye|yes)
5967 QT_MANDATORY="yes"
5970 QT_DIR="${withval}"
5971 QT_MANDATORY="yes"
5973 esac
5977 PBX_QT=0
5983 RADIUS_DESCRIP="Radius Client"
5984 RADIUS_OPTION="radius"
5986 # Check whether --with-radius was given.
5987 if test "${with_radius+set}" = set; then
5988 withval=$with_radius;
5989 case ${withval} in
5990 n|no)
5991 USE_RADIUS=no
5993 y|ye|yes)
5994 RADIUS_MANDATORY="yes"
5997 RADIUS_DIR="${withval}"
5998 RADIUS_MANDATORY="yes"
6000 esac
6004 PBX_RADIUS=0
6010 SPEEX_DESCRIP="Speex"
6011 SPEEX_OPTION="speex"
6013 # Check whether --with-speex was given.
6014 if test "${with_speex+set}" = set; then
6015 withval=$with_speex;
6016 case ${withval} in
6017 n|no)
6018 USE_SPEEX=no
6020 y|ye|yes)
6021 SPEEX_MANDATORY="yes"
6024 SPEEX_DIR="${withval}"
6025 SPEEX_MANDATORY="yes"
6027 esac
6031 PBX_SPEEX=0
6037 SQLITE_DESCRIP="SQLite"
6038 SQLITE_OPTION="sqlite"
6040 # Check whether --with-sqlite was given.
6041 if test "${with_sqlite+set}" = set; then
6042 withval=$with_sqlite;
6043 case ${withval} in
6044 n|no)
6045 USE_SQLITE=no
6047 y|ye|yes)
6048 SQLITE_MANDATORY="yes"
6051 SQLITE_DIR="${withval}"
6052 SQLITE_MANDATORY="yes"
6054 esac
6058 PBX_SQLITE=0
6064 SUPPSERV_DESCRIP="mISDN Supplemental Services"
6065 SUPPSERV_OPTION="suppserv"
6067 # Check whether --with-suppserv was given.
6068 if test "${with_suppserv+set}" = set; then
6069 withval=$with_suppserv;
6070 case ${withval} in
6071 n|no)
6072 USE_SUPPSERV=no
6074 y|ye|yes)
6075 SUPPSERV_MANDATORY="yes"
6078 SUPPSERV_DIR="${withval}"
6079 SUPPSERV_MANDATORY="yes"
6081 esac
6085 PBX_SUPPSERV=0
6091 OPENSSL_DESCRIP="OpenSSL"
6092 OPENSSL_OPTION="ssl"
6094 # Check whether --with-ssl was given.
6095 if test "${with_ssl+set}" = set; then
6096 withval=$with_ssl;
6097 case ${withval} in
6098 n|no)
6099 USE_OPENSSL=no
6101 y|ye|yes)
6102 OPENSSL_MANDATORY="yes"
6105 OPENSSL_DIR="${withval}"
6106 OPENSSL_MANDATORY="yes"
6108 esac
6112 PBX_OPENSSL=0
6118 FREETDS_DESCRIP="FreeTDS"
6119 FREETDS_OPTION="tds"
6121 # Check whether --with-tds was given.
6122 if test "${with_tds+set}" = set; then
6123 withval=$with_tds;
6124 case ${withval} in
6125 n|no)
6126 USE_FREETDS=no
6128 y|ye|yes)
6129 FREETDS_MANDATORY="yes"
6132 FREETDS_DIR="${withval}"
6133 FREETDS_MANDATORY="yes"
6135 esac
6139 PBX_FREETDS=0
6145 TERMCAP_DESCRIP="Termcap"
6146 TERMCAP_OPTION="termcap"
6148 # Check whether --with-termcap was given.
6149 if test "${with_termcap+set}" = set; then
6150 withval=$with_termcap;
6151 case ${withval} in
6152 n|no)
6153 USE_TERMCAP=no
6155 y|ye|yes)
6156 TERMCAP_MANDATORY="yes"
6159 TERMCAP_DIR="${withval}"
6160 TERMCAP_MANDATORY="yes"
6162 esac
6166 PBX_TERMCAP=0
6172 TINFO_DESCRIP="Term Info"
6173 TINFO_OPTION="tinfo"
6175 # Check whether --with-tinfo was given.
6176 if test "${with_tinfo+set}" = set; then
6177 withval=$with_tinfo;
6178 case ${withval} in
6179 n|no)
6180 USE_TINFO=no
6182 y|ye|yes)
6183 TINFO_MANDATORY="yes"
6186 TINFO_DIR="${withval}"
6187 TINFO_MANDATORY="yes"
6189 esac
6193 PBX_TINFO=0
6199 TONEZONE_DESCRIP="tonezone"
6200 TONEZONE_OPTION="tonezone"
6202 # Check whether --with-tonezone was given.
6203 if test "${with_tonezone+set}" = set; then
6204 withval=$with_tonezone;
6205 case ${withval} in
6206 n|no)
6207 USE_TONEZONE=no
6209 y|ye|yes)
6210 TONEZONE_MANDATORY="yes"
6213 TONEZONE_DIR="${withval}"
6214 TONEZONE_MANDATORY="yes"
6216 esac
6220 PBX_TONEZONE=0
6226 VORBIS_DESCRIP="Vorbis"
6227 VORBIS_OPTION="vorbis"
6229 # Check whether --with-vorbis was given.
6230 if test "${with_vorbis+set}" = set; then
6231 withval=$with_vorbis;
6232 case ${withval} in
6233 n|no)
6234 USE_VORBIS=no
6236 y|ye|yes)
6237 VORBIS_MANDATORY="yes"
6240 VORBIS_DIR="${withval}"
6241 VORBIS_MANDATORY="yes"
6243 esac
6247 PBX_VORBIS=0
6253 VPB_DESCRIP="Voicetronix API"
6254 VPB_OPTION="vpb"
6256 # Check whether --with-vpb was given.
6257 if test "${with_vpb+set}" = set; then
6258 withval=$with_vpb;
6259 case ${withval} in
6260 n|no)
6261 USE_VPB=no
6263 y|ye|yes)
6264 VPB_MANDATORY="yes"
6267 VPB_DIR="${withval}"
6268 VPB_MANDATORY="yes"
6270 esac
6274 PBX_VPB=0
6280 ZLIB_DESCRIP="zlib"
6281 ZLIB_OPTION="z"
6283 # Check whether --with-z was given.
6284 if test "${with_z+set}" = set; then
6285 withval=$with_z;
6286 case ${withval} in
6287 n|no)
6288 USE_ZLIB=no
6290 y|ye|yes)
6291 ZLIB_MANDATORY="yes"
6294 ZLIB_DIR="${withval}"
6295 ZLIB_MANDATORY="yes"
6297 esac
6301 PBX_ZLIB=0
6307 ZAPTEL_DESCRIP="Zaptel"
6308 ZAPTEL_OPTION="zaptel"
6310 # Check whether --with-zaptel was given.
6311 if test "${with_zaptel+set}" = set; then
6312 withval=$with_zaptel;
6313 case ${withval} in
6314 n|no)
6315 USE_ZAPTEL=no
6317 y|ye|yes)
6318 ZAPTEL_MANDATORY="yes"
6321 ZAPTEL_DIR="${withval}"
6322 ZAPTEL_MANDATORY="yes"
6324 esac
6328 PBX_ZAPTEL=0
6334 # check for basic system features and functionality before
6335 # checking for package libraries
6339 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6340 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_GREP+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 # Extract the first word of "grep ggrep" to use in msg output
6345 if test -z "$GREP"; then
6346 set dummy grep ggrep; ac_prog_name=$2
6347 if test "${ac_cv_path_GREP+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 ac_path_GREP_found=false
6351 # Loop through the user's path and test for each of PROGNAME-LIST
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_prog in grep ggrep; do
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6360 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6361 # Check for GNU ac_path_GREP and select it if it is found.
6362 # Check for GNU $ac_path_GREP
6363 case `"$ac_path_GREP" --version 2>&1` in
6364 *GNU*)
6365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6367 ac_count=0
6368 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6369 while :
6371 cat "conftest.in" "conftest.in" >"conftest.tmp"
6372 mv "conftest.tmp" "conftest.in"
6373 cp "conftest.in" "conftest.nl"
6374 echo 'GREP' >> "conftest.nl"
6375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6377 ac_count=`expr $ac_count + 1`
6378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6379 # Best one so far, save it but keep looking for a better one
6380 ac_cv_path_GREP="$ac_path_GREP"
6381 ac_path_GREP_max=$ac_count
6383 # 10*(2^10) chars as input seems more than enough
6384 test $ac_count -gt 10 && break
6385 done
6386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6387 esac
6390 $ac_path_GREP_found && break 3
6391 done
6392 done
6394 done
6395 IFS=$as_save_IFS
6400 GREP="$ac_cv_path_GREP"
6401 if test -z "$GREP"; then
6402 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6403 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6404 { (exit 1); exit 1; }; }
6407 else
6408 ac_cv_path_GREP=$GREP
6413 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6414 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6415 GREP="$ac_cv_path_GREP"
6418 { echo "$as_me:$LINENO: checking for egrep" >&5
6419 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6420 if test "${ac_cv_path_EGREP+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6424 then ac_cv_path_EGREP="$GREP -E"
6425 else
6426 # Extract the first word of "egrep" to use in msg output
6427 if test -z "$EGREP"; then
6428 set dummy egrep; ac_prog_name=$2
6429 if test "${ac_cv_path_EGREP+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 ac_path_EGREP_found=false
6433 # Loop through the user's path and test for each of PROGNAME-LIST
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_prog in egrep; do
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6442 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6443 # Check for GNU ac_path_EGREP and select it if it is found.
6444 # Check for GNU $ac_path_EGREP
6445 case `"$ac_path_EGREP" --version 2>&1` in
6446 *GNU*)
6447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6449 ac_count=0
6450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6451 while :
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 echo 'EGREP' >> "conftest.nl"
6457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6459 ac_count=`expr $ac_count + 1`
6460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_EGREP="$ac_path_EGREP"
6463 ac_path_EGREP_max=$ac_count
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6467 done
6468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6469 esac
6472 $ac_path_EGREP_found && break 3
6473 done
6474 done
6476 done
6477 IFS=$as_save_IFS
6482 EGREP="$ac_cv_path_EGREP"
6483 if test -z "$EGREP"; then
6484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6486 { (exit 1); exit 1; }; }
6489 else
6490 ac_cv_path_EGREP=$EGREP
6496 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6497 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6498 EGREP="$ac_cv_path_EGREP"
6501 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6502 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6503 if test "${ac_cv_header_stdc+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 #include <stdlib.h>
6513 #include <stdarg.h>
6514 #include <string.h>
6515 #include <float.h>
6518 main ()
6522 return 0;
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (ac_try="$ac_compile"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_compile") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6540 { (case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_try") 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_cv_header_stdc=yes
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 ac_cv_header_stdc=no
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 if test $ac_cv_header_stdc = yes; then
6570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <string.h>
6579 _ACEOF
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP "memchr" >/dev/null 2>&1; then
6583 else
6584 ac_cv_header_stdc=no
6586 rm -f conftest*
6590 if test $ac_cv_header_stdc = yes; then
6591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <stdlib.h>
6600 _ACEOF
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 $EGREP "free" >/dev/null 2>&1; then
6604 else
6605 ac_cv_header_stdc=no
6607 rm -f conftest*
6611 if test $ac_cv_header_stdc = yes; then
6612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6613 if test "$cross_compiling" = yes; then
6615 else
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <ctype.h>
6623 #include <stdlib.h>
6624 #if ((' ' & 0x0FF) == 0x020)
6625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6627 #else
6628 # define ISLOWER(c) \
6629 (('a' <= (c) && (c) <= 'i') \
6630 || ('j' <= (c) && (c) <= 'r') \
6631 || ('s' <= (c) && (c) <= 'z'))
6632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6633 #endif
6635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6637 main ()
6639 int i;
6640 for (i = 0; i < 256; i++)
6641 if (XOR (islower (i), ISLOWER (i))
6642 || toupper (i) != TOUPPER (i))
6643 return 2;
6644 return 0;
6646 _ACEOF
6647 rm -f conftest$ac_exeext
6648 if { (ac_try="$ac_link"
6649 case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6658 { (case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6668 else
6669 echo "$as_me: program exited with status $ac_status" >&5
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ( exit $ac_status )
6674 ac_cv_header_stdc=no
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6682 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6683 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6684 if test $ac_cv_header_stdc = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define STDC_HEADERS 1
6688 _ACEOF
6692 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6703 inttypes.h stdint.h unistd.h
6705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6719 #include <$ac_header>
6720 _ACEOF
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6723 case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_compile") 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6736 { (case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739 esac
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_try") 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (case "(($ac_try" in
6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6749 esac
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_try") 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 eval "$as_ac_Header=yes"
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 eval "$as_ac_Header=no"
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 ac_res=`eval echo '${'$as_ac_Header'}'`
6766 { echo "$as_me:$LINENO: result: $ac_res" >&5
6767 echo "${ECHO_T}$ac_res" >&6; }
6768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6769 cat >>confdefs.h <<_ACEOF
6770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6771 _ACEOF
6775 done
6778 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6779 # for constant arguments. Useless!
6780 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6781 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6782 if test "${ac_cv_working_alloca_h+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <alloca.h>
6793 main ()
6795 char *p = (char *) alloca (2 * sizeof (int));
6796 if (p) return 0;
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (ac_try="$ac_link"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_link") 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6816 { (case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_try") 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_try") 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 ac_cv_working_alloca_h=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_working_alloca_h=no
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844 conftest$ac_exeext conftest.$ac_ext
6846 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6847 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6848 if test $ac_cv_working_alloca_h = yes; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_ALLOCA_H 1
6852 _ACEOF
6856 { echo "$as_me:$LINENO: checking for alloca" >&5
6857 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6858 if test "${ac_cv_func_alloca_works+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #ifdef __GNUC__
6868 # define alloca __builtin_alloca
6869 #else
6870 # ifdef _MSC_VER
6871 # include <malloc.h>
6872 # define alloca _alloca
6873 # else
6874 # ifdef HAVE_ALLOCA_H
6875 # include <alloca.h>
6876 # else
6877 # ifdef _AIX
6878 #pragma alloca
6879 # else
6880 # ifndef alloca /* predefined by HP cc +Olibcalls */
6881 char *alloca ();
6882 # endif
6883 # endif
6884 # endif
6885 # endif
6886 #endif
6889 main ()
6891 char *p = (char *) alloca (1);
6892 if (p) return 0;
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_link") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6912 { (case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_try") 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925 esac
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_try") 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_func_alloca_works=yes
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_func_alloca_works=no
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940 conftest$ac_exeext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6943 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6945 if test $ac_cv_func_alloca_works = yes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_ALLOCA 1
6949 _ACEOF
6951 else
6952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6953 # that cause trouble. Some versions do not even contain alloca or
6954 # contain a buggy version. If you still want to use their alloca,
6955 # use ar to extract alloca.o from them instead of compiling alloca.c.
6957 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6959 cat >>confdefs.h <<\_ACEOF
6960 #define C_ALLOCA 1
6961 _ACEOF
6964 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6965 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6966 if test "${ac_cv_os_cray+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #if defined CRAY && ! defined CRAY2
6976 webecray
6977 #else
6978 wenotbecray
6979 #endif
6981 _ACEOF
6982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983 $EGREP "webecray" >/dev/null 2>&1; then
6984 ac_cv_os_cray=yes
6985 else
6986 ac_cv_os_cray=no
6988 rm -f conftest*
6991 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6992 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6993 if test $ac_cv_os_cray = yes; then
6994 for ac_func in _getb67 GETB67 getb67; do
6995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7009 #define $ac_func innocuous_$ac_func
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below.
7013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 <limits.h> exists even on freestanding compilers. */
7016 #ifdef __STDC__
7017 # include <limits.h>
7018 #else
7019 # include <assert.h>
7020 #endif
7022 #undef $ac_func
7024 /* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
7027 #ifdef __cplusplus
7028 extern "C"
7029 #endif
7030 char $ac_func ();
7031 /* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
7034 #if defined __stub_$ac_func || defined __stub___$ac_func
7035 choke me
7036 #endif
7039 main ()
7041 return $ac_func ();
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext conftest$ac_exeext
7047 if { (ac_try="$ac_link"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_link") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_try") 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
7071 { (case "(($ac_try" in
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_try") 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 eval "$as_ac_var=yes"
7081 else
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7085 eval "$as_ac_var=no"
7088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7089 conftest$ac_exeext conftest.$ac_ext
7091 ac_res=`eval echo '${'$as_ac_var'}'`
7092 { echo "$as_me:$LINENO: result: $ac_res" >&5
7093 echo "${ECHO_T}$ac_res" >&6; }
7094 if test `eval echo '${'$as_ac_var'}'` = yes; then
7096 cat >>confdefs.h <<_ACEOF
7097 #define CRAY_STACKSEG_END $ac_func
7098 _ACEOF
7100 break
7103 done
7106 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7107 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7108 if test "${ac_cv_c_stack_direction+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 if test "$cross_compiling" = yes; then
7112 ac_cv_c_stack_direction=0
7113 else
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 $ac_includes_default
7122 find_stack_direction ()
7124 static char *addr = 0;
7125 auto char dummy;
7126 if (addr == 0)
7128 addr = &dummy;
7129 return find_stack_direction ();
7131 else
7132 return (&dummy > addr) ? 1 : -1;
7136 main ()
7138 return find_stack_direction () < 0;
7140 _ACEOF
7141 rm -f conftest$ac_exeext
7142 if { (ac_try="$ac_link"
7143 case "(($ac_try" in
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_link") 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7152 { (case "(($ac_try" in
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_try") 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_c_stack_direction=1
7162 else
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ( exit $ac_status )
7168 ac_cv_c_stack_direction=-1
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7175 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7176 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7178 cat >>confdefs.h <<_ACEOF
7179 #define STACK_DIRECTION $ac_cv_c_stack_direction
7180 _ACEOF
7190 ac_header_dirent=no
7191 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7192 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7193 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7194 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #include <sys/types.h>
7205 #include <$ac_hdr>
7208 main ()
7210 if ((DIR *) 0)
7211 return 0;
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (ac_try="$ac_compile"
7218 case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221 esac
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_compile") 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7231 { (case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_try") 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest.$ac_objext'
7241 { (case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_try") 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 eval "$as_ac_Header=yes"
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 eval "$as_ac_Header=no"
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 ac_res=`eval echo '${'$as_ac_Header'}'`
7261 { echo "$as_me:$LINENO: result: $ac_res" >&5
7262 echo "${ECHO_T}$ac_res" >&6; }
7263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7266 _ACEOF
7268 ac_header_dirent=$ac_hdr; break
7271 done
7272 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7273 if test $ac_header_dirent = dirent.h; then
7274 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7275 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7276 if test "${ac_cv_search_opendir+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 ac_func_search_save_LIBS=$LIBS
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7287 /* Override any GCC internal prototype to avoid an error.
7288 Use char because int might match the return type of a GCC
7289 builtin and then its argument prototype would still apply. */
7290 #ifdef __cplusplus
7291 extern "C"
7292 #endif
7293 char opendir ();
7295 main ()
7297 return opendir ();
7299 return 0;
7301 _ACEOF
7302 for ac_lib in '' dir; do
7303 if test -z "$ac_lib"; then
7304 ac_res="none required"
7305 else
7306 ac_res=-l$ac_lib
7307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7309 rm -f conftest.$ac_objext conftest$ac_exeext
7310 if { (ac_try="$ac_link"
7311 case "(($ac_try" in
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_link") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_try") 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest$ac_exeext'
7334 { (case "(($ac_try" in
7335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336 *) ac_try_echo=$ac_try;;
7337 esac
7338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7339 (eval "$ac_try") 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_search_opendir=$ac_res
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7352 conftest$ac_exeext
7353 if test "${ac_cv_search_opendir+set}" = set; then
7354 break
7356 done
7357 if test "${ac_cv_search_opendir+set}" = set; then
7359 else
7360 ac_cv_search_opendir=no
7362 rm conftest.$ac_ext
7363 LIBS=$ac_func_search_save_LIBS
7365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7367 ac_res=$ac_cv_search_opendir
7368 if test "$ac_res" != no; then
7369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7373 else
7374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7376 if test "${ac_cv_search_opendir+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379 ac_func_search_save_LIBS=$LIBS
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7390 #ifdef __cplusplus
7391 extern "C"
7392 #endif
7393 char opendir ();
7395 main ()
7397 return opendir ();
7399 return 0;
7401 _ACEOF
7402 for ac_lib in '' x; do
7403 if test -z "$ac_lib"; then
7404 ac_res="none required"
7405 else
7406 ac_res=-l$ac_lib
7407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7424 { (case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_try") 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; } &&
7433 { ac_try='test -s conftest$ac_exeext'
7434 { (case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_try") 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 ac_cv_search_opendir=$ac_res
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7452 conftest$ac_exeext
7453 if test "${ac_cv_search_opendir+set}" = set; then
7454 break
7456 done
7457 if test "${ac_cv_search_opendir+set}" = set; then
7459 else
7460 ac_cv_search_opendir=no
7462 rm conftest.$ac_ext
7463 LIBS=$ac_func_search_save_LIBS
7465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7467 ac_res=$ac_cv_search_opendir
7468 if test "$ac_res" != no; then
7469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7475 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7476 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7477 if test "${ac_cv_header_stdc+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <stdlib.h>
7487 #include <stdarg.h>
7488 #include <string.h>
7489 #include <float.h>
7492 main ()
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7514 { (case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_try") 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_try") 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_header_stdc=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_header_stdc=no
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 if test $ac_cv_header_stdc = yes; then
7544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 #include <string.h>
7553 _ACEOF
7554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7555 $EGREP "memchr" >/dev/null 2>&1; then
7557 else
7558 ac_cv_header_stdc=no
7560 rm -f conftest*
7564 if test $ac_cv_header_stdc = yes; then
7565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <stdlib.h>
7574 _ACEOF
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "free" >/dev/null 2>&1; then
7578 else
7579 ac_cv_header_stdc=no
7581 rm -f conftest*
7585 if test $ac_cv_header_stdc = yes; then
7586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7587 if test "$cross_compiling" = yes; then
7589 else
7590 cat >conftest.$ac_ext <<_ACEOF
7591 /* confdefs.h. */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7596 #include <ctype.h>
7597 #include <stdlib.h>
7598 #if ((' ' & 0x0FF) == 0x020)
7599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7601 #else
7602 # define ISLOWER(c) \
7603 (('a' <= (c) && (c) <= 'i') \
7604 || ('j' <= (c) && (c) <= 'r') \
7605 || ('s' <= (c) && (c) <= 'z'))
7606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7607 #endif
7609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7611 main ()
7613 int i;
7614 for (i = 0; i < 256; i++)
7615 if (XOR (islower (i), ISLOWER (i))
7616 || toupper (i) != TOUPPER (i))
7617 return 2;
7618 return 0;
7620 _ACEOF
7621 rm -f conftest$ac_exeext
7622 if { (ac_try="$ac_link"
7623 case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626 esac
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_link") 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7632 { (case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_try") 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7642 else
7643 echo "$as_me: program exited with status $ac_status" >&5
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ( exit $ac_status )
7648 ac_cv_header_stdc=no
7650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7656 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7657 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7658 if test $ac_cv_header_stdc = yes; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define STDC_HEADERS 1
7662 _ACEOF
7666 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7667 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7668 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <sys/types.h>
7678 #include <sys/wait.h>
7679 #ifndef WEXITSTATUS
7680 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7681 #endif
7682 #ifndef WIFEXITED
7683 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7684 #endif
7687 main ()
7689 int s;
7690 wait (&s);
7691 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7693 return 0;
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7711 { (case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_try") 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_try") 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_header_sys_wait_h=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_cv_header_sys_wait_h=no
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7741 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7742 if test $ac_cv_header_sys_wait_h = yes; then
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_SYS_WAIT_H 1
7746 _ACEOF
7773 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
7775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_res=`eval echo '${'$as_ac_Header'}'`
7783 { echo "$as_me:$LINENO: result: $ac_res" >&5
7784 echo "${ECHO_T}$ac_res" >&6; }
7785 else
7786 # Is the header compilable?
7787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 #include <$ac_header>
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813 { (case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_try") 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest.$ac_objext'
7823 { (case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_try") 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_header_compiler=yes
7833 else
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_header_compiler=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6; }
7844 # Is the header present?
7845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <$ac_header>
7854 _ACEOF
7855 if { (ac_try="$ac_cpp conftest.$ac_ext"
7856 case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } >/dev/null; then
7868 if test -s conftest.err; then
7869 ac_cpp_err=$ac_c_preproc_warn_flag
7870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7871 else
7872 ac_cpp_err=
7874 else
7875 ac_cpp_err=yes
7877 if test -z "$ac_cpp_err"; then
7878 ac_header_preproc=yes
7879 else
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_header_preproc=no
7886 rm -f conftest.err conftest.$ac_ext
7887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888 echo "${ECHO_T}$ac_header_preproc" >&6; }
7890 # So? What about this header?
7891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892 yes:no: )
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897 ac_header_preproc=yes
7899 no:yes:* )
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7914 esac
7915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 eval "$as_ac_Header=\$ac_header_preproc"
7922 ac_res=`eval echo '${'$as_ac_Header'}'`
7923 { echo "$as_me:$LINENO: result: $ac_res" >&5
7924 echo "${ECHO_T}$ac_res" >&6; }
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930 _ACEOF
7934 done
7937 # Check whether --enable-largefile was given.
7938 if test "${enable_largefile+set}" = set; then
7939 enableval=$enable_largefile;
7942 if test "$enable_largefile" != no; then
7944 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7945 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
7946 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949 ac_cv_sys_largefile_CC=no
7950 if test "$GCC" != yes; then
7951 ac_save_CC=$CC
7952 while :; do
7953 # IRIX 6.2 and later do not support large files by default,
7954 # so use the C compiler's -n32 option if that helps.
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 #include <sys/types.h>
7962 /* Check that off_t can represent 2**63 - 1 correctly.
7963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7964 since some C++ compilers masquerading as C compilers
7965 incorrectly reject 9223372036854775807. */
7966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7968 && LARGE_OFF_T % 2147483647 == 1)
7969 ? 1 : -1];
7971 main ()
7975 return 0;
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7993 { (case "(($ac_try" in
7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 *) ac_try_echo=$ac_try;;
7996 esac
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 (eval "$ac_try") 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_try") 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 break
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8020 rm -f core conftest.err conftest.$ac_objext
8021 CC="$CC -n32"
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8024 case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 ac_cv_sys_largefile_CC=' -n32'; break
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8064 rm -f core conftest.err conftest.$ac_objext
8065 break
8066 done
8067 CC=$ac_save_CC
8068 rm -f conftest.$ac_ext
8071 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8072 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8073 if test "$ac_cv_sys_largefile_CC" != no; then
8074 CC=$CC$ac_cv_sys_largefile_CC
8077 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8078 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8079 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 while :; do
8083 ac_cv_sys_file_offset_bits=no
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <sys/types.h>
8091 /* Check that off_t can represent 2**63 - 1 correctly.
8092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8093 since some C++ compilers masquerading as C compilers
8094 incorrectly reject 9223372036854775807. */
8095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8097 && LARGE_OFF_T % 2147483647 == 1)
8098 ? 1 : -1];
8100 main ()
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 break
8142 else
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 #define _FILE_OFFSET_BITS 64
8157 #include <sys/types.h>
8158 /* Check that off_t can represent 2**63 - 1 correctly.
8159 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8160 since some C++ compilers masquerading as C compilers
8161 incorrectly reject 9223372036854775807. */
8162 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8163 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8164 && LARGE_OFF_T % 2147483647 == 1)
8165 ? 1 : -1];
8167 main ()
8171 return 0;
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8176 case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest.$ac_objext'
8199 { (case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_try") 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_sys_file_offset_bits=64; break
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 break
8218 done
8220 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8221 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8222 if test "$ac_cv_sys_file_offset_bits" != no; then
8224 cat >>confdefs.h <<_ACEOF
8225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8226 _ACEOF
8229 rm -f conftest*
8230 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8231 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8232 if test "${ac_cv_sys_large_files+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 while :; do
8236 ac_cv_sys_large_files=no
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 #include <sys/types.h>
8244 /* Check that off_t can represent 2**63 - 1 correctly.
8245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8246 since some C++ compilers masquerading as C compilers
8247 incorrectly reject 9223372036854775807. */
8248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8250 && LARGE_OFF_T % 2147483647 == 1)
8251 ? 1 : -1];
8253 main ()
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8262 case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 break
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 #define _LARGE_FILES 1
8310 #include <sys/types.h>
8311 /* Check that off_t can represent 2**63 - 1 correctly.
8312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8313 since some C++ compilers masquerading as C compilers
8314 incorrectly reject 9223372036854775807. */
8315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8317 && LARGE_OFF_T % 2147483647 == 1)
8318 ? 1 : -1];
8320 main ()
8324 return 0;
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8329 case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try='test -s conftest.$ac_objext'
8352 { (case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_try") 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_cv_sys_large_files=1; break
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 break
8371 done
8373 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8374 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8375 if test "$ac_cv_sys_large_files" != no; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define _LARGE_FILES $ac_cv_sys_large_files
8379 _ACEOF
8382 rm -f conftest*
8386 # Checks for typedefs, structures, and compiler characteristics.
8387 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8388 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8389 if test "${ac_cv_header_stdbool_h+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 #include <stdbool.h>
8400 #ifndef bool
8401 "error: bool is not defined"
8402 #endif
8403 #ifndef false
8404 "error: false is not defined"
8405 #endif
8406 #if false
8407 "error: false is not 0"
8408 #endif
8409 #ifndef true
8410 "error: true is not defined"
8411 #endif
8412 #if true != 1
8413 "error: true is not 1"
8414 #endif
8415 #ifndef __bool_true_false_are_defined
8416 "error: __bool_true_false_are_defined is not defined"
8417 #endif
8419 struct s { _Bool s: 1; _Bool t; } s;
8421 char a[true == 1 ? 1 : -1];
8422 char b[false == 0 ? 1 : -1];
8423 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8424 char d[(bool) 0.5 == true ? 1 : -1];
8425 bool e = &s;
8426 char f[(_Bool) 0.0 == false ? 1 : -1];
8427 char g[true];
8428 char h[sizeof (_Bool)];
8429 char i[sizeof s.t];
8430 enum { j = false, k = true, l = false * true, m = true * 256 };
8431 _Bool n[m];
8432 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8433 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8434 # if defined __xlc__ || defined __GNUC__
8435 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8436 reported by James Lemley on 2005-10-05; see
8437 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8438 This test is not quite right, since xlc is allowed to
8439 reject this program, as the initializer for xlcbug is
8440 not one of the forms that C requires support for.
8441 However, doing the test right would require a runtime
8442 test, and that would make cross-compilation harder.
8443 Let us hope that IBM fixes the xlc bug, and also adds
8444 support for this kind of constant expression. In the
8445 meantime, this test will reject xlc, which is OK, since
8446 our stdbool.h substitute should suffice. We also test
8447 this with GCC, where it should work, to detect more
8448 quickly whether someone messes up the test in the
8449 future. */
8450 char digs[] = "0123456789";
8451 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8452 # endif
8453 /* Catch a bug in an HP-UX C compiler. See
8454 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8455 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8457 _Bool q = true;
8458 _Bool *pq = &q;
8461 main ()
8464 *pq |= q;
8465 *pq |= ! q;
8466 /* Refer to every declared value, to avoid compiler optimizations. */
8467 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8468 + !m + !n + !o + !p + !q + !pq);
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492 esac
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494 (eval "$ac_try") 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_try") 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_cv_header_stdbool_h=yes
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 ac_cv_header_stdbool_h=no
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8519 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8520 { echo "$as_me:$LINENO: checking for _Bool" >&5
8521 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8522 if test "${ac_cv_type__Bool+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 typedef _Bool ac__type_new_;
8534 main ()
8536 if ((ac__type_new_ *) 0)
8537 return 0;
8538 if (sizeof (ac__type_new_))
8539 return 0;
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559 { (case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_try") 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_try") 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_type__Bool=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_type__Bool=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8589 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8590 if test $ac_cv_type__Bool = yes; then
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE__BOOL 1
8594 _ACEOF
8599 if test $ac_cv_header_stdbool_h = yes; then
8601 cat >>confdefs.h <<\_ACEOF
8602 #define HAVE_STDBOOL_H 1
8603 _ACEOF
8607 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8609 if test "${ac_cv_c_const+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8620 main ()
8622 /* FIXME: Include the comments suggested by Paul. */
8623 #ifndef __cplusplus
8624 /* Ultrix mips cc rejects this. */
8625 typedef int charset[2];
8626 const charset cs;
8627 /* SunOS 4.1.1 cc rejects this. */
8628 char const *const *pcpcc;
8629 char **ppc;
8630 /* NEC SVR4.0.2 mips cc rejects this. */
8631 struct point {int x, y;};
8632 static struct point const zero = {0,0};
8633 /* AIX XL C 1.02.0.0 rejects this.
8634 It does not let you subtract one const X* pointer from another in
8635 an arm of an if-expression whose if-part is not a constant
8636 expression */
8637 const char *g = "string";
8638 pcpcc = &g + (g ? g-g : 0);
8639 /* HPUX 7.0 cc rejects these. */
8640 ++pcpcc;
8641 ppc = (char**) pcpcc;
8642 pcpcc = (char const *const *) ppc;
8643 { /* SCO 3.2v4 cc rejects this. */
8644 char *t;
8645 char const *s = 0 ? (char *) 0 : (char const *) 0;
8647 *t++ = 0;
8648 if (s) return 0;
8650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8651 int x[] = {25, 17};
8652 const int *foo = &x[0];
8653 ++foo;
8655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8656 typedef const int *iptr;
8657 iptr p = 0;
8658 ++p;
8660 { /* AIX XL C 1.02.0.0 rejects this saying
8661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8662 struct s { int j; const int *ap[3]; };
8663 struct s *b; b->j = 5;
8665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8666 const int foo = 10;
8667 if (!foo) return 0;
8669 return !cs[0] && !zero.x;
8670 #endif
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext
8677 if { (ac_try="$ac_compile"
8678 case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691 { (case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_try") 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_try") 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_c_const=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_c_const=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8721 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8722 if test $ac_cv_c_const = no; then
8724 cat >>confdefs.h <<\_ACEOF
8725 #define const
8726 _ACEOF
8730 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8731 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8732 if test "${ac_cv_type_uid_t+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 #include <sys/types.h>
8743 _ACEOF
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "uid_t" >/dev/null 2>&1; then
8746 ac_cv_type_uid_t=yes
8747 else
8748 ac_cv_type_uid_t=no
8750 rm -f conftest*
8753 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8754 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8755 if test $ac_cv_type_uid_t = no; then
8757 cat >>confdefs.h <<\_ACEOF
8758 #define uid_t int
8759 _ACEOF
8762 cat >>confdefs.h <<\_ACEOF
8763 #define gid_t int
8764 _ACEOF
8768 { echo "$as_me:$LINENO: checking for inline" >&5
8769 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8770 if test "${ac_cv_c_inline+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 ac_cv_c_inline=no
8774 for ac_kw in inline __inline__ __inline; do
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 #ifndef __cplusplus
8782 typedef int foo_t;
8783 static $ac_kw foo_t static_foo () {return 0; }
8784 $ac_kw foo_t foo () {return 0; }
8785 #endif
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8790 case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_c_inline=$ac_kw
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 test "$ac_cv_c_inline" != no && break
8832 done
8835 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8836 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8839 case $ac_cv_c_inline in
8840 inline | yes) ;;
8842 case $ac_cv_c_inline in
8843 no) ac_val=;;
8844 *) ac_val=$ac_cv_c_inline;;
8845 esac
8846 cat >>confdefs.h <<_ACEOF
8847 #ifndef __cplusplus
8848 #define inline $ac_val
8849 #endif
8850 _ACEOF
8852 esac
8854 { echo "$as_me:$LINENO: checking for mode_t" >&5
8855 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8856 if test "${ac_cv_type_mode_t+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 typedef mode_t ac__type_new_;
8868 main ()
8870 if ((ac__type_new_ *) 0)
8871 return 0;
8872 if (sizeof (ac__type_new_))
8873 return 0;
8875 return 0;
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8880 case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest.$ac_objext'
8903 { (case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8906 esac
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_try") 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_type_mode_t=yes
8913 else
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_cv_type_mode_t=no
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8923 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8924 if test $ac_cv_type_mode_t = yes; then
8926 else
8928 cat >>confdefs.h <<_ACEOF
8929 #define mode_t int
8930 _ACEOF
8934 { echo "$as_me:$LINENO: checking for off_t" >&5
8935 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8936 if test "${ac_cv_type_off_t+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 typedef off_t ac__type_new_;
8948 main ()
8950 if ((ac__type_new_ *) 0)
8951 return 0;
8952 if (sizeof (ac__type_new_))
8953 return 0;
8955 return 0;
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (ac_try="$ac_compile"
8960 case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_type_off_t=yes
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_cv_type_off_t=no
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9003 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9004 if test $ac_cv_type_off_t = yes; then
9006 else
9008 cat >>confdefs.h <<_ACEOF
9009 #define off_t long int
9010 _ACEOF
9014 { echo "$as_me:$LINENO: checking for pid_t" >&5
9015 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9016 if test "${ac_cv_type_pid_t+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9026 typedef pid_t ac__type_new_;
9028 main ()
9030 if ((ac__type_new_ *) 0)
9031 return 0;
9032 if (sizeof (ac__type_new_))
9033 return 0;
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext
9039 if { (ac_try="$ac_compile"
9040 case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_compile") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_try") 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_type_pid_t=yes
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_type_pid_t=no
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9083 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9084 if test $ac_cv_type_pid_t = yes; then
9086 else
9088 cat >>confdefs.h <<_ACEOF
9089 #define pid_t int
9090 _ACEOF
9094 { echo "$as_me:$LINENO: checking for size_t" >&5
9095 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9096 if test "${ac_cv_type_size_t+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 typedef size_t ac__type_new_;
9108 main ()
9110 if ((ac__type_new_ *) 0)
9111 return 0;
9112 if (sizeof (ac__type_new_))
9113 return 0;
9115 return 0;
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 if { (ac_try="$ac_compile"
9120 case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest.$ac_objext'
9143 { (case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_try") 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_type_size_t=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 ac_cv_type_size_t=no
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9163 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9164 if test $ac_cv_type_size_t = yes; then
9166 else
9168 cat >>confdefs.h <<_ACEOF
9169 #define size_t unsigned int
9170 _ACEOF
9174 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9175 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
9176 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h. */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 $ac_includes_default
9187 main ()
9189 static struct stat ac_aggr;
9190 if (ac_aggr.st_blksize)
9191 return 0;
9193 return 0;
9195 _ACEOF
9196 rm -f conftest.$ac_objext
9197 if { (ac_try="$ac_compile"
9198 case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201 esac
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_compile") 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9211 { (case "(($ac_try" in
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9214 esac
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_try") 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_cv_member_struct_stat_st_blksize=yes
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 $ac_includes_default
9243 main ()
9245 static struct stat ac_aggr;
9246 if (sizeof ac_aggr.st_blksize)
9247 return 0;
9249 return 0;
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (ac_try="$ac_compile"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9267 { (case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_try") 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest.$ac_objext'
9277 { (case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9280 esac
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_try") 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_cv_member_struct_stat_st_blksize=yes
9287 else
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_member_struct_stat_st_blksize=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9300 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9301 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9305 _ACEOF
9310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9312 if test "${ac_cv_header_time+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h. */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 #include <sys/types.h>
9322 #include <sys/time.h>
9323 #include <time.h>
9326 main ()
9328 if ((struct tm *) 0)
9329 return 0;
9331 return 0;
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_try") 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest.$ac_objext'
9359 { (case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_header_time=yes
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_cv_header_time=no
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9380 if test $ac_cv_header_time = yes; then
9382 cat >>confdefs.h <<\_ACEOF
9383 #define TIME_WITH_SYS_TIME 1
9384 _ACEOF
9388 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9389 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9390 if test "${ac_cv_struct_tm+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 #include <sys/types.h>
9400 #include <time.h>
9403 main ()
9405 struct tm *tp; tp->tm_sec;
9407 return 0;
9409 _ACEOF
9410 rm -f conftest.$ac_objext
9411 if { (ac_try="$ac_compile"
9412 case "(($ac_try" in
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9415 esac
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_compile") 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9425 { (case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_try") 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest.$ac_objext'
9435 { (case "(($ac_try" in
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9438 esac
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_try") 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_cv_struct_tm=time.h
9445 else
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 ac_cv_struct_tm=sys/time.h
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9455 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9456 if test $ac_cv_struct_tm = sys/time.h; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define TM_IN_SYS_TIME 1
9460 _ACEOF
9464 { echo "$as_me:$LINENO: checking for working volatile" >&5
9465 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9466 if test "${ac_cv_c_volatile+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9477 main ()
9480 volatile int x;
9481 int * volatile y = (int *) 0;
9482 return !x && !y;
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext
9488 if { (ac_try="$ac_compile"
9489 case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_compile") 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_c_volatile=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_c_volatile=no
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9532 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9533 if test $ac_cv_c_volatile = no; then
9535 cat >>confdefs.h <<\_ACEOF
9536 #define volatile
9537 _ACEOF
9541 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9542 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9543 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef ptrdiff_t ac__type_new_;
9555 main ()
9557 if ((ac__type_new_ *) 0)
9558 return 0;
9559 if (sizeof (ac__type_new_))
9560 return 0;
9562 return 0;
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9567 case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9580 { (case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_try") 2>&5
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest.$ac_objext'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_type_ptrdiff_t=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_cv_type_ptrdiff_t=no
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9610 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9611 if test $ac_cv_type_ptrdiff_t = yes; then
9613 cat >>confdefs.h <<_ACEOF
9614 #define HAVE_PTRDIFF_T 1
9615 _ACEOF
9621 # Checks for library functions.
9623 for ac_header in unistd.h
9625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 ac_res=`eval echo '${'$as_ac_Header'}'`
9633 { echo "$as_me:$LINENO: result: $ac_res" >&5
9634 echo "${ECHO_T}$ac_res" >&6; }
9635 else
9636 # Is the header compilable?
9637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 $ac_includes_default
9646 #include <$ac_header>
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (ac_try="$ac_compile"
9650 case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_compile") 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9663 { (case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_try") 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_header_compiler=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_header_compiler=no
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6; }
9694 # Is the header present?
9695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9704 _ACEOF
9705 if { (ac_try="$ac_cpp conftest.$ac_ext"
9706 case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev/null; then
9718 if test -s conftest.err; then
9719 ac_cpp_err=$ac_c_preproc_warn_flag
9720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9721 else
9722 ac_cpp_err=
9724 else
9725 ac_cpp_err=yes
9727 if test -z "$ac_cpp_err"; then
9728 ac_header_preproc=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_header_preproc=no
9736 rm -f conftest.err conftest.$ac_ext
9737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738 echo "${ECHO_T}$ac_header_preproc" >&6; }
9740 # So? What about this header?
9741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9742 yes:no: )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9747 ac_header_preproc=yes
9749 no:yes:* )
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9764 esac
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 eval "$as_ac_Header=\$ac_header_preproc"
9772 ac_res=`eval echo '${'$as_ac_Header'}'`
9773 { echo "$as_me:$LINENO: result: $ac_res" >&5
9774 echo "${ECHO_T}$ac_res" >&6; }
9777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9780 _ACEOF
9784 done
9786 { echo "$as_me:$LINENO: checking for working chown" >&5
9787 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
9788 if test "${ac_cv_func_chown_works+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791 if test "$cross_compiling" = yes; then
9792 ac_cv_func_chown_works=no
9793 else
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 $ac_includes_default
9801 #include <fcntl.h>
9804 main ()
9806 char *f = "conftest.chown";
9807 struct stat before, after;
9809 if (creat (f, 0600) < 0)
9810 return 1;
9811 if (stat (f, &before) < 0)
9812 return 1;
9813 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9814 return 1;
9815 if (stat (f, &after) < 0)
9816 return 1;
9817 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9820 return 0;
9822 _ACEOF
9823 rm -f conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_func_chown_works=yes
9844 else
9845 echo "$as_me: program exited with status $ac_status" >&5
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ( exit $ac_status )
9850 ac_cv_func_chown_works=no
9852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9856 rm -f conftest.chown
9859 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
9860 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
9861 if test $ac_cv_func_chown_works = yes; then
9863 cat >>confdefs.h <<\_ACEOF
9864 #define HAVE_CHOWN 1
9865 _ACEOF
9869 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9870 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9871 if test "${ac_cv_func_closedir_void+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 if test "$cross_compiling" = yes; then
9875 ac_cv_func_closedir_void=yes
9876 else
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9884 #include <$ac_header_dirent>
9885 #ifndef __cplusplus
9886 int closedir ();
9887 #endif
9890 main ()
9892 return closedir (opendir (".")) != 0;
9894 return 0;
9896 _ACEOF
9897 rm -f conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9899 case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_func_closedir_void=no
9918 else
9919 echo "$as_me: program exited with status $ac_status" >&5
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ( exit $ac_status )
9924 ac_cv_func_closedir_void=yes
9926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9932 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9933 if test $ac_cv_func_closedir_void = yes; then
9935 cat >>confdefs.h <<\_ACEOF
9936 #define CLOSEDIR_VOID 1
9937 _ACEOF
9941 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9942 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9943 if test "${ac_cv_lib_error_at_line+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9954 main ()
9956 error_at_line (0, 0, "", 0, "");
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest$ac_exeext'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_error_at_line=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_error_at_line=no
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10007 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10008 if test $ac_cv_lib_error_at_line = no; then
10009 case " $LIBOBJS " in
10010 *" error.$ac_objext "* ) ;;
10011 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10013 esac
10018 for ac_header in vfork.h
10020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 ac_res=`eval echo '${'$as_ac_Header'}'`
10028 { echo "$as_me:$LINENO: result: $ac_res" >&5
10029 echo "${ECHO_T}$ac_res" >&6; }
10030 else
10031 # Is the header compilable?
10032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10034 cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h. */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 $ac_includes_default
10041 #include <$ac_header>
10042 _ACEOF
10043 rm -f conftest.$ac_objext
10044 if { (ac_try="$ac_compile"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_header_compiler=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_header_compiler=no
10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10087 echo "${ECHO_T}$ac_header_compiler" >&6; }
10089 # Is the header present?
10090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <$ac_header>
10099 _ACEOF
10100 if { (ac_try="$ac_cpp conftest.$ac_ext"
10101 case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10107 ac_status=$?
10108 grep -v '^ *+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev/null; then
10113 if test -s conftest.err; then
10114 ac_cpp_err=$ac_c_preproc_warn_flag
10115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10116 else
10117 ac_cpp_err=
10119 else
10120 ac_cpp_err=yes
10122 if test -z "$ac_cpp_err"; then
10123 ac_header_preproc=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_header_preproc=no
10131 rm -f conftest.err conftest.$ac_ext
10132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6; }
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10137 yes:no: )
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc=yes
10144 no:yes:* )
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10159 esac
10160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 eval "$as_ac_Header=\$ac_header_preproc"
10167 ac_res=`eval echo '${'$as_ac_Header'}'`
10168 { echo "$as_me:$LINENO: result: $ac_res" >&5
10169 echo "${ECHO_T}$ac_res" >&6; }
10172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10175 _ACEOF
10179 done
10183 for ac_func in fork vfork
10185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199 #define $ac_func innocuous_$ac_func
10201 /* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char $ac_func (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10206 #ifdef __STDC__
10207 # include <limits.h>
10208 #else
10209 # include <assert.h>
10210 #endif
10212 #undef $ac_func
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char $ac_func ();
10221 /* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224 #if defined __stub_$ac_func || defined __stub___$ac_func
10225 choke me
10226 #endif
10229 main ()
10231 return $ac_func ();
10233 return 0;
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 eval "$as_ac_var=yes"
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 eval "$as_ac_var=no"
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10281 ac_res=`eval echo '${'$as_ac_var'}'`
10282 { echo "$as_me:$LINENO: result: $ac_res" >&5
10283 echo "${ECHO_T}$ac_res" >&6; }
10284 if test `eval echo '${'$as_ac_var'}'` = yes; then
10285 cat >>confdefs.h <<_ACEOF
10286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10287 _ACEOF
10290 done
10292 if test "x$ac_cv_func_fork" = xyes; then
10293 { echo "$as_me:$LINENO: checking for working fork" >&5
10294 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10295 if test "${ac_cv_func_fork_works+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 if test "$cross_compiling" = yes; then
10299 ac_cv_func_fork_works=cross
10300 else
10301 cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h. */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 $ac_includes_default
10309 main ()
10312 /* By Ruediger Kuhlmann. */
10313 return fork () < 0;
10316 return 0;
10318 _ACEOF
10319 rm -f conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_func_fork_works=yes
10340 else
10341 echo "$as_me: program exited with status $ac_status" >&5
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ( exit $ac_status )
10346 ac_cv_func_fork_works=no
10348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10354 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10356 else
10357 ac_cv_func_fork_works=$ac_cv_func_fork
10359 if test "x$ac_cv_func_fork_works" = xcross; then
10360 case $host in
10361 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
10362 # Override, as these systems have only a dummy fork() stub
10363 ac_cv_func_fork_works=no
10366 ac_cv_func_fork_works=yes
10368 esac
10369 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10370 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10372 ac_cv_func_vfork_works=$ac_cv_func_vfork
10373 if test "x$ac_cv_func_vfork" = xyes; then
10374 { echo "$as_me:$LINENO: checking for working vfork" >&5
10375 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10376 if test "${ac_cv_func_vfork_works+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 if test "$cross_compiling" = yes; then
10380 ac_cv_func_vfork_works=cross
10381 else
10382 cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h. */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 /* Thanks to Paul Eggert for this test. */
10389 $ac_includes_default
10390 #include <sys/wait.h>
10391 #ifdef HAVE_VFORK_H
10392 # include <vfork.h>
10393 #endif
10394 /* On some sparc systems, changes by the child to local and incoming
10395 argument registers are propagated back to the parent. The compiler
10396 is told about this with #include <vfork.h>, but some compilers
10397 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10398 static variable whose address is put into a register that is
10399 clobbered by the vfork. */
10400 static void
10401 #ifdef __cplusplus
10402 sparc_address_test (int arg)
10403 # else
10404 sparc_address_test (arg) int arg;
10405 #endif
10407 static pid_t child;
10408 if (!child) {
10409 child = vfork ();
10410 if (child < 0) {
10411 perror ("vfork");
10412 _exit(2);
10414 if (!child) {
10415 arg = getpid();
10416 write(-1, "", 0);
10417 _exit (arg);
10423 main ()
10425 pid_t parent = getpid ();
10426 pid_t child;
10428 sparc_address_test (0);
10430 child = vfork ();
10432 if (child == 0) {
10433 /* Here is another test for sparc vfork register problems. This
10434 test uses lots of local variables, at least as many local
10435 variables as main has allocated so far including compiler
10436 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10437 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10438 reuse the register of parent for one of the local variables,
10439 since it will think that parent can't possibly be used any more
10440 in this routine. Assigning to the local variable will thus
10441 munge parent in the parent process. */
10442 pid_t
10443 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10444 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10445 /* Convince the compiler that p..p7 are live; otherwise, it might
10446 use the same hardware register for all 8 local variables. */
10447 if (p != p1 || p != p2 || p != p3 || p != p4
10448 || p != p5 || p != p6 || p != p7)
10449 _exit(1);
10451 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10452 from child file descriptors. If the child closes a descriptor
10453 before it execs or exits, this munges the parent's descriptor
10454 as well. Test for this by closing stdout in the child. */
10455 _exit(close(fileno(stdout)) != 0);
10456 } else {
10457 int status;
10458 struct stat st;
10460 while (wait(&status) != child)
10462 return (
10463 /* Was there some problem with vforking? */
10464 child < 0
10466 /* Did the child fail? (This shouldn't happen.) */
10467 || status
10469 /* Did the vfork/compiler bug occur? */
10470 || parent != getpid()
10472 /* Did the file descriptor bug occur? */
10473 || fstat(fileno(stdout), &st) != 0
10477 _ACEOF
10478 rm -f conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_link") 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_cv_func_vfork_works=yes
10499 else
10500 echo "$as_me: program exited with status $ac_status" >&5
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ( exit $ac_status )
10505 ac_cv_func_vfork_works=no
10507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10513 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10516 if test "x$ac_cv_func_fork_works" = xcross; then
10517 ac_cv_func_vfork_works=$ac_cv_func_vfork
10518 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10519 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10522 if test "x$ac_cv_func_vfork_works" = xyes; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_WORKING_VFORK 1
10526 _ACEOF
10528 else
10530 cat >>confdefs.h <<\_ACEOF
10531 #define vfork fork
10532 _ACEOF
10535 if test "x$ac_cv_func_fork_works" = xyes; then
10537 cat >>confdefs.h <<\_ACEOF
10538 #define HAVE_WORKING_FORK 1
10539 _ACEOF
10543 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10544 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10545 if test "${ac_cv_sys_largefile_source+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 while :; do
10549 ac_cv_sys_largefile_source=no
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <stdio.h>
10558 main ()
10560 return !fseeko;
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (ac_try="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_compile") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_try") 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try='test -s conftest.$ac_objext'
10590 { (case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_try") 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 break
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #define _LARGEFILE_SOURCE 1
10615 #include <stdio.h>
10617 main ()
10619 return !fseeko;
10621 return 0;
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_sys_largefile_source=1; break
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 break
10668 done
10670 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10671 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10672 if test "$ac_cv_sys_largefile_source" != no; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10676 _ACEOF
10679 rm -f conftest*
10681 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10682 # in glibc 2.1.3, but that breaks too many other things.
10683 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10684 { echo "$as_me:$LINENO: checking for fseeko" >&5
10685 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
10686 if test "${ac_cv_func_fseeko+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 #include <stdio.h>
10697 main ()
10699 return fseeko && fseeko (stdin, 0, 0);
10701 return 0;
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (ac_try="$ac_link"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest$ac_exeext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_func_fseeko=yes
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_cv_func_fseeko=no
10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747 conftest$ac_exeext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
10750 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
10751 if test $ac_cv_func_fseeko = yes; then
10753 cat >>confdefs.h <<\_ACEOF
10754 #define HAVE_FSEEKO 1
10755 _ACEOF
10759 if test $ac_cv_c_compiler_gnu = yes; then
10760 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10761 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10762 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 ac_pattern="Autoconf.*'x'"
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <sgtty.h>
10773 Autoconf TIOCGETP
10774 _ACEOF
10775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10776 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10777 ac_cv_prog_gcc_traditional=yes
10778 else
10779 ac_cv_prog_gcc_traditional=no
10781 rm -f conftest*
10784 if test $ac_cv_prog_gcc_traditional = no; then
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <termio.h>
10792 Autoconf TCGETA
10793 _ACEOF
10794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10795 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10796 ac_cv_prog_gcc_traditional=yes
10798 rm -f conftest*
10802 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10803 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10804 if test $ac_cv_prog_gcc_traditional = yes; then
10805 CC="$CC -traditional"
10809 # XXX: these are commented out until we determine whether it matters if our malloc()
10810 # acts exactly like glibc's or not
10811 # AC_FUNC_MALLOC
10812 # AC_FUNC_REALLOC
10813 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10814 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10815 if test "${ac_cv_func_memcmp_working+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 if test "$cross_compiling" = yes; then
10819 ac_cv_func_memcmp_working=no
10820 else
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10829 main ()
10832 /* Some versions of memcmp are not 8-bit clean. */
10833 char c0 = '\100', c1 = '\200', c2 = '\201';
10834 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10835 return 1;
10837 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10838 or more and with at least one buffer not starting on a 4-byte boundary.
10839 William Lewis provided this test program. */
10841 char foo[21];
10842 char bar[21];
10843 int i;
10844 for (i = 0; i < 4; i++)
10846 char *a = foo + i;
10847 char *b = bar + i;
10848 strcpy (a, "--------01111111");
10849 strcpy (b, "--------10000000");
10850 if (memcmp (a, b, 16) >= 0)
10851 return 1;
10853 return 0;
10857 return 0;
10859 _ACEOF
10860 rm -f conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 ac_cv_func_memcmp_working=yes
10881 else
10882 echo "$as_me: program exited with status $ac_status" >&5
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ( exit $ac_status )
10887 ac_cv_func_memcmp_working=no
10889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10894 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10895 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10896 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10897 *" memcmp.$ac_objext "* ) ;;
10898 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10900 esac
10906 for ac_header in stdlib.h sys/time.h unistd.h
10908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 ac_res=`eval echo '${'$as_ac_Header'}'`
10916 { echo "$as_me:$LINENO: result: $ac_res" >&5
10917 echo "${ECHO_T}$ac_res" >&6; }
10918 else
10919 # Is the header compilable?
10920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 #include <$ac_header>
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_header_compiler=yes
10966 else
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_header_compiler=no
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10975 echo "${ECHO_T}$ac_header_compiler" >&6; }
10977 # Is the header present?
10978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h. */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <$ac_header>
10987 _ACEOF
10988 if { (ac_try="$ac_cpp conftest.$ac_ext"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } >/dev/null; then
11001 if test -s conftest.err; then
11002 ac_cpp_err=$ac_c_preproc_warn_flag
11003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11004 else
11005 ac_cpp_err=
11007 else
11008 ac_cpp_err=yes
11010 if test -z "$ac_cpp_err"; then
11011 ac_header_preproc=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_preproc=no
11019 rm -f conftest.err conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 echo "${ECHO_T}$ac_header_preproc" >&6; }
11023 # So? What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025 yes:no: )
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11032 no:yes:* )
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 esac
11048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 eval "$as_ac_Header=\$ac_header_preproc"
11055 ac_res=`eval echo '${'$as_ac_Header'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11063 _ACEOF
11067 done
11070 for ac_func in alarm
11072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11086 #define $ac_func innocuous_$ac_func
11088 /* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func (); below.
11090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11091 <limits.h> exists even on freestanding compilers. */
11093 #ifdef __STDC__
11094 # include <limits.h>
11095 #else
11096 # include <assert.h>
11097 #endif
11099 #undef $ac_func
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char $ac_func ();
11108 /* The GNU C library defines this for functions which it implements
11109 to always fail with ENOSYS. Some functions are actually named
11110 something starting with __ and the normal name is an alias. */
11111 #if defined __stub_$ac_func || defined __stub___$ac_func
11112 choke me
11113 #endif
11116 main ()
11118 return $ac_func ();
11120 return 0;
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11138 { (case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_try") 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest$ac_exeext'
11148 { (case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_try") 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 eval "$as_ac_var=yes"
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 eval "$as_ac_var=no"
11165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11166 conftest$ac_exeext conftest.$ac_ext
11168 ac_res=`eval echo '${'$as_ac_var'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170 echo "${ECHO_T}$ac_res" >&6; }
11171 if test `eval echo '${'$as_ac_var'}'` = yes; then
11172 cat >>confdefs.h <<_ACEOF
11173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11174 _ACEOF
11177 done
11179 { echo "$as_me:$LINENO: checking for working mktime" >&5
11180 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11181 if test "${ac_cv_func_working_mktime+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 if test "$cross_compiling" = yes; then
11185 ac_cv_func_working_mktime=no
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Test program from Paul Eggert and Tony Leneis. */
11194 #ifdef TIME_WITH_SYS_TIME
11195 # include <sys/time.h>
11196 # include <time.h>
11197 #else
11198 # ifdef HAVE_SYS_TIME_H
11199 # include <sys/time.h>
11200 # else
11201 # include <time.h>
11202 # endif
11203 #endif
11205 #ifdef HAVE_STDLIB_H
11206 # include <stdlib.h>
11207 #endif
11209 #ifdef HAVE_UNISTD_H
11210 # include <unistd.h>
11211 #endif
11213 #ifndef HAVE_ALARM
11214 # define alarm(X) /* empty */
11215 #endif
11217 /* Work around redefinition to rpl_putenv by other config tests. */
11218 #undef putenv
11220 static time_t time_t_max;
11221 static time_t time_t_min;
11223 /* Values we'll use to set the TZ environment variable. */
11224 static char *tz_strings[] = {
11225 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11226 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11228 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11230 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11231 Based on a problem report from Andreas Jaeger. */
11232 static int
11233 spring_forward_gap ()
11235 /* glibc (up to about 1998-10-07) failed this test. */
11236 struct tm tm;
11238 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11239 instead of "TZ=America/Vancouver" in order to detect the bug even
11240 on systems that don't support the Olson extension, or don't have the
11241 full zoneinfo tables installed. */
11242 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11244 tm.tm_year = 98;
11245 tm.tm_mon = 3;
11246 tm.tm_mday = 5;
11247 tm.tm_hour = 2;
11248 tm.tm_min = 0;
11249 tm.tm_sec = 0;
11250 tm.tm_isdst = -1;
11251 return mktime (&tm) != (time_t) -1;
11254 static int
11255 mktime_test1 (now)
11256 time_t now;
11258 struct tm *lt;
11259 return ! (lt = localtime (&now)) || mktime (lt) == now;
11262 static int
11263 mktime_test (now)
11264 time_t now;
11266 return (mktime_test1 (now)
11267 && mktime_test1 ((time_t) (time_t_max - now))
11268 && mktime_test1 ((time_t) (time_t_min + now)));
11271 static int
11272 irix_6_4_bug ()
11274 /* Based on code from Ariel Faigon. */
11275 struct tm tm;
11276 tm.tm_year = 96;
11277 tm.tm_mon = 3;
11278 tm.tm_mday = 0;
11279 tm.tm_hour = 0;
11280 tm.tm_min = 0;
11281 tm.tm_sec = 0;
11282 tm.tm_isdst = -1;
11283 mktime (&tm);
11284 return tm.tm_mon == 2 && tm.tm_mday == 31;
11287 static int
11288 bigtime_test (j)
11289 int j;
11291 struct tm tm;
11292 time_t now;
11293 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11294 now = mktime (&tm);
11295 if (now != (time_t) -1)
11297 struct tm *lt = localtime (&now);
11298 if (! (lt
11299 && lt->tm_year == tm.tm_year
11300 && lt->tm_mon == tm.tm_mon
11301 && lt->tm_mday == tm.tm_mday
11302 && lt->tm_hour == tm.tm_hour
11303 && lt->tm_min == tm.tm_min
11304 && lt->tm_sec == tm.tm_sec
11305 && lt->tm_yday == tm.tm_yday
11306 && lt->tm_wday == tm.tm_wday
11307 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11308 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11309 return 0;
11311 return 1;
11315 main ()
11317 time_t t, delta;
11318 int i, j;
11320 /* This test makes some buggy mktime implementations loop.
11321 Give up after 60 seconds; a mktime slower than that
11322 isn't worth using anyway. */
11323 alarm (60);
11325 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11326 continue;
11327 time_t_max--;
11328 if ((time_t) -1 < 0)
11329 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11330 continue;
11331 delta = time_t_max / 997; /* a suitable prime number */
11332 for (i = 0; i < N_STRINGS; i++)
11334 if (tz_strings[i])
11335 putenv (tz_strings[i]);
11337 for (t = 0; t <= time_t_max - delta; t += delta)
11338 if (! mktime_test (t))
11339 return 1;
11340 if (! (mktime_test ((time_t) 1)
11341 && mktime_test ((time_t) (60 * 60))
11342 && mktime_test ((time_t) (60 * 60 * 24))))
11343 return 1;
11345 for (j = 1; 0 < j; j *= 2)
11346 if (! bigtime_test (j))
11347 return 1;
11348 if (! bigtime_test (j - 1))
11349 return 1;
11351 return ! (irix_6_4_bug () && spring_forward_gap ());
11353 _ACEOF
11354 rm -f conftest$ac_exeext
11355 if { (ac_try="$ac_link"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_link") 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11365 { (case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_try") 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_func_working_mktime=yes
11375 else
11376 echo "$as_me: program exited with status $ac_status" >&5
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ( exit $ac_status )
11381 ac_cv_func_working_mktime=no
11383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11389 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
11390 if test $ac_cv_func_working_mktime = no; then
11391 case " $LIBOBJS " in
11392 *" mktime.$ac_objext "* ) ;;
11393 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11395 esac
11401 for ac_header in stdlib.h unistd.h
11403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 ac_res=`eval echo '${'$as_ac_Header'}'`
11411 { echo "$as_me:$LINENO: result: $ac_res" >&5
11412 echo "${ECHO_T}$ac_res" >&6; }
11413 else
11414 # Is the header compilable?
11415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 $ac_includes_default
11424 #include <$ac_header>
11425 _ACEOF
11426 rm -f conftest.$ac_objext
11427 if { (ac_try="$ac_compile"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_header_compiler=yes
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_header_compiler=no
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11470 echo "${ECHO_T}$ac_header_compiler" >&6; }
11472 # Is the header present?
11473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h. */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 #include <$ac_header>
11482 _ACEOF
11483 if { (ac_try="$ac_cpp conftest.$ac_ext"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev/null; then
11496 if test -s conftest.err; then
11497 ac_cpp_err=$ac_c_preproc_warn_flag
11498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11499 else
11500 ac_cpp_err=
11502 else
11503 ac_cpp_err=yes
11505 if test -z "$ac_cpp_err"; then
11506 ac_header_preproc=yes
11507 else
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ac_header_preproc=no
11514 rm -f conftest.err conftest.$ac_ext
11515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11516 echo "${ECHO_T}$ac_header_preproc" >&6; }
11518 # So? What about this header?
11519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11520 yes:no: )
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11525 ac_header_preproc=yes
11527 no:yes:* )
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542 esac
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548 eval "$as_ac_Header=\$ac_header_preproc"
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558 _ACEOF
11562 done
11565 for ac_func in getpagesize
11567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11581 #define $ac_func innocuous_$ac_func
11583 /* System header to define __stub macros and hopefully few prototypes,
11584 which can conflict with char $ac_func (); below.
11585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11586 <limits.h> exists even on freestanding compilers. */
11588 #ifdef __STDC__
11589 # include <limits.h>
11590 #else
11591 # include <assert.h>
11592 #endif
11594 #undef $ac_func
11596 /* Override any GCC internal prototype to avoid an error.
11597 Use char because int might match the return type of a GCC
11598 builtin and then its argument prototype would still apply. */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 char $ac_func ();
11603 /* The GNU C library defines this for functions which it implements
11604 to always fail with ENOSYS. Some functions are actually named
11605 something starting with __ and the normal name is an alias. */
11606 #if defined __stub_$ac_func || defined __stub___$ac_func
11607 choke me
11608 #endif
11611 main ()
11613 return $ac_func ();
11615 return 0;
11617 _ACEOF
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (ac_try="$ac_link"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_link") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_try") 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 eval "$as_ac_var=yes"
11653 else
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 eval "$as_ac_var=no"
11660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11661 conftest$ac_exeext conftest.$ac_ext
11663 ac_res=`eval echo '${'$as_ac_var'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11666 if test `eval echo '${'$as_ac_var'}'` = yes; then
11667 cat >>confdefs.h <<_ACEOF
11668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11669 _ACEOF
11672 done
11674 { echo "$as_me:$LINENO: checking for working mmap" >&5
11675 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11676 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 if test "$cross_compiling" = yes; then
11680 ac_cv_func_mmap_fixed_mapped=no
11681 else
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 $ac_includes_default
11689 /* malloc might have been renamed as rpl_malloc. */
11690 #undef malloc
11692 /* Thanks to Mike Haertel and Jim Avera for this test.
11693 Here is a matrix of mmap possibilities:
11694 mmap private not fixed
11695 mmap private fixed at somewhere currently unmapped
11696 mmap private fixed at somewhere already mapped
11697 mmap shared not fixed
11698 mmap shared fixed at somewhere currently unmapped
11699 mmap shared fixed at somewhere already mapped
11700 For private mappings, we should verify that changes cannot be read()
11701 back from the file, nor mmap's back from the file at a different
11702 address. (There have been systems where private was not correctly
11703 implemented like the infamous i386 svr4.0, and systems where the
11704 VM page cache was not coherent with the file system buffer cache
11705 like early versions of FreeBSD and possibly contemporary NetBSD.)
11706 For shared mappings, we should conversely verify that changes get
11707 propagated back to all the places they're supposed to be.
11709 Grep wants private fixed already mapped.
11710 The main things grep needs to know about mmap are:
11711 * does it exist and is it safe to write into the mmap'd area
11712 * how to use it (BSD variants) */
11714 #include <fcntl.h>
11715 #include <sys/mman.h>
11717 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11718 char *malloc ();
11719 #endif
11721 /* This mess was copied from the GNU getpagesize.h. */
11722 #ifndef HAVE_GETPAGESIZE
11723 /* Assume that all systems that can run configure have sys/param.h. */
11724 # ifndef HAVE_SYS_PARAM_H
11725 # define HAVE_SYS_PARAM_H 1
11726 # endif
11728 # ifdef _SC_PAGESIZE
11729 # define getpagesize() sysconf(_SC_PAGESIZE)
11730 # else /* no _SC_PAGESIZE */
11731 # ifdef HAVE_SYS_PARAM_H
11732 # include <sys/param.h>
11733 # ifdef EXEC_PAGESIZE
11734 # define getpagesize() EXEC_PAGESIZE
11735 # else /* no EXEC_PAGESIZE */
11736 # ifdef NBPG
11737 # define getpagesize() NBPG * CLSIZE
11738 # ifndef CLSIZE
11739 # define CLSIZE 1
11740 # endif /* no CLSIZE */
11741 # else /* no NBPG */
11742 # ifdef NBPC
11743 # define getpagesize() NBPC
11744 # else /* no NBPC */
11745 # ifdef PAGESIZE
11746 # define getpagesize() PAGESIZE
11747 # endif /* PAGESIZE */
11748 # endif /* no NBPC */
11749 # endif /* no NBPG */
11750 # endif /* no EXEC_PAGESIZE */
11751 # else /* no HAVE_SYS_PARAM_H */
11752 # define getpagesize() 8192 /* punt totally */
11753 # endif /* no HAVE_SYS_PARAM_H */
11754 # endif /* no _SC_PAGESIZE */
11756 #endif /* no HAVE_GETPAGESIZE */
11759 main ()
11761 char *data, *data2, *data3;
11762 int i, pagesize;
11763 int fd;
11765 pagesize = getpagesize ();
11767 /* First, make a file with some known garbage in it. */
11768 data = (char *) malloc (pagesize);
11769 if (!data)
11770 return 1;
11771 for (i = 0; i < pagesize; ++i)
11772 *(data + i) = rand ();
11773 umask (0);
11774 fd = creat ("conftest.mmap", 0600);
11775 if (fd < 0)
11776 return 1;
11777 if (write (fd, data, pagesize) != pagesize)
11778 return 1;
11779 close (fd);
11781 /* Next, try to mmap the file at a fixed address which already has
11782 something else allocated at it. If we can, also make sure that
11783 we see the same garbage. */
11784 fd = open ("conftest.mmap", O_RDWR);
11785 if (fd < 0)
11786 return 1;
11787 data2 = (char *) malloc (2 * pagesize);
11788 if (!data2)
11789 return 1;
11790 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11791 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11793 return 1;
11794 for (i = 0; i < pagesize; ++i)
11795 if (*(data + i) != *(data2 + i))
11796 return 1;
11798 /* Finally, make sure that changes to the mapped area do not
11799 percolate back to the file as seen by read(). (This is a bug on
11800 some variants of i386 svr4.0.) */
11801 for (i = 0; i < pagesize; ++i)
11802 *(data2 + i) = *(data2 + i) + 1;
11803 data3 = (char *) malloc (pagesize);
11804 if (!data3)
11805 return 1;
11806 if (read (fd, data3, pagesize) != pagesize)
11807 return 1;
11808 for (i = 0; i < pagesize; ++i)
11809 if (*(data + i) != *(data3 + i))
11810 return 1;
11811 close (fd);
11812 return 0;
11814 _ACEOF
11815 rm -f conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_func_mmap_fixed_mapped=yes
11836 else
11837 echo "$as_me: program exited with status $ac_status" >&5
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ( exit $ac_status )
11842 ac_cv_func_mmap_fixed_mapped=no
11844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11849 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11850 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11851 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_MMAP 1
11855 _ACEOF
11858 rm -f conftest.mmap
11862 for ac_header in sys/select.h sys/socket.h
11864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 ac_res=`eval echo '${'$as_ac_Header'}'`
11872 { echo "$as_me:$LINENO: result: $ac_res" >&5
11873 echo "${ECHO_T}$ac_res" >&6; }
11874 else
11875 # Is the header compilable?
11876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h. */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 #include <$ac_header>
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (ac_try="$ac_compile"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest.$ac_objext'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_header_compiler=yes
11922 else
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 ac_header_compiler=no
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11931 echo "${ECHO_T}$ac_header_compiler" >&6; }
11933 # Is the header present?
11934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h. */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 #include <$ac_header>
11943 _ACEOF
11944 if { (ac_try="$ac_cpp conftest.$ac_ext"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } >/dev/null; then
11957 if test -s conftest.err; then
11958 ac_cpp_err=$ac_c_preproc_warn_flag
11959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11960 else
11961 ac_cpp_err=
11963 else
11964 ac_cpp_err=yes
11966 if test -z "$ac_cpp_err"; then
11967 ac_header_preproc=yes
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_header_preproc=no
11975 rm -f conftest.err conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 yes:no: )
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11988 no:yes:* )
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12003 esac
12004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 eval "$as_ac_Header=\$ac_header_preproc"
12011 ac_res=`eval echo '${'$as_ac_Header'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12019 _ACEOF
12023 done
12025 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12026 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12027 if test "${ac_cv_func_select_args+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12031 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12032 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12040 #ifdef HAVE_SYS_SELECT_H
12041 # include <sys/select.h>
12042 #endif
12043 #ifdef HAVE_SYS_SOCKET_H
12044 # include <sys/socket.h>
12045 #endif
12048 main ()
12050 extern int select ($ac_arg1,
12051 $ac_arg234, $ac_arg234, $ac_arg234,
12052 $ac_arg5);
12054 return 0;
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (ac_try="$ac_compile"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_compile") 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12092 else
12093 echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 done
12101 done
12102 done
12103 # Provide a safe default value.
12104 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12107 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12108 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12109 ac_save_IFS=$IFS; IFS=','
12110 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12111 IFS=$ac_save_IFS
12112 shift
12114 cat >>confdefs.h <<_ACEOF
12115 #define SELECT_TYPE_ARG1 $1
12116 _ACEOF
12119 cat >>confdefs.h <<_ACEOF
12120 #define SELECT_TYPE_ARG234 ($2)
12121 _ACEOF
12124 cat >>confdefs.h <<_ACEOF
12125 #define SELECT_TYPE_ARG5 ($3)
12126 _ACEOF
12128 rm -f conftest*
12130 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12131 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12132 if test "$ac_cv_prog_cc_c89" != no; then
12133 { echo "$as_me:$LINENO: result: yes" >&5
12134 echo "${ECHO_T}yes" >&6; }
12136 cat >>confdefs.h <<\_ACEOF
12137 #define PROTOTYPES 1
12138 _ACEOF
12141 cat >>confdefs.h <<\_ACEOF
12142 #define __PROTOTYPES 1
12143 _ACEOF
12145 else
12146 { echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6; }
12150 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12151 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12152 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 ac_cv_func_setvbuf_reversed=no
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 #include <stdio.h>
12163 # ifdef PROTOTYPES
12164 int (setvbuf) (FILE *, int, char *, size_t);
12165 # endif
12167 main ()
12169 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_link") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest$ac_exeext'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 #include <stdio.h>
12215 # ifdef PROTOTYPES
12216 int (setvbuf) (FILE *, int, char *, size_t);
12217 # endif
12219 main ()
12221 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12223 return 0;
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_link") 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest$ac_exeext'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 # It compiles and links either way, so it must not be declared
12261 # with a prototype and most likely this is a K&R C compiler.
12262 # Try running it.
12263 if test "$cross_compiling" = yes; then
12264 : # Assume setvbuf is not reversed when cross-compiling.
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12274 main ()
12276 /* This call has the arguments reversed.
12277 A reversed system may check and see that the address of buf
12278 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12279 char buf;
12280 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12281 return 1;
12282 putchar ('\r');
12283 return 0; /* Non-reversed systems SEGV here. */
12285 return 0;
12287 _ACEOF
12288 rm -f conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_link") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_func_setvbuf_reversed=yes
12309 else
12310 echo "$as_me: program exited with status $ac_status" >&5
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12319 ac_cv_func_setvbuf_reversed=yes
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12328 conftest$ac_exeext conftest.$ac_ext
12329 else
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12337 conftest$ac_exeext conftest.$ac_ext
12339 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12340 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12341 if test $ac_cv_func_setvbuf_reversed = yes; then
12343 cat >>confdefs.h <<\_ACEOF
12344 #define SETVBUF_REVERSED 1
12345 _ACEOF
12349 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12350 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12351 if test "${ac_cv_type_signal+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 #include <sys/types.h>
12361 #include <signal.h>
12364 main ()
12366 return *(signal (0, 0)) (0) == 1;
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (ac_try="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_cv_type_signal=int
12406 else
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_cv_type_signal=void
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12416 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12418 cat >>confdefs.h <<_ACEOF
12419 #define RETSIGTYPE $ac_cv_type_signal
12420 _ACEOF
12423 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12424 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12425 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 rm -f conftest.sym conftest.file
12429 echo >conftest.file
12430 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12431 if test "$cross_compiling" = yes; then
12432 ac_cv_func_lstat_dereferences_slashed_symlink=no
12433 else
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h. */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12442 main ()
12444 struct stat sbuf;
12445 /* Linux will dereference the symlink and fail.
12446 That is better in the sense that it means we will not
12447 have to compile and use the lstat wrapper. */
12448 return lstat ("conftest.sym/", &sbuf) == 0;
12450 return 0;
12452 _ACEOF
12453 rm -f conftest$ac_exeext
12454 if { (ac_try="$ac_link"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_link") 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12474 else
12475 echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ( exit $ac_status )
12480 ac_cv_func_lstat_dereferences_slashed_symlink=no
12482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12486 else
12487 # If the `ln -s' command failed, then we probably don't even
12488 # have an lstat function.
12489 ac_cv_func_lstat_dereferences_slashed_symlink=no
12491 rm -f conftest.sym conftest.file
12494 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12495 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12497 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12499 cat >>confdefs.h <<_ACEOF
12500 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12501 _ACEOF
12504 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12505 case " $LIBOBJS " in
12506 *" lstat.$ac_objext "* ) ;;
12507 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12509 esac
12513 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12514 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
12515 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 if test "$cross_compiling" = yes; then
12519 ac_cv_func_stat_empty_string_bug=yes
12520 else
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 $ac_includes_default
12529 main ()
12531 struct stat sbuf;
12532 return stat ("", &sbuf) == 0;
12534 return 0;
12536 _ACEOF
12537 rm -f conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_func_stat_empty_string_bug=no
12558 else
12559 echo "$as_me: program exited with status $ac_status" >&5
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ( exit $ac_status )
12564 ac_cv_func_stat_empty_string_bug=yes
12566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12572 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
12573 if test $ac_cv_func_stat_empty_string_bug = yes; then
12574 case " $LIBOBJS " in
12575 *" stat.$ac_objext "* ) ;;
12576 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12578 esac
12581 cat >>confdefs.h <<_ACEOF
12582 #define HAVE_STAT_EMPTY_STRING_BUG 1
12583 _ACEOF
12587 { echo "$as_me:$LINENO: checking for working strcoll" >&5
12588 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
12589 if test "${ac_cv_func_strcoll_works+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592 if test "$cross_compiling" = yes; then
12593 ac_cv_func_strcoll_works=no
12594 else
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12603 main ()
12605 return (strcoll ("abc", "def") >= 0 ||
12606 strcoll ("ABC", "DEF") >= 0 ||
12607 strcoll ("123", "456") >= 0)
12609 return 0;
12611 _ACEOF
12612 rm -f conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_func_strcoll_works=yes
12633 else
12634 echo "$as_me: program exited with status $ac_status" >&5
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ( exit $ac_status )
12639 ac_cv_func_strcoll_works=no
12641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12647 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
12648 if test $ac_cv_func_strcoll_works = yes; then
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_STRCOLL 1
12652 _ACEOF
12657 for ac_func in strftime
12659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12673 #define $ac_func innocuous_$ac_func
12675 /* System header to define __stub macros and hopefully few prototypes,
12676 which can conflict with char $ac_func (); below.
12677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 <limits.h> exists even on freestanding compilers. */
12680 #ifdef __STDC__
12681 # include <limits.h>
12682 #else
12683 # include <assert.h>
12684 #endif
12686 #undef $ac_func
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 char $ac_func ();
12695 /* The GNU C library defines this for functions which it implements
12696 to always fail with ENOSYS. Some functions are actually named
12697 something starting with __ and the normal name is an alias. */
12698 #if defined __stub_$ac_func || defined __stub___$ac_func
12699 choke me
12700 #endif
12703 main ()
12705 return $ac_func ();
12707 return 0;
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 eval "$as_ac_var=yes"
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 eval "$as_ac_var=no"
12752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12753 conftest$ac_exeext conftest.$ac_ext
12755 ac_res=`eval echo '${'$as_ac_var'}'`
12756 { echo "$as_me:$LINENO: result: $ac_res" >&5
12757 echo "${ECHO_T}$ac_res" >&6; }
12758 if test `eval echo '${'$as_ac_var'}'` = yes; then
12759 cat >>confdefs.h <<_ACEOF
12760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12761 _ACEOF
12763 else
12764 # strftime is in -lintl on SCO UNIX.
12765 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12766 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12767 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-lintl $LIBS"
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char strftime ();
12787 main ()
12789 return strftime ();
12791 return 0;
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_link") 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12818 { ac_try='test -s conftest$ac_exeext'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_try") 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_lib_intl_strftime=yes
12829 else
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 ac_cv_lib_intl_strftime=no
12836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12837 conftest$ac_exeext conftest.$ac_ext
12838 LIBS=$ac_check_lib_save_LIBS
12840 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12841 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12842 if test $ac_cv_lib_intl_strftime = yes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_STRFTIME 1
12845 _ACEOF
12847 LIBS="-lintl $LIBS"
12851 done
12853 { echo "$as_me:$LINENO: checking for working strnlen" >&5
12854 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
12855 if test "${ac_cv_func_strnlen_working+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858 if test "$cross_compiling" = yes; then
12859 ac_cv_func_strnlen_working=no
12860 else
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867 $ac_includes_default
12869 main ()
12872 #define S "foobar"
12873 #define S_LEN (sizeof S - 1)
12875 /* At least one implementation is buggy: that of AIX 4.3 would
12876 give strnlen (S, 1) == 3. */
12878 int i;
12879 for (i = 0; i < S_LEN + 1; ++i)
12881 int expected = i <= S_LEN ? i : S_LEN;
12882 if (strnlen (S, i) != expected)
12883 return 1;
12885 return 0;
12888 return 0;
12890 _ACEOF
12891 rm -f conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896 esac
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_func_strnlen_working=yes
12912 else
12913 echo "$as_me: program exited with status $ac_status" >&5
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ( exit $ac_status )
12918 ac_cv_func_strnlen_working=no
12920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
12926 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
12927 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
12928 *" strnlen.$ac_objext "* ) ;;
12929 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
12931 esac
12934 { echo "$as_me:$LINENO: checking for working strtod" >&5
12935 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
12936 if test "${ac_cv_func_strtod+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939 if test "$cross_compiling" = yes; then
12940 ac_cv_func_strtod=no
12941 else
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12949 $ac_includes_default
12950 #ifndef strtod
12951 double strtod ();
12952 #endif
12954 main()
12957 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12958 char *string = " +69";
12959 char *term;
12960 double value;
12961 value = strtod (string, &term);
12962 if (value != 69 || term != (string + 4))
12963 return 1;
12967 /* Under Solaris 2.4, strtod returns the wrong value for the
12968 terminating character under some conditions. */
12969 char *string = "NaN";
12970 char *term;
12971 strtod (string, &term);
12972 if (term != string && *(term - 1) == 0)
12973 return 1;
12975 return 0;
12978 _ACEOF
12979 rm -f conftest$ac_exeext
12980 if { (ac_try="$ac_link"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_cv_func_strtod=yes
13000 else
13001 echo "$as_me: program exited with status $ac_status" >&5
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 ( exit $ac_status )
13006 ac_cv_func_strtod=no
13008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13013 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13014 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13015 if test $ac_cv_func_strtod = no; then
13016 case " $LIBOBJS " in
13017 *" strtod.$ac_objext "* ) ;;
13018 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13020 esac
13022 { echo "$as_me:$LINENO: checking for pow" >&5
13023 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13024 if test "${ac_cv_func_pow+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13035 #define pow innocuous_pow
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char pow (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13042 #ifdef __STDC__
13043 # include <limits.h>
13044 #else
13045 # include <assert.h>
13046 #endif
13048 #undef pow
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 char pow ();
13057 /* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060 #if defined __stub_pow || defined __stub___pow
13061 choke me
13062 #endif
13065 main ()
13067 return pow ();
13069 return 0;
13071 _ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_func_pow=yes
13107 else
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ac_cv_func_pow=no
13114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13115 conftest$ac_exeext conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13118 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13120 if test $ac_cv_func_pow = no; then
13121 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13122 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13123 if test "${ac_cv_lib_m_pow+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126 ac_check_lib_save_LIBS=$LIBS
13127 LIBS="-lm $LIBS"
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char pow ();
13143 main ()
13145 return pow ();
13147 return 0;
13149 _ACEOF
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_link") 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest$ac_exeext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_cv_lib_m_pow=yes
13185 else
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_cv_lib_m_pow=no
13192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13193 conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13196 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13197 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13198 if test $ac_cv_lib_m_pow = yes; then
13199 POW_LIB=-lm
13200 else
13201 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13202 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13209 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13210 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13211 if test "${ac_cv_func_utime_null+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214 rm -f conftest.data; >conftest.data
13215 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13216 if test "$cross_compiling" = yes; then
13217 ac_cv_func_utime_null=no
13218 else
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13227 main ()
13229 struct stat s, t;
13230 return ! (stat ("conftest.data", &s) == 0
13231 && utime ("conftest.data", 0) == 0
13232 && stat ("conftest.data", &t) == 0
13233 && t.st_mtime >= s.st_mtime
13234 && t.st_mtime - s.st_mtime < 120);
13236 return 0;
13238 _ACEOF
13239 rm -f conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_func_utime_null=yes
13260 else
13261 echo "$as_me: program exited with status $ac_status" >&5
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ( exit $ac_status )
13266 ac_cv_func_utime_null=no
13268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13273 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13274 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13275 if test $ac_cv_func_utime_null = yes; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_UTIME_NULL 1
13279 _ACEOF
13282 rm -f conftest.data
13285 for ac_func in vprintf
13287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13301 #define $ac_func innocuous_$ac_func
13303 /* System header to define __stub macros and hopefully few prototypes,
13304 which can conflict with char $ac_func (); below.
13305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13306 <limits.h> exists even on freestanding compilers. */
13308 #ifdef __STDC__
13309 # include <limits.h>
13310 #else
13311 # include <assert.h>
13312 #endif
13314 #undef $ac_func
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char $ac_func ();
13323 /* The GNU C library defines this for functions which it implements
13324 to always fail with ENOSYS. Some functions are actually named
13325 something starting with __ and the normal name is an alias. */
13326 #if defined __stub_$ac_func || defined __stub___$ac_func
13327 choke me
13328 #endif
13331 main ()
13333 return $ac_func ();
13335 return 0;
13337 _ACEOF
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_link") 2>conftest.er1
13346 ac_status=$?
13347 grep -v '^ *+' conftest.er1 >conftest.err
13348 rm -f conftest.er1
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest$ac_exeext'
13363 { (case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_try") 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 eval "$as_ac_var=yes"
13373 else
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 eval "$as_ac_var=no"
13380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381 conftest$ac_exeext conftest.$ac_ext
13383 ac_res=`eval echo '${'$as_ac_var'}'`
13384 { echo "$as_me:$LINENO: result: $ac_res" >&5
13385 echo "${ECHO_T}$ac_res" >&6; }
13386 if test `eval echo '${'$as_ac_var'}'` = yes; then
13387 cat >>confdefs.h <<_ACEOF
13388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13389 _ACEOF
13391 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13392 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13393 if test "${ac_cv_func__doprnt+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13404 #define _doprnt innocuous__doprnt
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char _doprnt (); below.
13408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13409 <limits.h> exists even on freestanding compilers. */
13411 #ifdef __STDC__
13412 # include <limits.h>
13413 #else
13414 # include <assert.h>
13415 #endif
13417 #undef _doprnt
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char _doprnt ();
13426 /* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429 #if defined __stub__doprnt || defined __stub____doprnt
13430 choke me
13431 #endif
13434 main ()
13436 return _doprnt ();
13438 return 0;
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_func__doprnt=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 ac_cv_func__doprnt=no
13483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13484 conftest$ac_exeext conftest.$ac_ext
13486 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13487 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13488 if test $ac_cv_func__doprnt = yes; then
13490 cat >>confdefs.h <<\_ACEOF
13491 #define HAVE_DOPRNT 1
13492 _ACEOF
13497 done
13547 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
13549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13563 #define $ac_func innocuous_$ac_func
13565 /* System header to define __stub macros and hopefully few prototypes,
13566 which can conflict with char $ac_func (); below.
13567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13568 <limits.h> exists even on freestanding compilers. */
13570 #ifdef __STDC__
13571 # include <limits.h>
13572 #else
13573 # include <assert.h>
13574 #endif
13576 #undef $ac_func
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char $ac_func ();
13585 /* The GNU C library defines this for functions which it implements
13586 to always fail with ENOSYS. Some functions are actually named
13587 something starting with __ and the normal name is an alias. */
13588 #if defined __stub_$ac_func || defined __stub___$ac_func
13589 choke me
13590 #endif
13593 main ()
13595 return $ac_func ();
13597 return 0;
13599 _ACEOF
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (ac_try="$ac_link"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615 { (case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_try") 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 eval "$as_ac_var=yes"
13635 else
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 eval "$as_ac_var=no"
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13645 ac_res=`eval echo '${'$as_ac_var'}'`
13646 { echo "$as_me:$LINENO: result: $ac_res" >&5
13647 echo "${ECHO_T}$ac_res" >&6; }
13648 if test `eval echo '${'$as_ac_var'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13651 _ACEOF
13654 done
13657 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
13658 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13667 main ()
13669 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
13671 return 0;
13673 _ACEOF
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (ac_try="$ac_link"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_link") 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13689 { (case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 { echo "$as_me:$LINENO: result: yes" >&5
13709 echo "${ECHO_T}yes" >&6; }
13711 cat >>confdefs.h <<\_ACEOF
13712 #define HAVE_GCC_ATOMICS 1
13713 _ACEOF
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 { echo "$as_me:$LINENO: result: no" >&5
13720 echo "${ECHO_T}no" >&6; }
13724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13725 conftest$ac_exeext conftest.$ac_ext
13728 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
13729 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 static int __attribute__((pure)) test(void) {}
13738 main ()
13742 return 0;
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 { echo "$as_me:$LINENO: result: yes" >&5
13780 echo "${ECHO_T}yes" >&6; }
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_ATTRIBUTE_pure 1
13784 _ACEOF
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 { echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6; }
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
13798 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 static int __attribute__((malloc)) test(void) {}
13807 main ()
13811 return 0;
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_compile") 2>conftest.er1
13822 ac_status=$?
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_try") 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 { echo "$as_me:$LINENO: result: yes" >&5
13849 echo "${ECHO_T}yes" >&6; }
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_ATTRIBUTE_malloc 1
13853 _ACEOF
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 { echo "$as_me:$LINENO: result: no" >&5
13860 echo "${ECHO_T}no" >&6; }
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
13867 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
13868 cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h. */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 static int __attribute__((const)) test(void) {}
13876 main ()
13880 return 0;
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_compile") 2>conftest.er1
13891 ac_status=$?
13892 grep -v '^ *+' conftest.er1 >conftest.err
13893 rm -f conftest.er1
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13898 { (case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_try") 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest.$ac_objext'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 { echo "$as_me:$LINENO: result: yes" >&5
13918 echo "${ECHO_T}yes" >&6; }
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_ATTRIBUTE_const 1
13922 _ACEOF
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 { echo "$as_me:$LINENO: result: no" >&5
13929 echo "${ECHO_T}no" >&6; }
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
13936 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 static int __attribute__((unused)) test(void) {}
13945 main ()
13949 return 0;
13951 _ACEOF
13952 rm -f conftest.$ac_objext
13953 if { (ac_try="$ac_compile"
13954 case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_compile") 2>conftest.er1
13960 ac_status=$?
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13967 { (case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest.$ac_objext'
13977 { (case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_try") 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 { echo "$as_me:$LINENO: result: yes" >&5
13987 echo "${ECHO_T}yes" >&6; }
13989 cat >>confdefs.h <<_ACEOF
13990 #define HAVE_ATTRIBUTE_unused 1
13991 _ACEOF
13993 else
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13997 { echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6; }
14001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14005 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 static int __attribute__((always_inline)) test(void) {}
14014 main ()
14018 return 0;
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (ac_try="$ac_compile"
14023 case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_compile") 2>conftest.er1
14029 ac_status=$?
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
14035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14036 { (case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_try") 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14049 esac
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_try") 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 { echo "$as_me:$LINENO: result: yes" >&5
14056 echo "${ECHO_T}yes" >&6; }
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_ATTRIBUTE_always_inline 1
14060 _ACEOF
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 { echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6; }
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14074 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14075 saved_CFLAGS="${CFLAGS}"
14076 CFLAGS="${CFLAGS} -ffunction-sections"
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14085 main ()
14087 int x = 1;
14089 return 0;
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120 esac
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_try") 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 { echo "$as_me:$LINENO: result: yes" >&5
14127 echo "${ECHO_T}yes" >&6; }
14128 saved_LDFLAGS="${LDFLAGS}"
14129 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14130 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14131 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14140 main ()
14142 int x = 1;
14144 return 0;
14146 _ACEOF
14147 rm -f conftest.$ac_objext conftest$ac_exeext
14148 if { (ac_try="$ac_link"
14149 case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_link") 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175 esac
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_try") 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 { echo "$as_me:$LINENO: result: yes" >&5
14182 echo "${ECHO_T}yes" >&6; }
14183 GC_CFLAGS="-ffunction-sections"
14184 GC_LDFLAGS="-Wl,--gc-sections"
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; }
14194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LDFLAGS="${saved_LDFLAGS}"
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 { echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6; }
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 CFLAGS="${saved_CFLAGS}"
14211 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14212 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <resolv.h>
14221 main ()
14223 int foo = res_ninit(NULL);
14225 return 0;
14227 _ACEOF
14228 rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (ac_try="$ac_link"
14230 case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_link") 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243 { (case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest$ac_exeext'
14253 { (case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_try") 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 { echo "$as_me:$LINENO: result: yes" >&5
14263 echo "${ECHO_T}yes" >&6; }
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_RES_NINIT 1
14267 _ACEOF
14269 else
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 { echo "$as_me:$LINENO: result: no" >&5
14274 echo "${ECHO_T}no" >&6; }
14278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14279 conftest$ac_exeext conftest.$ac_ext
14281 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14282 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h. */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <dlfcn.h>
14291 main ()
14293 int foo = RTLD_NOLOAD;
14295 return 0;
14297 _ACEOF
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (ac_try="$ac_link"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316 esac
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 { echo "$as_me:$LINENO: result: yes" >&5
14333 echo "${ECHO_T}yes" >&6; }
14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_RTLD_NOLOAD 1
14337 _ACEOF
14339 else
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 { echo "$as_me:$LINENO: result: no" >&5
14344 echo "${ECHO_T}no" >&6; }
14348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14349 conftest$ac_exeext conftest.$ac_ext
14351 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14352 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 #include <netinet/in.h>
14361 main ()
14363 int foo = IP_MTU_DISCOVER;
14365 return 0;
14367 _ACEOF
14368 rm -f conftest.$ac_objext conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 { echo "$as_me:$LINENO: result: yes" >&5
14403 echo "${ECHO_T}yes" >&6; }
14405 cat >>confdefs.h <<\_ACEOF
14406 #define HAVE_IP_MTU_DISCOVER 1
14407 _ACEOF
14409 else
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 { echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6; }
14418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14419 conftest$ac_exeext conftest.$ac_ext
14421 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14422 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14423 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14429 else
14430 # Is the header compilable?
14431 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14432 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <libkern/OSAtomic.h>
14441 _ACEOF
14442 rm -f conftest.$ac_objext
14443 if { (ac_try="$ac_compile"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_compile") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_try") 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_header_compiler=yes
14477 else
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_header_compiler=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486 echo "${ECHO_T}$ac_header_compiler" >&6; }
14488 # Is the header present?
14489 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14490 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <libkern/OSAtomic.h>
14498 _ACEOF
14499 if { (ac_try="$ac_cpp conftest.$ac_ext"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503 esac
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } >/dev/null; then
14512 if test -s conftest.err; then
14513 ac_cpp_err=$ac_c_preproc_warn_flag
14514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14515 else
14516 ac_cpp_err=
14518 else
14519 ac_cpp_err=yes
14521 if test -z "$ac_cpp_err"; then
14522 ac_header_preproc=yes
14523 else
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ac_header_preproc=no
14530 rm -f conftest.err conftest.$ac_ext
14531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14532 echo "${ECHO_T}$ac_header_preproc" >&6; }
14534 # So? What about this header?
14535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14536 yes:no: )
14537 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14538 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14540 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14541 ac_header_preproc=yes
14543 no:yes:* )
14544 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14545 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14547 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14549 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14551 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14553 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14555 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14558 esac
14559 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14560 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14561 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14566 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14567 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14570 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14572 cat >>confdefs.h <<_ACEOF
14573 #define HAVE_OSX_ATOMICS 1
14574 _ACEOF
14580 { echo "$as_me:$LINENO: checking for int" >&5
14581 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14582 if test "${ac_cv_type_int+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14592 typedef int ac__type_new_;
14594 main ()
14596 if ((ac__type_new_ *) 0)
14597 return 0;
14598 if (sizeof (ac__type_new_))
14599 return 0;
14601 return 0;
14603 _ACEOF
14604 rm -f conftest.$ac_objext
14605 if { (ac_try="$ac_compile"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_compile") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_type_int=yes
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_cv_type_int=no
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14649 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14651 # The cast to long int works around a bug in the HP C Compiler
14652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14654 # This bug is HP SR number 8606223364.
14655 { echo "$as_me:$LINENO: checking size of int" >&5
14656 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14657 if test "${ac_cv_sizeof_int+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660 if test "$cross_compiling" = yes; then
14661 # Depending upon the size, compute the lo and hi bounds.
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 $ac_includes_default
14669 typedef int ac__type_sizeof_;
14672 main ()
14674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14675 test_array [0] = 0
14678 return 0;
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (ac_try="$ac_compile"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_lo=0 ac_mid=0
14716 while :; do
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 $ac_includes_default
14724 typedef int ac__type_sizeof_;
14727 main ()
14729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14730 test_array [0] = 0
14733 return 0;
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_hi=$ac_mid; break
14771 else
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ac_lo=`expr $ac_mid + 1`
14776 if test $ac_lo -le $ac_mid; then
14777 ac_lo= ac_hi=
14778 break
14780 ac_mid=`expr 2 '*' $ac_mid + 1`
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 done
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 $ac_includes_default
14796 typedef int ac__type_sizeof_;
14799 main ()
14801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14802 test_array [0] = 0
14805 return 0;
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_hi=-1 ac_mid=-1
14843 while :; do
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 $ac_includes_default
14851 typedef int ac__type_sizeof_;
14854 main ()
14856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14857 test_array [0] = 0
14860 return 0;
14862 _ACEOF
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868 esac
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_lo=$ac_mid; break
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_hi=`expr '(' $ac_mid ')' - 1`
14903 if test $ac_mid -le $ac_hi; then
14904 ac_lo= ac_hi=
14905 break
14907 ac_mid=`expr 2 '*' $ac_mid`
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 done
14912 else
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ac_lo= ac_hi=
14919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 # Binary search between lo and hi bounds.
14924 while test "x$ac_lo" != "x$ac_hi"; do
14925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h. */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14933 typedef int ac__type_sizeof_;
14936 main ()
14938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14939 test_array [0] = 0
14942 return 0;
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_try") 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14979 ac_hi=$ac_mid
14980 else
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_lo=`expr '(' $ac_mid ')' + 1`
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 done
14989 case $ac_lo in
14990 ?*) ac_cv_sizeof_int=$ac_lo;;
14991 '') if test "$ac_cv_type_int" = yes; then
14992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14993 See \`config.log' for more details." >&5
14994 echo "$as_me: error: cannot compute sizeof (int)
14995 See \`config.log' for more details." >&2;}
14996 { (exit 77); exit 77; }; }
14997 else
14998 ac_cv_sizeof_int=0
14999 fi ;;
15000 esac
15001 else
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 $ac_includes_default
15009 typedef int ac__type_sizeof_;
15011 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15012 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15013 #include <stdio.h>
15014 #include <stdlib.h>
15016 main ()
15019 FILE *f = fopen ("conftest.val", "w");
15020 if (! f)
15021 return 1;
15022 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15024 long int i = longval ();
15025 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15026 return 1;
15027 fprintf (f, "%ld\n", i);
15029 else
15031 unsigned long int i = ulongval ();
15032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15033 return 1;
15034 fprintf (f, "%lu\n", i);
15036 return ferror (f) || fclose (f) != 0;
15039 return 0;
15041 _ACEOF
15042 rm -f conftest$ac_exeext
15043 if { (ac_try="$ac_link"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_link") 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15053 { (case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_try") 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_cv_sizeof_int=`cat conftest.val`
15063 else
15064 echo "$as_me: program exited with status $ac_status" >&5
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ( exit $ac_status )
15069 if test "$ac_cv_type_int" = yes; then
15070 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15071 See \`config.log' for more details." >&5
15072 echo "$as_me: error: cannot compute sizeof (int)
15073 See \`config.log' for more details." >&2;}
15074 { (exit 77); exit 77; }; }
15075 else
15076 ac_cv_sizeof_int=0
15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15081 rm -f conftest.val
15083 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15084 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15088 cat >>confdefs.h <<_ACEOF
15089 #define SIZEOF_INT $ac_cv_sizeof_int
15090 _ACEOF
15094 # do the package library checks now
15097 if test "${USE_ALSA}" != "no"; then
15098 pbxlibdir=""
15099 if test "x${ALSA_DIR}" != "x"; then
15100 if test -d ${ALSA_DIR}/lib; then
15101 pbxlibdir="-L${ALSA_DIR}/lib"
15102 else
15103 pbxlibdir="-L${ALSA_DIR}"
15106 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15107 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15108 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 ac_check_lib_save_LIBS=$LIBS
15112 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char snd_spcm_init ();
15128 main ()
15130 return snd_spcm_init ();
15132 return 0;
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_link") 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15150 { (case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_try") 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_lib_asound_snd_spcm_init=yes
15170 else
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_lib_asound_snd_spcm_init=no
15177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15178 conftest$ac_exeext conftest.$ac_ext
15179 LIBS=$ac_check_lib_save_LIBS
15181 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15182 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15183 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15184 AST_ALSA_FOUND=yes
15185 else
15186 AST_ALSA_FOUND=no
15190 if test "${AST_ALSA_FOUND}" = "yes"; then
15191 ALSA_LIB="-lasound -lm -ldl"
15192 ALSA_HEADER_FOUND="1"
15193 if test "x${ALSA_DIR}" != "x"; then
15194 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15195 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15196 if test "xalsa/asoundlib.h" != "x" ; then
15197 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15199 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15200 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 ac_res=`eval echo '${'$as_ac_Header'}'`
15205 { echo "$as_me:$LINENO: result: $ac_res" >&5
15206 echo "${ECHO_T}$ac_res" >&6; }
15207 else
15208 # Is the header compilable?
15209 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15210 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h. */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15218 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15219 _ACEOF
15220 rm -f conftest.$ac_objext
15221 if { (ac_try="$ac_compile"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_compile") 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_header_compiler=yes
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259 ac_header_compiler=no
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15264 echo "${ECHO_T}$ac_header_compiler" >&6; }
15266 # Is the header present?
15267 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15268 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15276 _ACEOF
15277 if { (ac_try="$ac_cpp conftest.$ac_ext"
15278 case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } >/dev/null; then
15290 if test -s conftest.err; then
15291 ac_cpp_err=$ac_c_preproc_warn_flag
15292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15293 else
15294 ac_cpp_err=
15296 else
15297 ac_cpp_err=yes
15299 if test -z "$ac_cpp_err"; then
15300 ac_header_preproc=yes
15301 else
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_header_preproc=no
15308 rm -f conftest.err conftest.$ac_ext
15309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15310 echo "${ECHO_T}$ac_header_preproc" >&6; }
15312 # So? What about this header?
15313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15314 yes:no: )
15315 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15316 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15318 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15319 ac_header_preproc=yes
15321 no:yes:* )
15322 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15323 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15325 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15327 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15329 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15331 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15333 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15336 esac
15337 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15338 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342 eval "$as_ac_Header=\$ac_header_preproc"
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15350 ALSA_HEADER_FOUND=1
15351 else
15352 ALSA_HEADER_FOUND=0
15357 else
15358 if test "xalsa/asoundlib.h" != "x" ; then
15359 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15360 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15361 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15362 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15366 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15367 else
15368 # Is the header compilable?
15369 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15370 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 $ac_includes_default
15378 #include <alsa/asoundlib.h>
15379 _ACEOF
15380 rm -f conftest.$ac_objext
15381 if { (ac_try="$ac_compile"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_compile") 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15415 else
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_header_compiler=no
15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15424 echo "${ECHO_T}$ac_header_compiler" >&6; }
15426 # Is the header present?
15427 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15428 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h. */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 #include <alsa/asoundlib.h>
15436 _ACEOF
15437 if { (ac_try="$ac_cpp conftest.$ac_ext"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } >/dev/null; then
15450 if test -s conftest.err; then
15451 ac_cpp_err=$ac_c_preproc_warn_flag
15452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15453 else
15454 ac_cpp_err=
15456 else
15457 ac_cpp_err=yes
15459 if test -z "$ac_cpp_err"; then
15460 ac_header_preproc=yes
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_header_preproc=no
15468 rm -f conftest.err conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15470 echo "${ECHO_T}$ac_header_preproc" >&6; }
15472 # So? What about this header?
15473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15474 yes:no: )
15475 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15476 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15478 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15479 ac_header_preproc=yes
15481 no:yes:* )
15482 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15483 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15485 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15487 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15489 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15491 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15493 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15496 esac
15497 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15498 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15499 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15504 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15505 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15508 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15509 ALSA_HEADER_FOUND=1
15510 else
15511 ALSA_HEADER_FOUND=0
15517 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15518 if test ! -z "${ALSA_MANDATORY}" ;
15519 then
15520 { echo "$as_me:$LINENO: ***" >&5
15521 echo "$as_me: ***" >&6;}
15522 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
15523 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
15524 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support" >&5
15525 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support" >&or re-run configure;}
15526 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15527 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15528 exit 1
15530 ALSA_LIB=""
15531 ALSA_INCLUDE=""
15532 PBX_ALSA=0
15533 else
15534 PBX_ALSA=1
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_ALSA 1
15538 _ACEOF
15541 elif test ! -z "${ALSA_MANDATORY}";
15542 then
15543 { echo "$as_me:$LINENO: ***" >&5
15544 echo "$as_me: ***" >&6;}
15545 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
15546 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
15547 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
15548 echo "$as_me: *** Either correct the installation" >&or run configure;}
15549 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15550 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15551 exit 1
15557 if test "${USE_CURSES}" != "no"; then
15558 pbxlibdir=""
15559 if test "x${CURSES_DIR}" != "x"; then
15560 if test -d ${CURSES_DIR}/lib; then
15561 pbxlibdir="-L${CURSES_DIR}/lib"
15562 else
15563 pbxlibdir="-L${CURSES_DIR}"
15566 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15567 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15568 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lcurses ${pbxlibdir} $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h. */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15580 /* Override any GCC internal prototype to avoid an error.
15581 Use char because int might match the return type of a GCC
15582 builtin and then its argument prototype would still apply. */
15583 #ifdef __cplusplus
15584 extern "C"
15585 #endif
15586 char initscr ();
15588 main ()
15590 return initscr ();
15592 return 0;
15594 _ACEOF
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_link") 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; } &&
15619 { ac_try='test -s conftest$ac_exeext'
15620 { (case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_try") 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_lib_curses_initscr=yes
15630 else
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_cv_lib_curses_initscr=no
15637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638 conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15641 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15642 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15643 if test $ac_cv_lib_curses_initscr = yes; then
15644 AST_CURSES_FOUND=yes
15645 else
15646 AST_CURSES_FOUND=no
15650 if test "${AST_CURSES_FOUND}" = "yes"; then
15651 CURSES_LIB="-lcurses "
15652 CURSES_HEADER_FOUND="1"
15653 if test "x${CURSES_DIR}" != "x"; then
15654 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15655 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15656 if test "xcurses.h" != "x" ; then
15657 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15660 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 ac_res=`eval echo '${'$as_ac_Header'}'`
15665 { echo "$as_me:$LINENO: result: $ac_res" >&5
15666 echo "${ECHO_T}$ac_res" >&6; }
15667 else
15668 # Is the header compilable?
15669 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15670 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 $ac_includes_default
15678 #include <${CURSES_DIR}/include/curses.h>
15679 _ACEOF
15680 rm -f conftest.$ac_objext
15681 if { (ac_try="$ac_compile"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_compile") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest.$ac_objext'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_header_compiler=yes
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_compiler=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724 echo "${ECHO_T}$ac_header_compiler" >&6; }
15726 # Is the header present?
15727 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15728 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 #include <${CURSES_DIR}/include/curses.h>
15736 _ACEOF
15737 if { (ac_try="$ac_cpp conftest.$ac_ext"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } >/dev/null; then
15750 if test -s conftest.err; then
15751 ac_cpp_err=$ac_c_preproc_warn_flag
15752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15753 else
15754 ac_cpp_err=
15756 else
15757 ac_cpp_err=yes
15759 if test -z "$ac_cpp_err"; then
15760 ac_header_preproc=yes
15761 else
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_header_preproc=no
15768 rm -f conftest.err conftest.$ac_ext
15769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15770 echo "${ECHO_T}$ac_header_preproc" >&6; }
15772 # So? What about this header?
15773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15774 yes:no: )
15775 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15776 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
15778 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
15779 ac_header_preproc=yes
15781 no:yes:* )
15782 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
15783 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
15785 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
15787 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
15789 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
15791 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
15793 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
15796 esac
15797 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15798 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 eval "$as_ac_Header=\$ac_header_preproc"
15804 ac_res=`eval echo '${'$as_ac_Header'}'`
15805 { echo "$as_me:$LINENO: result: $ac_res" >&5
15806 echo "${ECHO_T}$ac_res" >&6; }
15809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15810 CURSES_HEADER_FOUND=1
15811 else
15812 CURSES_HEADER_FOUND=0
15817 else
15818 if test "xcurses.h" != "x" ; then
15819 if test "${ac_cv_header_curses_h+set}" = set; then
15820 { echo "$as_me:$LINENO: checking for curses.h" >&5
15821 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15822 if test "${ac_cv_header_curses_h+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15826 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15827 else
15828 # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking curses.h usability" >&5
15830 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 #include <curses.h>
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_header_compiler=yes
15875 else
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_header_compiler=no
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking curses.h presence" >&5
15888 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <curses.h>
15896 _ACEOF
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } >/dev/null; then
15910 if test -s conftest.err; then
15911 ac_cpp_err=$ac_c_preproc_warn_flag
15912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15913 else
15914 ac_cpp_err=
15916 else
15917 ac_cpp_err=yes
15919 if test -z "$ac_cpp_err"; then
15920 ac_header_preproc=yes
15921 else
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_preproc=no
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15932 # So? What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934 yes:no: )
15935 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
15939 ac_header_preproc=yes
15941 no:yes:* )
15942 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
15956 esac
15957 { echo "$as_me:$LINENO: checking for curses.h" >&5
15958 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15959 if test "${ac_cv_header_curses_h+set}" = set; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962 ac_cv_header_curses_h=$ac_header_preproc
15964 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15965 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15968 if test $ac_cv_header_curses_h = yes; then
15969 CURSES_HEADER_FOUND=1
15970 else
15971 CURSES_HEADER_FOUND=0
15977 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
15978 if test ! -z "${CURSES_MANDATORY}" ;
15979 then
15980 { echo "$as_me:$LINENO: ***" >&5
15981 echo "$as_me: ***" >&6;}
15982 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
15983 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
15984 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support" >&5
15985 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support" >&or re-run configure;}
15986 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15987 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15988 exit 1
15990 CURSES_LIB=""
15991 CURSES_INCLUDE=""
15992 PBX_CURSES=0
15993 else
15994 PBX_CURSES=1
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_CURSES 1
15998 _ACEOF
16001 elif test ! -z "${CURSES_MANDATORY}";
16002 then
16003 { echo "$as_me:$LINENO: ***" >&5
16004 echo "$as_me: ***" >&6;}
16005 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16006 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16007 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
16008 echo "$as_me: *** Either correct the installation" >&or run configure;}
16009 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16010 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16011 exit 1
16016 GSM_INTERNAL="yes"
16018 GSM_SYSTEM="yes"
16019 if test "${USE_GSM}" != "no"; then
16020 if test "${GSM_DIR}" = "internal"; then
16021 GSM_SYSTEM="no"
16022 elif test "${GSM_DIR}" != ""; then
16023 GSM_INTERNAL="no"
16025 if test "${GSM_SYSTEM}" = "yes"; then
16026 gsmlibdir=""
16027 if test "x${GSM_DIR}" != "x"; then
16028 if test -d ${GSM_DIR}/lib; then
16029 gsmlibdir="-L${GSM_DIR}/lib"
16030 else
16031 gsmlibdir="-L${GSM_DIR}"
16034 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16035 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16036 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lgsm ${gsmlibdir} $LIBS"
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16048 /* Override any GCC internal prototype to avoid an error.
16049 Use char because int might match the return type of a GCC
16050 builtin and then its argument prototype would still apply. */
16051 #ifdef __cplusplus
16052 extern "C"
16053 #endif
16054 char gsm_create ();
16056 main ()
16058 return gsm_create ();
16060 return 0;
16062 _ACEOF
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (ac_try="$ac_link"
16065 case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_link") 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16078 { (case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081 esac
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_try") 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; } &&
16087 { ac_try='test -s conftest$ac_exeext'
16088 { (case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_try") 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_cv_lib_gsm_gsm_create=yes
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_cv_lib_gsm_gsm_create=no
16105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16106 conftest$ac_exeext conftest.$ac_ext
16107 LIBS=$ac_check_lib_save_LIBS
16109 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16110 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16111 if test $ac_cv_lib_gsm_gsm_create = yes; then
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_GSM 1
16115 _ACEOF
16119 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16120 GSM_LIB="-lgsm"
16121 if test "x${GSM_DIR}" != "x"; then
16122 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16123 GSM_INCLUDE="-I${GSM_DIR}/include"
16125 PBX_GSM=1
16126 GSM_INTERNAL="no"
16129 if test "${GSM_INTERNAL}" = "yes"; then
16130 PBX_GSM=1
16135 if test "${USE_IKSEMEL}" != "no"; then
16136 pbxlibdir=""
16137 if test "x${IKSEMEL_DIR}" != "x"; then
16138 if test -d ${IKSEMEL_DIR}/lib; then
16139 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16140 else
16141 pbxlibdir="-L${IKSEMEL_DIR}"
16144 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16145 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16146 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149 ac_check_lib_save_LIBS=$LIBS
16150 LIBS="-liksemel ${pbxlibdir} $LIBS"
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16158 /* Override any GCC internal prototype to avoid an error.
16159 Use char because int might match the return type of a GCC
16160 builtin and then its argument prototype would still apply. */
16161 #ifdef __cplusplus
16162 extern "C"
16163 #endif
16164 char iks_start_sasl ();
16166 main ()
16168 return iks_start_sasl ();
16170 return 0;
16172 _ACEOF
16173 rm -f conftest.$ac_objext conftest$ac_exeext
16174 if { (ac_try="$ac_link"
16175 case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16178 esac
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180 (eval "$ac_link") 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_try") 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest$ac_exeext'
16198 { (case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_try") 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_cv_lib_iksemel_iks_start_sasl=yes
16208 else
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ac_cv_lib_iksemel_iks_start_sasl=no
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16219 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16220 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16221 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16222 AST_IKSEMEL_FOUND=yes
16223 else
16224 AST_IKSEMEL_FOUND=no
16228 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16229 IKSEMEL_LIB="-liksemel "
16230 IKSEMEL_HEADER_FOUND="1"
16231 if test "x${IKSEMEL_DIR}" != "x"; then
16232 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16233 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16234 if test "xiksemel.h" != "x" ; then
16235 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16238 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 ac_res=`eval echo '${'$as_ac_Header'}'`
16243 { echo "$as_me:$LINENO: result: $ac_res" >&5
16244 echo "${ECHO_T}$ac_res" >&6; }
16245 else
16246 # Is the header compilable?
16247 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16248 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 #include <${IKSEMEL_DIR}/include/iksemel.h>
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273 { (case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_try") 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_header_compiler=yes
16293 else
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 ac_header_compiler=no
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16302 echo "${ECHO_T}$ac_header_compiler" >&6; }
16304 # Is the header present?
16305 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16306 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <${IKSEMEL_DIR}/include/iksemel.h>
16314 _ACEOF
16315 if { (ac_try="$ac_cpp conftest.$ac_ext"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16322 ac_status=$?
16323 grep -v '^ *+' conftest.er1 >conftest.err
16324 rm -f conftest.er1
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } >/dev/null; then
16328 if test -s conftest.err; then
16329 ac_cpp_err=$ac_c_preproc_warn_flag
16330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16331 else
16332 ac_cpp_err=
16334 else
16335 ac_cpp_err=yes
16337 if test -z "$ac_cpp_err"; then
16338 ac_header_preproc=yes
16339 else
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_header_preproc=no
16346 rm -f conftest.err conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348 echo "${ECHO_T}$ac_header_preproc" >&6; }
16350 # So? What about this header?
16351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16352 yes:no: )
16353 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16354 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16356 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16357 ac_header_preproc=yes
16359 no:yes:* )
16360 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16361 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16363 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16365 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16367 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16369 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16371 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16374 esac
16375 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16376 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380 eval "$as_ac_Header=\$ac_header_preproc"
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383 { echo "$as_me:$LINENO: result: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16388 IKSEMEL_HEADER_FOUND=1
16389 else
16390 IKSEMEL_HEADER_FOUND=0
16395 else
16396 if test "xiksemel.h" != "x" ; then
16397 if test "${ac_cv_header_iksemel_h+set}" = set; then
16398 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16399 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16400 if test "${ac_cv_header_iksemel_h+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16404 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16405 else
16406 # Is the header compilable?
16407 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16408 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 $ac_includes_default
16416 #include <iksemel.h>
16417 _ACEOF
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } &&
16442 { ac_try='test -s conftest.$ac_objext'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446 esac
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_header_compiler=yes
16453 else
16454 echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16457 ac_header_compiler=no
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16462 echo "${ECHO_T}$ac_header_compiler" >&6; }
16464 # Is the header present?
16465 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16466 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 #include <iksemel.h>
16474 _ACEOF
16475 if { (ac_try="$ac_cpp conftest.$ac_ext"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } >/dev/null; then
16488 if test -s conftest.err; then
16489 ac_cpp_err=$ac_c_preproc_warn_flag
16490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16491 else
16492 ac_cpp_err=
16494 else
16495 ac_cpp_err=yes
16497 if test -z "$ac_cpp_err"; then
16498 ac_header_preproc=yes
16499 else
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_header_preproc=no
16506 rm -f conftest.err conftest.$ac_ext
16507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16508 echo "${ECHO_T}$ac_header_preproc" >&6; }
16510 # So? What about this header?
16511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16512 yes:no: )
16513 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16514 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16516 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16517 ac_header_preproc=yes
16519 no:yes:* )
16520 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16521 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16523 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16525 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16527 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16529 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16531 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16534 esac
16535 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16536 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16537 if test "${ac_cv_header_iksemel_h+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540 ac_cv_header_iksemel_h=$ac_header_preproc
16542 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16543 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16546 if test $ac_cv_header_iksemel_h = yes; then
16547 IKSEMEL_HEADER_FOUND=1
16548 else
16549 IKSEMEL_HEADER_FOUND=0
16555 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16556 if test ! -z "${IKSEMEL_MANDATORY}" ;
16557 then
16558 { echo "$as_me:$LINENO: ***" >&5
16559 echo "$as_me: ***" >&6;}
16560 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
16561 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
16562 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&5
16563 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&or re-run configure;}
16564 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16565 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16566 exit 1
16568 IKSEMEL_LIB=""
16569 IKSEMEL_INCLUDE=""
16570 PBX_IKSEMEL=0
16571 else
16572 PBX_IKSEMEL=1
16574 cat >>confdefs.h <<_ACEOF
16575 #define HAVE_IKSEMEL 1
16576 _ACEOF
16579 elif test ! -z "${IKSEMEL_MANDATORY}";
16580 then
16581 { echo "$as_me:$LINENO: ***" >&5
16582 echo "$as_me: ***" >&6;}
16583 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
16584 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
16585 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
16586 echo "$as_me: *** Either correct the installation" >&or run configure;}
16587 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16588 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16589 exit 1
16594 if test "${PBX_IKSEMEL}" = 1; then
16596 if test "${USE_GNUTLS}" != "no"; then
16597 pbxlibdir=""
16598 if test "x${GNUTLS_DIR}" != "x"; then
16599 if test -d ${GNUTLS_DIR}/lib; then
16600 pbxlibdir="-L${GNUTLS_DIR}/lib"
16601 else
16602 pbxlibdir="-L${GNUTLS_DIR}"
16605 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
16606 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
16607 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 ac_check_lib_save_LIBS=$LIBS
16611 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16619 /* Override any GCC internal prototype to avoid an error.
16620 Use char because int might match the return type of a GCC
16621 builtin and then its argument prototype would still apply. */
16622 #ifdef __cplusplus
16623 extern "C"
16624 #endif
16625 char gnutls_bye ();
16627 main ()
16629 return gnutls_bye ();
16631 return 0;
16633 _ACEOF
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (ac_try="$ac_link"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_link") 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest$ac_exeext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_lib_gnutls_gnutls_bye=yes
16669 else
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 ac_cv_lib_gnutls_gnutls_bye=no
16676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16677 conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16680 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
16681 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16682 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16683 AST_GNUTLS_FOUND=yes
16684 else
16685 AST_GNUTLS_FOUND=no
16689 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16690 GNUTLS_LIB="-lgnutls "
16691 GNUTLS_HEADER_FOUND="1"
16692 if test "x${GNUTLS_DIR}" != "x"; then
16693 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16694 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
16695 if test "x" != "x" ; then
16696 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
16697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16698 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16699 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 ac_res=`eval echo '${'$as_ac_Header'}'`
16704 { echo "$as_me:$LINENO: result: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16706 else
16707 # Is the header compilable?
16708 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
16709 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16717 #include <${GNUTLS_DIR}/include/>
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_header_compiler=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16763 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765 # Is the header present?
16766 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
16767 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <${GNUTLS_DIR}/include/>
16775 _ACEOF
16776 if { (ac_try="$ac_cpp conftest.$ac_ext"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } >/dev/null; then
16789 if test -s conftest.err; then
16790 ac_cpp_err=$ac_c_preproc_warn_flag
16791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16792 else
16793 ac_cpp_err=
16795 else
16796 ac_cpp_err=yes
16798 if test -z "$ac_cpp_err"; then
16799 ac_header_preproc=yes
16800 else
16801 echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ac_header_preproc=no
16807 rm -f conftest.err conftest.$ac_ext
16808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16809 echo "${ECHO_T}$ac_header_preproc" >&6; }
16811 # So? What about this header?
16812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16813 yes:no: )
16814 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
16815 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
16817 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
16818 ac_header_preproc=yes
16820 no:yes:* )
16821 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
16822 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
16824 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
16826 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
16828 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
16830 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
16832 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
16835 esac
16836 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16837 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841 eval "$as_ac_Header=\$ac_header_preproc"
16843 ac_res=`eval echo '${'$as_ac_Header'}'`
16844 { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16849 GNUTLS_HEADER_FOUND=1
16850 else
16851 GNUTLS_HEADER_FOUND=0
16856 else
16857 if test "x" != "x" ; then
16858 if test "${ac_cv_header_+set}" = set; then
16859 { echo "$as_me:$LINENO: checking for " >&5
16860 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16861 if test "${ac_cv_header_+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16865 echo "${ECHO_T}$ac_cv_header_" >&6; }
16866 else
16867 # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking usability" >&5
16869 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16877 #include <>
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_header_compiler=yes
16914 else
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_header_compiler=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking presence" >&5
16927 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 #include <>
16935 _ACEOF
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
16950 ac_cpp_err=$ac_c_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16952 else
16953 ac_cpp_err=
16955 else
16956 ac_cpp_err=yes
16958 if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_header_preproc=no
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16973 yes:no: )
16974 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
16980 no:yes:* )
16981 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
16995 esac
16996 { echo "$as_me:$LINENO: checking for " >&5
16997 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16998 if test "${ac_cv_header_+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001 ac_cv_header_=$ac_header_preproc
17003 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17004 echo "${ECHO_T}$ac_cv_header_" >&6; }
17007 if test $ac_cv_header_ = yes; then
17008 GNUTLS_HEADER_FOUND=1
17009 else
17010 GNUTLS_HEADER_FOUND=0
17016 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
17017 if test ! -z "${GNUTLS_MANDATORY}" ;
17018 then
17019 { echo "$as_me:$LINENO: ***" >&5
17020 echo "$as_me: ***" >&6;}
17021 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
17022 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
17023 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support" >&5
17024 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support" >&or re-run configure;}
17025 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17026 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17027 exit 1
17029 GNUTLS_LIB=""
17030 GNUTLS_INCLUDE=""
17031 PBX_GNUTLS=0
17032 else
17033 PBX_GNUTLS=1
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_GNUTLS 1
17037 _ACEOF
17040 elif test ! -z "${GNUTLS_MANDATORY}";
17041 then
17042 { echo "$as_me:$LINENO: ***" >&5
17043 echo "$as_me: ***" >&6;}
17044 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
17045 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
17046 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17047 echo "$as_me: *** Either correct the installation" >&or run configure;}
17048 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17049 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17050 exit 1
17054 if test "${PBX_GNUTLS}" = 1; then
17055 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
17059 if test "${USE_IMAP_TK}" != "no"; then
17060 if test "${IMAP_TK_DIR}" = ""; then
17061 IMAP_TK_DIR=`pwd`"/../imap-2004g"
17063 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
17064 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
17065 saved_cppflags="${CPPFLAGS}"
17066 saved_libs="${LIBS}"
17067 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17068 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17070 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17071 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include "c-client.h"
17079 void mm_searched (MAILSTREAM *stream,unsigned long number)
17082 void mm_exists (MAILSTREAM *stream,unsigned long number)
17085 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17088 void mm_flags (MAILSTREAM *stream,unsigned long number)
17091 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17094 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17097 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17100 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17103 void mm_log (char *string,long errflg)
17106 void mm_dlog (char *string)
17109 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17112 void mm_critical (MAILSTREAM *stream)
17115 void mm_nocritical (MAILSTREAM *stream)
17118 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17121 void mm_fatal (char *string)
17125 main ()
17128 MAILSTREAM *foo = mail_open(NULL, "", 0);
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_imap_tk="yes"
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_imap_tk="no"
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext conftest.$ac_ext
17180 if test "${ac_cv_imap_tk}" = "yes"; then
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include "c-client.h"
17188 void mm_searched (MAILSTREAM *stream,unsigned long number)
17191 void mm_exists (MAILSTREAM *stream,unsigned long number)
17194 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17197 void mm_flags (MAILSTREAM *stream,unsigned long number)
17200 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17203 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17206 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17209 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17212 void mm_log (char *string,long errflg)
17215 void mm_dlog (char *string)
17218 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17221 void mm_critical (MAILSTREAM *stream)
17224 void mm_nocritical (MAILSTREAM *stream)
17227 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17230 void mm_fatal (char *string)
17234 main ()
17237 long check = mail_expunge_full(NULL, "", 0);
17241 return 0;
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest$ac_exeext'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_imap_tk2006="yes"
17279 else
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 ac_cv_imap_tk2006="no"
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17290 CPPFLAGS="${saved_cppflags}"
17291 LIBS="${saved_libs}"
17292 if test "${ac_cv_imap_tk}" = "yes"; then
17293 { echo "$as_me:$LINENO: result: yes" >&5
17294 echo "${ECHO_T}yes" >&6; }
17295 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17296 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17297 PBX_IMAP_TK=1
17299 cat >>confdefs.h <<\_ACEOF
17300 #define HAVE_IMAP_TK 1
17301 _ACEOF
17303 if test "${ac_cv_imap_tk2006}" = "yes"; then
17305 cat >>confdefs.h <<\_ACEOF
17306 #define HAVE_IMAP_TK2006 1
17307 _ACEOF
17310 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17311 { echo "$as_me:$LINENO: result: no" >&5
17312 echo "${ECHO_T}no" >&6; }
17313 { echo "$as_me:$LINENO: ***" >&5
17314 echo "$as_me: ***" >&6;}
17315 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17316 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17317 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17318 echo "$as_me: *** Either correct the installation" >&or run configure;}
17319 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17320 echo "$as_me: *** including --without-imap." >&6;}
17321 exit 1
17322 else
17323 { echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6; }
17328 ac_ext=cpp
17329 ac_cpp='$CXXCPP $CPPFLAGS'
17330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17335 if test "${USE_KDE}" != "no"; then
17336 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17337 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17338 saved_libs="${LIBS}"
17339 saved_cppflags="${CPPFLAGS}"
17340 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17341 if test -d ${KDE_DIR}/lib; then
17342 kdelibdir="${KDE_DIR}/lib"
17343 else
17344 kdelibdir="${KDE_DIR}"
17346 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 #include "kcrash.h"
17357 main ()
17359 KCrash::defaultCrashHandler(1);
17361 return 0;
17364 _ACEOF
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370 esac
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
17373 ac_status=$?
17374 grep -v '^ *+' conftest.er1 >conftest.err
17375 rm -f conftest.er1
17376 cat conftest.err >&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17380 { (case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_kde_crash="yes"
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_cv_lib_kde_crash="no"
17407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17408 conftest$ac_exeext conftest.$ac_ext
17410 LIBS="${saved_libs}"
17411 CPPFLAGS="${saved_cppflags}"
17413 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17414 { echo "$as_me:$LINENO: result: yes" >&5
17415 echo "${ECHO_T}yes" >&6; }
17416 KDE_LIB="-lkdecore -lkdeui"
17417 if test "${KDE_DIR}" != ""; then
17418 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17419 KDE_INCLUDE="-I${KDE_DIR}/include"
17421 PBX_KDE=1
17423 cat >>confdefs.h <<\_ACEOF
17424 #define HAVE_LIBKDE 1
17425 _ACEOF
17427 elif test ! -z "${KDE_MANDATORY}"; then
17428 { echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6; }
17430 { echo "$as_me:$LINENO: ***" >&5
17431 echo "$as_me: ***" >&6;}
17432 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17433 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17434 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17435 echo "$as_me: *** Either correct the installation" >&or run configure;}
17436 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17437 echo "$as_me: *** including --without-kde." >&6;}
17438 exit 1
17439 else
17440 { echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6; }
17444 if test "${PBX_KDE}" = 1; then
17445 if test -n "$ac_tool_prefix"; then
17446 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17447 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17450 if test "${ac_cv_path_KDEINIT+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453 case $KDEINIT in
17454 [\\/]* | ?:[\\/]*)
17455 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17461 IFS=$as_save_IFS
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17465 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17467 break 2
17469 done
17470 done
17471 IFS=$as_save_IFS
17474 esac
17476 KDEINIT=$ac_cv_path_KDEINIT
17477 if test -n "$KDEINIT"; then
17478 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17479 echo "${ECHO_T}$KDEINIT" >&6; }
17480 else
17481 { echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6; }
17487 if test -z "$ac_cv_path_KDEINIT"; then
17488 ac_pt_KDEINIT=$KDEINIT
17489 # Extract the first word of "kdeinit", so it can be a program name with args.
17490 set dummy kdeinit; ac_word=$2
17491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17493 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496 case $ac_pt_KDEINIT in
17497 [\\/]* | ?:[\\/]*)
17498 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17502 for as_dir in $PATH
17504 IFS=$as_save_IFS
17505 test -z "$as_dir" && as_dir=.
17506 for ac_exec_ext in '' $ac_executable_extensions; do
17507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17508 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17510 break 2
17512 done
17513 done
17514 IFS=$as_save_IFS
17517 esac
17519 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17520 if test -n "$ac_pt_KDEINIT"; then
17521 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17522 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17523 else
17524 { echo "$as_me:$LINENO: result: no" >&5
17525 echo "${ECHO_T}no" >&6; }
17528 if test "x$ac_pt_KDEINIT" = x; then
17529 KDEINIT="No"
17530 else
17531 case $cross_compiling:$ac_tool_warned in
17532 yes:)
17533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17534 whose name does not start with the host triplet. If you think this
17535 configuration is useful to you, please write to autoconf@gnu.org." >&5
17536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17537 whose name does not start with the host triplet. If you think this
17538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17539 ac_tool_warned=yes ;;
17540 esac
17541 KDEINIT=$ac_pt_KDEINIT
17543 else
17544 KDEINIT="$ac_cv_path_KDEINIT"
17547 if test ! x"${KDEINIT}" = xNo; then
17548 KDEDIR=$(${DIRNAME} ${KDEINIT})
17549 KDEDIR=$(${DIRNAME} ${KDEDIR})
17554 ac_ext=c
17555 ac_cpp='$CPP $CPPFLAGS'
17556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17562 if test "${USE_MISDN}" != "no"; then
17563 pbxlibdir=""
17564 if test "x${MISDN_DIR}" != "x"; then
17565 if test -d ${MISDN_DIR}/lib; then
17566 pbxlibdir="-L${MISDN_DIR}/lib"
17567 else
17568 pbxlibdir="-L${MISDN_DIR}"
17571 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17572 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17573 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576 ac_check_lib_save_LIBS=$LIBS
17577 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588 #ifdef __cplusplus
17589 extern "C"
17590 #endif
17591 char mISDN_open ();
17593 main ()
17595 return mISDN_open ();
17597 return 0;
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17615 { (case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_try") 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_lib_mISDN_mISDN_open=yes
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_mISDN_mISDN_open=no
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17644 LIBS=$ac_check_lib_save_LIBS
17646 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17647 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17648 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17649 AST_MISDN_FOUND=yes
17650 else
17651 AST_MISDN_FOUND=no
17655 if test "${AST_MISDN_FOUND}" = "yes"; then
17656 MISDN_LIB="-lmISDN "
17657 MISDN_HEADER_FOUND="1"
17658 if test "x${MISDN_DIR}" != "x"; then
17659 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17660 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17661 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17662 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17664 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17665 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 ac_res=`eval echo '${'$as_ac_Header'}'`
17670 { echo "$as_me:$LINENO: result: $ac_res" >&5
17671 echo "${ECHO_T}$ac_res" >&6; }
17672 else
17673 # Is the header compilable?
17674 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17675 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_try") 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_header_compiler=yes
17720 else
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_header_compiler=no
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17729 echo "${ECHO_T}$ac_header_compiler" >&6; }
17731 # Is the header present?
17732 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17733 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17741 _ACEOF
17742 if { (ac_try="$ac_cpp conftest.$ac_ext"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } >/dev/null; then
17755 if test -s conftest.err; then
17756 ac_cpp_err=$ac_c_preproc_warn_flag
17757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17758 else
17759 ac_cpp_err=
17761 else
17762 ac_cpp_err=yes
17764 if test -z "$ac_cpp_err"; then
17765 ac_header_preproc=yes
17766 else
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_header_preproc=no
17773 rm -f conftest.err conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17775 echo "${ECHO_T}$ac_header_preproc" >&6; }
17777 # So? What about this header?
17778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17779 yes:no: )
17780 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17781 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17782 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17783 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17784 ac_header_preproc=yes
17786 no:yes:* )
17787 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17788 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17790 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17792 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17794 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17796 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17798 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17801 esac
17802 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17803 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807 eval "$as_ac_Header=\$ac_header_preproc"
17809 ac_res=`eval echo '${'$as_ac_Header'}'`
17810 { echo "$as_me:$LINENO: result: $ac_res" >&5
17811 echo "${ECHO_T}$ac_res" >&6; }
17814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17815 MISDN_HEADER_FOUND=1
17816 else
17817 MISDN_HEADER_FOUND=0
17822 else
17823 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17824 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17825 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17826 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17827 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17831 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17832 else
17833 # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17835 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h. */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 $ac_includes_default
17843 #include <mISDNuser/mISDNlib.h>
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_compile") 2>conftest.er1
17853 ac_status=$?
17854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
17870 { (case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_try") 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_header_compiler=yes
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 ac_header_compiler=no
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17889 echo "${ECHO_T}$ac_header_compiler" >&6; }
17891 # Is the header present?
17892 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17893 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <mISDNuser/mISDNlib.h>
17901 _ACEOF
17902 if { (ac_try="$ac_cpp conftest.$ac_ext"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } >/dev/null; then
17915 if test -s conftest.err; then
17916 ac_cpp_err=$ac_c_preproc_warn_flag
17917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17918 else
17919 ac_cpp_err=
17921 else
17922 ac_cpp_err=yes
17924 if test -z "$ac_cpp_err"; then
17925 ac_header_preproc=yes
17926 else
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_header_preproc=no
17933 rm -f conftest.err conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17935 echo "${ECHO_T}$ac_header_preproc" >&6; }
17937 # So? What about this header?
17938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17939 yes:no: )
17940 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17941 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17943 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17944 ac_header_preproc=yes
17946 no:yes:* )
17947 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17948 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17950 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17952 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17953 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17954 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17955 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17956 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17957 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17958 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17961 esac
17962 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17963 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17964 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17969 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17970 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17973 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17974 MISDN_HEADER_FOUND=1
17975 else
17976 MISDN_HEADER_FOUND=0
17982 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17983 if test ! -z "${MISDN_MANDATORY}" ;
17984 then
17985 { echo "$as_me:$LINENO: ***" >&5
17986 echo "$as_me: ***" >&6;}
17987 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17988 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17989 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support" >&5
17990 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support" >&or re-run configure;}
17991 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17992 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17993 exit 1
17995 MISDN_LIB=""
17996 MISDN_INCLUDE=""
17997 PBX_MISDN=0
17998 else
17999 PBX_MISDN=1
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_MISDN 1
18003 _ACEOF
18006 elif test ! -z "${MISDN_MANDATORY}";
18007 then
18008 { echo "$as_me:$LINENO: ***" >&5
18009 echo "$as_me: ***" >&6;}
18010 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
18011 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
18012 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18013 echo "$as_me: *** Either correct the installation" >&or run configure;}
18014 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18015 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18016 exit 1
18021 if test "${PBX_MISDN}" = 1; then
18023 if test "${USE_ISDNNET}" != "no"; then
18024 pbxlibdir=""
18025 if test "x${ISDNNET_DIR}" != "x"; then
18026 if test -d ${ISDNNET_DIR}/lib; then
18027 pbxlibdir="-L${ISDNNET_DIR}/lib"
18028 else
18029 pbxlibdir="-L${ISDNNET_DIR}"
18032 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
18033 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
18034 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037 ac_check_lib_save_LIBS=$LIBS
18038 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
18039 cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h. */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18049 #ifdef __cplusplus
18050 extern "C"
18051 #endif
18052 char init_manager ();
18054 main ()
18056 return init_manager ();
18058 return 0;
18060 _ACEOF
18061 rm -f conftest.$ac_objext conftest$ac_exeext
18062 if { (ac_try="$ac_link"
18063 case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_link") 2>conftest.er1
18069 ac_status=$?
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest$ac_exeext'
18086 { (case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_try") 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18095 ac_cv_lib_isdnnet_init_manager=yes
18096 else
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ac_cv_lib_isdnnet_init_manager=no
18103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18104 conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18107 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
18108 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18109 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18110 AST_ISDNNET_FOUND=yes
18111 else
18112 AST_ISDNNET_FOUND=no
18116 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18117 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
18118 ISDNNET_HEADER_FOUND="1"
18119 if test "x${ISDNNET_DIR}" != "x"; then
18120 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
18121 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
18122 if test "xmISDNuser/isdn_net.h" != "x" ; then
18123 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
18124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18125 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18126 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 ac_res=`eval echo '${'$as_ac_Header'}'`
18131 { echo "$as_me:$LINENO: result: $ac_res" >&5
18132 echo "${ECHO_T}$ac_res" >&6; }
18133 else
18134 # Is the header compilable?
18135 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
18136 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 $ac_includes_default
18144 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18145 _ACEOF
18146 rm -f conftest.$ac_objext
18147 if { (ac_try="$ac_compile"
18148 case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_compile") 2>conftest.er1
18154 ac_status=$?
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 ac_header_compiler=yes
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_compiler=no
18188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18190 echo "${ECHO_T}$ac_header_compiler" >&6; }
18192 # Is the header present?
18193 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
18194 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18202 _ACEOF
18203 if { (ac_try="$ac_cpp conftest.$ac_ext"
18204 case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207 esac
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } >/dev/null; then
18216 if test -s conftest.err; then
18217 ac_cpp_err=$ac_c_preproc_warn_flag
18218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18219 else
18220 ac_cpp_err=
18222 else
18223 ac_cpp_err=yes
18225 if test -z "$ac_cpp_err"; then
18226 ac_header_preproc=yes
18227 else
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 ac_header_preproc=no
18234 rm -f conftest.err conftest.$ac_ext
18235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18236 echo "${ECHO_T}$ac_header_preproc" >&6; }
18238 # So? What about this header?
18239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18240 yes:no: )
18241 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18242 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18243 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18244 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18245 ac_header_preproc=yes
18247 no:yes:* )
18248 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18249 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18251 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18253 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18255 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18256 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18257 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18258 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18259 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18262 esac
18263 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18264 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268 eval "$as_ac_Header=\$ac_header_preproc"
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18276 ISDNNET_HEADER_FOUND=1
18277 else
18278 ISDNNET_HEADER_FOUND=0
18283 else
18284 if test "xmISDNuser/isdn_net.h" != "x" ; then
18285 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18286 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18287 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18288 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18292 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18293 else
18294 # Is the header compilable?
18295 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18296 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18297 cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 $ac_includes_default
18304 #include <mISDNuser/isdn_net.h>
18305 _ACEOF
18306 rm -f conftest.$ac_objext
18307 if { (ac_try="$ac_compile"
18308 case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18311 esac
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_compile") 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest.$ac_objext'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_header_compiler=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_compiler=no
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18350 echo "${ECHO_T}$ac_header_compiler" >&6; }
18352 # Is the header present?
18353 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18354 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18355 cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h. */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #include <mISDNuser/isdn_net.h>
18362 _ACEOF
18363 if { (ac_try="$ac_cpp conftest.$ac_ext"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } >/dev/null; then
18376 if test -s conftest.err; then
18377 ac_cpp_err=$ac_c_preproc_warn_flag
18378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18379 else
18380 ac_cpp_err=
18382 else
18383 ac_cpp_err=yes
18385 if test -z "$ac_cpp_err"; then
18386 ac_header_preproc=yes
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 ac_header_preproc=no
18394 rm -f conftest.err conftest.$ac_ext
18395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18396 echo "${ECHO_T}$ac_header_preproc" >&6; }
18398 # So? What about this header?
18399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18400 yes:no: )
18401 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18402 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18404 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18405 ac_header_preproc=yes
18407 no:yes:* )
18408 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18409 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18410 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18411 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18412 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18413 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18415 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18417 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18418 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18419 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18422 esac
18423 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18424 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18425 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18430 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18431 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18434 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18435 ISDNNET_HEADER_FOUND=1
18436 else
18437 ISDNNET_HEADER_FOUND=0
18443 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18444 if test ! -z "${ISDNNET_MANDATORY}" ;
18445 then
18446 { echo "$as_me:$LINENO: ***" >&5
18447 echo "$as_me: ***" >&6;}
18448 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18449 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18450 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support" >&5
18451 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support" >&or re-run configure;}
18452 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18453 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18454 exit 1
18456 ISDNNET_LIB=""
18457 ISDNNET_INCLUDE=""
18458 PBX_ISDNNET=0
18459 else
18460 PBX_ISDNNET=1
18462 cat >>confdefs.h <<_ACEOF
18463 #define HAVE_ISDNNET 1
18464 _ACEOF
18467 elif test ! -z "${ISDNNET_MANDATORY}";
18468 then
18469 { echo "$as_me:$LINENO: ***" >&5
18470 echo "$as_me: ***" >&6;}
18471 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18472 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18473 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18474 echo "$as_me: *** Either correct the installation" >&or run configure;}
18475 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18476 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18477 exit 1
18482 if test "${USE_SUPPSERV}" != "no"; then
18483 pbxlibdir=""
18484 if test "x${SUPPSERV_DIR}" != "x"; then
18485 if test -d ${SUPPSERV_DIR}/lib; then
18486 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18487 else
18488 pbxlibdir="-L${SUPPSERV_DIR}"
18491 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18492 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18493 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496 ac_check_lib_save_LIBS=$LIBS
18497 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18505 /* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18508 #ifdef __cplusplus
18509 extern "C"
18510 #endif
18511 char encodeFac ();
18513 main ()
18515 return encodeFac ();
18517 return 0;
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_suppserv_encodeFac=yes
18555 else
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_cv_lib_suppserv_encodeFac=no
18562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18566 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18567 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18568 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18569 AST_SUPPSERV_FOUND=yes
18570 else
18571 AST_SUPPSERV_FOUND=no
18575 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18576 SUPPSERV_LIB="-lsuppserv "
18577 SUPPSERV_HEADER_FOUND="1"
18578 if test "x${SUPPSERV_DIR}" != "x"; then
18579 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18580 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18581 if test "xmISDNuser/suppserv.h" != "x" ; then
18582 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18584 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18585 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_res=`eval echo '${'$as_ac_Header'}'`
18590 { echo "$as_me:$LINENO: result: $ac_res" >&5
18591 echo "${ECHO_T}$ac_res" >&6; }
18592 else
18593 # Is the header compilable?
18594 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18595 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18596 cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h. */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 $ac_includes_default
18603 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18604 _ACEOF
18605 rm -f conftest.$ac_objext
18606 if { (ac_try="$ac_compile"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610 esac
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_compile") 2>conftest.er1
18613 ac_status=$?
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620 { (case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_try") 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_try") 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_header_compiler=yes
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_header_compiler=no
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18649 echo "${ECHO_T}$ac_header_compiler" >&6; }
18651 # Is the header present?
18652 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18653 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18661 _ACEOF
18662 if { (ac_try="$ac_cpp conftest.$ac_ext"
18663 case "(($ac_try" in
18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18666 esac
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18669 ac_status=$?
18670 grep -v '^ *+' conftest.er1 >conftest.err
18671 rm -f conftest.er1
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } >/dev/null; then
18675 if test -s conftest.err; then
18676 ac_cpp_err=$ac_c_preproc_warn_flag
18677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18678 else
18679 ac_cpp_err=
18681 else
18682 ac_cpp_err=yes
18684 if test -z "$ac_cpp_err"; then
18685 ac_header_preproc=yes
18686 else
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_header_preproc=no
18693 rm -f conftest.err conftest.$ac_ext
18694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18695 echo "${ECHO_T}$ac_header_preproc" >&6; }
18697 # So? What about this header?
18698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18699 yes:no: )
18700 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18701 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18703 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18704 ac_header_preproc=yes
18706 no:yes:* )
18707 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18708 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18709 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18710 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18711 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18712 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18713 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18714 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18716 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18718 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18721 esac
18722 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18723 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727 eval "$as_ac_Header=\$ac_header_preproc"
18729 ac_res=`eval echo '${'$as_ac_Header'}'`
18730 { echo "$as_me:$LINENO: result: $ac_res" >&5
18731 echo "${ECHO_T}$ac_res" >&6; }
18734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18735 SUPPSERV_HEADER_FOUND=1
18736 else
18737 SUPPSERV_HEADER_FOUND=0
18742 else
18743 if test "xmISDNuser/suppserv.h" != "x" ; then
18744 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18745 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18746 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18747 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18751 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18752 else
18753 # Is the header compilable?
18754 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18755 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 $ac_includes_default
18763 #include <mISDNuser/suppserv.h>
18764 _ACEOF
18765 rm -f conftest.$ac_objext
18766 if { (ac_try="$ac_compile"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_compile") 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest.$ac_objext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_header_compiler=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_header_compiler=no
18807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18809 echo "${ECHO_T}$ac_header_compiler" >&6; }
18811 # Is the header present?
18812 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18813 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 #include <mISDNuser/suppserv.h>
18821 _ACEOF
18822 if { (ac_try="$ac_cpp conftest.$ac_ext"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } >/dev/null; then
18835 if test -s conftest.err; then
18836 ac_cpp_err=$ac_c_preproc_warn_flag
18837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18838 else
18839 ac_cpp_err=
18841 else
18842 ac_cpp_err=yes
18844 if test -z "$ac_cpp_err"; then
18845 ac_header_preproc=yes
18846 else
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_header_preproc=no
18853 rm -f conftest.err conftest.$ac_ext
18854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18855 echo "${ECHO_T}$ac_header_preproc" >&6; }
18857 # So? What about this header?
18858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18859 yes:no: )
18860 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18861 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18862 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18863 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18864 ac_header_preproc=yes
18866 no:yes:* )
18867 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18868 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18870 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18872 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18874 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18876 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18878 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18881 esac
18882 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18883 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18884 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18889 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18890 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18893 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18894 SUPPSERV_HEADER_FOUND=1
18895 else
18896 SUPPSERV_HEADER_FOUND=0
18902 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18903 if test ! -z "${SUPPSERV_MANDATORY}" ;
18904 then
18905 { echo "$as_me:$LINENO: ***" >&5
18906 echo "$as_me: ***" >&6;}
18907 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18908 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18909 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&5
18910 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&or re-run configure;}
18911 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18912 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18913 exit 1
18915 SUPPSERV_LIB=""
18916 SUPPSERV_INCLUDE=""
18917 PBX_SUPPSERV=0
18918 else
18919 PBX_SUPPSERV=1
18921 cat >>confdefs.h <<_ACEOF
18922 #define HAVE_SUPPSERV 1
18923 _ACEOF
18926 elif test ! -z "${SUPPSERV_MANDATORY}";
18927 then
18928 { echo "$as_me:$LINENO: ***" >&5
18929 echo "$as_me: ***" >&6;}
18930 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18931 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18932 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18933 echo "$as_me: *** Either correct the installation" >&or run configure;}
18934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18935 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18936 exit 1
18943 if test "${USE_NBS}" != "no"; then
18944 pbxlibdir=""
18945 if test "x${NBS_DIR}" != "x"; then
18946 if test -d ${NBS_DIR}/lib; then
18947 pbxlibdir="-L${NBS_DIR}/lib"
18948 else
18949 pbxlibdir="-L${NBS_DIR}"
18952 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18953 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18954 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 ac_check_lib_save_LIBS=$LIBS
18958 LIBS="-lnbs ${pbxlibdir} $LIBS"
18959 cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h. */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18966 /* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18969 #ifdef __cplusplus
18970 extern "C"
18971 #endif
18972 char nbs_connect ();
18974 main ()
18976 return nbs_connect ();
18978 return 0;
18980 _ACEOF
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (ac_try="$ac_link"
18983 case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986 esac
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_link") 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996 { (case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_try") 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest$ac_exeext'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_nbs_nbs_connect=yes
19016 else
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_nbs_nbs_connect=no
19023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19024 conftest$ac_exeext conftest.$ac_ext
19025 LIBS=$ac_check_lib_save_LIBS
19027 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
19028 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
19029 if test $ac_cv_lib_nbs_nbs_connect = yes; then
19030 AST_NBS_FOUND=yes
19031 else
19032 AST_NBS_FOUND=no
19036 if test "${AST_NBS_FOUND}" = "yes"; then
19037 NBS_LIB="-lnbs "
19038 NBS_HEADER_FOUND="1"
19039 if test "x${NBS_DIR}" != "x"; then
19040 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
19041 NBS_INCLUDE="-I${NBS_DIR}/include"
19042 if test "xnbs.h" != "x" ; then
19043 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
19044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19045 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19046 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 ac_res=`eval echo '${'$as_ac_Header'}'`
19051 { echo "$as_me:$LINENO: result: $ac_res" >&5
19052 echo "${ECHO_T}$ac_res" >&6; }
19053 else
19054 # Is the header compilable?
19055 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
19056 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
19057 cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h. */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 $ac_includes_default
19064 #include <${NBS_DIR}/include/nbs.h>
19065 _ACEOF
19066 rm -f conftest.$ac_objext
19067 if { (ac_try="$ac_compile"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071 esac
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_compile") 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_try") 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_header_compiler=yes
19101 else
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_header_compiler=no
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 echo "${ECHO_T}$ac_header_compiler" >&6; }
19112 # Is the header present?
19113 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
19114 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 #include <${NBS_DIR}/include/nbs.h>
19122 _ACEOF
19123 if { (ac_try="$ac_cpp conftest.$ac_ext"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } >/dev/null; then
19136 if test -s conftest.err; then
19137 ac_cpp_err=$ac_c_preproc_warn_flag
19138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19139 else
19140 ac_cpp_err=
19142 else
19143 ac_cpp_err=yes
19145 if test -z "$ac_cpp_err"; then
19146 ac_header_preproc=yes
19147 else
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_header_preproc=no
19154 rm -f conftest.err conftest.$ac_ext
19155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156 echo "${ECHO_T}$ac_header_preproc" >&6; }
19158 # So? What about this header?
19159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19160 yes:no: )
19161 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19162 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
19164 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
19165 ac_header_preproc=yes
19167 no:yes:* )
19168 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
19169 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
19171 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
19173 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19175 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
19177 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
19179 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
19182 esac
19183 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19184 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188 eval "$as_ac_Header=\$ac_header_preproc"
19190 ac_res=`eval echo '${'$as_ac_Header'}'`
19191 { echo "$as_me:$LINENO: result: $ac_res" >&5
19192 echo "${ECHO_T}$ac_res" >&6; }
19195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19196 NBS_HEADER_FOUND=1
19197 else
19198 NBS_HEADER_FOUND=0
19203 else
19204 if test "xnbs.h" != "x" ; then
19205 if test "${ac_cv_header_nbs_h+set}" = set; then
19206 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19207 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19208 if test "${ac_cv_header_nbs_h+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19212 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19213 else
19214 # Is the header compilable?
19215 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
19216 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h. */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 $ac_includes_default
19224 #include <nbs.h>
19225 _ACEOF
19226 rm -f conftest.$ac_objext
19227 if { (ac_try="$ac_compile"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19241 { (case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_try") 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_header_compiler=yes
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_header_compiler=no
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19270 echo "${ECHO_T}$ac_header_compiler" >&6; }
19272 # Is the header present?
19273 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
19274 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 #include <nbs.h>
19282 _ACEOF
19283 if { (ac_try="$ac_cpp conftest.$ac_ext"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } >/dev/null; then
19296 if test -s conftest.err; then
19297 ac_cpp_err=$ac_c_preproc_warn_flag
19298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19299 else
19300 ac_cpp_err=
19302 else
19303 ac_cpp_err=yes
19305 if test -z "$ac_cpp_err"; then
19306 ac_header_preproc=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_header_preproc=no
19314 rm -f conftest.err conftest.$ac_ext
19315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19316 echo "${ECHO_T}$ac_header_preproc" >&6; }
19318 # So? What about this header?
19319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19320 yes:no: )
19321 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19322 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
19324 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
19325 ac_header_preproc=yes
19327 no:yes:* )
19328 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
19329 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
19331 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
19333 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19335 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
19337 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
19339 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
19342 esac
19343 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19344 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19345 if test "${ac_cv_header_nbs_h+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 else
19348 ac_cv_header_nbs_h=$ac_header_preproc
19350 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19351 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19354 if test $ac_cv_header_nbs_h = yes; then
19355 NBS_HEADER_FOUND=1
19356 else
19357 NBS_HEADER_FOUND=0
19363 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
19364 if test ! -z "${NBS_MANDATORY}" ;
19365 then
19366 { echo "$as_me:$LINENO: ***" >&5
19367 echo "$as_me: ***" >&6;}
19368 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19369 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19370 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support" >&5
19371 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support" >&or re-run configure;}
19372 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19373 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19374 exit 1
19376 NBS_LIB=""
19377 NBS_INCLUDE=""
19378 PBX_NBS=0
19379 else
19380 PBX_NBS=1
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_NBS 1
19384 _ACEOF
19387 elif test ! -z "${NBS_MANDATORY}";
19388 then
19389 { echo "$as_me:$LINENO: ***" >&5
19390 echo "$as_me: ***" >&6;}
19391 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19392 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19393 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19394 echo "$as_me: *** Either correct the installation" >&or run configure;}
19395 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19396 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19397 exit 1
19403 if test "${USE_NCURSES}" != "no"; then
19404 pbxlibdir=""
19405 if test "x${NCURSES_DIR}" != "x"; then
19406 if test -d ${NCURSES_DIR}/lib; then
19407 pbxlibdir="-L${NCURSES_DIR}/lib"
19408 else
19409 pbxlibdir="-L${NCURSES_DIR}"
19412 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19413 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19414 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417 ac_check_lib_save_LIBS=$LIBS
19418 LIBS="-lncurses ${pbxlibdir} $LIBS"
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h. */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19429 #ifdef __cplusplus
19430 extern "C"
19431 #endif
19432 char initscr ();
19434 main ()
19436 return initscr ();
19438 return 0;
19440 _ACEOF
19441 rm -f conftest.$ac_objext conftest$ac_exeext
19442 if { (ac_try="$ac_link"
19443 case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_link") 2>conftest.er1
19449 ac_status=$?
19450 grep -v '^ *+' conftest.er1 >conftest.err
19451 rm -f conftest.er1
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
19455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19456 { (case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_try") 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try='test -s conftest$ac_exeext'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475 ac_cv_lib_ncurses_initscr=yes
19476 else
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_cv_lib_ncurses_initscr=no
19483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19484 conftest$ac_exeext conftest.$ac_ext
19485 LIBS=$ac_check_lib_save_LIBS
19487 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19488 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19489 if test $ac_cv_lib_ncurses_initscr = yes; then
19490 AST_NCURSES_FOUND=yes
19491 else
19492 AST_NCURSES_FOUND=no
19496 if test "${AST_NCURSES_FOUND}" = "yes"; then
19497 NCURSES_LIB="-lncurses "
19498 NCURSES_HEADER_FOUND="1"
19499 if test "x${NCURSES_DIR}" != "x"; then
19500 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19501 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19502 if test "xcurses.h" != "x" ; then
19503 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19505 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19506 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_res=`eval echo '${'$as_ac_Header'}'`
19511 { echo "$as_me:$LINENO: result: $ac_res" >&5
19512 echo "${ECHO_T}$ac_res" >&6; }
19513 else
19514 # Is the header compilable?
19515 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19516 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h. */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 $ac_includes_default
19524 #include <${NCURSES_DIR}/include/curses.h>
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_compile") 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_try") 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_header_compiler=yes
19561 else
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_header_compiler=no
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19570 echo "${ECHO_T}$ac_header_compiler" >&6; }
19572 # Is the header present?
19573 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19574 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h. */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 #include <${NCURSES_DIR}/include/curses.h>
19582 _ACEOF
19583 if { (ac_try="$ac_cpp conftest.$ac_ext"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } >/dev/null; then
19596 if test -s conftest.err; then
19597 ac_cpp_err=$ac_c_preproc_warn_flag
19598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19599 else
19600 ac_cpp_err=
19602 else
19603 ac_cpp_err=yes
19605 if test -z "$ac_cpp_err"; then
19606 ac_header_preproc=yes
19607 else
19608 echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_header_preproc=no
19614 rm -f conftest.err conftest.$ac_ext
19615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19616 echo "${ECHO_T}$ac_header_preproc" >&6; }
19618 # So? What about this header?
19619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19620 yes:no: )
19621 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19622 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19624 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19625 ac_header_preproc=yes
19627 no:yes:* )
19628 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19629 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19630 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19631 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19633 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19635 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19637 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19639 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19642 esac
19643 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19644 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 eval "$as_ac_Header=\$ac_header_preproc"
19650 ac_res=`eval echo '${'$as_ac_Header'}'`
19651 { echo "$as_me:$LINENO: result: $ac_res" >&5
19652 echo "${ECHO_T}$ac_res" >&6; }
19655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19656 NCURSES_HEADER_FOUND=1
19657 else
19658 NCURSES_HEADER_FOUND=0
19663 else
19664 if test "xcurses.h" != "x" ; then
19665 if test "${ac_cv_header_curses_h+set}" = set; then
19666 { echo "$as_me:$LINENO: checking for curses.h" >&5
19667 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19668 if test "${ac_cv_header_curses_h+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19672 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19673 else
19674 # Is the header compilable?
19675 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19676 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h. */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 $ac_includes_default
19684 #include <curses.h>
19685 _ACEOF
19686 rm -f conftest.$ac_objext
19687 if { (ac_try="$ac_compile"
19688 case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_compile") 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19701 { (case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest.$ac_objext'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_header_compiler=yes
19721 else
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 ac_header_compiler=no
19728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19730 echo "${ECHO_T}$ac_header_compiler" >&6; }
19732 # Is the header present?
19733 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19734 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19735 cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h. */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 #include <curses.h>
19742 _ACEOF
19743 if { (ac_try="$ac_cpp conftest.$ac_ext"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19750 ac_status=$?
19751 grep -v '^ *+' conftest.er1 >conftest.err
19752 rm -f conftest.er1
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } >/dev/null; then
19756 if test -s conftest.err; then
19757 ac_cpp_err=$ac_c_preproc_warn_flag
19758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19759 else
19760 ac_cpp_err=
19762 else
19763 ac_cpp_err=yes
19765 if test -z "$ac_cpp_err"; then
19766 ac_header_preproc=yes
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_header_preproc=no
19774 rm -f conftest.err conftest.$ac_ext
19775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19776 echo "${ECHO_T}$ac_header_preproc" >&6; }
19778 # So? What about this header?
19779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19780 yes:no: )
19781 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19782 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19784 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19785 ac_header_preproc=yes
19787 no:yes:* )
19788 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19789 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19791 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19793 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19794 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19795 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19796 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19797 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19798 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19799 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19802 esac
19803 { echo "$as_me:$LINENO: checking for curses.h" >&5
19804 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19805 if test "${ac_cv_header_curses_h+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 else
19808 ac_cv_header_curses_h=$ac_header_preproc
19810 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19811 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19814 if test $ac_cv_header_curses_h = yes; then
19815 NCURSES_HEADER_FOUND=1
19816 else
19817 NCURSES_HEADER_FOUND=0
19823 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19824 if test ! -z "${NCURSES_MANDATORY}" ;
19825 then
19826 { echo "$as_me:$LINENO: ***" >&5
19827 echo "$as_me: ***" >&6;}
19828 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19829 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19830 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support" >&5
19831 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support" >&or re-run configure;}
19832 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19833 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19834 exit 1
19836 NCURSES_LIB=""
19837 NCURSES_INCLUDE=""
19838 PBX_NCURSES=0
19839 else
19840 PBX_NCURSES=1
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_NCURSES 1
19844 _ACEOF
19847 elif test ! -z "${NCURSES_MANDATORY}";
19848 then
19849 { echo "$as_me:$LINENO: ***" >&5
19850 echo "$as_me: ***" >&6;}
19851 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19852 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19853 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19854 echo "$as_me: *** Either correct the installation" >&or run configure;}
19855 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19856 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19857 exit 1
19862 NETSNMP_CONFIG=No
19863 if test "${USE_NETSNMP}" != "no"; then
19864 if test "x${NETSNMP_DIR}" != "x"; then
19865 if test -n "$ac_tool_prefix"; then
19866 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19867 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19870 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873 case $NETSNMP_CONFIG in
19874 [\\/]* | ?:[\\/]*)
19875 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in ${NETSNMP_DIR}/bin
19881 IFS=$as_save_IFS
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19887 break 2
19889 done
19890 done
19891 IFS=$as_save_IFS
19894 esac
19896 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19897 if test -n "$NETSNMP_CONFIG"; then
19898 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19899 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19900 else
19901 { echo "$as_me:$LINENO: result: no" >&5
19902 echo "${ECHO_T}no" >&6; }
19907 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19908 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19909 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19910 set dummy net-snmp-config; ac_word=$2
19911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19913 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916 case $ac_pt_NETSNMP_CONFIG in
19917 [\\/]* | ?:[\\/]*)
19918 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19922 for as_dir in ${NETSNMP_DIR}/bin
19924 IFS=$as_save_IFS
19925 test -z "$as_dir" && as_dir=.
19926 for ac_exec_ext in '' $ac_executable_extensions; do
19927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19928 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19930 break 2
19932 done
19933 done
19934 IFS=$as_save_IFS
19937 esac
19939 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19940 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19941 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19942 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19943 else
19944 { echo "$as_me:$LINENO: result: no" >&5
19945 echo "${ECHO_T}no" >&6; }
19948 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19949 NETSNMP_CONFIG="No"
19950 else
19951 case $cross_compiling:$ac_tool_warned in
19952 yes:)
19953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19954 whose name does not start with the host triplet. If you think this
19955 configuration is useful to you, please write to autoconf@gnu.org." >&5
19956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19957 whose name does not start with the host triplet. If you think this
19958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19959 ac_tool_warned=yes ;;
19960 esac
19961 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19963 else
19964 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19967 if test x"${NETSNMP_CONFIG}" = xNo; then
19968 { echo "$as_me:$LINENO: ***" >&5
19969 echo "$as_me: ***" >&6;}
19970 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19971 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19972 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19973 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19974 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19975 echo "$as_me: *** Either correct the installation" >&or run configure;}
19976 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19977 echo "$as_me: *** including --without-netsnmp" >&6;}
19978 exit 1
19980 else
19981 if test -n "$ac_tool_prefix"; then
19982 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19983 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19986 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989 case $NETSNMP_CONFIG in
19990 [\\/]* | ?:[\\/]*)
19991 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19995 for as_dir in $PATH
19997 IFS=$as_save_IFS
19998 test -z "$as_dir" && as_dir=.
19999 for ac_exec_ext in '' $ac_executable_extensions; do
20000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20001 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20003 break 2
20005 done
20006 done
20007 IFS=$as_save_IFS
20010 esac
20012 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20013 if test -n "$NETSNMP_CONFIG"; then
20014 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20015 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20016 else
20017 { echo "$as_me:$LINENO: result: no" >&5
20018 echo "${ECHO_T}no" >&6; }
20023 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20024 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20025 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20026 set dummy net-snmp-config; ac_word=$2
20027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20029 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032 case $ac_pt_NETSNMP_CONFIG in
20033 [\\/]* | ?:[\\/]*)
20034 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20038 for as_dir in $PATH
20040 IFS=$as_save_IFS
20041 test -z "$as_dir" && as_dir=.
20042 for ac_exec_ext in '' $ac_executable_extensions; do
20043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20044 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20046 break 2
20048 done
20049 done
20050 IFS=$as_save_IFS
20053 esac
20055 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20056 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20057 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20058 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20059 else
20060 { echo "$as_me:$LINENO: result: no" >&5
20061 echo "${ECHO_T}no" >&6; }
20064 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20065 NETSNMP_CONFIG="No"
20066 else
20067 case $cross_compiling:$ac_tool_warned in
20068 yes:)
20069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20070 whose name does not start with the host triplet. If you think this
20071 configuration is useful to you, please write to autoconf@gnu.org." >&5
20072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20073 whose name does not start with the host triplet. If you think this
20074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20075 ac_tool_warned=yes ;;
20076 esac
20077 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20079 else
20080 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20085 if test x"${NETSNMP_CONFIG}" != xNo; then
20086 NETSNMP_libs=`net-snmp-config --agent-libs`
20088 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
20089 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
20090 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 ac_check_lib_save_LIBS=$LIBS
20094 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20102 /* Override any GCC internal prototype to avoid an error.
20103 Use char because int might match the return type of a GCC
20104 builtin and then its argument prototype would still apply. */
20105 #ifdef __cplusplus
20106 extern "C"
20107 #endif
20108 char snmp_register_callback ();
20110 main ()
20112 return snmp_register_callback ();
20114 return 0;
20116 _ACEOF
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (ac_try="$ac_link"
20119 case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_link") 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } &&
20131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20132 { (case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20135 esac
20136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137 (eval "$ac_try") 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest$ac_exeext'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_lib_netsnmp_snmp_register_callback=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_lib_netsnmp_snmp_register_callback=no
20159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20160 conftest$ac_exeext conftest.$ac_ext
20161 LIBS=$ac_check_lib_save_LIBS
20163 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20164 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20165 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20167 cat >>confdefs.h <<_ACEOF
20168 #define HAVE_NETSNMP 1
20169 _ACEOF
20174 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20175 NETSNMP_LIB="${NETSNMP_libs}"
20176 PBX_NETSNMP=1
20177 elif test ! -z "${NETSNMP_MANDATORY}";
20178 then
20179 { echo "$as_me:$LINENO: ***" >&5
20180 echo "$as_me: ***" >&6;}
20181 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20182 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20183 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20184 echo "$as_me: *** Either correct the installation" >&or run configure;}
20185 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20186 echo "$as_me: *** including --without-netsnmp" >&6;}
20187 exit 1
20189 elif test ! -z "${NETSNMP_MANDATORY}";
20190 then
20191 { echo "$as_me:$LINENO: ***" >&5
20192 echo "$as_me: ***" >&6;}
20193 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20194 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20195 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20196 echo "$as_me: *** Either correct the installation" >&or run configure;}
20197 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20198 echo "$as_me: *** including --without-netsnmp" >&6;}
20199 exit 1
20203 if test "${USE_NEWT}" != "no"; then
20204 pbxlibdir=""
20205 if test "x${NEWT_DIR}" != "x"; then
20206 if test -d ${NEWT_DIR}/lib; then
20207 pbxlibdir="-L${NEWT_DIR}/lib"
20208 else
20209 pbxlibdir="-L${NEWT_DIR}"
20212 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
20213 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
20214 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 ac_check_lib_save_LIBS=$LIBS
20218 LIBS="-lnewt ${pbxlibdir} $LIBS"
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 /* Override any GCC internal prototype to avoid an error.
20227 Use char because int might match the return type of a GCC
20228 builtin and then its argument prototype would still apply. */
20229 #ifdef __cplusplus
20230 extern "C"
20231 #endif
20232 char newtBell ();
20234 main ()
20236 return newtBell ();
20238 return 0;
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; } &&
20265 { ac_try='test -s conftest$ac_exeext'
20266 { (case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_try") 2>&5
20272 ac_status=$?
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_lib_newt_newtBell=yes
20276 else
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20280 ac_cv_lib_newt_newtBell=no
20283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20284 conftest$ac_exeext conftest.$ac_ext
20285 LIBS=$ac_check_lib_save_LIBS
20287 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
20288 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20289 if test $ac_cv_lib_newt_newtBell = yes; then
20290 AST_NEWT_FOUND=yes
20291 else
20292 AST_NEWT_FOUND=no
20296 if test "${AST_NEWT_FOUND}" = "yes"; then
20297 NEWT_LIB="-lnewt "
20298 NEWT_HEADER_FOUND="1"
20299 if test "x${NEWT_DIR}" != "x"; then
20300 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20301 NEWT_INCLUDE="-I${NEWT_DIR}/include"
20302 if test "xnewt.h" != "x" ; then
20303 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
20304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20305 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20306 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 ac_res=`eval echo '${'$as_ac_Header'}'`
20311 { echo "$as_me:$LINENO: result: $ac_res" >&5
20312 echo "${ECHO_T}$ac_res" >&6; }
20313 else
20314 # Is the header compilable?
20315 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
20316 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
20317 cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h. */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 $ac_includes_default
20324 #include <${NEWT_DIR}/include/newt.h>
20325 _ACEOF
20326 rm -f conftest.$ac_objext
20327 if { (ac_try="$ac_compile"
20328 case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_compile") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20341 { (case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_try") 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest.$ac_objext'
20351 { (case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_try") 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_header_compiler=yes
20361 else
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_header_compiler=no
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20370 echo "${ECHO_T}$ac_header_compiler" >&6; }
20372 # Is the header present?
20373 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
20374 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
20375 cat >conftest.$ac_ext <<_ACEOF
20376 /* confdefs.h. */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <${NEWT_DIR}/include/newt.h>
20382 _ACEOF
20383 if { (ac_try="$ac_cpp conftest.$ac_ext"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20390 ac_status=$?
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } >/dev/null; then
20396 if test -s conftest.err; then
20397 ac_cpp_err=$ac_c_preproc_warn_flag
20398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20399 else
20400 ac_cpp_err=
20402 else
20403 ac_cpp_err=yes
20405 if test -z "$ac_cpp_err"; then
20406 ac_header_preproc=yes
20407 else
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_header_preproc=no
20414 rm -f conftest.err conftest.$ac_ext
20415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20416 echo "${ECHO_T}$ac_header_preproc" >&6; }
20418 # So? What about this header?
20419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20420 yes:no: )
20421 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20422 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
20424 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
20425 ac_header_preproc=yes
20427 no:yes:* )
20428 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
20429 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
20431 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
20433 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
20435 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
20437 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
20439 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
20442 esac
20443 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20444 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448 eval "$as_ac_Header=\$ac_header_preproc"
20450 ac_res=`eval echo '${'$as_ac_Header'}'`
20451 { echo "$as_me:$LINENO: result: $ac_res" >&5
20452 echo "${ECHO_T}$ac_res" >&6; }
20455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20456 NEWT_HEADER_FOUND=1
20457 else
20458 NEWT_HEADER_FOUND=0
20463 else
20464 if test "xnewt.h" != "x" ; then
20465 if test "${ac_cv_header_newt_h+set}" = set; then
20466 { echo "$as_me:$LINENO: checking for newt.h" >&5
20467 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20468 if test "${ac_cv_header_newt_h+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20472 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20473 else
20474 # Is the header compilable?
20475 { echo "$as_me:$LINENO: checking newt.h usability" >&5
20476 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <newt.h>
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_compile") 2>conftest.er1
20494 ac_status=$?
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501 { (case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_try") 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_try") 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_header_compiler=yes
20521 else
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_header_compiler=no
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6; }
20532 # Is the header present?
20533 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20534 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <newt.h>
20542 _ACEOF
20543 if { (ac_try="$ac_cpp conftest.$ac_ext"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20550 ac_status=$?
20551 grep -v '^ *+' conftest.er1 >conftest.err
20552 rm -f conftest.er1
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } >/dev/null; then
20556 if test -s conftest.err; then
20557 ac_cpp_err=$ac_c_preproc_warn_flag
20558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20559 else
20560 ac_cpp_err=
20562 else
20563 ac_cpp_err=yes
20565 if test -z "$ac_cpp_err"; then
20566 ac_header_preproc=yes
20567 else
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ac_header_preproc=no
20574 rm -f conftest.err conftest.$ac_ext
20575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20576 echo "${ECHO_T}$ac_header_preproc" >&6; }
20578 # So? What about this header?
20579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20580 yes:no: )
20581 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20582 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20584 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20585 ac_header_preproc=yes
20587 no:yes:* )
20588 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20589 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20591 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20593 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20595 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20597 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20599 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20602 esac
20603 { echo "$as_me:$LINENO: checking for newt.h" >&5
20604 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20605 if test "${ac_cv_header_newt_h+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608 ac_cv_header_newt_h=$ac_header_preproc
20610 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20611 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20614 if test $ac_cv_header_newt_h = yes; then
20615 NEWT_HEADER_FOUND=1
20616 else
20617 NEWT_HEADER_FOUND=0
20623 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20624 if test ! -z "${NEWT_MANDATORY}" ;
20625 then
20626 { echo "$as_me:$LINENO: ***" >&5
20627 echo "$as_me: ***" >&6;}
20628 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20629 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20630 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support" >&5
20631 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support" >&or re-run configure;}
20632 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20633 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20634 exit 1
20636 NEWT_LIB=""
20637 NEWT_INCLUDE=""
20638 PBX_NEWT=0
20639 else
20640 PBX_NEWT=1
20642 cat >>confdefs.h <<_ACEOF
20643 #define HAVE_NEWT 1
20644 _ACEOF
20647 elif test ! -z "${NEWT_MANDATORY}";
20648 then
20649 { echo "$as_me:$LINENO: ***" >&5
20650 echo "$as_me: ***" >&6;}
20651 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20652 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20653 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20654 echo "$as_me: *** Either correct the installation" >&or run configure;}
20655 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20656 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20657 exit 1
20663 if test "${USE_UNIXODBC}" != "no"; then
20664 pbxlibdir=""
20665 if test "x${UNIXODBC_DIR}" != "x"; then
20666 if test -d ${UNIXODBC_DIR}/lib; then
20667 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20668 else
20669 pbxlibdir="-L${UNIXODBC_DIR}"
20672 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20673 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20674 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677 ac_check_lib_save_LIBS=$LIBS
20678 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20689 #ifdef __cplusplus
20690 extern "C"
20691 #endif
20692 char SQLConnect ();
20694 main ()
20696 return SQLConnect ();
20698 return 0;
20700 _ACEOF
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest$ac_exeext'
20726 { (case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_try") 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_lib_odbc_SQLConnect=yes
20736 else
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_cv_lib_odbc_SQLConnect=no
20743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20744 conftest$ac_exeext conftest.$ac_ext
20745 LIBS=$ac_check_lib_save_LIBS
20747 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20748 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20749 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20750 AST_UNIXODBC_FOUND=yes
20751 else
20752 AST_UNIXODBC_FOUND=no
20756 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20757 UNIXODBC_LIB="-lodbc -lltdl"
20758 UNIXODBC_HEADER_FOUND="1"
20759 if test "x${UNIXODBC_DIR}" != "x"; then
20760 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20761 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20762 if test "xsql.h" != "x" ; then
20763 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20765 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20766 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 ac_res=`eval echo '${'$as_ac_Header'}'`
20771 { echo "$as_me:$LINENO: result: $ac_res" >&5
20772 echo "${ECHO_T}$ac_res" >&6; }
20773 else
20774 # Is the header compilable?
20775 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20776 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 $ac_includes_default
20784 #include <${UNIXODBC_DIR}/include/sql.h>
20785 _ACEOF
20786 rm -f conftest.$ac_objext
20787 if { (ac_try="$ac_compile"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20791 esac
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_compile") 2>conftest.er1
20794 ac_status=$?
20795 grep -v '^ *+' conftest.er1 >conftest.err
20796 rm -f conftest.er1
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_header_compiler=yes
20821 else
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 ac_header_compiler=no
20828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20830 echo "${ECHO_T}$ac_header_compiler" >&6; }
20832 # Is the header present?
20833 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20834 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 #include <${UNIXODBC_DIR}/include/sql.h>
20842 _ACEOF
20843 if { (ac_try="$ac_cpp conftest.$ac_ext"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } >/dev/null; then
20856 if test -s conftest.err; then
20857 ac_cpp_err=$ac_c_preproc_warn_flag
20858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20859 else
20860 ac_cpp_err=
20862 else
20863 ac_cpp_err=yes
20865 if test -z "$ac_cpp_err"; then
20866 ac_header_preproc=yes
20867 else
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_header_preproc=no
20874 rm -f conftest.err conftest.$ac_ext
20875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20876 echo "${ECHO_T}$ac_header_preproc" >&6; }
20878 # So? What about this header?
20879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20880 yes:no: )
20881 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20882 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20883 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20884 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20885 ac_header_preproc=yes
20887 no:yes:* )
20888 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20889 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20891 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20893 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20895 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20896 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20897 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20898 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20899 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20902 esac
20903 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20904 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908 eval "$as_ac_Header=\$ac_header_preproc"
20910 ac_res=`eval echo '${'$as_ac_Header'}'`
20911 { echo "$as_me:$LINENO: result: $ac_res" >&5
20912 echo "${ECHO_T}$ac_res" >&6; }
20915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20916 UNIXODBC_HEADER_FOUND=1
20917 else
20918 UNIXODBC_HEADER_FOUND=0
20923 else
20924 if test "xsql.h" != "x" ; then
20925 if test "${ac_cv_header_sql_h+set}" = set; then
20926 { echo "$as_me:$LINENO: checking for sql.h" >&5
20927 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20928 if test "${ac_cv_header_sql_h+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20932 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20933 else
20934 # Is the header compilable?
20935 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20936 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h. */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 $ac_includes_default
20944 #include <sql.h>
20945 _ACEOF
20946 rm -f conftest.$ac_objext
20947 if { (ac_try="$ac_compile"
20948 case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_compile") 2>conftest.er1
20954 ac_status=$?
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } &&
20960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20961 { (case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_try") 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; } &&
20970 { ac_try='test -s conftest.$ac_objext'
20971 { (case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_try") 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_header_compiler=yes
20981 else
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 ac_header_compiler=no
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20990 echo "${ECHO_T}$ac_header_compiler" >&6; }
20992 # Is the header present?
20993 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20994 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 #include <sql.h>
21002 _ACEOF
21003 if { (ac_try="$ac_cpp conftest.$ac_ext"
21004 case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21010 ac_status=$?
21011 grep -v '^ *+' conftest.er1 >conftest.err
21012 rm -f conftest.er1
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } >/dev/null; then
21016 if test -s conftest.err; then
21017 ac_cpp_err=$ac_c_preproc_warn_flag
21018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21019 else
21020 ac_cpp_err=
21022 else
21023 ac_cpp_err=yes
21025 if test -z "$ac_cpp_err"; then
21026 ac_header_preproc=yes
21027 else
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ac_header_preproc=no
21034 rm -f conftest.err conftest.$ac_ext
21035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21036 echo "${ECHO_T}$ac_header_preproc" >&6; }
21038 # So? What about this header?
21039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21040 yes:no: )
21041 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
21042 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
21044 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
21045 ac_header_preproc=yes
21047 no:yes:* )
21048 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
21049 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
21051 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
21053 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
21055 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
21057 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
21059 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
21062 esac
21063 { echo "$as_me:$LINENO: checking for sql.h" >&5
21064 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
21065 if test "${ac_cv_header_sql_h+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068 ac_cv_header_sql_h=$ac_header_preproc
21070 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
21071 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
21074 if test $ac_cv_header_sql_h = yes; then
21075 UNIXODBC_HEADER_FOUND=1
21076 else
21077 UNIXODBC_HEADER_FOUND=0
21083 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
21084 if test ! -z "${UNIXODBC_MANDATORY}" ;
21085 then
21086 { echo "$as_me:$LINENO: ***" >&5
21087 echo "$as_me: ***" >&6;}
21088 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
21089 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
21090 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&5
21091 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&or re-run configure;}
21092 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21093 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21094 exit 1
21096 UNIXODBC_LIB=""
21097 UNIXODBC_INCLUDE=""
21098 PBX_UNIXODBC=0
21099 else
21100 PBX_UNIXODBC=1
21102 cat >>confdefs.h <<_ACEOF
21103 #define HAVE_UNIXODBC 1
21104 _ACEOF
21107 elif test ! -z "${UNIXODBC_MANDATORY}";
21108 then
21109 { echo "$as_me:$LINENO: ***" >&5
21110 echo "$as_me: ***" >&6;}
21111 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
21112 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
21113 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21114 echo "$as_me: *** Either correct the installation" >&or run configure;}
21115 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21116 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21117 exit 1
21123 if test "${USE_OGG}" != "no"; then
21124 pbxlibdir=""
21125 if test "x${OGG_DIR}" != "x"; then
21126 if test -d ${OGG_DIR}/lib; then
21127 pbxlibdir="-L${OGG_DIR}/lib"
21128 else
21129 pbxlibdir="-L${OGG_DIR}"
21132 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
21133 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
21134 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137 ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-logg ${pbxlibdir} $LIBS"
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h. */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21149 #ifdef __cplusplus
21150 extern "C"
21151 #endif
21152 char ogg_sync_init ();
21154 main ()
21156 return ogg_sync_init ();
21158 return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext conftest$ac_exeext
21162 if { (ac_try="$ac_link"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_link") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } &&
21175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21176 { (case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_try") 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try='test -s conftest$ac_exeext'
21186 { (case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21189 esac
21190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_try") 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_lib_ogg_ogg_sync_init=yes
21196 else
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_cv_lib_ogg_ogg_sync_init=no
21203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21204 conftest$ac_exeext conftest.$ac_ext
21205 LIBS=$ac_check_lib_save_LIBS
21207 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
21208 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21209 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21210 AST_OGG_FOUND=yes
21211 else
21212 AST_OGG_FOUND=no
21216 if test "${AST_OGG_FOUND}" = "yes"; then
21217 OGG_LIB="-logg "
21218 OGG_HEADER_FOUND="1"
21219 if test "x${OGG_DIR}" != "x"; then
21220 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21221 OGG_INCLUDE="-I${OGG_DIR}/include"
21222 if test "x" != "x" ; then
21223 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
21224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21225 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21226 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 ac_res=`eval echo '${'$as_ac_Header'}'`
21231 { echo "$as_me:$LINENO: result: $ac_res" >&5
21232 echo "${ECHO_T}$ac_res" >&6; }
21233 else
21234 # Is the header compilable?
21235 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
21236 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h. */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21244 #include <${OGG_DIR}/include/>
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (ac_try="$ac_compile"
21248 case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_compile") 2>conftest.er1
21254 ac_status=$?
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } &&
21260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21261 { (case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_try") 2>&5
21267 ac_status=$?
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; } &&
21270 { ac_try='test -s conftest.$ac_objext'
21271 { (case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_try") 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_header_compiler=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_compiler=no
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6; }
21292 # Is the header present?
21293 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
21294 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <${OGG_DIR}/include/>
21302 _ACEOF
21303 if { (ac_try="$ac_cpp conftest.$ac_ext"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } >/dev/null; then
21316 if test -s conftest.err; then
21317 ac_cpp_err=$ac_c_preproc_warn_flag
21318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21319 else
21320 ac_cpp_err=
21322 else
21323 ac_cpp_err=yes
21325 if test -z "$ac_cpp_err"; then
21326 ac_header_preproc=yes
21327 else
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_header_preproc=no
21334 rm -f conftest.err conftest.$ac_ext
21335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21336 echo "${ECHO_T}$ac_header_preproc" >&6; }
21338 # So? What about this header?
21339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21340 yes:no: )
21341 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
21342 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
21344 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
21345 ac_header_preproc=yes
21347 no:yes:* )
21348 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
21349 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
21351 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
21353 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
21355 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
21357 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
21359 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
21362 esac
21363 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21364 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368 eval "$as_ac_Header=\$ac_header_preproc"
21370 ac_res=`eval echo '${'$as_ac_Header'}'`
21371 { echo "$as_me:$LINENO: result: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21376 OGG_HEADER_FOUND=1
21377 else
21378 OGG_HEADER_FOUND=0
21383 else
21384 if test "x" != "x" ; then
21385 if test "${ac_cv_header_+set}" = set; then
21386 { echo "$as_me:$LINENO: checking for " >&5
21387 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21388 if test "${ac_cv_header_+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21392 echo "${ECHO_T}$ac_cv_header_" >&6; }
21393 else
21394 # Is the header compilable?
21395 { echo "$as_me:$LINENO: checking usability" >&5
21396 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21404 #include <>
21405 _ACEOF
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21421 { (case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_try") 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_try") 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ac_header_compiler=yes
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_header_compiler=no
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6; }
21452 # Is the header present?
21453 { echo "$as_me:$LINENO: checking presence" >&5
21454 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <>
21462 _ACEOF
21463 if { (ac_try="$ac_cpp conftest.$ac_ext"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467 esac
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21470 ac_status=$?
21471 grep -v '^ *+' conftest.er1 >conftest.err
21472 rm -f conftest.er1
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } >/dev/null; then
21476 if test -s conftest.err; then
21477 ac_cpp_err=$ac_c_preproc_warn_flag
21478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21479 else
21480 ac_cpp_err=
21482 else
21483 ac_cpp_err=yes
21485 if test -z "$ac_cpp_err"; then
21486 ac_header_preproc=yes
21487 else
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 ac_header_preproc=no
21494 rm -f conftest.err conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21496 echo "${ECHO_T}$ac_header_preproc" >&6; }
21498 # So? What about this header?
21499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21500 yes:no: )
21501 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21502 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21504 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21505 ac_header_preproc=yes
21507 no:yes:* )
21508 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21509 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21511 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21513 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21515 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21517 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21519 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21522 esac
21523 { echo "$as_me:$LINENO: checking for " >&5
21524 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21525 if test "${ac_cv_header_+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528 ac_cv_header_=$ac_header_preproc
21530 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21531 echo "${ECHO_T}$ac_cv_header_" >&6; }
21534 if test $ac_cv_header_ = yes; then
21535 OGG_HEADER_FOUND=1
21536 else
21537 OGG_HEADER_FOUND=0
21543 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
21544 if test ! -z "${OGG_MANDATORY}" ;
21545 then
21546 { echo "$as_me:$LINENO: ***" >&5
21547 echo "$as_me: ***" >&6;}
21548 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
21549 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
21550 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support" >&5
21551 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support" >&or re-run configure;}
21552 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21553 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21554 exit 1
21556 OGG_LIB=""
21557 OGG_INCLUDE=""
21558 PBX_OGG=0
21559 else
21560 PBX_OGG=1
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_OGG 1
21564 _ACEOF
21567 elif test ! -z "${OGG_MANDATORY}";
21568 then
21569 { echo "$as_me:$LINENO: ***" >&5
21570 echo "$as_me: ***" >&6;}
21571 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
21572 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
21573 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21574 echo "$as_me: *** Either correct the installation" >&or run configure;}
21575 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21576 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21577 exit 1
21583 if test "${USE_OSPTK}" != "no"; then
21584 pbxlibdir=""
21585 if test "x${OSPTK_DIR}" != "x"; then
21586 if test -d ${OSPTK_DIR}/lib; then
21587 pbxlibdir="-L${OSPTK_DIR}/lib"
21588 else
21589 pbxlibdir="-L${OSPTK_DIR}"
21592 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
21593 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
21594 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597 ac_check_lib_save_LIBS=$LIBS
21598 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21599 cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h. */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21606 /* Override any GCC internal prototype to avoid an error.
21607 Use char because int might match the return type of a GCC
21608 builtin and then its argument prototype would still apply. */
21609 #ifdef __cplusplus
21610 extern "C"
21611 #endif
21612 char OSPPCryptoDecrypt ();
21614 main ()
21616 return OSPPCryptoDecrypt ();
21618 return 0;
21620 _ACEOF
21621 rm -f conftest.$ac_objext conftest$ac_exeext
21622 if { (ac_try="$ac_link"
21623 case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21626 esac
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_link") 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest$ac_exeext'
21646 { (case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_try") 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
21656 else
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21664 conftest$ac_exeext conftest.$ac_ext
21665 LIBS=$ac_check_lib_save_LIBS
21667 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21668 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21669 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21670 AST_OSPTK_FOUND=yes
21671 else
21672 AST_OSPTK_FOUND=no
21676 if test "${AST_OSPTK_FOUND}" = "yes"; then
21677 OSPTK_LIB="-losptk -lcrypto -lssl"
21678 OSPTK_HEADER_FOUND="1"
21679 if test "x${OSPTK_DIR}" != "x"; then
21680 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21681 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21682 if test "xosp/osp.h" != "x" ; then
21683 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21685 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21686 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 ac_res=`eval echo '${'$as_ac_Header'}'`
21691 { echo "$as_me:$LINENO: result: $ac_res" >&5
21692 echo "${ECHO_T}$ac_res" >&6; }
21693 else
21694 # Is the header compilable?
21695 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21696 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21704 #include <${OSPTK_DIR}/include/osp/osp.h>
21705 _ACEOF
21706 rm -f conftest.$ac_objext
21707 if { (ac_try="$ac_compile"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_compile") 2>conftest.er1
21714 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } &&
21720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21721 { (case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_try") 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest.$ac_objext'
21731 { (case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_try") 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_header_compiler=yes
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_compiler=no
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21750 echo "${ECHO_T}$ac_header_compiler" >&6; }
21752 # Is the header present?
21753 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21754 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h. */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 #include <${OSPTK_DIR}/include/osp/osp.h>
21762 _ACEOF
21763 if { (ac_try="$ac_cpp conftest.$ac_ext"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } >/dev/null; then
21776 if test -s conftest.err; then
21777 ac_cpp_err=$ac_c_preproc_warn_flag
21778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21779 else
21780 ac_cpp_err=
21782 else
21783 ac_cpp_err=yes
21785 if test -z "$ac_cpp_err"; then
21786 ac_header_preproc=yes
21787 else
21788 echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21791 ac_header_preproc=no
21794 rm -f conftest.err conftest.$ac_ext
21795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21796 echo "${ECHO_T}$ac_header_preproc" >&6; }
21798 # So? What about this header?
21799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21800 yes:no: )
21801 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21802 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21804 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21805 ac_header_preproc=yes
21807 no:yes:* )
21808 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21809 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21811 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21813 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21815 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21817 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21819 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21822 esac
21823 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21824 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827 else
21828 eval "$as_ac_Header=\$ac_header_preproc"
21830 ac_res=`eval echo '${'$as_ac_Header'}'`
21831 { echo "$as_me:$LINENO: result: $ac_res" >&5
21832 echo "${ECHO_T}$ac_res" >&6; }
21835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21836 OSPTK_HEADER_FOUND=1
21837 else
21838 OSPTK_HEADER_FOUND=0
21843 else
21844 if test "xosp/osp.h" != "x" ; then
21845 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21846 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21847 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21848 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21852 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21853 else
21854 # Is the header compilable?
21855 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21856 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21864 #include <osp/osp.h>
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21881 { (case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_try") 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_try") 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_header_compiler=yes
21901 else
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_header_compiler=no
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21910 echo "${ECHO_T}$ac_header_compiler" >&6; }
21912 # Is the header present?
21913 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21914 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21915 cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h. */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 #include <osp/osp.h>
21922 _ACEOF
21923 if { (ac_try="$ac_cpp conftest.$ac_ext"
21924 case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21927 esac
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21930 ac_status=$?
21931 grep -v '^ *+' conftest.er1 >conftest.err
21932 rm -f conftest.er1
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } >/dev/null; then
21936 if test -s conftest.err; then
21937 ac_cpp_err=$ac_c_preproc_warn_flag
21938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21939 else
21940 ac_cpp_err=
21942 else
21943 ac_cpp_err=yes
21945 if test -z "$ac_cpp_err"; then
21946 ac_header_preproc=yes
21947 else
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_header_preproc=no
21954 rm -f conftest.err conftest.$ac_ext
21955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21960 yes:no: )
21961 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21962 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21964 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21965 ac_header_preproc=yes
21967 no:yes:* )
21968 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21969 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21971 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21973 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21975 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21977 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21979 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21982 esac
21983 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21984 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21985 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988 ac_cv_header_osp_osp_h=$ac_header_preproc
21990 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21991 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21994 if test $ac_cv_header_osp_osp_h = yes; then
21995 OSPTK_HEADER_FOUND=1
21996 else
21997 OSPTK_HEADER_FOUND=0
22003 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
22004 if test ! -z "${OSPTK_MANDATORY}" ;
22005 then
22006 { echo "$as_me:$LINENO: ***" >&5
22007 echo "$as_me: ***" >&6;}
22008 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
22009 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
22010 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support" >&5
22011 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support" >&or re-run configure;}
22012 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
22013 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
22014 exit 1
22016 OSPTK_LIB=""
22017 OSPTK_INCLUDE=""
22018 PBX_OSPTK=0
22019 else
22020 PBX_OSPTK=1
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_OSPTK 1
22024 _ACEOF
22027 elif test ! -z "${OSPTK_MANDATORY}";
22028 then
22029 { echo "$as_me:$LINENO: ***" >&5
22030 echo "$as_me: ***" >&6;}
22031 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
22032 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
22033 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22034 echo "$as_me: *** Either correct the installation" >&or run configure;}
22035 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
22036 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
22037 exit 1
22042 PBX_OSS=0
22043 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22044 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22045 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22046 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22050 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22051 else
22052 # Is the header compilable?
22053 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22054 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22055 cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h. */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22061 $ac_includes_default
22062 #include <linux/soundcard.h>
22063 _ACEOF
22064 rm -f conftest.$ac_objext
22065 if { (ac_try="$ac_compile"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_compile") 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22079 { (case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_try") 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; } &&
22088 { ac_try='test -s conftest.$ac_objext'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 ac_header_compiler=yes
22099 else
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_header_compiler=no
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22108 echo "${ECHO_T}$ac_header_compiler" >&6; }
22110 # Is the header present?
22111 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22112 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h. */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <linux/soundcard.h>
22120 _ACEOF
22121 if { (ac_try="$ac_cpp conftest.$ac_ext"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } >/dev/null; then
22134 if test -s conftest.err; then
22135 ac_cpp_err=$ac_c_preproc_warn_flag
22136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22137 else
22138 ac_cpp_err=
22140 else
22141 ac_cpp_err=yes
22143 if test -z "$ac_cpp_err"; then
22144 ac_header_preproc=yes
22145 else
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ac_header_preproc=no
22152 rm -f conftest.err conftest.$ac_ext
22153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22154 echo "${ECHO_T}$ac_header_preproc" >&6; }
22156 # So? What about this header?
22157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22158 yes:no: )
22159 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22160 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22162 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22163 ac_header_preproc=yes
22165 no:yes:* )
22166 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22167 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22168 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22169 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22171 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22173 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22175 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22177 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22180 esac
22181 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22182 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22183 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 else
22186 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22188 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22189 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22192 if test $ac_cv_header_linux_soundcard_h = yes; then
22194 PBX_OSS=1
22196 cat >>confdefs.h <<_ACEOF
22197 #define HAVE_OSS 1
22198 _ACEOF
22204 if test "$PBX_OSS" = "0"; then
22205 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22206 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22207 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22208 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22212 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22213 else
22214 # Is the header compilable?
22215 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22216 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 $ac_includes_default
22224 #include <sys/soundcard.h>
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22231 esac
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_compile") 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22241 { (case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22244 esac
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_try") 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest.$ac_objext'
22251 { (case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22254 esac
22255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_try") 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; }; then
22260 ac_header_compiler=yes
22261 else
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_header_compiler=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 echo "${ECHO_T}$ac_header_compiler" >&6; }
22272 # Is the header present?
22273 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22274 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h. */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <sys/soundcard.h>
22282 _ACEOF
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22287 esac
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } >/dev/null; then
22296 if test -s conftest.err; then
22297 ac_cpp_err=$ac_c_preproc_warn_flag
22298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22299 else
22300 ac_cpp_err=
22302 else
22303 ac_cpp_err=yes
22305 if test -z "$ac_cpp_err"; then
22306 ac_header_preproc=yes
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_header_preproc=no
22314 rm -f conftest.err conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22316 echo "${ECHO_T}$ac_header_preproc" >&6; }
22318 # So? What about this header?
22319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22320 yes:no: )
22321 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22322 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22324 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22325 ac_header_preproc=yes
22327 no:yes:* )
22328 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22329 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22331 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22333 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22335 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22337 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22339 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22342 esac
22343 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22344 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22345 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22350 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22351 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22354 if test $ac_cv_header_sys_soundcard_h = yes; then
22356 PBX_OSS=1
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_OSS 1
22360 _ACEOF
22367 if test "$PBX_OSS" = "0"; then
22369 if test "${USE_OSS}" != "no"; then
22370 pbxlibdir=""
22371 if test "x${OSS_DIR}" != "x"; then
22372 if test -d ${OSS_DIR}/lib; then
22373 pbxlibdir="-L${OSS_DIR}/lib"
22374 else
22375 pbxlibdir="-L${OSS_DIR}"
22378 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22379 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22380 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22381 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 else
22383 ac_check_lib_save_LIBS=$LIBS
22384 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22385 cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h. */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22392 /* Override any GCC internal prototype to avoid an error.
22393 Use char because int might match the return type of a GCC
22394 builtin and then its argument prototype would still apply. */
22395 #ifdef __cplusplus
22396 extern "C"
22397 #endif
22398 char oss_ioctl_mixer ();
22400 main ()
22402 return oss_ioctl_mixer ();
22404 return 0;
22406 _ACEOF
22407 rm -f conftest.$ac_objext conftest$ac_exeext
22408 if { (ac_try="$ac_link"
22409 case "(($ac_try" in
22410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411 *) ac_try_echo=$ac_try;;
22412 esac
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_link") 2>conftest.er1
22415 ac_status=$?
22416 grep -v '^ *+' conftest.er1 >conftest.err
22417 rm -f conftest.er1
22418 cat conftest.err >&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } &&
22421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22422 { (case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_try") 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; } &&
22431 { ac_try='test -s conftest$ac_exeext'
22432 { (case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_try") 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22442 else
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22450 conftest$ac_exeext conftest.$ac_ext
22451 LIBS=$ac_check_lib_save_LIBS
22453 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22454 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22455 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22456 AST_OSS_FOUND=yes
22457 else
22458 AST_OSS_FOUND=no
22462 if test "${AST_OSS_FOUND}" = "yes"; then
22463 OSS_LIB="-lossaudio "
22464 OSS_HEADER_FOUND="1"
22465 if test "x${OSS_DIR}" != "x"; then
22466 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22467 OSS_INCLUDE="-I${OSS_DIR}/include"
22468 if test "xsoundcard.h" != "x" ; then
22469 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
22470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22471 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22472 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 ac_res=`eval echo '${'$as_ac_Header'}'`
22477 { echo "$as_me:$LINENO: result: $ac_res" >&5
22478 echo "${ECHO_T}$ac_res" >&6; }
22479 else
22480 # Is the header compilable?
22481 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
22482 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
22483 cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h. */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 $ac_includes_default
22490 #include <${OSS_DIR}/include/soundcard.h>
22491 _ACEOF
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22500 ac_status=$?
22501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22520 esac
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_try") 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 ac_header_compiler=yes
22527 else
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22531 ac_header_compiler=no
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22536 echo "${ECHO_T}$ac_header_compiler" >&6; }
22538 # Is the header present?
22539 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
22540 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h. */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 #include <${OSS_DIR}/include/soundcard.h>
22548 _ACEOF
22549 if { (ac_try="$ac_cpp conftest.$ac_ext"
22550 case "(($ac_try" in
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22553 esac
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } >/dev/null; then
22562 if test -s conftest.err; then
22563 ac_cpp_err=$ac_c_preproc_warn_flag
22564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22565 else
22566 ac_cpp_err=
22568 else
22569 ac_cpp_err=yes
22571 if test -z "$ac_cpp_err"; then
22572 ac_header_preproc=yes
22573 else
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_header_preproc=no
22580 rm -f conftest.err conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22582 echo "${ECHO_T}$ac_header_preproc" >&6; }
22584 # So? What about this header?
22585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22586 yes:no: )
22587 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22588 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
22590 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
22591 ac_header_preproc=yes
22593 no:yes:* )
22594 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
22595 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
22597 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
22599 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
22600 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22601 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
22603 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
22605 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
22608 esac
22609 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22610 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614 eval "$as_ac_Header=\$ac_header_preproc"
22616 ac_res=`eval echo '${'$as_ac_Header'}'`
22617 { echo "$as_me:$LINENO: result: $ac_res" >&5
22618 echo "${ECHO_T}$ac_res" >&6; }
22621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22622 OSS_HEADER_FOUND=1
22623 else
22624 OSS_HEADER_FOUND=0
22629 else
22630 if test "xsoundcard.h" != "x" ; then
22631 if test "${ac_cv_header_soundcard_h+set}" = set; then
22632 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22633 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22634 if test "${ac_cv_header_soundcard_h+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22638 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22639 else
22640 # Is the header compilable?
22641 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22642 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22643 cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h. */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 $ac_includes_default
22650 #include <soundcard.h>
22651 _ACEOF
22652 rm -f conftest.$ac_objext
22653 if { (ac_try="$ac_compile"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657 esac
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_compile") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22667 { (case "(($ac_try" in
22668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669 *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672 (eval "$ac_try") 2>&5
22673 ac_status=$?
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest.$ac_objext'
22677 { (case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_try") 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 ac_header_compiler=yes
22687 else
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ac_header_compiler=no
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22696 echo "${ECHO_T}$ac_header_compiler" >&6; }
22698 # Is the header present?
22699 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22700 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22701 cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h. */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <soundcard.h>
22708 _ACEOF
22709 if { (ac_try="$ac_cpp conftest.$ac_ext"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } >/dev/null; then
22722 if test -s conftest.err; then
22723 ac_cpp_err=$ac_c_preproc_warn_flag
22724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22725 else
22726 ac_cpp_err=
22728 else
22729 ac_cpp_err=yes
22731 if test -z "$ac_cpp_err"; then
22732 ac_header_preproc=yes
22733 else
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ac_header_preproc=no
22740 rm -f conftest.err conftest.$ac_ext
22741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22742 echo "${ECHO_T}$ac_header_preproc" >&6; }
22744 # So? What about this header?
22745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22746 yes:no: )
22747 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22748 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22749 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22750 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22751 ac_header_preproc=yes
22753 no:yes:* )
22754 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22755 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22757 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22759 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22760 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22761 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22762 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22763 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22764 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22765 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22768 esac
22769 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22770 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22771 if test "${ac_cv_header_soundcard_h+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774 ac_cv_header_soundcard_h=$ac_header_preproc
22776 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22777 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22780 if test $ac_cv_header_soundcard_h = yes; then
22781 OSS_HEADER_FOUND=1
22782 else
22783 OSS_HEADER_FOUND=0
22789 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22790 if test ! -z "${OSS_MANDATORY}" ;
22791 then
22792 { echo "$as_me:$LINENO: ***" >&5
22793 echo "$as_me: ***" >&6;}
22794 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22795 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22796 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support" >&5
22797 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support" >&or re-run configure;}
22798 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22799 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22800 exit 1
22802 OSS_LIB=""
22803 OSS_INCLUDE=""
22804 PBX_OSS=0
22805 else
22806 PBX_OSS=1
22808 cat >>confdefs.h <<_ACEOF
22809 #define HAVE_OSS 1
22810 _ACEOF
22813 elif test ! -z "${OSS_MANDATORY}";
22814 then
22815 { echo "$as_me:$LINENO: ***" >&5
22816 echo "$as_me: ***" >&6;}
22817 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22818 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22819 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22820 echo "$as_me: *** Either correct the installation" >&or run configure;}
22821 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22822 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22823 exit 1
22829 PG_CONFIG=No
22830 if test "${USE_PGSQL}" != "no"; then
22831 if test "x${PGSQL_DIR}" != "x"; then
22832 if test -n "$ac_tool_prefix"; then
22833 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22834 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22837 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840 case $PG_CONFIG in
22841 [\\/]* | ?:[\\/]*)
22842 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22846 for as_dir in ${PGSQL_DIR}/bin
22848 IFS=$as_save_IFS
22849 test -z "$as_dir" && as_dir=.
22850 for ac_exec_ext in '' $ac_executable_extensions; do
22851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22852 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22854 break 2
22856 done
22857 done
22858 IFS=$as_save_IFS
22861 esac
22863 PG_CONFIG=$ac_cv_path_PG_CONFIG
22864 if test -n "$PG_CONFIG"; then
22865 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22866 echo "${ECHO_T}$PG_CONFIG" >&6; }
22867 else
22868 { echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6; }
22874 if test -z "$ac_cv_path_PG_CONFIG"; then
22875 ac_pt_PG_CONFIG=$PG_CONFIG
22876 # Extract the first word of "pg_config", so it can be a program name with args.
22877 set dummy pg_config; ac_word=$2
22878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22880 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883 case $ac_pt_PG_CONFIG in
22884 [\\/]* | ?:[\\/]*)
22885 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22889 for as_dir in ${PGSQL_DIR}/bin
22891 IFS=$as_save_IFS
22892 test -z "$as_dir" && as_dir=.
22893 for ac_exec_ext in '' $ac_executable_extensions; do
22894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22895 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22897 break 2
22899 done
22900 done
22901 IFS=$as_save_IFS
22904 esac
22906 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22907 if test -n "$ac_pt_PG_CONFIG"; then
22908 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22909 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22910 else
22911 { echo "$as_me:$LINENO: result: no" >&5
22912 echo "${ECHO_T}no" >&6; }
22915 if test "x$ac_pt_PG_CONFIG" = x; then
22916 PG_CONFIG="No"
22917 else
22918 case $cross_compiling:$ac_tool_warned in
22919 yes:)
22920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22921 whose name does not start with the host triplet. If you think this
22922 configuration is useful to you, please write to autoconf@gnu.org." >&5
22923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22924 whose name does not start with the host triplet. If you think this
22925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22926 ac_tool_warned=yes ;;
22927 esac
22928 PG_CONFIG=$ac_pt_PG_CONFIG
22930 else
22931 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22934 if test x"${PG_CONFIG}" = xNo; then
22935 { echo "$as_me:$LINENO: ***" >&5
22936 echo "$as_me: ***" >&6;}
22937 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22938 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22939 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22940 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22941 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22942 echo "$as_me: *** Either correct the installation" >&or run configure;}
22943 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22944 echo "$as_me: *** including --without-postgres" >&6;}
22945 exit 1
22947 else
22948 if test -n "$ac_tool_prefix"; then
22949 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22950 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22953 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956 case $PG_CONFIG in
22957 [\\/]* | ?:[\\/]*)
22958 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962 for as_dir in $PATH
22964 IFS=$as_save_IFS
22965 test -z "$as_dir" && as_dir=.
22966 for ac_exec_ext in '' $ac_executable_extensions; do
22967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22968 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22970 break 2
22972 done
22973 done
22974 IFS=$as_save_IFS
22977 esac
22979 PG_CONFIG=$ac_cv_path_PG_CONFIG
22980 if test -n "$PG_CONFIG"; then
22981 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22982 echo "${ECHO_T}$PG_CONFIG" >&6; }
22983 else
22984 { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22990 if test -z "$ac_cv_path_PG_CONFIG"; then
22991 ac_pt_PG_CONFIG=$PG_CONFIG
22992 # Extract the first word of "pg_config", so it can be a program name with args.
22993 set dummy pg_config; ac_word=$2
22994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22996 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999 case $ac_pt_PG_CONFIG in
23000 [\\/]* | ?:[\\/]*)
23001 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23005 for as_dir in $PATH
23007 IFS=$as_save_IFS
23008 test -z "$as_dir" && as_dir=.
23009 for ac_exec_ext in '' $ac_executable_extensions; do
23010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23011 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23013 break 2
23015 done
23016 done
23017 IFS=$as_save_IFS
23020 esac
23022 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23023 if test -n "$ac_pt_PG_CONFIG"; then
23024 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23025 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23026 else
23027 { echo "$as_me:$LINENO: result: no" >&5
23028 echo "${ECHO_T}no" >&6; }
23031 if test "x$ac_pt_PG_CONFIG" = x; then
23032 PG_CONFIG="No"
23033 else
23034 case $cross_compiling:$ac_tool_warned in
23035 yes:)
23036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23037 whose name does not start with the host triplet. If you think this
23038 configuration is useful to you, please write to autoconf@gnu.org." >&5
23039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23040 whose name does not start with the host triplet. If you think this
23041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23042 ac_tool_warned=yes ;;
23043 esac
23044 PG_CONFIG=$ac_pt_PG_CONFIG
23046 else
23047 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23052 if test "${PG_CONFIG}" != No; then
23053 PGSQL_libdir=`pg_config --libdir`
23054 PGSQL_includedir=`pg_config --includedir`
23056 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
23057 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
23058 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061 ac_check_lib_save_LIBS=$LIBS
23062 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23063 cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h. */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23070 /* Override any GCC internal prototype to avoid an error.
23071 Use char because int might match the return type of a GCC
23072 builtin and then its argument prototype would still apply. */
23073 #ifdef __cplusplus
23074 extern "C"
23075 #endif
23076 char PQexec ();
23078 main ()
23080 return PQexec ();
23082 return 0;
23084 _ACEOF
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (ac_try="$ac_link"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_link") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } &&
23099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23100 { (case "(($ac_try" in
23101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102 *) ac_try_echo=$ac_try;;
23103 esac
23104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105 (eval "$ac_try") 2>&5
23106 ac_status=$?
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest$ac_exeext'
23110 { (case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23113 esac
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115 (eval "$ac_try") 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 ac_cv_lib_pq_PQexec=yes
23120 else
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 ac_cv_lib_pq_PQexec=no
23127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23128 conftest$ac_exeext conftest.$ac_ext
23129 LIBS=$ac_check_lib_save_LIBS
23131 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23132 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23133 if test $ac_cv_lib_pq_PQexec = yes; then
23135 cat >>confdefs.h <<_ACEOF
23136 #define HAVE_PGSQL 1
23137 _ACEOF
23142 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23143 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
23144 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23145 PBX_PGSQL=1
23146 elif test ! -z "${PGSQL_MANDATORY}";
23147 then
23148 { echo "$as_me:$LINENO: ***" >&5
23149 echo "$as_me: ***" >&6;}
23150 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23151 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23152 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23153 echo "$as_me: *** Either correct the installation" >&or run configure;}
23154 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23155 echo "$as_me: *** including --without-postgres" >&6;}
23156 exit 1
23158 elif test ! -z "${PGSQL_MANDATORY}";
23159 then
23160 { echo "$as_me:$LINENO: ***" >&5
23161 echo "$as_me: ***" >&6;}
23162 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23163 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23164 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23165 echo "$as_me: *** Either correct the installation" >&or run configure;}
23166 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23167 echo "$as_me: *** including --without-postgres" >&6;}
23168 exit 1
23172 if test "${USE_POPT}" != "no"; then
23173 pbxlibdir=""
23174 if test "x${POPT_DIR}" != "x"; then
23175 if test -d ${POPT_DIR}/lib; then
23176 pbxlibdir="-L${POPT_DIR}/lib"
23177 else
23178 pbxlibdir="-L${POPT_DIR}"
23181 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23182 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23183 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 else
23186 ac_check_lib_save_LIBS=$LIBS
23187 LIBS="-lpopt ${pbxlibdir} $LIBS"
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23195 /* Override any GCC internal prototype to avoid an error.
23196 Use char because int might match the return type of a GCC
23197 builtin and then its argument prototype would still apply. */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 char poptStrerror ();
23203 main ()
23205 return poptStrerror ();
23207 return 0;
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (ac_try="$ac_link"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_link") 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23225 { (case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_try") 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; } &&
23234 { ac_try='test -s conftest$ac_exeext'
23235 { (case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23238 esac
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_try") 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23244 ac_cv_lib_popt_poptStrerror=yes
23245 else
23246 echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23249 ac_cv_lib_popt_poptStrerror=no
23252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23253 conftest$ac_exeext conftest.$ac_ext
23254 LIBS=$ac_check_lib_save_LIBS
23256 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23257 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23258 if test $ac_cv_lib_popt_poptStrerror = yes; then
23259 AST_POPT_FOUND=yes
23260 else
23261 AST_POPT_FOUND=no
23265 if test "${AST_POPT_FOUND}" = "yes"; then
23266 POPT_LIB="-lpopt "
23267 POPT_HEADER_FOUND="1"
23268 if test "x${POPT_DIR}" != "x"; then
23269 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23270 POPT_INCLUDE="-I${POPT_DIR}/include"
23271 if test "xpopt.h" != "x" ; then
23272 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
23273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23274 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23275 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 ac_res=`eval echo '${'$as_ac_Header'}'`
23280 { echo "$as_me:$LINENO: result: $ac_res" >&5
23281 echo "${ECHO_T}$ac_res" >&6; }
23282 else
23283 # Is the header compilable?
23284 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
23285 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
23286 cat >conftest.$ac_ext <<_ACEOF
23287 /* confdefs.h. */
23288 _ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 $ac_includes_default
23293 #include <${POPT_DIR}/include/popt.h>
23294 _ACEOF
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23303 ac_status=$?
23304 grep -v '^ *+' conftest.er1 >conftest.err
23305 rm -f conftest.er1
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } &&
23309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23310 { (case "(($ac_try" in
23311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312 *) ac_try_echo=$ac_try;;
23313 esac
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315 (eval "$ac_try") 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; } &&
23319 { ac_try='test -s conftest.$ac_objext'
23320 { (case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_try") 2>&5
23326 ac_status=$?
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); }; }; then
23329 ac_header_compiler=yes
23330 else
23331 echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23334 ac_header_compiler=no
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23339 echo "${ECHO_T}$ac_header_compiler" >&6; }
23341 # Is the header present?
23342 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23343 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23344 cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h. */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23350 #include <${POPT_DIR}/include/popt.h>
23351 _ACEOF
23352 if { (ac_try="$ac_cpp conftest.$ac_ext"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } >/dev/null; then
23365 if test -s conftest.err; then
23366 ac_cpp_err=$ac_c_preproc_warn_flag
23367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23368 else
23369 ac_cpp_err=
23371 else
23372 ac_cpp_err=yes
23374 if test -z "$ac_cpp_err"; then
23375 ac_header_preproc=yes
23376 else
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_header_preproc=no
23383 rm -f conftest.err conftest.$ac_ext
23384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23385 echo "${ECHO_T}$ac_header_preproc" >&6; }
23387 # So? What about this header?
23388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23389 yes:no: )
23390 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23391 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23392 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
23393 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
23394 ac_header_preproc=yes
23396 no:yes:* )
23397 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23398 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23400 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23402 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23404 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23406 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23408 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23411 esac
23412 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23413 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417 eval "$as_ac_Header=\$ac_header_preproc"
23419 ac_res=`eval echo '${'$as_ac_Header'}'`
23420 { echo "$as_me:$LINENO: result: $ac_res" >&5
23421 echo "${ECHO_T}$ac_res" >&6; }
23424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23425 POPT_HEADER_FOUND=1
23426 else
23427 POPT_HEADER_FOUND=0
23432 else
23433 if test "xpopt.h" != "x" ; then
23434 if test "${ac_cv_header_popt_h+set}" = set; then
23435 { echo "$as_me:$LINENO: checking for popt.h" >&5
23436 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23437 if test "${ac_cv_header_popt_h+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23441 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23442 else
23443 # Is the header compilable?
23444 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23445 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23446 cat >conftest.$ac_ext <<_ACEOF
23447 /* confdefs.h. */
23448 _ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 $ac_includes_default
23453 #include <popt.h>
23454 _ACEOF
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23460 esac
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23470 { (case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23473 esac
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_try") 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest.$ac_objext'
23480 { (case "(($ac_try" in
23481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482 *) ac_try_echo=$ac_try;;
23483 esac
23484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23485 (eval "$ac_try") 2>&5
23486 ac_status=$?
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ac_header_compiler=yes
23490 else
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ac_header_compiler=no
23497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23499 echo "${ECHO_T}$ac_header_compiler" >&6; }
23501 # Is the header present?
23502 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23503 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23504 cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h. */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 #include <popt.h>
23511 _ACEOF
23512 if { (ac_try="$ac_cpp conftest.$ac_ext"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23519 ac_status=$?
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } >/dev/null; then
23525 if test -s conftest.err; then
23526 ac_cpp_err=$ac_c_preproc_warn_flag
23527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23528 else
23529 ac_cpp_err=
23531 else
23532 ac_cpp_err=yes
23534 if test -z "$ac_cpp_err"; then
23535 ac_header_preproc=yes
23536 else
23537 echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 ac_header_preproc=no
23543 rm -f conftest.err conftest.$ac_ext
23544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23545 echo "${ECHO_T}$ac_header_preproc" >&6; }
23547 # So? What about this header?
23548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23549 yes:no: )
23550 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23551 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23552 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23553 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23554 ac_header_preproc=yes
23556 no:yes:* )
23557 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23558 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23559 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23560 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23561 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23562 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23564 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23565 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23566 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23567 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23568 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23571 esac
23572 { echo "$as_me:$LINENO: checking for popt.h" >&5
23573 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23574 if test "${ac_cv_header_popt_h+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577 ac_cv_header_popt_h=$ac_header_preproc
23579 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23580 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23583 if test $ac_cv_header_popt_h = yes; then
23584 POPT_HEADER_FOUND=1
23585 else
23586 POPT_HEADER_FOUND=0
23592 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23593 if test ! -z "${POPT_MANDATORY}" ;
23594 then
23595 { echo "$as_me:$LINENO: ***" >&5
23596 echo "$as_me: ***" >&6;}
23597 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23598 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23599 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support" >&5
23600 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support" >&or re-run configure;}
23601 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23602 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23603 exit 1
23605 POPT_LIB=""
23606 POPT_INCLUDE=""
23607 PBX_POPT=0
23608 else
23609 PBX_POPT=1
23611 cat >>confdefs.h <<_ACEOF
23612 #define HAVE_POPT 1
23613 _ACEOF
23616 elif test ! -z "${POPT_MANDATORY}";
23617 then
23618 { echo "$as_me:$LINENO: ***" >&5
23619 echo "$as_me: ***" >&6;}
23620 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23621 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23622 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23623 echo "$as_me: *** Either correct the installation" >&or run configure;}
23624 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23625 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23626 exit 1
23632 if test "${USE_PRI}" != "no"; then
23633 pbxlibdir=""
23634 if test "x${PRI_DIR}" != "x"; then
23635 if test -d ${PRI_DIR}/lib; then
23636 pbxlibdir="-L${PRI_DIR}/lib"
23637 else
23638 pbxlibdir="-L${PRI_DIR}"
23641 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
23642 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
23643 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 else
23646 ac_check_lib_save_LIBS=$LIBS
23647 LIBS="-lpri ${pbxlibdir} $LIBS"
23648 cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h. */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23655 /* Override any GCC internal prototype to avoid an error.
23656 Use char because int might match the return type of a GCC
23657 builtin and then its argument prototype would still apply. */
23658 #ifdef __cplusplus
23659 extern "C"
23660 #endif
23661 char pri_call ();
23663 main ()
23665 return pri_call ();
23667 return 0;
23669 _ACEOF
23670 rm -f conftest.$ac_objext conftest$ac_exeext
23671 if { (ac_try="$ac_link"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23675 esac
23676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_link") 2>conftest.er1
23678 ac_status=$?
23679 grep -v '^ *+' conftest.er1 >conftest.err
23680 rm -f conftest.er1
23681 cat conftest.err >&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } &&
23684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23685 { (case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_try") 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; } &&
23694 { ac_try='test -s conftest$ac_exeext'
23695 { (case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_try") 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; }; then
23704 ac_cv_lib_pri_pri_call=yes
23705 else
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 ac_cv_lib_pri_pri_call=no
23712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23713 conftest$ac_exeext conftest.$ac_ext
23714 LIBS=$ac_check_lib_save_LIBS
23716 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
23717 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23718 if test $ac_cv_lib_pri_pri_call = yes; then
23719 AST_PRI_FOUND=yes
23720 else
23721 AST_PRI_FOUND=no
23725 if test "${AST_PRI_FOUND}" = "yes"; then
23726 PRI_LIB="-lpri "
23727 PRI_HEADER_FOUND="1"
23728 if test "x${PRI_DIR}" != "x"; then
23729 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23730 PRI_INCLUDE="-I${PRI_DIR}/include"
23731 if test "xlibpri.h" != "x" ; then
23732 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
23733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23734 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23735 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 ac_res=`eval echo '${'$as_ac_Header'}'`
23740 { echo "$as_me:$LINENO: result: $ac_res" >&5
23741 echo "${ECHO_T}$ac_res" >&6; }
23742 else
23743 # Is the header compilable?
23744 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
23745 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
23746 cat >conftest.$ac_ext <<_ACEOF
23747 /* confdefs.h. */
23748 _ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h. */
23752 $ac_includes_default
23753 #include <${PRI_DIR}/include/libpri.h>
23754 _ACEOF
23755 rm -f conftest.$ac_objext
23756 if { (ac_try="$ac_compile"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760 esac
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_compile") 2>conftest.er1
23763 ac_status=$?
23764 grep -v '^ *+' conftest.er1 >conftest.err
23765 rm -f conftest.er1
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } &&
23769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23770 { (case "(($ac_try" in
23771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772 *) ac_try_echo=$ac_try;;
23773 esac
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775 (eval "$ac_try") 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; } &&
23779 { ac_try='test -s conftest.$ac_objext'
23780 { (case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_try") 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 ac_header_compiler=yes
23790 else
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 ac_header_compiler=no
23797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23799 echo "${ECHO_T}$ac_header_compiler" >&6; }
23801 # Is the header present?
23802 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
23803 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
23804 cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h. */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23810 #include <${PRI_DIR}/include/libpri.h>
23811 _ACEOF
23812 if { (ac_try="$ac_cpp conftest.$ac_ext"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23819 ac_status=$?
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } >/dev/null; then
23825 if test -s conftest.err; then
23826 ac_cpp_err=$ac_c_preproc_warn_flag
23827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23828 else
23829 ac_cpp_err=
23831 else
23832 ac_cpp_err=yes
23834 if test -z "$ac_cpp_err"; then
23835 ac_header_preproc=yes
23836 else
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 ac_header_preproc=no
23843 rm -f conftest.err conftest.$ac_ext
23844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23845 echo "${ECHO_T}$ac_header_preproc" >&6; }
23847 # So? What about this header?
23848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23849 yes:no: )
23850 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23851 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23852 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
23853 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
23854 ac_header_preproc=yes
23856 no:yes:* )
23857 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
23858 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
23859 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
23860 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
23861 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
23862 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
23863 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23864 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23865 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
23866 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
23867 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
23868 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
23871 esac
23872 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23873 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877 eval "$as_ac_Header=\$ac_header_preproc"
23879 ac_res=`eval echo '${'$as_ac_Header'}'`
23880 { echo "$as_me:$LINENO: result: $ac_res" >&5
23881 echo "${ECHO_T}$ac_res" >&6; }
23884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23885 PRI_HEADER_FOUND=1
23886 else
23887 PRI_HEADER_FOUND=0
23892 else
23893 if test "xlibpri.h" != "x" ; then
23894 if test "${ac_cv_header_libpri_h+set}" = set; then
23895 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23896 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23897 if test "${ac_cv_header_libpri_h+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23901 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23902 else
23903 # Is the header compilable?
23904 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23905 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 $ac_includes_default
23913 #include <libpri.h>
23914 _ACEOF
23915 rm -f conftest.$ac_objext
23916 if { (ac_try="$ac_compile"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23930 { (case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_try") 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try='test -s conftest.$ac_objext'
23940 { (case "(($ac_try" in
23941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23942 *) ac_try_echo=$ac_try;;
23943 esac
23944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23945 (eval "$ac_try") 2>&5
23946 ac_status=$?
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); }; }; then
23949 ac_header_compiler=yes
23950 else
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23954 ac_header_compiler=no
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23959 echo "${ECHO_T}$ac_header_compiler" >&6; }
23961 # Is the header present?
23962 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23963 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23964 cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h. */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 #include <libpri.h>
23971 _ACEOF
23972 if { (ac_try="$ac_cpp conftest.$ac_ext"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23979 ac_status=$?
23980 grep -v '^ *+' conftest.er1 >conftest.err
23981 rm -f conftest.er1
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } >/dev/null; then
23985 if test -s conftest.err; then
23986 ac_cpp_err=$ac_c_preproc_warn_flag
23987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23988 else
23989 ac_cpp_err=
23991 else
23992 ac_cpp_err=yes
23994 if test -z "$ac_cpp_err"; then
23995 ac_header_preproc=yes
23996 else
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ac_header_preproc=no
24003 rm -f conftest.err conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24005 echo "${ECHO_T}$ac_header_preproc" >&6; }
24007 # So? What about this header?
24008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24009 yes:no: )
24010 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24011 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24012 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24013 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24014 ac_header_preproc=yes
24016 no:yes:* )
24017 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24018 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24019 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24020 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24021 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24022 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24024 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24025 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24026 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24027 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24028 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24031 esac
24032 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24033 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24034 if test "${ac_cv_header_libpri_h+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037 ac_cv_header_libpri_h=$ac_header_preproc
24039 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24040 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24043 if test $ac_cv_header_libpri_h = yes; then
24044 PRI_HEADER_FOUND=1
24045 else
24046 PRI_HEADER_FOUND=0
24052 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
24053 if test ! -z "${PRI_MANDATORY}" ;
24054 then
24055 { echo "$as_me:$LINENO: ***" >&5
24056 echo "$as_me: ***" >&6;}
24057 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24058 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24059 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support" >&5
24060 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support" >&or re-run configure;}
24061 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24062 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24063 exit 1
24065 PRI_LIB=""
24066 PRI_INCLUDE=""
24067 PBX_PRI=0
24068 else
24069 PBX_PRI=1
24071 cat >>confdefs.h <<_ACEOF
24072 #define HAVE_PRI 1
24073 _ACEOF
24076 elif test ! -z "${PRI_MANDATORY}";
24077 then
24078 { echo "$as_me:$LINENO: ***" >&5
24079 echo "$as_me: ***" >&6;}
24080 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24081 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24082 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24083 echo "$as_me: *** Either correct the installation" >&or run configure;}
24084 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24085 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24086 exit 1
24091 if test "${USE_PWLIB}" != "no"; then
24092 if test ! -z "${PWLIB_DIR}"; then
24093 PWLIBDIR="${PWLIB_DIR}"
24096 PWLIB_INCDIR=
24097 PWLIB_LIBDIR=
24098 if test "${PWLIBDIR:-unset}" != "unset" ; then
24099 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
24100 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24101 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24102 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24104 else
24105 test "$cross_compiling" = yes &&
24106 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24107 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24108 { (exit 1); exit 1; }; }
24109 if test -r "${PWLIBDIR}/version.h"; then
24110 eval "$as_ac_File=yes"
24111 else
24112 eval "$as_ac_File=no"
24115 ac_res=`eval echo '${'$as_ac_File'}'`
24116 { echo "$as_me:$LINENO: result: $ac_res" >&5
24117 echo "${ECHO_T}$ac_res" >&6; }
24118 if test `eval echo '${'$as_ac_File'}'` = yes; then
24119 HAS_PWLIB=1
24123 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24124 if test "${OPENH323DIR:-unset}" != "unset"; then
24125 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24126 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24127 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24128 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131 test "$cross_compiling" = yes &&
24132 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24133 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24134 { (exit 1); exit 1; }; }
24135 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
24136 eval "$as_ac_File=yes"
24137 else
24138 eval "$as_ac_File=no"
24141 ac_res=`eval echo '${'$as_ac_File'}'`
24142 { echo "$as_me:$LINENO: result: $ac_res" >&5
24143 echo "${ECHO_T}$ac_res" >&6; }
24144 if test `eval echo '${'$as_ac_File'}'` = yes; then
24145 HAS_PWLIB=1
24149 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24150 PWLIBDIR="${OPENH323DIR}/../pwlib"
24151 else
24152 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24153 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24154 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24155 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 else
24158 test "$cross_compiling" = yes &&
24159 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24160 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24161 { (exit 1); exit 1; }; }
24162 if test -r "${HOME}/pwlib/include/ptlib.h"; then
24163 eval "$as_ac_File=yes"
24164 else
24165 eval "$as_ac_File=no"
24168 ac_res=`eval echo '${'$as_ac_File'}'`
24169 { echo "$as_me:$LINENO: result: $ac_res" >&5
24170 echo "${ECHO_T}$ac_res" >&6; }
24171 if test `eval echo '${'$as_ac_File'}'` = yes; then
24172 HAS_PWLIB=1
24175 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24176 PWLIBDIR="${HOME}/pwlib"
24177 else
24178 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24179 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24180 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183 test "$cross_compiling" = yes &&
24184 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24185 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24186 { (exit 1); exit 1; }; }
24187 if test -r "/usr/local/include/ptlib.h"; then
24188 ac_cv_file__usr_local_include_ptlib_h=yes
24189 else
24190 ac_cv_file__usr_local_include_ptlib_h=no
24193 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
24194 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
24195 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
24196 HAS_PWLIB=1
24199 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24200 # Extract the first word of "ptlib-config", so it can be a program name with args.
24201 set dummy ptlib-config; ac_word=$2
24202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24204 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 else
24207 case $PTLIB_CONFIG in
24208 [\\/]* | ?:[\\/]*)
24209 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24213 for as_dir in /usr/local/bin
24215 IFS=$as_save_IFS
24216 test -z "$as_dir" && as_dir=.
24217 for ac_exec_ext in '' $ac_executable_extensions; do
24218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24219 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24221 break 2
24223 done
24224 done
24225 IFS=$as_save_IFS
24228 esac
24230 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24231 if test -n "$PTLIB_CONFIG"; then
24232 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24233 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24234 else
24235 { echo "$as_me:$LINENO: result: no" >&5
24236 echo "${ECHO_T}no" >&6; }
24240 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
24241 # Extract the first word of "ptlib-config", so it can be a program name with args.
24242 set dummy ptlib-config; ac_word=$2
24243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24245 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24247 else
24248 case $PTLIB_CONFIG in
24249 [\\/]* | ?:[\\/]*)
24250 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24254 for as_dir in /usr/local/share/pwlib/make
24256 IFS=$as_save_IFS
24257 test -z "$as_dir" && as_dir=.
24258 for ac_exec_ext in '' $ac_executable_extensions; do
24259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24260 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24262 break 2
24264 done
24265 done
24266 IFS=$as_save_IFS
24269 esac
24271 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24272 if test -n "$PTLIB_CONFIG"; then
24273 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24274 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24275 else
24276 { echo "$as_me:$LINENO: result: no" >&5
24277 echo "${ECHO_T}no" >&6; }
24282 PWLIB_INCDIR="/usr/local/include"
24283 PWLIB_LIBDIR="/usr/local/lib"
24284 else
24285 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
24286 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
24287 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290 test "$cross_compiling" = yes &&
24291 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24292 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24293 { (exit 1); exit 1; }; }
24294 if test -r "/usr/include/ptlib.h"; then
24295 ac_cv_file__usr_include_ptlib_h=yes
24296 else
24297 ac_cv_file__usr_include_ptlib_h=no
24300 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
24301 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
24302 if test $ac_cv_file__usr_include_ptlib_h = yes; then
24303 HAS_PWLIB=1
24306 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24307 # Extract the first word of "ptlib-config", so it can be a program name with args.
24308 set dummy ptlib-config; ac_word=$2
24309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24311 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24313 else
24314 case $PTLIB_CONFIG in
24315 [\\/]* | ?:[\\/]*)
24316 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24320 for as_dir in /usr/share/pwlib/make
24322 IFS=$as_save_IFS
24323 test -z "$as_dir" && as_dir=.
24324 for ac_exec_ext in '' $ac_executable_extensions; do
24325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24326 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24328 break 2
24330 done
24331 done
24332 IFS=$as_save_IFS
24335 esac
24337 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24338 if test -n "$PTLIB_CONFIG"; then
24339 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24340 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24341 else
24342 { echo "$as_me:$LINENO: result: no" >&5
24343 echo "${ECHO_T}no" >&6; }
24347 PWLIB_INCDIR="/usr/include"
24348 PWLIB_LIBDIR="/usr/lib"
24355 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
24356 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
24357 # exit
24360 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24361 if test "${PWLIBDIR:-unset}" = "unset" ; then
24362 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
24363 PWLIBDIR=`$PTLIB_CONFIG --prefix`
24364 else
24365 echo "Cannot find ptlib-config - please install and try again"
24366 exit
24370 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
24371 PWLIBDIR="/usr/share/pwlib"
24372 PWLIB_INCDIR="/usr/include"
24373 PWLIB_LIBDIR="/usr/lib"
24375 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
24376 PWLIBDIR="/usr/local/share/pwlib"
24377 PWLIB_INCDIR="/usr/local/include"
24378 PWLIB_LIBDIR="/usr/local/lib"
24381 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
24382 PWLIB_INCDIR="${PWLIBDIR}/include"
24384 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24385 PWLIB_LIBDIR="${PWLIBDIR}/lib"
24394 if test "${HAS_PWLIB:-unset}" != "unset"; then
24395 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24396 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
24397 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
24398 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
24399 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
24400 let PWLIB_REQ=1*10000+9*100+2
24402 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
24403 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24404 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
24405 { echo "$as_me:$LINENO: result: no" >&5
24406 echo "${ECHO_T}no" >&6; }
24407 unset HAS_PWLIB
24408 else
24409 { echo "$as_me:$LINENO: result: yes" >&5
24410 echo "${ECHO_T}yes" >&6; }
24415 if test "${HAS_PWLIB:-unset}" != "unset"; then
24417 PWLIB_OSTYPE=
24418 case "$host_os" in
24419 linux*) PWLIB_OSTYPE=linux ;
24421 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
24423 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
24424 ENDLDLIBS="-lossaudio" ;
24426 netbsd* ) PWLIB_OSTYPE=NetBSD ;
24427 ENDLDLIBS="-lossaudio" ;
24429 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
24431 darwin* ) PWLIB_OSTYPE=Darwin ;
24433 beos*) PWLIB_OSTYPE=beos ;
24434 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
24436 cygwin*) PWLIB_OSTYPE=cygwin ;
24438 mingw*) PWLIB_OSTYPE=mingw ;
24439 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
24440 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
24442 * ) PWLIB_OSTYPE="$host_os" ;
24443 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
24444 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
24446 esac
24448 PWLIB_MACHTYPE=
24449 case "$host_cpu" in
24450 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
24453 x86_64) PWLIB_MACHTYPE=x86_64 ;
24454 P_64BIT=1 ;
24455 LIB64=1 ;
24458 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
24459 P_64BIT=1 ;
24462 sparc ) PWLIB_MACHTYPE=sparc ;
24465 powerpc ) PWLIB_MACHTYPE=ppc ;
24468 ppc ) PWLIB_MACHTYPE=ppc ;
24471 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
24472 P_64BIT=1 ;
24473 LIB64=1 ;
24476 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
24477 P_64BIT=1 ;
24478 LIB64=1 ;
24481 ia64) PWLIB_MACHTYPE=ia64 ;
24482 P_64BIT=1 ;
24485 s390x) PWLIB_MACHTYPE=s390x ;
24486 P_64BIT=1 ;
24487 LIB64=1 ;
24490 s390) PWLIB_MACHTYPE=s390 ;
24493 * ) PWLIB_MACHTYPE="$host_cpu";
24494 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24495 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24496 esac
24498 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24503 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24506 if test "${HAS_PWLIB:-unset}" != "unset"; then
24507 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24508 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24510 saved_cppflags="${CPPFLAGS}"
24511 saved_libs="${LIBS}"
24512 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24513 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24515 ac_ext=cpp
24516 ac_cpp='$CXXCPP $CPPFLAGS'
24517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h. */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include "ptlib.h"
24530 main ()
24532 BOOL q = PTime::IsDaylightSavings();
24534 return 0;
24536 _ACEOF
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_link") 2>conftest.er1
24545 ac_status=$?
24546 grep -v '^ *+' conftest.er1 >conftest.err
24547 rm -f conftest.er1
24548 cat conftest.err >&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } &&
24551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24552 { (case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_try") 2>&5
24558 ac_status=$?
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; } &&
24561 { ac_try='test -s conftest$ac_exeext'
24562 { (case "(($ac_try" in
24563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564 *) ac_try_echo=$ac_try;;
24565 esac
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567 (eval "$ac_try") 2>&5
24568 ac_status=$?
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
24571 { echo "$as_me:$LINENO: result: yes" >&5
24572 echo "${ECHO_T}yes" >&6; }
24573 ac_cv_lib_PWLIB="yes"
24575 else
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24579 { echo "$as_me:$LINENO: result: no" >&5
24580 echo "${ECHO_T}no" >&6; }
24581 ac_cv_lib_PWLIB="no"
24586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24587 conftest$ac_exeext conftest.$ac_ext
24589 ac_ext=c
24590 ac_cpp='$CPP $CPPFLAGS'
24591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24596 LIBS="${saved_libs}"
24597 CPPFLAGS="${saved_cppflags}"
24599 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24600 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24601 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24602 else
24603 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24605 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24606 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24608 PBX_PWLIB=1
24610 cat >>confdefs.h <<\_ACEOF
24611 #define HAVE_PWLIB 1
24612 _ACEOF
24620 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24621 { echo "$as_me:$LINENO: ***" >&5
24622 echo "$as_me: ***" >&6;}
24623 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24624 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24625 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24626 echo "$as_me: *** Either correct the installation" >&or run configure;}
24627 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24628 echo "$as_me: *** including --without-pwlib" >&6;}
24629 exit 1
24632 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24633 if test ! -z "${OPENH323_DIR}"; then
24634 OPENH323DIR="${OPENH323_DIR}"
24637 OPENH323_INCDIR=
24638 OPENH323_LIBDIR=
24639 if test "${OPENH323DIR:-unset}" != "unset" ; then
24640 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
24641 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24642 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24643 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646 test "$cross_compiling" = yes &&
24647 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24648 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24649 { (exit 1); exit 1; }; }
24650 if test -r "${OPENH323DIR}/version.h"; then
24651 eval "$as_ac_File=yes"
24652 else
24653 eval "$as_ac_File=no"
24656 ac_res=`eval echo '${'$as_ac_File'}'`
24657 { echo "$as_me:$LINENO: result: $ac_res" >&5
24658 echo "${ECHO_T}$ac_res" >&6; }
24659 if test `eval echo '${'$as_ac_File'}'` = yes; then
24660 HAS_OPENH323=1
24664 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24665 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
24666 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24667 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24668 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24670 else
24671 test "$cross_compiling" = yes &&
24672 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24673 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24674 { (exit 1); exit 1; }; }
24675 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24676 eval "$as_ac_File=yes"
24677 else
24678 eval "$as_ac_File=no"
24681 ac_res=`eval echo '${'$as_ac_File'}'`
24682 { echo "$as_me:$LINENO: result: $ac_res" >&5
24683 echo "${ECHO_T}$ac_res" >&6; }
24684 if test `eval echo '${'$as_ac_File'}'` = yes; then
24685 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24688 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24689 OPENH323DIR="${PWLIBDIR}/../openh323"
24690 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
24691 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24692 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24693 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24695 else
24696 test "$cross_compiling" = yes &&
24697 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24698 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24699 { (exit 1); exit 1; }; }
24700 if test -r "${OPENH323DIR}/include/h323.h"; then
24701 eval "$as_ac_File=yes"
24702 else
24703 eval "$as_ac_File=no"
24706 ac_res=`eval echo '${'$as_ac_File'}'`
24707 { echo "$as_me:$LINENO: result: $ac_res" >&5
24708 echo "${ECHO_T}$ac_res" >&6; }
24709 if test `eval echo '${'$as_ac_File'}'` = yes; then
24711 else
24712 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24715 else
24716 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
24717 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24718 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24719 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722 test "$cross_compiling" = yes &&
24723 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24724 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24725 { (exit 1); exit 1; }; }
24726 if test -r "${HOME}/openh323/include/h323.h"; then
24727 eval "$as_ac_File=yes"
24728 else
24729 eval "$as_ac_File=no"
24732 ac_res=`eval echo '${'$as_ac_File'}'`
24733 { echo "$as_me:$LINENO: result: $ac_res" >&5
24734 echo "${ECHO_T}$ac_res" >&6; }
24735 if test `eval echo '${'$as_ac_File'}'` = yes; then
24736 HAS_OPENH323=1
24739 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24740 OPENH323DIR="${HOME}/openh323"
24741 else
24742 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
24743 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
24744 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24746 else
24747 test "$cross_compiling" = yes &&
24748 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24749 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24750 { (exit 1); exit 1; }; }
24751 if test -r "/usr/local/include/openh323/h323.h"; then
24752 ac_cv_file__usr_local_include_openh323_h323_h=yes
24753 else
24754 ac_cv_file__usr_local_include_openh323_h323_h=no
24757 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
24758 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
24759 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
24760 HAS_OPENH323=1
24763 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24764 OPENH323DIR="/usr/local/share/openh323"
24765 OPENH323_INCDIR="/usr/local/include/openh323"
24766 OPENH323_LIBDIR="/usr/local/lib"
24767 else
24768 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
24769 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
24770 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773 test "$cross_compiling" = yes &&
24774 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24775 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24776 { (exit 1); exit 1; }; }
24777 if test -r "/usr/include/openh323/h323.h"; then
24778 ac_cv_file__usr_include_openh323_h323_h=yes
24779 else
24780 ac_cv_file__usr_include_openh323_h323_h=no
24783 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
24784 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
24785 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
24786 HAS_OPENH323=1
24789 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24790 OPENH323DIR="/usr/share/openh323"
24791 OPENH323_INCDIR="/usr/include/openh323"
24792 OPENH323_LIBDIR="/usr/lib"
24799 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24800 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
24801 OPENH323_INCDIR="${OPENH323DIR}/include"
24803 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
24804 OPENH323_LIBDIR="${OPENH323DIR}/lib"
24813 if test "${HAS_OPENH323:-unset}" != "unset"; then
24814 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24815 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
24816 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
24817 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
24818 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
24819 let OPENH323_REQ=1*10000+17*100+3
24821 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
24822 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24823 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
24824 { echo "$as_me:$LINENO: result: no" >&5
24825 echo "${ECHO_T}no" >&6; }
24826 unset HAS_OPENH323
24827 else
24828 { echo "$as_me:$LINENO: result: yes" >&5
24829 echo "${ECHO_T}yes" >&6; }
24834 if test "${HAS_OPENH323:-unset}" != "unset"; then
24835 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
24836 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
24837 OPENH323_SUFFIX=
24838 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
24839 libfile=
24840 if test -n "$files"; then
24841 for f in $files; do
24842 if test -f $f -a ! -L $f; then
24843 libfile=`basename $f`
24844 break;
24846 done
24848 if test "${libfile:-unset}" != "unset"; then
24849 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
24851 case "${OPENH323_SUFFIX}" in
24853 OPENH323_BUILD="notrace";;
24855 OPENH323_BUILD="opt";;
24857 OPENH323_BUILD="debug";;
24859 OPENH323_BUILD="notrace";;
24860 esac
24861 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
24862 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
24868 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
24870 if test "${HAS_OPENH323:-unset}" != "unset"; then
24871 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
24872 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
24874 saved_cppflags="${CPPFLAGS}"
24875 saved_libs="${LIBS}"
24876 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
24877 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
24879 ac_ext=cpp
24880 ac_cpp='$CXXCPP $CPPFLAGS'
24881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24886 cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h. */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 #include "ptlib.h"
24893 #include "h323.h"
24894 #include "h323ep.h"
24896 main ()
24898 H323EndPoint ep = H323EndPoint();
24900 return 0;
24902 _ACEOF
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_link") 2>conftest.er1
24911 ac_status=$?
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } &&
24917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24918 { (case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921 esac
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_try") 2>&5
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; } &&
24927 { ac_try='test -s conftest$ac_exeext'
24928 { (case "(($ac_try" in
24929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930 *) ac_try_echo=$ac_try;;
24931 esac
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933 (eval "$ac_try") 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; }; then
24937 { echo "$as_me:$LINENO: result: yes" >&5
24938 echo "${ECHO_T}yes" >&6; }
24939 ac_cv_lib_OPENH323="yes"
24941 else
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 { echo "$as_me:$LINENO: result: no" >&5
24946 echo "${ECHO_T}no" >&6; }
24947 ac_cv_lib_OPENH323="no"
24952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24953 conftest$ac_exeext conftest.$ac_ext
24955 ac_ext=c
24956 ac_cpp='$CPP $CPPFLAGS'
24957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24962 LIBS="${saved_libs}"
24963 CPPFLAGS="${saved_cppflags}"
24965 if test "${ac_cv_lib_OPENH323}" = "yes"; then
24966 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
24967 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
24968 else
24969 OPENH323_LIB="-l${PLATFORM_OPENH323}"
24971 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
24972 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
24974 PBX_OPENH323=1
24976 cat >>confdefs.h <<\_ACEOF
24977 #define HAVE_OPENH323 1
24978 _ACEOF
24984 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
24985 { echo "$as_me:$LINENO: ***" >&5
24986 echo "$as_me: ***" >&6;}
24987 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
24988 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
24989 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24990 echo "$as_me: *** Either correct the installation" >&or run configure;}
24991 { echo "$as_me:$LINENO: *** including --without-h323" >&5
24992 echo "$as_me: *** including --without-h323" >&6;}
24993 exit 1
24997 ac_ext=cpp
24998 ac_cpp='$CXXCPP $CPPFLAGS'
24999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25004 if test "${USE_QT}" != "no"; then
25005 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
25006 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
25007 saved_libs="${LIBS}"
25008 saved_cppflags="${CPPFLAGS}"
25009 if test "x${QT_DIR}" != "x"; then
25010 LIBS="${LIBS} -L${QT_DIR}/lib"
25011 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25013 LIBS="${LIBS} -lqt"
25014 qtlib="qt"
25015 cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h. */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 #include <qt3/qdatetime.h>
25024 main ()
25026 QDate date();
25028 return 0;
25031 _ACEOF
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (ac_try="$ac_link"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037 esac
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_link") 2>conftest.er1
25040 ac_status=$?
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
25046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25047 { (case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_try") 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest$ac_exeext'
25057 { (case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25060 esac
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_try") 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_lib_qt_qt_date="yes"
25067 else
25068 echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25071 ac_cv_lib_qt_qt_date="no"
25074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25075 conftest$ac_exeext conftest.$ac_ext
25076 LIBS="${saved_libs}"
25077 CPPFLAGS="${saved_cppflags}"
25079 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
25080 saved_libs="${LIBS}"
25081 saved_cppflags="${CPPFLAGS}"
25082 if test "x${QT_DIR}" != "x"; then
25083 LIBS="${LIBS} -L${QT_DIR}/lib"
25084 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25086 LIBS="${LIBS} -lqt-mt"
25087 qtlib="qt-mt"
25088 cat >conftest.$ac_ext <<_ACEOF
25090 /* confdefs.h. */
25091 _ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h. */
25095 #include <qt3/qdatetime.h>
25097 main ()
25099 QDate date();
25101 return 0;
25104 _ACEOF
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25110 esac
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_link") 2>conftest.er1
25113 ac_status=$?
25114 grep -v '^ *+' conftest.er1 >conftest.err
25115 rm -f conftest.er1
25116 cat conftest.err >&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); } &&
25119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25120 { (case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_try") 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; } &&
25129 { ac_try='test -s conftest$ac_exeext'
25130 { (case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25133 esac
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135 (eval "$ac_try") 2>&5
25136 ac_status=$?
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; }; then
25139 ac_cv_lib_qt_qt_date="yes"
25140 else
25141 echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25144 ac_cv_lib_qt_qt_date="no"
25147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25148 conftest$ac_exeext conftest.$ac_ext
25149 LIBS="${saved_libs}"
25150 CPPFLAGS="${saved_cppflags}"
25153 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25154 { echo "$as_me:$LINENO: result: yes" >&5
25155 echo "${ECHO_T}yes" >&6; }
25156 else
25157 { echo "$as_me:$LINENO: result: no" >&5
25158 echo "${ECHO_T}no" >&6; }
25161 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25162 QT_LIB="-l${qtlib}"
25163 if test "${QT_DIR}" != ""; then
25164 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
25165 QT_INCLUDE="-I${QT_DIR}/include"
25167 PBX_QT=1
25169 cat >>confdefs.h <<\_ACEOF
25170 #define HAVE_QT 1
25171 _ACEOF
25173 if test -n "$ac_tool_prefix"; then
25174 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
25175 set dummy ${ac_tool_prefix}moc; ac_word=$2
25176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25178 if test "${ac_cv_path_QTMOC+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25180 else
25181 case $QTMOC in
25182 [\\/]* | ?:[\\/]*)
25183 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
25186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25187 for as_dir in $PATH
25189 IFS=$as_save_IFS
25190 test -z "$as_dir" && as_dir=.
25191 for ac_exec_ext in '' $ac_executable_extensions; do
25192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25193 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25195 break 2
25197 done
25198 done
25199 IFS=$as_save_IFS
25202 esac
25204 QTMOC=$ac_cv_path_QTMOC
25205 if test -n "$QTMOC"; then
25206 { echo "$as_me:$LINENO: result: $QTMOC" >&5
25207 echo "${ECHO_T}$QTMOC" >&6; }
25208 else
25209 { echo "$as_me:$LINENO: result: no" >&5
25210 echo "${ECHO_T}no" >&6; }
25215 if test -z "$ac_cv_path_QTMOC"; then
25216 ac_pt_QTMOC=$QTMOC
25217 # Extract the first word of "moc", so it can be a program name with args.
25218 set dummy moc; ac_word=$2
25219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25221 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25223 else
25224 case $ac_pt_QTMOC in
25225 [\\/]* | ?:[\\/]*)
25226 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
25229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25230 for as_dir in $PATH
25232 IFS=$as_save_IFS
25233 test -z "$as_dir" && as_dir=.
25234 for ac_exec_ext in '' $ac_executable_extensions; do
25235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25236 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25238 break 2
25240 done
25241 done
25242 IFS=$as_save_IFS
25245 esac
25247 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
25248 if test -n "$ac_pt_QTMOC"; then
25249 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
25250 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
25251 else
25252 { echo "$as_me:$LINENO: result: no" >&5
25253 echo "${ECHO_T}no" >&6; }
25256 if test "x$ac_pt_QTMOC" = x; then
25257 QTMOC="No"
25258 else
25259 case $cross_compiling:$ac_tool_warned in
25260 yes:)
25261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25262 whose name does not start with the host triplet. If you think this
25263 configuration is useful to you, please write to autoconf@gnu.org." >&5
25264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25265 whose name does not start with the host triplet. If you think this
25266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25267 ac_tool_warned=yes ;;
25268 esac
25269 QTMOC=$ac_pt_QTMOC
25271 else
25272 QTMOC="$ac_cv_path_QTMOC"
25275 elif test ! -z "${QT_MANDATORY}";
25276 then
25277 { echo "$as_me:$LINENO: ***" >&5
25278 echo "$as_me: ***" >&6;}
25279 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
25280 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
25281 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25282 echo "$as_me: *** Either correct the installation" >&or run configure;}
25283 { echo "$as_me:$LINENO: *** including --without-qt." >&5
25284 echo "$as_me: *** including --without-qt." >&6;}
25285 exit 1
25289 ac_ext=c
25290 ac_cpp='$CPP $CPPFLAGS'
25291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25297 if test "${USE_RADIUS}" != "no"; then
25298 pbxlibdir=""
25299 if test "x${RADIUS_DIR}" != "x"; then
25300 if test -d ${RADIUS_DIR}/lib; then
25301 pbxlibdir="-L${RADIUS_DIR}/lib"
25302 else
25303 pbxlibdir="-L${RADIUS_DIR}"
25306 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
25307 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
25308 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311 ac_check_lib_save_LIBS=$LIBS
25312 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
25313 cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h. */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25320 /* Override any GCC internal prototype to avoid an error.
25321 Use char because int might match the return type of a GCC
25322 builtin and then its argument prototype would still apply. */
25323 #ifdef __cplusplus
25324 extern "C"
25325 #endif
25326 char rc_read_config ();
25328 main ()
25330 return rc_read_config ();
25332 return 0;
25334 _ACEOF
25335 rm -f conftest.$ac_objext conftest$ac_exeext
25336 if { (ac_try="$ac_link"
25337 case "(($ac_try" in
25338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25340 esac
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342 (eval "$ac_link") 2>conftest.er1
25343 ac_status=$?
25344 grep -v '^ *+' conftest.er1 >conftest.err
25345 rm -f conftest.er1
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25350 { (case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_try") 2>&5
25356 ac_status=$?
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); }; } &&
25359 { ac_try='test -s conftest$ac_exeext'
25360 { (case "(($ac_try" in
25361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25363 esac
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365 (eval "$ac_try") 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; }; then
25369 ac_cv_lib_radiusclient_ng_rc_read_config=yes
25370 else
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_cv_lib_radiusclient_ng_rc_read_config=no
25377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25378 conftest$ac_exeext conftest.$ac_ext
25379 LIBS=$ac_check_lib_save_LIBS
25381 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
25382 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
25383 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
25384 AST_RADIUS_FOUND=yes
25385 else
25386 AST_RADIUS_FOUND=no
25390 if test "${AST_RADIUS_FOUND}" = "yes"; then
25391 RADIUS_LIB="-lradiusclient-ng "
25392 RADIUS_HEADER_FOUND="1"
25393 if test "x${RADIUS_DIR}" != "x"; then
25394 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
25395 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
25396 if test "xradiusclient-ng.h" != "x" ; then
25397 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
25398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25399 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25400 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 ac_res=`eval echo '${'$as_ac_Header'}'`
25405 { echo "$as_me:$LINENO: result: $ac_res" >&5
25406 echo "${ECHO_T}$ac_res" >&6; }
25407 else
25408 # Is the header compilable?
25409 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
25410 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
25411 cat >conftest.$ac_ext <<_ACEOF
25412 /* confdefs.h. */
25413 _ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h. */
25417 $ac_includes_default
25418 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25419 _ACEOF
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424 *) ac_try_echo=$ac_try;;
25425 esac
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427 (eval "$ac_compile") 2>conftest.er1
25428 ac_status=$?
25429 grep -v '^ *+' conftest.er1 >conftest.err
25430 rm -f conftest.er1
25431 cat conftest.err >&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25435 { (case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25438 esac
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_try") 2>&5
25441 ac_status=$?
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; } &&
25444 { ac_try='test -s conftest.$ac_objext'
25445 { (case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_try") 2>&5
25451 ac_status=$?
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); }; }; then
25454 ac_header_compiler=yes
25455 else
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25459 ac_header_compiler=no
25462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25464 echo "${ECHO_T}$ac_header_compiler" >&6; }
25466 # Is the header present?
25467 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
25468 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
25469 cat >conftest.$ac_ext <<_ACEOF
25470 /* confdefs.h. */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25475 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25476 _ACEOF
25477 if { (ac_try="$ac_cpp conftest.$ac_ext"
25478 case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25481 esac
25482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25484 ac_status=$?
25485 grep -v '^ *+' conftest.er1 >conftest.err
25486 rm -f conftest.er1
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } >/dev/null; then
25490 if test -s conftest.err; then
25491 ac_cpp_err=$ac_c_preproc_warn_flag
25492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25493 else
25494 ac_cpp_err=
25496 else
25497 ac_cpp_err=yes
25499 if test -z "$ac_cpp_err"; then
25500 ac_header_preproc=yes
25501 else
25502 echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25505 ac_header_preproc=no
25508 rm -f conftest.err conftest.$ac_ext
25509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25510 echo "${ECHO_T}$ac_header_preproc" >&6; }
25512 # So? What about this header?
25513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25514 yes:no: )
25515 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25516 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25517 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
25518 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25519 ac_header_preproc=yes
25521 no:yes:* )
25522 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
25523 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
25524 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
25525 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
25527 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25529 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25531 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25533 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25536 esac
25537 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25538 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25541 else
25542 eval "$as_ac_Header=\$ac_header_preproc"
25544 ac_res=`eval echo '${'$as_ac_Header'}'`
25545 { echo "$as_me:$LINENO: result: $ac_res" >&5
25546 echo "${ECHO_T}$ac_res" >&6; }
25549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25550 RADIUS_HEADER_FOUND=1
25551 else
25552 RADIUS_HEADER_FOUND=0
25557 else
25558 if test "xradiusclient-ng.h" != "x" ; then
25559 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25560 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25561 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25562 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25566 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25567 else
25568 # Is the header compilable?
25569 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
25570 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
25571 cat >conftest.$ac_ext <<_ACEOF
25572 /* confdefs.h. */
25573 _ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25577 $ac_includes_default
25578 #include <radiusclient-ng.h>
25579 _ACEOF
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25585 esac
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_compile") 2>conftest.er1
25588 ac_status=$?
25589 grep -v '^ *+' conftest.er1 >conftest.err
25590 rm -f conftest.er1
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } &&
25594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25595 { (case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25598 esac
25599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25600 (eval "$ac_try") 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest.$ac_objext'
25605 { (case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25608 esac
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_try") 2>&5
25611 ac_status=$?
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_header_compiler=yes
25615 else
25616 echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25619 ac_header_compiler=no
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25624 echo "${ECHO_T}$ac_header_compiler" >&6; }
25626 # Is the header present?
25627 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25628 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h. */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <radiusclient-ng.h>
25636 _ACEOF
25637 if { (ac_try="$ac_cpp conftest.$ac_ext"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641 esac
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25644 ac_status=$?
25645 grep -v '^ *+' conftest.er1 >conftest.err
25646 rm -f conftest.er1
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } >/dev/null; then
25650 if test -s conftest.err; then
25651 ac_cpp_err=$ac_c_preproc_warn_flag
25652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25653 else
25654 ac_cpp_err=
25656 else
25657 ac_cpp_err=yes
25659 if test -z "$ac_cpp_err"; then
25660 ac_header_preproc=yes
25661 else
25662 echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25665 ac_header_preproc=no
25668 rm -f conftest.err conftest.$ac_ext
25669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25670 echo "${ECHO_T}$ac_header_preproc" >&6; }
25672 # So? What about this header?
25673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25674 yes:no: )
25675 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25676 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25677 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25678 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25679 ac_header_preproc=yes
25681 no:yes:* )
25682 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25683 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25685 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25686 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25687 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25688 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25689 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25690 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25691 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25693 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25696 esac
25697 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25698 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25699 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
25704 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25705 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25708 if test $ac_cv_header_radiusclient_ng_h = yes; then
25709 RADIUS_HEADER_FOUND=1
25710 else
25711 RADIUS_HEADER_FOUND=0
25717 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25718 if test ! -z "${RADIUS_MANDATORY}" ;
25719 then
25720 { echo "$as_me:$LINENO: ***" >&5
25721 echo "$as_me: ***" >&6;}
25722 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25723 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25724 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support" >&5
25725 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support" >&or re-run configure;}
25726 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25727 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25728 exit 1
25730 RADIUS_LIB=""
25731 RADIUS_INCLUDE=""
25732 PBX_RADIUS=0
25733 else
25734 PBX_RADIUS=1
25736 cat >>confdefs.h <<_ACEOF
25737 #define HAVE_RADIUS 1
25738 _ACEOF
25741 elif test ! -z "${RADIUS_MANDATORY}";
25742 then
25743 { echo "$as_me:$LINENO: ***" >&5
25744 echo "$as_me: ***" >&6;}
25745 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
25746 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
25747 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25748 echo "$as_me: *** Either correct the installation" >&or run configure;}
25749 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25750 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25751 exit 1
25757 if test "${USE_SPEEX}" != "no"; then
25758 pbxlibdir=""
25759 if test "x${SPEEX_DIR}" != "x"; then
25760 if test -d ${SPEEX_DIR}/lib; then
25761 pbxlibdir="-L${SPEEX_DIR}/lib"
25762 else
25763 pbxlibdir="-L${SPEEX_DIR}"
25766 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
25767 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
25768 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
25769 echo $ECHO_N "(cached) $ECHO_C" >&6
25770 else
25771 ac_check_lib_save_LIBS=$LIBS
25772 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
25773 cat >conftest.$ac_ext <<_ACEOF
25774 /* confdefs.h. */
25775 _ACEOF
25776 cat confdefs.h >>conftest.$ac_ext
25777 cat >>conftest.$ac_ext <<_ACEOF
25778 /* end confdefs.h. */
25780 /* Override any GCC internal prototype to avoid an error.
25781 Use char because int might match the return type of a GCC
25782 builtin and then its argument prototype would still apply. */
25783 #ifdef __cplusplus
25784 extern "C"
25785 #endif
25786 char speex_encode ();
25788 main ()
25790 return speex_encode ();
25792 return 0;
25794 _ACEOF
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (ac_try="$ac_link"
25797 case "(($ac_try" in
25798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25799 *) ac_try_echo=$ac_try;;
25800 esac
25801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25802 (eval "$ac_link") 2>conftest.er1
25803 ac_status=$?
25804 grep -v '^ *+' conftest.er1 >conftest.err
25805 rm -f conftest.er1
25806 cat conftest.err >&5
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); } &&
25809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25810 { (case "(($ac_try" in
25811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_try") 2>&5
25816 ac_status=$?
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); }; } &&
25819 { ac_try='test -s conftest$ac_exeext'
25820 { (case "(($ac_try" in
25821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822 *) ac_try_echo=$ac_try;;
25823 esac
25824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25825 (eval "$ac_try") 2>&5
25826 ac_status=$?
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; }; then
25829 ac_cv_lib_speex_speex_encode=yes
25830 else
25831 echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25834 ac_cv_lib_speex_speex_encode=no
25837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25838 conftest$ac_exeext conftest.$ac_ext
25839 LIBS=$ac_check_lib_save_LIBS
25841 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
25842 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
25843 if test $ac_cv_lib_speex_speex_encode = yes; then
25844 AST_SPEEX_FOUND=yes
25845 else
25846 AST_SPEEX_FOUND=no
25850 if test "${AST_SPEEX_FOUND}" = "yes"; then
25851 SPEEX_LIB="-lspeex -lm"
25852 SPEEX_HEADER_FOUND="1"
25853 if test "x${SPEEX_DIR}" != "x"; then
25854 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
25855 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
25856 if test "xspeex/speex.h" != "x" ; then
25857 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
25858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25859 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25860 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25864 ac_res=`eval echo '${'$as_ac_Header'}'`
25865 { echo "$as_me:$LINENO: result: $ac_res" >&5
25866 echo "${ECHO_T}$ac_res" >&6; }
25867 else
25868 # Is the header compilable?
25869 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
25870 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
25871 cat >conftest.$ac_ext <<_ACEOF
25872 /* confdefs.h. */
25873 _ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25877 $ac_includes_default
25878 #include <${SPEEX_DIR}/include/speex/speex.h>
25879 _ACEOF
25880 rm -f conftest.$ac_objext
25881 if { (ac_try="$ac_compile"
25882 case "(($ac_try" in
25883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25884 *) ac_try_echo=$ac_try;;
25885 esac
25886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25887 (eval "$ac_compile") 2>conftest.er1
25888 ac_status=$?
25889 grep -v '^ *+' conftest.er1 >conftest.err
25890 rm -f conftest.er1
25891 cat conftest.err >&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); } &&
25894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25895 { (case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25898 esac
25899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25900 (eval "$ac_try") 2>&5
25901 ac_status=$?
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; } &&
25904 { ac_try='test -s conftest.$ac_objext'
25905 { (case "(($ac_try" in
25906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25908 esac
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910 (eval "$ac_try") 2>&5
25911 ac_status=$?
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; }; then
25914 ac_header_compiler=yes
25915 else
25916 echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25919 ac_header_compiler=no
25922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25924 echo "${ECHO_T}$ac_header_compiler" >&6; }
25926 # Is the header present?
25927 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
25928 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
25929 cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h. */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 #include <${SPEEX_DIR}/include/speex/speex.h>
25936 _ACEOF
25937 if { (ac_try="$ac_cpp conftest.$ac_ext"
25938 case "(($ac_try" in
25939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940 *) ac_try_echo=$ac_try;;
25941 esac
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25944 ac_status=$?
25945 grep -v '^ *+' conftest.er1 >conftest.err
25946 rm -f conftest.er1
25947 cat conftest.err >&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); } >/dev/null; then
25950 if test -s conftest.err; then
25951 ac_cpp_err=$ac_c_preproc_warn_flag
25952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25953 else
25954 ac_cpp_err=
25956 else
25957 ac_cpp_err=yes
25959 if test -z "$ac_cpp_err"; then
25960 ac_header_preproc=yes
25961 else
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 ac_header_preproc=no
25968 rm -f conftest.err conftest.$ac_ext
25969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25970 echo "${ECHO_T}$ac_header_preproc" >&6; }
25972 # So? What about this header?
25973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25974 yes:no: )
25975 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25976 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
25978 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
25979 ac_header_preproc=yes
25981 no:yes:* )
25982 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
25983 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
25985 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
25987 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25989 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
25991 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
25993 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
25996 esac
25997 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25998 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002 eval "$as_ac_Header=\$ac_header_preproc"
26004 ac_res=`eval echo '${'$as_ac_Header'}'`
26005 { echo "$as_me:$LINENO: result: $ac_res" >&5
26006 echo "${ECHO_T}$ac_res" >&6; }
26009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26010 SPEEX_HEADER_FOUND=1
26011 else
26012 SPEEX_HEADER_FOUND=0
26017 else
26018 if test "xspeex/speex.h" != "x" ; then
26019 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26020 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26021 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26022 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26026 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26027 else
26028 # Is the header compilable?
26029 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
26030 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
26031 cat >conftest.$ac_ext <<_ACEOF
26032 /* confdefs.h. */
26033 _ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26037 $ac_includes_default
26038 #include <speex/speex.h>
26039 _ACEOF
26040 rm -f conftest.$ac_objext
26041 if { (ac_try="$ac_compile"
26042 case "(($ac_try" in
26043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26045 esac
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047 (eval "$ac_compile") 2>conftest.er1
26048 ac_status=$?
26049 grep -v '^ *+' conftest.er1 >conftest.err
26050 rm -f conftest.er1
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } &&
26054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26055 { (case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_try") 2>&5
26061 ac_status=$?
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; } &&
26064 { ac_try='test -s conftest.$ac_objext'
26065 { (case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_try") 2>&5
26071 ac_status=$?
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; }; then
26074 ac_header_compiler=yes
26075 else
26076 echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26079 ac_header_compiler=no
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26084 echo "${ECHO_T}$ac_header_compiler" >&6; }
26086 # Is the header present?
26087 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26088 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26089 cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h. */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 #include <speex/speex.h>
26096 _ACEOF
26097 if { (ac_try="$ac_cpp conftest.$ac_ext"
26098 case "(($ac_try" in
26099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26100 *) ac_try_echo=$ac_try;;
26101 esac
26102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26104 ac_status=$?
26105 grep -v '^ *+' conftest.er1 >conftest.err
26106 rm -f conftest.er1
26107 cat conftest.err >&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } >/dev/null; then
26110 if test -s conftest.err; then
26111 ac_cpp_err=$ac_c_preproc_warn_flag
26112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26113 else
26114 ac_cpp_err=
26116 else
26117 ac_cpp_err=yes
26119 if test -z "$ac_cpp_err"; then
26120 ac_header_preproc=yes
26121 else
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26125 ac_header_preproc=no
26128 rm -f conftest.err conftest.$ac_ext
26129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26130 echo "${ECHO_T}$ac_header_preproc" >&6; }
26132 # So? What about this header?
26133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26134 yes:no: )
26135 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26136 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26137 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26138 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26139 ac_header_preproc=yes
26141 no:yes:* )
26142 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26143 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26145 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26146 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26147 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26149 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26151 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26153 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26156 esac
26157 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26158 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26159 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26160 echo $ECHO_N "(cached) $ECHO_C" >&6
26161 else
26162 ac_cv_header_speex_speex_h=$ac_header_preproc
26164 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26165 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26168 if test $ac_cv_header_speex_speex_h = yes; then
26169 SPEEX_HEADER_FOUND=1
26170 else
26171 SPEEX_HEADER_FOUND=0
26177 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
26178 if test ! -z "${SPEEX_MANDATORY}" ;
26179 then
26180 { echo "$as_me:$LINENO: ***" >&5
26181 echo "$as_me: ***" >&6;}
26182 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
26183 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
26184 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support" >&5
26185 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support" >&or re-run configure;}
26186 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26187 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26188 exit 1
26190 SPEEX_LIB=""
26191 SPEEX_INCLUDE=""
26192 PBX_SPEEX=0
26193 else
26194 PBX_SPEEX=1
26196 cat >>confdefs.h <<_ACEOF
26197 #define HAVE_SPEEX 1
26198 _ACEOF
26201 elif test ! -z "${SPEEX_MANDATORY}";
26202 then
26203 { echo "$as_me:$LINENO: ***" >&5
26204 echo "$as_me: ***" >&6;}
26205 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
26206 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
26207 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26208 echo "$as_me: *** Either correct the installation" >&or run configure;}
26209 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26210 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26211 exit 1
26217 if test "${USE_SQLITE}" != "no"; then
26218 pbxlibdir=""
26219 if test "x${SQLITE_DIR}" != "x"; then
26220 if test -d ${SQLITE_DIR}/lib; then
26221 pbxlibdir="-L${SQLITE_DIR}/lib"
26222 else
26223 pbxlibdir="-L${SQLITE_DIR}"
26226 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
26227 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
26228 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26230 else
26231 ac_check_lib_save_LIBS=$LIBS
26232 LIBS="-lsqlite ${pbxlibdir} $LIBS"
26233 cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h. */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26240 /* Override any GCC internal prototype to avoid an error.
26241 Use char because int might match the return type of a GCC
26242 builtin and then its argument prototype would still apply. */
26243 #ifdef __cplusplus
26244 extern "C"
26245 #endif
26246 char sqlite_exec ();
26248 main ()
26250 return sqlite_exec ();
26252 return 0;
26254 _ACEOF
26255 rm -f conftest.$ac_objext conftest$ac_exeext
26256 if { (ac_try="$ac_link"
26257 case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26260 esac
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_link") 2>conftest.er1
26263 ac_status=$?
26264 grep -v '^ *+' conftest.er1 >conftest.err
26265 rm -f conftest.er1
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } &&
26269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26270 { (case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26273 esac
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275 (eval "$ac_try") 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; } &&
26279 { ac_try='test -s conftest$ac_exeext'
26280 { (case "(($ac_try" in
26281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26283 esac
26284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26285 (eval "$ac_try") 2>&5
26286 ac_status=$?
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; }; then
26289 ac_cv_lib_sqlite_sqlite_exec=yes
26290 else
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ac_cv_lib_sqlite_sqlite_exec=no
26297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26298 conftest$ac_exeext conftest.$ac_ext
26299 LIBS=$ac_check_lib_save_LIBS
26301 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
26302 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
26303 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
26304 AST_SQLITE_FOUND=yes
26305 else
26306 AST_SQLITE_FOUND=no
26310 if test "${AST_SQLITE_FOUND}" = "yes"; then
26311 SQLITE_LIB="-lsqlite "
26312 SQLITE_HEADER_FOUND="1"
26313 if test "x${SQLITE_DIR}" != "x"; then
26314 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
26315 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
26316 if test "xsqlite.h" != "x" ; then
26317 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
26318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26319 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26320 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26322 echo $ECHO_N "(cached) $ECHO_C" >&6
26324 ac_res=`eval echo '${'$as_ac_Header'}'`
26325 { echo "$as_me:$LINENO: result: $ac_res" >&5
26326 echo "${ECHO_T}$ac_res" >&6; }
26327 else
26328 # Is the header compilable?
26329 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
26330 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
26331 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h. */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h. */
26337 $ac_includes_default
26338 #include <${SQLITE_DIR}/include/sqlite.h>
26339 _ACEOF
26340 rm -f conftest.$ac_objext
26341 if { (ac_try="$ac_compile"
26342 case "(($ac_try" in
26343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344 *) ac_try_echo=$ac_try;;
26345 esac
26346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26347 (eval "$ac_compile") 2>conftest.er1
26348 ac_status=$?
26349 grep -v '^ *+' conftest.er1 >conftest.err
26350 rm -f conftest.er1
26351 cat conftest.err >&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } &&
26354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26355 { (case "(($ac_try" in
26356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26357 *) ac_try_echo=$ac_try;;
26358 esac
26359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26360 (eval "$ac_try") 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
26364 { ac_try='test -s conftest.$ac_objext'
26365 { (case "(($ac_try" in
26366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367 *) ac_try_echo=$ac_try;;
26368 esac
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_try") 2>&5
26371 ac_status=$?
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; }; then
26374 ac_header_compiler=yes
26375 else
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 ac_header_compiler=no
26382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26384 echo "${ECHO_T}$ac_header_compiler" >&6; }
26386 # Is the header present?
26387 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
26388 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
26389 cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h. */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 #include <${SQLITE_DIR}/include/sqlite.h>
26396 _ACEOF
26397 if { (ac_try="$ac_cpp conftest.$ac_ext"
26398 case "(($ac_try" in
26399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26400 *) ac_try_echo=$ac_try;;
26401 esac
26402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26404 ac_status=$?
26405 grep -v '^ *+' conftest.er1 >conftest.err
26406 rm -f conftest.er1
26407 cat conftest.err >&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } >/dev/null; then
26410 if test -s conftest.err; then
26411 ac_cpp_err=$ac_c_preproc_warn_flag
26412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26413 else
26414 ac_cpp_err=
26416 else
26417 ac_cpp_err=yes
26419 if test -z "$ac_cpp_err"; then
26420 ac_header_preproc=yes
26421 else
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ac_header_preproc=no
26428 rm -f conftest.err conftest.$ac_ext
26429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26430 echo "${ECHO_T}$ac_header_preproc" >&6; }
26432 # So? What about this header?
26433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26434 yes:no: )
26435 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26436 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26437 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
26438 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
26439 ac_header_preproc=yes
26441 no:yes:* )
26442 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
26443 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
26444 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
26445 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
26446 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
26447 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
26448 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26449 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26450 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
26451 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
26452 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
26453 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
26456 esac
26457 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26458 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 else
26462 eval "$as_ac_Header=\$ac_header_preproc"
26464 ac_res=`eval echo '${'$as_ac_Header'}'`
26465 { echo "$as_me:$LINENO: result: $ac_res" >&5
26466 echo "${ECHO_T}$ac_res" >&6; }
26469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26470 SQLITE_HEADER_FOUND=1
26471 else
26472 SQLITE_HEADER_FOUND=0
26477 else
26478 if test "xsqlite.h" != "x" ; then
26479 if test "${ac_cv_header_sqlite_h+set}" = set; then
26480 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26481 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26482 if test "${ac_cv_header_sqlite_h+set}" = set; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26486 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26487 else
26488 # Is the header compilable?
26489 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
26490 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
26491 cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h. */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 $ac_includes_default
26498 #include <sqlite.h>
26499 _ACEOF
26500 rm -f conftest.$ac_objext
26501 if { (ac_try="$ac_compile"
26502 case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26505 esac
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_compile") 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } &&
26514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26515 { (case "(($ac_try" in
26516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26517 *) ac_try_echo=$ac_try;;
26518 esac
26519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26520 (eval "$ac_try") 2>&5
26521 ac_status=$?
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); }; } &&
26524 { ac_try='test -s conftest.$ac_objext'
26525 { (case "(($ac_try" in
26526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26528 esac
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_try") 2>&5
26531 ac_status=$?
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; }; then
26534 ac_header_compiler=yes
26535 else
26536 echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.$ac_ext >&5
26539 ac_header_compiler=no
26542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26544 echo "${ECHO_T}$ac_header_compiler" >&6; }
26546 # Is the header present?
26547 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
26548 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
26549 cat >conftest.$ac_ext <<_ACEOF
26550 /* confdefs.h. */
26551 _ACEOF
26552 cat confdefs.h >>conftest.$ac_ext
26553 cat >>conftest.$ac_ext <<_ACEOF
26554 /* end confdefs.h. */
26555 #include <sqlite.h>
26556 _ACEOF
26557 if { (ac_try="$ac_cpp conftest.$ac_ext"
26558 case "(($ac_try" in
26559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560 *) ac_try_echo=$ac_try;;
26561 esac
26562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26564 ac_status=$?
26565 grep -v '^ *+' conftest.er1 >conftest.err
26566 rm -f conftest.er1
26567 cat conftest.err >&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } >/dev/null; then
26570 if test -s conftest.err; then
26571 ac_cpp_err=$ac_c_preproc_warn_flag
26572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26573 else
26574 ac_cpp_err=
26576 else
26577 ac_cpp_err=yes
26579 if test -z "$ac_cpp_err"; then
26580 ac_header_preproc=yes
26581 else
26582 echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26585 ac_header_preproc=no
26588 rm -f conftest.err conftest.$ac_ext
26589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26590 echo "${ECHO_T}$ac_header_preproc" >&6; }
26592 # So? What about this header?
26593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26594 yes:no: )
26595 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26596 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26597 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
26598 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
26599 ac_header_preproc=yes
26601 no:yes:* )
26602 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
26603 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
26605 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
26607 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26609 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
26611 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
26613 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
26616 esac
26617 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26618 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26619 if test "${ac_cv_header_sqlite_h+set}" = set; then
26620 echo $ECHO_N "(cached) $ECHO_C" >&6
26621 else
26622 ac_cv_header_sqlite_h=$ac_header_preproc
26624 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26625 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26628 if test $ac_cv_header_sqlite_h = yes; then
26629 SQLITE_HEADER_FOUND=1
26630 else
26631 SQLITE_HEADER_FOUND=0
26637 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
26638 if test ! -z "${SQLITE_MANDATORY}" ;
26639 then
26640 { echo "$as_me:$LINENO: ***" >&5
26641 echo "$as_me: ***" >&6;}
26642 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
26643 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
26644 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support" >&5
26645 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support" >&or re-run configure;}
26646 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26647 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26648 exit 1
26650 SQLITE_LIB=""
26651 SQLITE_INCLUDE=""
26652 PBX_SQLITE=0
26653 else
26654 PBX_SQLITE=1
26656 cat >>confdefs.h <<_ACEOF
26657 #define HAVE_SQLITE 1
26658 _ACEOF
26661 elif test ! -z "${SQLITE_MANDATORY}";
26662 then
26663 { echo "$as_me:$LINENO: ***" >&5
26664 echo "$as_me: ***" >&6;}
26665 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
26666 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
26667 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26668 echo "$as_me: *** Either correct the installation" >&or run configure;}
26669 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26670 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26671 exit 1
26677 if test "${USE_OPENSSL}" != "no"; then
26678 pbxlibdir=""
26679 if test "x${OPENSSL_DIR}" != "x"; then
26680 if test -d ${OPENSSL_DIR}/lib; then
26681 pbxlibdir="-L${OPENSSL_DIR}/lib"
26682 else
26683 pbxlibdir="-L${OPENSSL_DIR}"
26686 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
26687 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
26688 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26690 else
26691 ac_check_lib_save_LIBS=$LIBS
26692 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
26693 cat >conftest.$ac_ext <<_ACEOF
26694 /* confdefs.h. */
26695 _ACEOF
26696 cat confdefs.h >>conftest.$ac_ext
26697 cat >>conftest.$ac_ext <<_ACEOF
26698 /* end confdefs.h. */
26700 /* Override any GCC internal prototype to avoid an error.
26701 Use char because int might match the return type of a GCC
26702 builtin and then its argument prototype would still apply. */
26703 #ifdef __cplusplus
26704 extern "C"
26705 #endif
26706 char ssl2_connect ();
26708 main ()
26710 return ssl2_connect ();
26712 return 0;
26714 _ACEOF
26715 rm -f conftest.$ac_objext conftest$ac_exeext
26716 if { (ac_try="$ac_link"
26717 case "(($ac_try" in
26718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26719 *) ac_try_echo=$ac_try;;
26720 esac
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722 (eval "$ac_link") 2>conftest.er1
26723 ac_status=$?
26724 grep -v '^ *+' conftest.er1 >conftest.err
26725 rm -f conftest.er1
26726 cat conftest.err >&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
26729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26730 { (case "(($ac_try" in
26731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732 *) ac_try_echo=$ac_try;;
26733 esac
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735 (eval "$ac_try") 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; } &&
26739 { ac_try='test -s conftest$ac_exeext'
26740 { (case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_try") 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26749 ac_cv_lib_ssl_ssl2_connect=yes
26750 else
26751 echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26754 ac_cv_lib_ssl_ssl2_connect=no
26757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26758 conftest$ac_exeext conftest.$ac_ext
26759 LIBS=$ac_check_lib_save_LIBS
26761 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26762 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26763 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26764 AST_OPENSSL_FOUND=yes
26765 else
26766 AST_OPENSSL_FOUND=no
26770 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26771 OPENSSL_LIB="-lssl -lcrypto"
26772 OPENSSL_HEADER_FOUND="1"
26773 if test "x${OPENSSL_DIR}" != "x"; then
26774 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
26775 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
26776 if test "xopenssl/ssl.h" != "x" ; then
26777 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
26778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26779 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26780 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26784 ac_res=`eval echo '${'$as_ac_Header'}'`
26785 { echo "$as_me:$LINENO: result: $ac_res" >&5
26786 echo "${ECHO_T}$ac_res" >&6; }
26787 else
26788 # Is the header compilable?
26789 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26790 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26791 cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h. */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 $ac_includes_default
26798 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26799 _ACEOF
26800 rm -f conftest.$ac_objext
26801 if { (ac_try="$ac_compile"
26802 case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26805 esac
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807 (eval "$ac_compile") 2>conftest.er1
26808 ac_status=$?
26809 grep -v '^ *+' conftest.er1 >conftest.err
26810 rm -f conftest.er1
26811 cat conftest.err >&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } &&
26814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26815 { (case "(($ac_try" in
26816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817 *) ac_try_echo=$ac_try;;
26818 esac
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_try") 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest.$ac_objext'
26825 { (case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26828 esac
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_try") 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_header_compiler=yes
26835 else
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_header_compiler=no
26842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26844 echo "${ECHO_T}$ac_header_compiler" >&6; }
26846 # Is the header present?
26847 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
26848 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
26849 cat >conftest.$ac_ext <<_ACEOF
26850 /* confdefs.h. */
26851 _ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h. */
26855 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26856 _ACEOF
26857 if { (ac_try="$ac_cpp conftest.$ac_ext"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26864 ac_status=$?
26865 grep -v '^ *+' conftest.er1 >conftest.err
26866 rm -f conftest.er1
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } >/dev/null; then
26870 if test -s conftest.err; then
26871 ac_cpp_err=$ac_c_preproc_warn_flag
26872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26873 else
26874 ac_cpp_err=
26876 else
26877 ac_cpp_err=yes
26879 if test -z "$ac_cpp_err"; then
26880 ac_header_preproc=yes
26881 else
26882 echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26885 ac_header_preproc=no
26888 rm -f conftest.err conftest.$ac_ext
26889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26890 echo "${ECHO_T}$ac_header_preproc" >&6; }
26892 # So? What about this header?
26893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26894 yes:no: )
26895 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26896 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
26898 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
26899 ac_header_preproc=yes
26901 no:yes:* )
26902 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
26903 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
26904 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
26905 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26906 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
26907 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
26908 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26909 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26910 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
26911 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26912 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
26913 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26916 esac
26917 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26918 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26921 else
26922 eval "$as_ac_Header=\$ac_header_preproc"
26924 ac_res=`eval echo '${'$as_ac_Header'}'`
26925 { echo "$as_me:$LINENO: result: $ac_res" >&5
26926 echo "${ECHO_T}$ac_res" >&6; }
26929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26930 OPENSSL_HEADER_FOUND=1
26931 else
26932 OPENSSL_HEADER_FOUND=0
26937 else
26938 if test "xopenssl/ssl.h" != "x" ; then
26939 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26940 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26941 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26942 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26945 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26946 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26947 else
26948 # Is the header compilable?
26949 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
26950 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
26951 cat >conftest.$ac_ext <<_ACEOF
26952 /* confdefs.h. */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h. */
26957 $ac_includes_default
26958 #include <openssl/ssl.h>
26959 _ACEOF
26960 rm -f conftest.$ac_objext
26961 if { (ac_try="$ac_compile"
26962 case "(($ac_try" in
26963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26964 *) ac_try_echo=$ac_try;;
26965 esac
26966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26967 (eval "$ac_compile") 2>conftest.er1
26968 ac_status=$?
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26975 { (case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26978 esac
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_try") 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try='test -s conftest.$ac_objext'
26985 { (case "(($ac_try" in
26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26988 esac
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990 (eval "$ac_try") 2>&5
26991 ac_status=$?
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 ac_header_compiler=yes
26995 else
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 ac_header_compiler=no
27002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27004 echo "${ECHO_T}$ac_header_compiler" >&6; }
27006 # Is the header present?
27007 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
27008 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
27009 cat >conftest.$ac_ext <<_ACEOF
27010 /* confdefs.h. */
27011 _ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h. */
27015 #include <openssl/ssl.h>
27016 _ACEOF
27017 if { (ac_try="$ac_cpp conftest.$ac_ext"
27018 case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27024 ac_status=$?
27025 grep -v '^ *+' conftest.er1 >conftest.err
27026 rm -f conftest.er1
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } >/dev/null; then
27030 if test -s conftest.err; then
27031 ac_cpp_err=$ac_c_preproc_warn_flag
27032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27033 else
27034 ac_cpp_err=
27036 else
27037 ac_cpp_err=yes
27039 if test -z "$ac_cpp_err"; then
27040 ac_header_preproc=yes
27041 else
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27045 ac_header_preproc=no
27048 rm -f conftest.err conftest.$ac_ext
27049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27050 echo "${ECHO_T}$ac_header_preproc" >&6; }
27052 # So? What about this header?
27053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27054 yes:no: )
27055 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27056 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27057 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
27058 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
27059 ac_header_preproc=yes
27061 no:yes:* )
27062 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
27063 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
27064 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
27065 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
27066 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
27067 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
27068 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
27069 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
27071 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
27073 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27076 esac
27077 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27078 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27079 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27080 echo $ECHO_N "(cached) $ECHO_C" >&6
27081 else
27082 ac_cv_header_openssl_ssl_h=$ac_header_preproc
27084 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27085 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27088 if test $ac_cv_header_openssl_ssl_h = yes; then
27089 OPENSSL_HEADER_FOUND=1
27090 else
27091 OPENSSL_HEADER_FOUND=0
27097 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
27098 if test ! -z "${OPENSSL_MANDATORY}" ;
27099 then
27100 { echo "$as_me:$LINENO: ***" >&5
27101 echo "$as_me: ***" >&6;}
27102 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
27103 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
27104 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support" >&5
27105 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support" >&or re-run configure;}
27106 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27107 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27108 exit 1
27110 OPENSSL_LIB=""
27111 OPENSSL_INCLUDE=""
27112 PBX_OPENSSL=0
27113 else
27114 PBX_OPENSSL=1
27116 cat >>confdefs.h <<_ACEOF
27117 #define HAVE_OPENSSL 1
27118 _ACEOF
27121 elif test ! -z "${OPENSSL_MANDATORY}";
27122 then
27123 { echo "$as_me:$LINENO: ***" >&5
27124 echo "$as_me: ***" >&6;}
27125 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
27126 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
27127 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27128 echo "$as_me: *** Either correct the installation" >&or run configure;}
27129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27130 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27131 exit 1
27137 if test "${USE_FREETDS}" != "no"; then
27138 pbxlibdir=""
27139 if test "x${FREETDS_DIR}" != "x"; then
27140 if test -d ${FREETDS_DIR}/lib; then
27141 pbxlibdir="-L${FREETDS_DIR}/lib"
27142 else
27143 pbxlibdir="-L${FREETDS_DIR}"
27146 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
27147 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
27148 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27150 else
27151 ac_check_lib_save_LIBS=$LIBS
27152 LIBS="-ltds ${pbxlibdir} $LIBS"
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h. */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27160 /* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
27163 #ifdef __cplusplus
27164 extern "C"
27165 #endif
27166 char tds_version ();
27168 main ()
27170 return tds_version ();
27172 return 0;
27174 _ACEOF
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>conftest.er1
27183 ac_status=$?
27184 grep -v '^ *+' conftest.er1 >conftest.err
27185 rm -f conftest.er1
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27190 { (case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_try") 2>&5
27196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; } &&
27199 { ac_try='test -s conftest$ac_exeext'
27200 { (case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_try") 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_lib_tds_tds_version=yes
27210 else
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_cv_lib_tds_tds_version=no
27217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27218 conftest$ac_exeext conftest.$ac_ext
27219 LIBS=$ac_check_lib_save_LIBS
27221 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
27222 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
27223 if test $ac_cv_lib_tds_tds_version = yes; then
27224 AST_FREETDS_FOUND=yes
27225 else
27226 AST_FREETDS_FOUND=no
27230 if test "${AST_FREETDS_FOUND}" = "yes"; then
27231 FREETDS_LIB="-ltds "
27232 FREETDS_HEADER_FOUND="1"
27233 if test "x${FREETDS_DIR}" != "x"; then
27234 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
27235 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
27236 if test "xtds.h" != "x" ; then
27237 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
27238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27239 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27240 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27242 echo $ECHO_N "(cached) $ECHO_C" >&6
27244 ac_res=`eval echo '${'$as_ac_Header'}'`
27245 { echo "$as_me:$LINENO: result: $ac_res" >&5
27246 echo "${ECHO_T}$ac_res" >&6; }
27247 else
27248 # Is the header compilable?
27249 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
27250 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
27251 cat >conftest.$ac_ext <<_ACEOF
27252 /* confdefs.h. */
27253 _ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27257 $ac_includes_default
27258 #include <${FREETDS_DIR}/include/tds.h>
27259 _ACEOF
27260 rm -f conftest.$ac_objext
27261 if { (ac_try="$ac_compile"
27262 case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27265 esac
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_compile") 2>conftest.er1
27268 ac_status=$?
27269 grep -v '^ *+' conftest.er1 >conftest.err
27270 rm -f conftest.er1
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
27274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27275 { (case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27278 esac
27279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_try") 2>&5
27281 ac_status=$?
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; } &&
27284 { ac_try='test -s conftest.$ac_objext'
27285 { (case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27288 esac
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290 (eval "$ac_try") 2>&5
27291 ac_status=$?
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; }; then
27294 ac_header_compiler=yes
27295 else
27296 echo "$as_me: failed program was:" >&5
27297 sed 's/^/| /' conftest.$ac_ext >&5
27299 ac_header_compiler=no
27302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27304 echo "${ECHO_T}$ac_header_compiler" >&6; }
27306 # Is the header present?
27307 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
27308 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
27309 cat >conftest.$ac_ext <<_ACEOF
27310 /* confdefs.h. */
27311 _ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27315 #include <${FREETDS_DIR}/include/tds.h>
27316 _ACEOF
27317 if { (ac_try="$ac_cpp conftest.$ac_ext"
27318 case "(($ac_try" in
27319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320 *) ac_try_echo=$ac_try;;
27321 esac
27322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27324 ac_status=$?
27325 grep -v '^ *+' conftest.er1 >conftest.err
27326 rm -f conftest.er1
27327 cat conftest.err >&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); } >/dev/null; then
27330 if test -s conftest.err; then
27331 ac_cpp_err=$ac_c_preproc_warn_flag
27332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27333 else
27334 ac_cpp_err=
27336 else
27337 ac_cpp_err=yes
27339 if test -z "$ac_cpp_err"; then
27340 ac_header_preproc=yes
27341 else
27342 echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27345 ac_header_preproc=no
27348 rm -f conftest.err conftest.$ac_ext
27349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27350 echo "${ECHO_T}$ac_header_preproc" >&6; }
27352 # So? What about this header?
27353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27354 yes:no: )
27355 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27356 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27357 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
27358 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
27359 ac_header_preproc=yes
27361 no:yes:* )
27362 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
27363 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
27364 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
27365 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
27366 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
27367 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
27368 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
27369 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
27371 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
27373 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
27376 esac
27377 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27378 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27381 else
27382 eval "$as_ac_Header=\$ac_header_preproc"
27384 ac_res=`eval echo '${'$as_ac_Header'}'`
27385 { echo "$as_me:$LINENO: result: $ac_res" >&5
27386 echo "${ECHO_T}$ac_res" >&6; }
27389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27390 FREETDS_HEADER_FOUND=1
27391 else
27392 FREETDS_HEADER_FOUND=0
27397 else
27398 if test "xtds.h" != "x" ; then
27399 if test "${ac_cv_header_tds_h+set}" = set; then
27400 { echo "$as_me:$LINENO: checking for tds.h" >&5
27401 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27402 if test "${ac_cv_header_tds_h+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27406 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27407 else
27408 # Is the header compilable?
27409 { echo "$as_me:$LINENO: checking tds.h usability" >&5
27410 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
27411 cat >conftest.$ac_ext <<_ACEOF
27412 /* confdefs.h. */
27413 _ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h. */
27417 $ac_includes_default
27418 #include <tds.h>
27419 _ACEOF
27420 rm -f conftest.$ac_objext
27421 if { (ac_try="$ac_compile"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_compile") 2>conftest.er1
27428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest.$ac_objext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448 esac
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_header_compiler=yes
27455 else
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27459 ac_header_compiler=no
27462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27464 echo "${ECHO_T}$ac_header_compiler" >&6; }
27466 # Is the header present?
27467 { echo "$as_me:$LINENO: checking tds.h presence" >&5
27468 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
27469 cat >conftest.$ac_ext <<_ACEOF
27470 /* confdefs.h. */
27471 _ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h. */
27475 #include <tds.h>
27476 _ACEOF
27477 if { (ac_try="$ac_cpp conftest.$ac_ext"
27478 case "(($ac_try" in
27479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27480 *) ac_try_echo=$ac_try;;
27481 esac
27482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27484 ac_status=$?
27485 grep -v '^ *+' conftest.er1 >conftest.err
27486 rm -f conftest.er1
27487 cat conftest.err >&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } >/dev/null; then
27490 if test -s conftest.err; then
27491 ac_cpp_err=$ac_c_preproc_warn_flag
27492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27493 else
27494 ac_cpp_err=
27496 else
27497 ac_cpp_err=yes
27499 if test -z "$ac_cpp_err"; then
27500 ac_header_preproc=yes
27501 else
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 ac_header_preproc=no
27508 rm -f conftest.err conftest.$ac_ext
27509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27510 echo "${ECHO_T}$ac_header_preproc" >&6; }
27512 # So? What about this header?
27513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27514 yes:no: )
27515 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27516 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27517 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
27518 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
27519 ac_header_preproc=yes
27521 no:yes:* )
27522 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
27523 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
27525 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
27526 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
27527 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
27528 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
27529 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27530 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
27531 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
27533 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
27536 esac
27537 { echo "$as_me:$LINENO: checking for tds.h" >&5
27538 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27539 if test "${ac_cv_header_tds_h+set}" = set; then
27540 echo $ECHO_N "(cached) $ECHO_C" >&6
27541 else
27542 ac_cv_header_tds_h=$ac_header_preproc
27544 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27545 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27548 if test $ac_cv_header_tds_h = yes; then
27549 FREETDS_HEADER_FOUND=1
27550 else
27551 FREETDS_HEADER_FOUND=0
27557 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
27558 if test ! -z "${FREETDS_MANDATORY}" ;
27559 then
27560 { echo "$as_me:$LINENO: ***" >&5
27561 echo "$as_me: ***" >&6;}
27562 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
27563 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
27564 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support" >&5
27565 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support" >&or re-run configure;}
27566 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27567 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27568 exit 1
27570 FREETDS_LIB=""
27571 FREETDS_INCLUDE=""
27572 PBX_FREETDS=0
27573 else
27574 PBX_FREETDS=1
27576 cat >>confdefs.h <<_ACEOF
27577 #define HAVE_FREETDS 1
27578 _ACEOF
27581 elif test ! -z "${FREETDS_MANDATORY}";
27582 then
27583 { echo "$as_me:$LINENO: ***" >&5
27584 echo "$as_me: ***" >&6;}
27585 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
27586 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
27587 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27588 echo "$as_me: *** Either correct the installation" >&or run configure;}
27589 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27590 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27591 exit 1
27595 if test "${PBX_FREETDS}" != "0";
27596 then
27597 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
27598 *0.64*)
27599 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
27601 *0.63*)
27602 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
27604 *0.62*)
27605 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
27608 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
27610 esac
27614 if test "${USE_TERMCAP}" != "no"; then
27615 pbxlibdir=""
27616 if test "x${TERMCAP_DIR}" != "x"; then
27617 if test -d ${TERMCAP_DIR}/lib; then
27618 pbxlibdir="-L${TERMCAP_DIR}/lib"
27619 else
27620 pbxlibdir="-L${TERMCAP_DIR}"
27623 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
27624 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
27625 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628 ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-ltermcap ${pbxlibdir} $LIBS"
27630 cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h. */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27640 #ifdef __cplusplus
27641 extern "C"
27642 #endif
27643 char tgetent ();
27645 main ()
27647 return tgetent ();
27649 return 0;
27651 _ACEOF
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (ac_try="$ac_link"
27654 case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_link") 2>conftest.er1
27660 ac_status=$?
27661 grep -v '^ *+' conftest.er1 >conftest.err
27662 rm -f conftest.er1
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } &&
27666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670 esac
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; } &&
27676 { ac_try='test -s conftest$ac_exeext'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_try") 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 ac_cv_lib_termcap_tgetent=yes
27687 else
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27691 ac_cv_lib_termcap_tgetent=no
27694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27695 conftest$ac_exeext conftest.$ac_ext
27696 LIBS=$ac_check_lib_save_LIBS
27698 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
27699 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
27700 if test $ac_cv_lib_termcap_tgetent = yes; then
27701 AST_TERMCAP_FOUND=yes
27702 else
27703 AST_TERMCAP_FOUND=no
27707 if test "${AST_TERMCAP_FOUND}" = "yes"; then
27708 TERMCAP_LIB="-ltermcap "
27709 TERMCAP_HEADER_FOUND="1"
27710 if test "x${TERMCAP_DIR}" != "x"; then
27711 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
27712 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
27713 if test "x" != "x" ; then
27714 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
27715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27716 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27717 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 ac_res=`eval echo '${'$as_ac_Header'}'`
27722 { echo "$as_me:$LINENO: result: $ac_res" >&5
27723 echo "${ECHO_T}$ac_res" >&6; }
27724 else
27725 # Is the header compilable?
27726 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
27727 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
27728 cat >conftest.$ac_ext <<_ACEOF
27729 /* confdefs.h. */
27730 _ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 $ac_includes_default
27735 #include <${TERMCAP_DIR}/include/>
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
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_compile") 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); } &&
27751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27752 { (case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_try") 2>&5
27758 ac_status=$?
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); }; } &&
27761 { ac_try='test -s conftest.$ac_objext'
27762 { (case "(($ac_try" in
27763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27765 esac
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_try") 2>&5
27768 ac_status=$?
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; }; then
27771 ac_header_compiler=yes
27772 else
27773 echo "$as_me: failed program was:" >&5
27774 sed 's/^/| /' conftest.$ac_ext >&5
27776 ac_header_compiler=no
27779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27781 echo "${ECHO_T}$ac_header_compiler" >&6; }
27783 # Is the header present?
27784 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
27785 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
27786 cat >conftest.$ac_ext <<_ACEOF
27787 /* confdefs.h. */
27788 _ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h. */
27792 #include <${TERMCAP_DIR}/include/>
27793 _ACEOF
27794 if { (ac_try="$ac_cpp conftest.$ac_ext"
27795 case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27801 ac_status=$?
27802 grep -v '^ *+' conftest.er1 >conftest.err
27803 rm -f conftest.er1
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } >/dev/null; then
27807 if test -s conftest.err; then
27808 ac_cpp_err=$ac_c_preproc_warn_flag
27809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27810 else
27811 ac_cpp_err=
27813 else
27814 ac_cpp_err=yes
27816 if test -z "$ac_cpp_err"; then
27817 ac_header_preproc=yes
27818 else
27819 echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.$ac_ext >&5
27822 ac_header_preproc=no
27825 rm -f conftest.err conftest.$ac_ext
27826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27827 echo "${ECHO_T}$ac_header_preproc" >&6; }
27829 # So? What about this header?
27830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27831 yes:no: )
27832 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27833 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27834 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
27835 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
27836 ac_header_preproc=yes
27838 no:yes:* )
27839 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
27840 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
27841 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
27842 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
27843 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
27844 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
27845 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27846 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27847 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
27848 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27849 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
27850 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27853 esac
27854 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27855 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27858 else
27859 eval "$as_ac_Header=\$ac_header_preproc"
27861 ac_res=`eval echo '${'$as_ac_Header'}'`
27862 { echo "$as_me:$LINENO: result: $ac_res" >&5
27863 echo "${ECHO_T}$ac_res" >&6; }
27866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27867 TERMCAP_HEADER_FOUND=1
27868 else
27869 TERMCAP_HEADER_FOUND=0
27874 else
27875 if test "x" != "x" ; then
27876 if test "${ac_cv_header_+set}" = set; then
27877 { echo "$as_me:$LINENO: checking for " >&5
27878 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27879 if test "${ac_cv_header_+set}" = set; then
27880 echo $ECHO_N "(cached) $ECHO_C" >&6
27882 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27883 echo "${ECHO_T}$ac_cv_header_" >&6; }
27884 else
27885 # Is the header compilable?
27886 { echo "$as_me:$LINENO: checking usability" >&5
27887 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27888 cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h. */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27894 $ac_includes_default
27895 #include <>
27896 _ACEOF
27897 rm -f conftest.$ac_objext
27898 if { (ac_try="$ac_compile"
27899 case "(($ac_try" in
27900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27901 *) ac_try_echo=$ac_try;;
27902 esac
27903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27904 (eval "$ac_compile") 2>conftest.er1
27905 ac_status=$?
27906 grep -v '^ *+' conftest.er1 >conftest.err
27907 rm -f conftest.er1
27908 cat conftest.err >&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); } &&
27911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27912 { (case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27915 esac
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_try") 2>&5
27918 ac_status=$?
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; } &&
27921 { ac_try='test -s conftest.$ac_objext'
27922 { (case "(($ac_try" in
27923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27925 esac
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927 (eval "$ac_try") 2>&5
27928 ac_status=$?
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; }; then
27931 ac_header_compiler=yes
27932 else
27933 echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27936 ac_header_compiler=no
27939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27941 echo "${ECHO_T}$ac_header_compiler" >&6; }
27943 # Is the header present?
27944 { echo "$as_me:$LINENO: checking presence" >&5
27945 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27946 cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h. */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27952 #include <>
27953 _ACEOF
27954 if { (ac_try="$ac_cpp conftest.$ac_ext"
27955 case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27961 ac_status=$?
27962 grep -v '^ *+' conftest.er1 >conftest.err
27963 rm -f conftest.er1
27964 cat conftest.err >&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } >/dev/null; then
27967 if test -s conftest.err; then
27968 ac_cpp_err=$ac_c_preproc_warn_flag
27969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27970 else
27971 ac_cpp_err=
27973 else
27974 ac_cpp_err=yes
27976 if test -z "$ac_cpp_err"; then
27977 ac_header_preproc=yes
27978 else
27979 echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27982 ac_header_preproc=no
27985 rm -f conftest.err conftest.$ac_ext
27986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27987 echo "${ECHO_T}$ac_header_preproc" >&6; }
27989 # So? What about this header?
27990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27991 yes:no: )
27992 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27993 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27994 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27995 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27996 ac_header_preproc=yes
27998 no:yes:* )
27999 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28000 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28001 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28002 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28003 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28004 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28006 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28007 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28008 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28009 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28010 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28013 esac
28014 { echo "$as_me:$LINENO: checking for " >&5
28015 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28016 if test "${ac_cv_header_+set}" = set; then
28017 echo $ECHO_N "(cached) $ECHO_C" >&6
28018 else
28019 ac_cv_header_=$ac_header_preproc
28021 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28022 echo "${ECHO_T}$ac_cv_header_" >&6; }
28025 if test $ac_cv_header_ = yes; then
28026 TERMCAP_HEADER_FOUND=1
28027 else
28028 TERMCAP_HEADER_FOUND=0
28034 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
28035 if test ! -z "${TERMCAP_MANDATORY}" ;
28036 then
28037 { echo "$as_me:$LINENO: ***" >&5
28038 echo "$as_me: ***" >&6;}
28039 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
28040 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
28041 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support" >&5
28042 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support" >&or re-run configure;}
28043 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28044 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28045 exit 1
28047 TERMCAP_LIB=""
28048 TERMCAP_INCLUDE=""
28049 PBX_TERMCAP=0
28050 else
28051 PBX_TERMCAP=1
28053 cat >>confdefs.h <<_ACEOF
28054 #define HAVE_TERMCAP 1
28055 _ACEOF
28058 elif test ! -z "${TERMCAP_MANDATORY}";
28059 then
28060 { echo "$as_me:$LINENO: ***" >&5
28061 echo "$as_me: ***" >&6;}
28062 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
28063 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
28064 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28065 echo "$as_me: *** Either correct the installation" >&or run configure;}
28066 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
28067 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
28068 exit 1
28074 if test "${USE_TINFO}" != "no"; then
28075 pbxlibdir=""
28076 if test "x${TINFO_DIR}" != "x"; then
28077 if test -d ${TINFO_DIR}/lib; then
28078 pbxlibdir="-L${TINFO_DIR}/lib"
28079 else
28080 pbxlibdir="-L${TINFO_DIR}"
28083 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28084 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28085 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28087 else
28088 ac_check_lib_save_LIBS=$LIBS
28089 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28090 cat >conftest.$ac_ext <<_ACEOF
28091 /* confdefs.h. */
28092 _ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28097 /* Override any GCC internal prototype to avoid an error.
28098 Use char because int might match the return type of a GCC
28099 builtin and then its argument prototype would still apply. */
28100 #ifdef __cplusplus
28101 extern "C"
28102 #endif
28103 char tgetent ();
28105 main ()
28107 return tgetent ();
28109 return 0;
28111 _ACEOF
28112 rm -f conftest.$ac_objext conftest$ac_exeext
28113 if { (ac_try="$ac_link"
28114 case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28117 esac
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_link") 2>conftest.er1
28120 ac_status=$?
28121 grep -v '^ *+' conftest.er1 >conftest.err
28122 rm -f conftest.er1
28123 cat conftest.err >&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); } &&
28126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28127 { (case "(($ac_try" in
28128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28129 *) ac_try_echo=$ac_try;;
28130 esac
28131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28132 (eval "$ac_try") 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; } &&
28136 { ac_try='test -s conftest$ac_exeext'
28137 { (case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_try") 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; }; then
28146 ac_cv_lib_tinfo_tgetent=yes
28147 else
28148 echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28151 ac_cv_lib_tinfo_tgetent=no
28154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28155 conftest$ac_exeext conftest.$ac_ext
28156 LIBS=$ac_check_lib_save_LIBS
28158 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
28159 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
28160 if test $ac_cv_lib_tinfo_tgetent = yes; then
28161 AST_TINFO_FOUND=yes
28162 else
28163 AST_TINFO_FOUND=no
28167 if test "${AST_TINFO_FOUND}" = "yes"; then
28168 TINFO_LIB="-ltinfo "
28169 TINFO_HEADER_FOUND="1"
28170 if test "x${TINFO_DIR}" != "x"; then
28171 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
28172 TINFO_INCLUDE="-I${TINFO_DIR}/include"
28173 if test "x" != "x" ; then
28174 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
28175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28176 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28177 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 ac_res=`eval echo '${'$as_ac_Header'}'`
28182 { echo "$as_me:$LINENO: result: $ac_res" >&5
28183 echo "${ECHO_T}$ac_res" >&6; }
28184 else
28185 # Is the header compilable?
28186 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
28187 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
28188 cat >conftest.$ac_ext <<_ACEOF
28189 /* confdefs.h. */
28190 _ACEOF
28191 cat confdefs.h >>conftest.$ac_ext
28192 cat >>conftest.$ac_ext <<_ACEOF
28193 /* end confdefs.h. */
28194 $ac_includes_default
28195 #include <${TINFO_DIR}/include/>
28196 _ACEOF
28197 rm -f conftest.$ac_objext
28198 if { (ac_try="$ac_compile"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_compile") 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } &&
28211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28212 { (case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_try") 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; } &&
28221 { ac_try='test -s conftest.$ac_objext'
28222 { (case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28225 esac
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227 (eval "$ac_try") 2>&5
28228 ac_status=$?
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; }; then
28231 ac_header_compiler=yes
28232 else
28233 echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28236 ac_header_compiler=no
28239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28241 echo "${ECHO_T}$ac_header_compiler" >&6; }
28243 # Is the header present?
28244 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
28245 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
28246 cat >conftest.$ac_ext <<_ACEOF
28247 /* confdefs.h. */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <${TINFO_DIR}/include/>
28253 _ACEOF
28254 if { (ac_try="$ac_cpp conftest.$ac_ext"
28255 case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28258 esac
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28261 ac_status=$?
28262 grep -v '^ *+' conftest.er1 >conftest.err
28263 rm -f conftest.er1
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } >/dev/null; then
28267 if test -s conftest.err; then
28268 ac_cpp_err=$ac_c_preproc_warn_flag
28269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28270 else
28271 ac_cpp_err=
28273 else
28274 ac_cpp_err=yes
28276 if test -z "$ac_cpp_err"; then
28277 ac_header_preproc=yes
28278 else
28279 echo "$as_me: failed program was:" >&5
28280 sed 's/^/| /' conftest.$ac_ext >&5
28282 ac_header_preproc=no
28285 rm -f conftest.err conftest.$ac_ext
28286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28287 echo "${ECHO_T}$ac_header_preproc" >&6; }
28289 # So? What about this header?
28290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28291 yes:no: )
28292 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28293 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
28295 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
28296 ac_header_preproc=yes
28298 no:yes:* )
28299 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
28300 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
28301 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
28302 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
28303 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
28304 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
28305 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28306 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28307 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
28308 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28309 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
28310 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28313 esac
28314 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28315 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319 eval "$as_ac_Header=\$ac_header_preproc"
28321 ac_res=`eval echo '${'$as_ac_Header'}'`
28322 { echo "$as_me:$LINENO: result: $ac_res" >&5
28323 echo "${ECHO_T}$ac_res" >&6; }
28326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28327 TINFO_HEADER_FOUND=1
28328 else
28329 TINFO_HEADER_FOUND=0
28334 else
28335 if test "x" != "x" ; then
28336 if test "${ac_cv_header_+set}" = set; then
28337 { echo "$as_me:$LINENO: checking for " >&5
28338 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28339 if test "${ac_cv_header_+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28343 echo "${ECHO_T}$ac_cv_header_" >&6; }
28344 else
28345 # Is the header compilable?
28346 { echo "$as_me:$LINENO: checking usability" >&5
28347 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h. */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
28355 #include <>
28356 _ACEOF
28357 rm -f conftest.$ac_objext
28358 if { (ac_try="$ac_compile"
28359 case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362 esac
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_compile") 2>conftest.er1
28365 ac_status=$?
28366 grep -v '^ *+' conftest.er1 >conftest.err
28367 rm -f conftest.er1
28368 cat conftest.err >&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
28371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28372 { (case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28375 esac
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_try") 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest.$ac_objext'
28382 { (case "(($ac_try" in
28383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384 *) ac_try_echo=$ac_try;;
28385 esac
28386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387 (eval "$ac_try") 2>&5
28388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
28391 ac_header_compiler=yes
28392 else
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.$ac_ext >&5
28396 ac_header_compiler=no
28399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28401 echo "${ECHO_T}$ac_header_compiler" >&6; }
28403 # Is the header present?
28404 { echo "$as_me:$LINENO: checking presence" >&5
28405 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28406 cat >conftest.$ac_ext <<_ACEOF
28407 /* confdefs.h. */
28408 _ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28412 #include <>
28413 _ACEOF
28414 if { (ac_try="$ac_cpp conftest.$ac_ext"
28415 case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28421 ac_status=$?
28422 grep -v '^ *+' conftest.er1 >conftest.err
28423 rm -f conftest.er1
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } >/dev/null; then
28427 if test -s conftest.err; then
28428 ac_cpp_err=$ac_c_preproc_warn_flag
28429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28430 else
28431 ac_cpp_err=
28433 else
28434 ac_cpp_err=yes
28436 if test -z "$ac_cpp_err"; then
28437 ac_header_preproc=yes
28438 else
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ac_header_preproc=no
28445 rm -f conftest.err conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28447 echo "${ECHO_T}$ac_header_preproc" >&6; }
28449 # So? What about this header?
28450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28451 yes:no: )
28452 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28453 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28455 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28456 ac_header_preproc=yes
28458 no:yes:* )
28459 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28460 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28462 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28464 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28466 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28468 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28470 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28473 esac
28474 { echo "$as_me:$LINENO: checking for " >&5
28475 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28476 if test "${ac_cv_header_+set}" = set; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28478 else
28479 ac_cv_header_=$ac_header_preproc
28481 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28482 echo "${ECHO_T}$ac_cv_header_" >&6; }
28485 if test $ac_cv_header_ = yes; then
28486 TINFO_HEADER_FOUND=1
28487 else
28488 TINFO_HEADER_FOUND=0
28494 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
28495 if test ! -z "${TINFO_MANDATORY}" ;
28496 then
28497 { echo "$as_me:$LINENO: ***" >&5
28498 echo "$as_me: ***" >&6;}
28499 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
28500 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
28501 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support" >&5
28502 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support" >&or re-run configure;}
28503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28504 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28505 exit 1
28507 TINFO_LIB=""
28508 TINFO_INCLUDE=""
28509 PBX_TINFO=0
28510 else
28511 PBX_TINFO=1
28513 cat >>confdefs.h <<_ACEOF
28514 #define HAVE_TINFO 1
28515 _ACEOF
28518 elif test ! -z "${TINFO_MANDATORY}";
28519 then
28520 { echo "$as_me:$LINENO: ***" >&5
28521 echo "$as_me: ***" >&6;}
28522 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
28523 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
28524 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28525 echo "$as_me: *** Either correct the installation" >&or run configure;}
28526 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28527 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28528 exit 1
28533 if test "${host_os}" != "linux-gnu" ; then
28534 tonezone_extra="-lm"
28538 if test "${USE_TONEZONE}" != "no"; then
28539 pbxlibdir=""
28540 if test "x${TONEZONE_DIR}" != "x"; then
28541 if test -d ${TONEZONE_DIR}/lib; then
28542 pbxlibdir="-L${TONEZONE_DIR}/lib"
28543 else
28544 pbxlibdir="-L${TONEZONE_DIR}"
28547 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
28548 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
28549 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
28550 echo $ECHO_N "(cached) $ECHO_C" >&6
28551 else
28552 ac_check_lib_save_LIBS=$LIBS
28553 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
28554 cat >conftest.$ac_ext <<_ACEOF
28555 /* confdefs.h. */
28556 _ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h. */
28561 /* Override any GCC internal prototype to avoid an error.
28562 Use char because int might match the return type of a GCC
28563 builtin and then its argument prototype would still apply. */
28564 #ifdef __cplusplus
28565 extern "C"
28566 #endif
28567 char tone_zone_find ();
28569 main ()
28571 return tone_zone_find ();
28573 return 0;
28575 _ACEOF
28576 rm -f conftest.$ac_objext conftest$ac_exeext
28577 if { (ac_try="$ac_link"
28578 case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28581 esac
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_link") 2>conftest.er1
28584 ac_status=$?
28585 grep -v '^ *+' conftest.er1 >conftest.err
28586 rm -f conftest.er1
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
28590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591 { (case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28594 esac
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_try") 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest$ac_exeext'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_lib_tonezone_tone_zone_find=yes
28611 else
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_cv_lib_tonezone_tone_zone_find=no
28618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28619 conftest$ac_exeext conftest.$ac_ext
28620 LIBS=$ac_check_lib_save_LIBS
28622 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
28623 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
28624 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
28625 AST_TONEZONE_FOUND=yes
28626 else
28627 AST_TONEZONE_FOUND=no
28631 if test "${AST_TONEZONE_FOUND}" = "yes"; then
28632 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
28633 TONEZONE_HEADER_FOUND="1"
28634 if test "x${TONEZONE_DIR}" != "x"; then
28635 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
28636 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
28637 if test "xzaptel/tonezone.h" != "x" ; then
28638 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
28639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28640 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28641 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28645 ac_res=`eval echo '${'$as_ac_Header'}'`
28646 { echo "$as_me:$LINENO: result: $ac_res" >&5
28647 echo "${ECHO_T}$ac_res" >&6; }
28648 else
28649 # Is the header compilable?
28650 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
28651 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
28652 cat >conftest.$ac_ext <<_ACEOF
28653 /* confdefs.h. */
28654 _ACEOF
28655 cat confdefs.h >>conftest.$ac_ext
28656 cat >>conftest.$ac_ext <<_ACEOF
28657 /* end confdefs.h. */
28658 $ac_includes_default
28659 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28660 _ACEOF
28661 rm -f conftest.$ac_objext
28662 if { (ac_try="$ac_compile"
28663 case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_compile") 2>conftest.er1
28669 ac_status=$?
28670 grep -v '^ *+' conftest.er1 >conftest.err
28671 rm -f conftest.er1
28672 cat conftest.err >&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); } &&
28675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; } &&
28685 { ac_try='test -s conftest.$ac_objext'
28686 { (case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28689 esac
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_try") 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ac_header_compiler=yes
28696 else
28697 echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28700 ac_header_compiler=no
28703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28705 echo "${ECHO_T}$ac_header_compiler" >&6; }
28707 # Is the header present?
28708 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
28709 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
28710 cat >conftest.$ac_ext <<_ACEOF
28711 /* confdefs.h. */
28712 _ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28716 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28717 _ACEOF
28718 if { (ac_try="$ac_cpp conftest.$ac_ext"
28719 case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28725 ac_status=$?
28726 grep -v '^ *+' conftest.er1 >conftest.err
28727 rm -f conftest.er1
28728 cat conftest.err >&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } >/dev/null; then
28731 if test -s conftest.err; then
28732 ac_cpp_err=$ac_c_preproc_warn_flag
28733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28734 else
28735 ac_cpp_err=
28737 else
28738 ac_cpp_err=yes
28740 if test -z "$ac_cpp_err"; then
28741 ac_header_preproc=yes
28742 else
28743 echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28746 ac_header_preproc=no
28749 rm -f conftest.err conftest.$ac_ext
28750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28751 echo "${ECHO_T}$ac_header_preproc" >&6; }
28753 # So? What about this header?
28754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28755 yes:no: )
28756 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
28757 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28758 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
28759 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
28760 ac_header_preproc=yes
28762 no:yes:* )
28763 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
28764 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
28765 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
28766 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
28767 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
28768 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
28770 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
28771 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
28772 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
28774 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
28777 esac
28778 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28779 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 else
28783 eval "$as_ac_Header=\$ac_header_preproc"
28785 ac_res=`eval echo '${'$as_ac_Header'}'`
28786 { echo "$as_me:$LINENO: result: $ac_res" >&5
28787 echo "${ECHO_T}$ac_res" >&6; }
28790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791 TONEZONE_HEADER_FOUND=1
28792 else
28793 TONEZONE_HEADER_FOUND=0
28798 else
28799 if test "xzaptel/tonezone.h" != "x" ; then
28800 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28801 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
28802 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
28803 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
28807 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
28808 else
28809 # Is the header compilable?
28810 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
28811 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
28812 cat >conftest.$ac_ext <<_ACEOF
28813 /* confdefs.h. */
28814 _ACEOF
28815 cat confdefs.h >>conftest.$ac_ext
28816 cat >>conftest.$ac_ext <<_ACEOF
28817 /* end confdefs.h. */
28818 $ac_includes_default
28819 #include <zaptel/tonezone.h>
28820 _ACEOF
28821 rm -f conftest.$ac_objext
28822 if { (ac_try="$ac_compile"
28823 case "(($ac_try" in
28824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825 *) ac_try_echo=$ac_try;;
28826 esac
28827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828 (eval "$ac_compile") 2>conftest.er1
28829 ac_status=$?
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } &&
28835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28836 { (case "(($ac_try" in
28837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 *) ac_try_echo=$ac_try;;
28839 esac
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841 (eval "$ac_try") 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; } &&
28845 { ac_try='test -s conftest.$ac_objext'
28846 { (case "(($ac_try" in
28847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848 *) ac_try_echo=$ac_try;;
28849 esac
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_try") 2>&5
28852 ac_status=$?
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); }; }; then
28855 ac_header_compiler=yes
28856 else
28857 echo "$as_me: failed program was:" >&5
28858 sed 's/^/| /' conftest.$ac_ext >&5
28860 ac_header_compiler=no
28863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28865 echo "${ECHO_T}$ac_header_compiler" >&6; }
28867 # Is the header present?
28868 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
28869 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
28870 cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h. */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h. */
28876 #include <zaptel/tonezone.h>
28877 _ACEOF
28878 if { (ac_try="$ac_cpp conftest.$ac_ext"
28879 case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882 esac
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28885 ac_status=$?
28886 grep -v '^ *+' conftest.er1 >conftest.err
28887 rm -f conftest.er1
28888 cat conftest.err >&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } >/dev/null; then
28891 if test -s conftest.err; then
28892 ac_cpp_err=$ac_c_preproc_warn_flag
28893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28894 else
28895 ac_cpp_err=
28897 else
28898 ac_cpp_err=yes
28900 if test -z "$ac_cpp_err"; then
28901 ac_header_preproc=yes
28902 else
28903 echo "$as_me: failed program was:" >&5
28904 sed 's/^/| /' conftest.$ac_ext >&5
28906 ac_header_preproc=no
28909 rm -f conftest.err conftest.$ac_ext
28910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28911 echo "${ECHO_T}$ac_header_preproc" >&6; }
28913 # So? What about this header?
28914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28915 yes:no: )
28916 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
28917 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
28919 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
28920 ac_header_preproc=yes
28922 no:yes:* )
28923 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
28924 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
28925 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
28926 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
28928 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
28929 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
28930 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
28931 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
28932 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
28934 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
28937 esac
28938 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
28939 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
28940 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 else
28943 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
28945 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
28946 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
28949 if test $ac_cv_header_zaptel_tonezone_h = yes; then
28950 TONEZONE_HEADER_FOUND=1
28951 else
28952 TONEZONE_HEADER_FOUND=0
28958 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
28959 if test ! -z "${TONEZONE_MANDATORY}" ;
28960 then
28961 { echo "$as_me:$LINENO: ***" >&5
28962 echo "$as_me: ***" >&6;}
28963 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
28964 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
28965 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support" >&5
28966 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support" >&or re-run configure;}
28967 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28968 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28969 exit 1
28971 TONEZONE_LIB=""
28972 TONEZONE_INCLUDE=""
28973 PBX_TONEZONE=0
28974 else
28975 PBX_TONEZONE=1
28977 cat >>confdefs.h <<_ACEOF
28978 #define HAVE_TONEZONE 1
28979 _ACEOF
28982 elif test ! -z "${TONEZONE_MANDATORY}";
28983 then
28984 { echo "$as_me:$LINENO: ***" >&5
28985 echo "$as_me: ***" >&6;}
28986 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
28987 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
28988 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28989 echo "$as_me: *** Either correct the installation" >&or run configure;}
28990 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28991 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28992 exit 1
28998 if test "${USE_VORBIS}" != "no"; then
28999 pbxlibdir=""
29000 if test "x${VORBIS_DIR}" != "x"; then
29001 if test -d ${VORBIS_DIR}/lib; then
29002 pbxlibdir="-L${VORBIS_DIR}/lib"
29003 else
29004 pbxlibdir="-L${VORBIS_DIR}"
29007 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
29008 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
29009 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29011 else
29012 ac_check_lib_save_LIBS=$LIBS
29013 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
29014 cat >conftest.$ac_ext <<_ACEOF
29015 /* confdefs.h. */
29016 _ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h. */
29021 /* Override any GCC internal prototype to avoid an error.
29022 Use char because int might match the return type of a GCC
29023 builtin and then its argument prototype would still apply. */
29024 #ifdef __cplusplus
29025 extern "C"
29026 #endif
29027 char vorbis_info_init ();
29029 main ()
29031 return vorbis_info_init ();
29033 return 0;
29035 _ACEOF
29036 rm -f conftest.$ac_objext conftest$ac_exeext
29037 if { (ac_try="$ac_link"
29038 case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29041 esac
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043 (eval "$ac_link") 2>conftest.er1
29044 ac_status=$?
29045 grep -v '^ *+' conftest.er1 >conftest.err
29046 rm -f conftest.er1
29047 cat conftest.err >&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } &&
29050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29051 { (case "(($ac_try" in
29052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29053 *) ac_try_echo=$ac_try;;
29054 esac
29055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29056 (eval "$ac_try") 2>&5
29057 ac_status=$?
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); }; } &&
29060 { ac_try='test -s conftest$ac_exeext'
29061 { (case "(($ac_try" in
29062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29063 *) ac_try_echo=$ac_try;;
29064 esac
29065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29066 (eval "$ac_try") 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; }; then
29070 ac_cv_lib_vorbis_vorbis_info_init=yes
29071 else
29072 echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29075 ac_cv_lib_vorbis_vorbis_info_init=no
29078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29079 conftest$ac_exeext conftest.$ac_ext
29080 LIBS=$ac_check_lib_save_LIBS
29082 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29083 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29084 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29085 AST_VORBIS_FOUND=yes
29086 else
29087 AST_VORBIS_FOUND=no
29091 if test "${AST_VORBIS_FOUND}" = "yes"; then
29092 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29093 VORBIS_HEADER_FOUND="1"
29094 if test "x${VORBIS_DIR}" != "x"; then
29095 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29096 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29097 if test "xvorbis/codec.h" != "x" ; then
29098 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29101 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 ac_res=`eval echo '${'$as_ac_Header'}'`
29106 { echo "$as_me:$LINENO: result: $ac_res" >&5
29107 echo "${ECHO_T}$ac_res" >&6; }
29108 else
29109 # Is the header compilable?
29110 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
29111 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h. */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 $ac_includes_default
29119 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_compile") 2>conftest.er1
29129 ac_status=$?
29130 grep -v '^ *+' conftest.er1 >conftest.err
29131 rm -f conftest.er1
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } &&
29135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; } &&
29145 { ac_try='test -s conftest.$ac_objext'
29146 { (case "(($ac_try" in
29147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148 *) ac_try_echo=$ac_try;;
29149 esac
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151 (eval "$ac_try") 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_header_compiler=yes
29156 else
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_compiler=no
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165 echo "${ECHO_T}$ac_header_compiler" >&6; }
29167 # Is the header present?
29168 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
29169 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
29170 cat >conftest.$ac_ext <<_ACEOF
29171 /* confdefs.h. */
29172 _ACEOF
29173 cat confdefs.h >>conftest.$ac_ext
29174 cat >>conftest.$ac_ext <<_ACEOF
29175 /* end confdefs.h. */
29176 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29177 _ACEOF
29178 if { (ac_try="$ac_cpp conftest.$ac_ext"
29179 case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185 ac_status=$?
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null; then
29191 if test -s conftest.err; then
29192 ac_cpp_err=$ac_c_preproc_warn_flag
29193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194 else
29195 ac_cpp_err=
29197 else
29198 ac_cpp_err=yes
29200 if test -z "$ac_cpp_err"; then
29201 ac_header_preproc=yes
29202 else
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_header_preproc=no
29209 rm -f conftest.err conftest.$ac_ext
29210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211 echo "${ECHO_T}$ac_header_preproc" >&6; }
29213 # So? What about this header?
29214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29215 yes:no: )
29216 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29217 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
29219 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
29220 ac_header_preproc=yes
29222 no:yes:* )
29223 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
29224 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
29226 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
29228 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
29229 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29230 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29231 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
29232 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29233 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
29234 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29237 esac
29238 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29239 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 else
29243 eval "$as_ac_Header=\$ac_header_preproc"
29245 ac_res=`eval echo '${'$as_ac_Header'}'`
29246 { echo "$as_me:$LINENO: result: $ac_res" >&5
29247 echo "${ECHO_T}$ac_res" >&6; }
29250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29251 VORBIS_HEADER_FOUND=1
29252 else
29253 VORBIS_HEADER_FOUND=0
29258 else
29259 if test "xvorbis/codec.h" != "x" ; then
29260 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29261 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29262 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29263 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29266 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29267 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29268 else
29269 # Is the header compilable?
29270 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29271 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29272 cat >conftest.$ac_ext <<_ACEOF
29273 /* confdefs.h. */
29274 _ACEOF
29275 cat confdefs.h >>conftest.$ac_ext
29276 cat >>conftest.$ac_ext <<_ACEOF
29277 /* end confdefs.h. */
29278 $ac_includes_default
29279 #include <vorbis/codec.h>
29280 _ACEOF
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29286 esac
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
29289 ac_status=$?
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29299 esac
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309 esac
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_header_compiler=yes
29316 else
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_header_compiler=no
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325 echo "${ECHO_T}$ac_header_compiler" >&6; }
29327 # Is the header present?
29328 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29329 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29330 cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h. */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 #include <vorbis/codec.h>
29337 _ACEOF
29338 if { (ac_try="$ac_cpp conftest.$ac_ext"
29339 case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29342 esac
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29345 ac_status=$?
29346 grep -v '^ *+' conftest.er1 >conftest.err
29347 rm -f conftest.er1
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } >/dev/null; then
29351 if test -s conftest.err; then
29352 ac_cpp_err=$ac_c_preproc_warn_flag
29353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29354 else
29355 ac_cpp_err=
29357 else
29358 ac_cpp_err=yes
29360 if test -z "$ac_cpp_err"; then
29361 ac_header_preproc=yes
29362 else
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 ac_header_preproc=no
29369 rm -f conftest.err conftest.$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371 echo "${ECHO_T}$ac_header_preproc" >&6; }
29373 # So? What about this header?
29374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29375 yes:no: )
29376 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29377 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29379 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29380 ac_header_preproc=yes
29382 no:yes:* )
29383 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29384 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29385 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29386 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29387 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29388 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29390 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29392 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29394 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29397 esac
29398 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29399 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29400 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29401 echo $ECHO_N "(cached) $ECHO_C" >&6
29402 else
29403 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29405 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29406 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29409 if test $ac_cv_header_vorbis_codec_h = yes; then
29410 VORBIS_HEADER_FOUND=1
29411 else
29412 VORBIS_HEADER_FOUND=0
29418 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29419 if test ! -z "${VORBIS_MANDATORY}" ;
29420 then
29421 { echo "$as_me:$LINENO: ***" >&5
29422 echo "$as_me: ***" >&6;}
29423 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
29424 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
29425 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support" >&5
29426 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support" >&or re-run configure;}
29427 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29428 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29429 exit 1
29431 VORBIS_LIB=""
29432 VORBIS_INCLUDE=""
29433 PBX_VORBIS=0
29434 else
29435 PBX_VORBIS=1
29437 cat >>confdefs.h <<_ACEOF
29438 #define HAVE_VORBIS 1
29439 _ACEOF
29442 elif test ! -z "${VORBIS_MANDATORY}";
29443 then
29444 { echo "$as_me:$LINENO: ***" >&5
29445 echo "$as_me: ***" >&6;}
29446 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
29447 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
29448 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29449 echo "$as_me: *** Either correct the installation" >&or run configure;}
29450 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29451 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29452 exit 1
29457 ac_ext=cpp
29458 ac_cpp='$CXXCPP $CPPFLAGS'
29459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29464 if test "${USE_VPB}" != "no"; then
29465 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
29466 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
29467 saved_libs="${LIBS}"
29468 saved_cppflags="${CPPFLAGS}"
29469 if test "x${VPB_DIR}" != "x"; then
29470 if test -d ${VPB_DIR}/lib; then
29471 vpblibdir=${VPB_DIR}/lib
29472 else
29473 vpblibdir=${VPB_DIR}
29475 LIBS="${LIBS} -L${vpblibdir}"
29476 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
29478 LIBS="${LIBS} -lvpb -lpthread"
29479 cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h. */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29486 #include <vpbapi.h>
29488 main ()
29490 int q = vpb_open(0,0);
29492 return 0;
29495 _ACEOF
29496 rm -f conftest.$ac_objext conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29501 esac
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_link") 2>conftest.er1
29504 ac_status=$?
29505 grep -v '^ *+' conftest.er1 >conftest.err
29506 rm -f conftest.er1
29507 cat conftest.err >&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); } &&
29510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29511 { (case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29514 esac
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_try") 2>&5
29517 ac_status=$?
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; } &&
29520 { ac_try='test -s conftest$ac_exeext'
29521 { (case "(($ac_try" in
29522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29523 *) ac_try_echo=$ac_try;;
29524 esac
29525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29526 (eval "$ac_try") 2>&5
29527 ac_status=$?
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 { echo "$as_me:$LINENO: result: yes" >&5
29531 echo "${ECHO_T}yes" >&6; }
29532 ac_cv_lib_vpb_vpb_open="yes"
29534 else
29535 echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.$ac_ext >&5
29538 { echo "$as_me:$LINENO: result: no" >&5
29539 echo "${ECHO_T}no" >&6; }
29540 ac_cv_lib_vpb_vpb_open="no"
29545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29546 conftest$ac_exeext conftest.$ac_ext
29547 LIBS="${saved_libs}"
29548 CPPFLAGS="${saved_cppflags}"
29549 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
29550 VPB_LIB="-lvpb"
29551 if test "${VPB_DIR}" != ""; then
29552 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
29553 VPB_INCLUDE="-I${VPB_DIR}/include"
29555 PBX_VPB=1
29557 cat >>confdefs.h <<\_ACEOF
29558 #define HAVE_VPB 1
29559 _ACEOF
29561 elif test ! -z "${VPB_MANDATORY}"; then
29562 { echo "$as_me:$LINENO: ***" >&5
29563 echo "$as_me: ***" >&6;}
29564 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
29565 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
29566 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29567 echo "$as_me: *** Either correct the installation" >&or run configure;}
29568 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
29569 echo "$as_me: *** including --without-vpb." >&6;}
29570 exit 1
29574 ac_ext=c
29575 ac_cpp='$CPP $CPPFLAGS'
29576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29582 if test "${USE_ZLIB}" != "no"; then
29583 pbxlibdir=""
29584 if test "x${ZLIB_DIR}" != "x"; then
29585 if test -d ${ZLIB_DIR}/lib; then
29586 pbxlibdir="-L${ZLIB_DIR}/lib"
29587 else
29588 pbxlibdir="-L${ZLIB_DIR}"
29591 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
29592 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
29593 if test "${ac_cv_lib_z_compress+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 else
29596 ac_check_lib_save_LIBS=$LIBS
29597 LIBS="-lz ${pbxlibdir} $LIBS"
29598 cat >conftest.$ac_ext <<_ACEOF
29599 /* confdefs.h. */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h. */
29605 /* Override any GCC internal prototype to avoid an error.
29606 Use char because int might match the return type of a GCC
29607 builtin and then its argument prototype would still apply. */
29608 #ifdef __cplusplus
29609 extern "C"
29610 #endif
29611 char compress ();
29613 main ()
29615 return compress ();
29617 return 0;
29619 _ACEOF
29620 rm -f conftest.$ac_objext conftest$ac_exeext
29621 if { (ac_try="$ac_link"
29622 case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29625 esac
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_link") 2>conftest.er1
29628 ac_status=$?
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
29634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest$ac_exeext'
29645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
29651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 ac_cv_lib_z_compress=yes
29655 else
29656 echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29659 ac_cv_lib_z_compress=no
29662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29663 conftest$ac_exeext conftest.$ac_ext
29664 LIBS=$ac_check_lib_save_LIBS
29666 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
29667 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
29668 if test $ac_cv_lib_z_compress = yes; then
29669 AST_ZLIB_FOUND=yes
29670 else
29671 AST_ZLIB_FOUND=no
29675 if test "${AST_ZLIB_FOUND}" = "yes"; then
29676 ZLIB_LIB="-lz "
29677 ZLIB_HEADER_FOUND="1"
29678 if test "x${ZLIB_DIR}" != "x"; then
29679 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
29680 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
29681 if test "xzlib.h" != "x" ; then
29682 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
29683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29684 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29685 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29687 echo $ECHO_N "(cached) $ECHO_C" >&6
29689 ac_res=`eval echo '${'$as_ac_Header'}'`
29690 { echo "$as_me:$LINENO: result: $ac_res" >&5
29691 echo "${ECHO_T}$ac_res" >&6; }
29692 else
29693 # Is the header compilable?
29694 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
29695 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
29696 cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h. */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29702 $ac_includes_default
29703 #include <${ZLIB_DIR}/include/zlib.h>
29704 _ACEOF
29705 rm -f conftest.$ac_objext
29706 if { (ac_try="$ac_compile"
29707 case "(($ac_try" in
29708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709 *) ac_try_echo=$ac_try;;
29710 esac
29711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712 (eval "$ac_compile") 2>conftest.er1
29713 ac_status=$?
29714 grep -v '^ *+' conftest.er1 >conftest.err
29715 rm -f conftest.er1
29716 cat conftest.err >&5
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); } &&
29719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29720 { (case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29723 esac
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; } &&
29729 { ac_try='test -s conftest.$ac_objext'
29730 { (case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_try") 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; }; then
29739 ac_header_compiler=yes
29740 else
29741 echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29744 ac_header_compiler=no
29747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29749 echo "${ECHO_T}$ac_header_compiler" >&6; }
29751 # Is the header present?
29752 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
29753 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
29754 cat >conftest.$ac_ext <<_ACEOF
29755 /* confdefs.h. */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 #include <${ZLIB_DIR}/include/zlib.h>
29761 _ACEOF
29762 if { (ac_try="$ac_cpp conftest.$ac_ext"
29763 case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29766 esac
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29769 ac_status=$?
29770 grep -v '^ *+' conftest.er1 >conftest.err
29771 rm -f conftest.er1
29772 cat conftest.err >&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } >/dev/null; then
29775 if test -s conftest.err; then
29776 ac_cpp_err=$ac_c_preproc_warn_flag
29777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29778 else
29779 ac_cpp_err=
29781 else
29782 ac_cpp_err=yes
29784 if test -z "$ac_cpp_err"; then
29785 ac_header_preproc=yes
29786 else
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29790 ac_header_preproc=no
29793 rm -f conftest.err conftest.$ac_ext
29794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29795 echo "${ECHO_T}$ac_header_preproc" >&6; }
29797 # So? What about this header?
29798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29799 yes:no: )
29800 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29801 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
29803 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
29804 ac_header_preproc=yes
29806 no:yes:* )
29807 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
29808 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
29809 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
29810 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
29811 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
29812 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
29813 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29814 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29815 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
29816 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
29818 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
29821 esac
29822 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29823 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 else
29827 eval "$as_ac_Header=\$ac_header_preproc"
29829 ac_res=`eval echo '${'$as_ac_Header'}'`
29830 { echo "$as_me:$LINENO: result: $ac_res" >&5
29831 echo "${ECHO_T}$ac_res" >&6; }
29834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29835 ZLIB_HEADER_FOUND=1
29836 else
29837 ZLIB_HEADER_FOUND=0
29842 else
29843 if test "xzlib.h" != "x" ; then
29844 if test "${ac_cv_header_zlib_h+set}" = set; then
29845 { echo "$as_me:$LINENO: checking for zlib.h" >&5
29846 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29847 if test "${ac_cv_header_zlib_h+set}" = set; then
29848 echo $ECHO_N "(cached) $ECHO_C" >&6
29850 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29851 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29852 else
29853 # Is the header compilable?
29854 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
29855 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
29856 cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h. */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29862 $ac_includes_default
29863 #include <zlib.h>
29864 _ACEOF
29865 rm -f conftest.$ac_objext
29866 if { (ac_try="$ac_compile"
29867 case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_compile") 2>conftest.er1
29873 ac_status=$?
29874 grep -v '^ *+' conftest.er1 >conftest.err
29875 rm -f conftest.er1
29876 cat conftest.err >&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
29879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29880 { (case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; } &&
29889 { ac_try='test -s conftest.$ac_objext'
29890 { (case "(($ac_try" in
29891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892 *) ac_try_echo=$ac_try;;
29893 esac
29894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_try") 2>&5
29896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
29899 ac_header_compiler=yes
29900 else
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_header_compiler=no
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29909 echo "${ECHO_T}$ac_header_compiler" >&6; }
29911 # Is the header present?
29912 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
29913 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
29914 cat >conftest.$ac_ext <<_ACEOF
29915 /* confdefs.h. */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29920 #include <zlib.h>
29921 _ACEOF
29922 if { (ac_try="$ac_cpp conftest.$ac_ext"
29923 case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29929 ac_status=$?
29930 grep -v '^ *+' conftest.er1 >conftest.err
29931 rm -f conftest.er1
29932 cat conftest.err >&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); } >/dev/null; then
29935 if test -s conftest.err; then
29936 ac_cpp_err=$ac_c_preproc_warn_flag
29937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29938 else
29939 ac_cpp_err=
29941 else
29942 ac_cpp_err=yes
29944 if test -z "$ac_cpp_err"; then
29945 ac_header_preproc=yes
29946 else
29947 echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29950 ac_header_preproc=no
29953 rm -f conftest.err conftest.$ac_ext
29954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29955 echo "${ECHO_T}$ac_header_preproc" >&6; }
29957 # So? What about this header?
29958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29959 yes:no: )
29960 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29961 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29963 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29964 ac_header_preproc=yes
29966 no:yes:* )
29967 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29968 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29969 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29970 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29972 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29973 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29974 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29975 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29976 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29977 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29978 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29981 esac
29982 { echo "$as_me:$LINENO: checking for zlib.h" >&5
29983 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29984 if test "${ac_cv_header_zlib_h+set}" = set; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29986 else
29987 ac_cv_header_zlib_h=$ac_header_preproc
29989 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29990 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29993 if test $ac_cv_header_zlib_h = yes; then
29994 ZLIB_HEADER_FOUND=1
29995 else
29996 ZLIB_HEADER_FOUND=0
30002 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
30003 if test ! -z "${ZLIB_MANDATORY}" ;
30004 then
30005 { echo "$as_me:$LINENO: ***" >&5
30006 echo "$as_me: ***" >&6;}
30007 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
30008 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
30009 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support" >&5
30010 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support" >&or re-run configure;}
30011 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30012 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30013 exit 1
30015 ZLIB_LIB=""
30016 ZLIB_INCLUDE=""
30017 PBX_ZLIB=0
30018 else
30019 PBX_ZLIB=1
30021 cat >>confdefs.h <<_ACEOF
30022 #define HAVE_ZLIB 1
30023 _ACEOF
30026 elif test ! -z "${ZLIB_MANDATORY}";
30027 then
30028 { echo "$as_me:$LINENO: ***" >&5
30029 echo "$as_me: ***" >&6;}
30030 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
30031 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
30032 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30033 echo "$as_me: *** Either correct the installation" >&or run configure;}
30034 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
30035 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
30036 exit 1
30041 if test "${USE_ZAPTEL}" != "no"; then
30042 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
30043 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
30044 saved_cppflags="${CPPFLAGS}"
30045 if test "x${ZAPTEL_DIR}" != "x"; then
30046 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
30048 cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h. */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 #include <zaptel/zaptel.h>
30057 main ()
30059 int foo = ZT_TONE_DTMF_BASE;
30061 return 0;
30064 _ACEOF
30065 rm -f conftest.$ac_objext
30066 if { (ac_try="$ac_compile"
30067 case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30070 esac
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_compile") 2>conftest.er1
30073 ac_status=$?
30074 grep -v '^ *+' conftest.er1 >conftest.err
30075 rm -f conftest.er1
30076 cat conftest.err >&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); } &&
30079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30080 { (case "(($ac_try" in
30081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30082 *) ac_try_echo=$ac_try;;
30083 esac
30084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30085 (eval "$ac_try") 2>&5
30086 ac_status=$?
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); }; } &&
30089 { ac_try='test -s conftest.$ac_objext'
30090 { (case "(($ac_try" in
30091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092 *) ac_try_echo=$ac_try;;
30093 esac
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_try") 2>&5
30096 ac_status=$?
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; }; then
30099 { echo "$as_me:$LINENO: result: yes" >&5
30100 echo "${ECHO_T}yes" >&6; }
30101 ac_cv_zaptel_h="yes"
30103 else
30104 echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30107 { echo "$as_me:$LINENO: result: no" >&5
30108 echo "${ECHO_T}no" >&6; }
30109 ac_cv_zaptel_h="no"
30114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115 CPPFLAGS="${saved_cppflags}"
30116 if test "${ac_cv_zaptel_h}" = "yes"; then
30117 if test "${ZAPTEL_DIR}" != ""; then
30118 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
30120 PBX_ZAPTEL=1
30122 cat >>confdefs.h <<\_ACEOF
30123 #define HAVE_ZAPTEL 1
30124 _ACEOF
30126 elif test ! -z "${ZAPTEL_MANDATORY}";
30127 then
30128 { echo "$as_me:$LINENO: ***" >&5
30129 echo "$as_me: ***" >&6;}
30130 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30131 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30132 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30133 echo "$as_me: *** Either correct the installation" >&or run configure;}
30134 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30135 echo "$as_me: *** including --without-zaptel." >&6;}
30136 exit 1
30140 EDITLINE_LIB=""
30141 if test "x$TERMCAP_LIB" != "x" ; then
30142 EDITLINE_LIB="$TERMCAP_LIB"
30143 elif test "x$TINFO_LIB" != "x" ; then
30144 EDITLINE_LIB="$TINFO_LIB"
30145 elif test "x$CURSES_LIB" != "x" ; then
30146 EDITLINE_LIB="$CURSES_LIB"
30147 elif test "x$NCURSES_LIB" != "x" ; then
30148 EDITLINE_LIB="$NCURSES_LIB"
30149 else
30150 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30151 echo "$as_me: error: *** termcap support not found" >&2;}
30152 { (exit 1); exit 1; }; }
30156 if test "${ac_cv_header_h323_h+set}" = set; then
30157 { echo "$as_me:$LINENO: checking for h323.h" >&5
30158 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30159 if test "${ac_cv_header_h323_h+set}" = set; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30162 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30163 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30164 else
30165 # Is the header compilable?
30166 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30167 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30168 cat >conftest.$ac_ext <<_ACEOF
30169 /* confdefs.h. */
30170 _ACEOF
30171 cat confdefs.h >>conftest.$ac_ext
30172 cat >>conftest.$ac_ext <<_ACEOF
30173 /* end confdefs.h. */
30174 $ac_includes_default
30175 #include <h323.h>
30176 _ACEOF
30177 rm -f conftest.$ac_objext
30178 if { (ac_try="$ac_compile"
30179 case "(($ac_try" in
30180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30182 esac
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_compile") 2>conftest.er1
30185 ac_status=$?
30186 grep -v '^ *+' conftest.er1 >conftest.err
30187 rm -f conftest.er1
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192 { (case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30195 esac
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_try") 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest.$ac_objext'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30205 esac
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_header_compiler=yes
30212 else
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30216 ac_header_compiler=no
30219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30221 echo "${ECHO_T}$ac_header_compiler" >&6; }
30223 # Is the header present?
30224 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30225 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30226 cat >conftest.$ac_ext <<_ACEOF
30227 /* confdefs.h. */
30228 _ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h. */
30232 #include <h323.h>
30233 _ACEOF
30234 if { (ac_try="$ac_cpp conftest.$ac_ext"
30235 case "(($ac_try" in
30236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237 *) ac_try_echo=$ac_try;;
30238 esac
30239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30241 ac_status=$?
30242 grep -v '^ *+' conftest.er1 >conftest.err
30243 rm -f conftest.er1
30244 cat conftest.err >&5
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); } >/dev/null; then
30247 if test -s conftest.err; then
30248 ac_cpp_err=$ac_c_preproc_warn_flag
30249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30250 else
30251 ac_cpp_err=
30253 else
30254 ac_cpp_err=yes
30256 if test -z "$ac_cpp_err"; then
30257 ac_header_preproc=yes
30258 else
30259 echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30262 ac_header_preproc=no
30265 rm -f conftest.err conftest.$ac_ext
30266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30267 echo "${ECHO_T}$ac_header_preproc" >&6; }
30269 # So? What about this header?
30270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30271 yes:no: )
30272 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30273 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30275 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30276 ac_header_preproc=yes
30278 no:yes:* )
30279 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30280 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30282 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30284 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30286 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30288 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30290 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30293 esac
30294 { echo "$as_me:$LINENO: checking for h323.h" >&5
30295 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30296 if test "${ac_cv_header_h323_h+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30298 else
30299 ac_cv_header_h323_h=$ac_header_preproc
30301 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30302 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30305 if test $ac_cv_header_h323_h = yes; then
30306 PBX_H323=1
30307 else
30308 PBX_H323=0
30314 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30315 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30316 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30318 else
30319 cat >conftest.$ac_ext <<_ACEOF
30320 /* confdefs.h. */
30321 _ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30326 #include <linux/version.h>
30327 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
30328 #include <linux/compiler.h>
30329 #endif
30332 #include <linux/ixjuser.h>
30333 _ACEOF
30334 rm -f conftest.$ac_objext
30335 if { (ac_try="$ac_compile"
30336 case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30339 esac
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_compile") 2>conftest.er1
30342 ac_status=$?
30343 grep -v '^ *+' conftest.er1 >conftest.err
30344 rm -f conftest.er1
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30352 esac
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest.$ac_objext'
30359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; }; then
30368 ac_cv_header_linux_ixjuser_h=yes
30369 else
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 ac_cv_header_linux_ixjuser_h=no
30376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30379 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30380 if test $ac_cv_header_linux_ixjuser_h = yes; then
30381 PBX_IXJUSER=1
30382 else
30383 PBX_IXJUSER=0
30389 PBX_GTK=0
30390 if test -n "$ac_tool_prefix"; then
30391 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
30392 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
30393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30395 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30397 else
30398 if test -n "$GTKCONFIG"; then
30399 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
30400 else
30401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30402 for as_dir in $PATH
30404 IFS=$as_save_IFS
30405 test -z "$as_dir" && as_dir=.
30406 for ac_exec_ext in '' $ac_executable_extensions; do
30407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30408 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
30409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30410 break 2
30412 done
30413 done
30414 IFS=$as_save_IFS
30418 GTKCONFIG=$ac_cv_prog_GTKCONFIG
30419 if test -n "$GTKCONFIG"; then
30420 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
30421 echo "${ECHO_T}$GTKCONFIG" >&6; }
30422 else
30423 { echo "$as_me:$LINENO: result: no" >&5
30424 echo "${ECHO_T}no" >&6; }
30429 if test -z "$ac_cv_prog_GTKCONFIG"; then
30430 ac_ct_GTKCONFIG=$GTKCONFIG
30431 # Extract the first word of "gtk-config", so it can be a program name with args.
30432 set dummy gtk-config; ac_word=$2
30433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30435 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30437 else
30438 if test -n "$ac_ct_GTKCONFIG"; then
30439 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
30440 else
30441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30442 for as_dir in $PATH
30444 IFS=$as_save_IFS
30445 test -z "$as_dir" && as_dir=.
30446 for ac_exec_ext in '' $ac_executable_extensions; do
30447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30448 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
30449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30450 break 2
30452 done
30453 done
30454 IFS=$as_save_IFS
30458 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
30459 if test -n "$ac_ct_GTKCONFIG"; then
30460 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
30461 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
30462 else
30463 { echo "$as_me:$LINENO: result: no" >&5
30464 echo "${ECHO_T}no" >&6; }
30467 if test "x$ac_ct_GTKCONFIG" = x; then
30468 GTKCONFIG="No"
30469 else
30470 case $cross_compiling:$ac_tool_warned in
30471 yes:)
30472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30473 whose name does not start with the host triplet. If you think this
30474 configuration is useful to you, please write to autoconf@gnu.org." >&5
30475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30476 whose name does not start with the host triplet. If you think this
30477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30478 ac_tool_warned=yes ;;
30479 esac
30480 GTKCONFIG=$ac_ct_GTKCONFIG
30482 else
30483 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
30486 if test ! "x${GTKCONFIG}" = xNo; then
30487 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
30488 GTK_LIB=$(${GTKCONFIG} --libs gthread)
30489 PBX_GTK=1
30491 cat >>confdefs.h <<\_ACEOF
30492 #define HAVE_GTK 1
30493 _ACEOF
30500 if test "${USE_CURL}" != "no"; then
30501 if test -n "$ac_tool_prefix"; then
30502 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
30503 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
30504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30506 if test "${ac_cv_path_CURL+set}" = set; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30508 else
30509 case $CURL in
30510 [\\/]* | ?:[\\/]*)
30511 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
30514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30515 for as_dir in $PATH
30517 IFS=$as_save_IFS
30518 test -z "$as_dir" && as_dir=.
30519 for ac_exec_ext in '' $ac_executable_extensions; do
30520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30521 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
30522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30523 break 2
30525 done
30526 done
30527 IFS=$as_save_IFS
30530 esac
30532 CURL=$ac_cv_path_CURL
30533 if test -n "$CURL"; then
30534 { echo "$as_me:$LINENO: result: $CURL" >&5
30535 echo "${ECHO_T}$CURL" >&6; }
30536 else
30537 { echo "$as_me:$LINENO: result: no" >&5
30538 echo "${ECHO_T}no" >&6; }
30543 if test -z "$ac_cv_path_CURL"; then
30544 ac_pt_CURL=$CURL
30545 # Extract the first word of "curl-config", so it can be a program name with args.
30546 set dummy curl-config; ac_word=$2
30547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30549 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30551 else
30552 case $ac_pt_CURL in
30553 [\\/]* | ?:[\\/]*)
30554 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
30557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30558 for as_dir in $PATH
30560 IFS=$as_save_IFS
30561 test -z "$as_dir" && as_dir=.
30562 for ac_exec_ext in '' $ac_executable_extensions; do
30563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30564 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
30565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30566 break 2
30568 done
30569 done
30570 IFS=$as_save_IFS
30573 esac
30575 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
30576 if test -n "$ac_pt_CURL"; then
30577 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
30578 echo "${ECHO_T}$ac_pt_CURL" >&6; }
30579 else
30580 { echo "$as_me:$LINENO: result: no" >&5
30581 echo "${ECHO_T}no" >&6; }
30584 if test "x$ac_pt_CURL" = x; then
30585 CURL="No"
30586 else
30587 case $cross_compiling:$ac_tool_warned in
30588 yes:)
30589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30590 whose name does not start with the host triplet. If you think this
30591 configuration is useful to you, please write to autoconf@gnu.org." >&5
30592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30593 whose name does not start with the host triplet. If you think this
30594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30595 ac_tool_warned=yes ;;
30596 esac
30597 CURL=$ac_pt_CURL
30599 else
30600 CURL="$ac_cv_path_CURL"
30603 if test ! x"${CURL}" = xNo; then
30604 # check for version
30605 if test "${host_os}" = "SunOS"; then
30606 if [ 0x`curl-config --vernum` -ge 0x70907 ]; then
30607 CURL_INCLUDE=$(${CURL} --cflags)
30608 CURL_LIB=$(${CURL} --libs)
30609 PBX_CURL=1
30611 cat >>confdefs.h <<\_ACEOF
30612 #define HAVE_CURL 1
30613 _ACEOF
30616 else
30617 if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
30618 CURL_INCLUDE=$(${CURL} --cflags)
30619 CURL_LIB=$(${CURL} --libs)
30620 PBX_CURL=1
30622 cat >>confdefs.h <<\_ACEOF
30623 #define HAVE_CURL 1
30624 _ACEOF
30631 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
30633 cat >confcache <<\_ACEOF
30634 # This file is a shell script that caches the results of configure
30635 # tests run on this system so they can be shared between configure
30636 # scripts and configure runs, see configure's option --config-cache.
30637 # It is not useful on other systems. If it contains results you don't
30638 # want to keep, you may remove or edit it.
30640 # config.status only pays attention to the cache file if you give it
30641 # the --recheck option to rerun configure.
30643 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30645 # following values.
30647 _ACEOF
30649 # The following way of writing the cache mishandles newlines in values,
30650 # but we know of no workaround that is simple, portable, and efficient.
30651 # So, we kill variables containing newlines.
30652 # Ultrix sh set writes to stderr and can't be redirected directly,
30653 # and sets the high bit in the cache file unless we assign to the vars.
30655 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30656 eval ac_val=\$$ac_var
30657 case $ac_val in #(
30658 *${as_nl}*)
30659 case $ac_var in #(
30660 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30661 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30662 esac
30663 case $ac_var in #(
30664 _ | IFS | as_nl) ;; #(
30665 *) $as_unset $ac_var ;;
30666 esac ;;
30667 esac
30668 done
30670 (set) 2>&1 |
30671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30672 *${as_nl}ac_space=\ *)
30673 # `set' does not quote correctly, so add quotes (double-quote
30674 # substitution turns \\\\ into \\, and sed turns \\ into \).
30675 sed -n \
30676 "s/'/'\\\\''/g;
30677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30678 ;; #(
30680 # `set' quotes correctly as required by POSIX, so do not add quotes.
30681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30683 esac |
30684 sort
30686 sed '
30687 /^ac_cv_env_/b end
30688 t clear
30689 :clear
30690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30691 t end
30692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30693 :end' >>confcache
30694 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30695 if test -w "$cache_file"; then
30696 test "x$cache_file" != "x/dev/null" &&
30697 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30698 echo "$as_me: updating cache $cache_file" >&6;}
30699 cat confcache >$cache_file
30700 else
30701 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30702 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30705 rm -f confcache
30707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30708 # Let make expand exec_prefix.
30709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30711 DEFS=-DHAVE_CONFIG_H
30713 ac_libobjs=
30714 ac_ltlibobjs=
30715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30716 # 1. Remove the extension, and $U if already installed.
30717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30718 ac_i=`echo "$ac_i" | sed "$ac_script"`
30719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30720 # will be set to the directory where LIBOBJS objects are built.
30721 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30722 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30723 done
30724 LIBOBJS=$ac_libobjs
30726 LTLIBOBJS=$ac_ltlibobjs
30730 : ${CONFIG_STATUS=./config.status}
30731 ac_clean_files_save=$ac_clean_files
30732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30735 cat >$CONFIG_STATUS <<_ACEOF
30736 #! $SHELL
30737 # Generated by $as_me.
30738 # Run this file to recreate the current configuration.
30739 # Compiler output produced by configure, useful for debugging
30740 # configure, is in config.log if it exists.
30742 debug=false
30743 ac_cs_recheck=false
30744 ac_cs_silent=false
30745 SHELL=\${CONFIG_SHELL-$SHELL}
30746 _ACEOF
30748 cat >>$CONFIG_STATUS <<\_ACEOF
30749 ## --------------------- ##
30750 ## M4sh Initialization. ##
30751 ## --------------------- ##
30753 # Be Bourne compatible
30754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30755 emulate sh
30756 NULLCMD=:
30757 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30758 # is contrary to our usage. Disable this feature.
30759 alias -g '${1+"$@"}'='"$@"'
30760 setopt NO_GLOB_SUBST
30761 else
30762 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30764 BIN_SH=xpg4; export BIN_SH # for Tru64
30765 DUALCASE=1; export DUALCASE # for MKS sh
30768 # PATH needs CR
30769 # Avoid depending upon Character Ranges.
30770 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30771 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30772 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30773 as_cr_digits='0123456789'
30774 as_cr_alnum=$as_cr_Letters$as_cr_digits
30776 # The user is always right.
30777 if test "${PATH_SEPARATOR+set}" != set; then
30778 echo "#! /bin/sh" >conf$$.sh
30779 echo "exit 0" >>conf$$.sh
30780 chmod +x conf$$.sh
30781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30782 PATH_SEPARATOR=';'
30783 else
30784 PATH_SEPARATOR=:
30786 rm -f conf$$.sh
30789 # Support unset when possible.
30790 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30791 as_unset=unset
30792 else
30793 as_unset=false
30797 # IFS
30798 # We need space, tab and new line, in precisely that order. Quoting is
30799 # there to prevent editors from complaining about space-tab.
30800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30801 # splitting by setting IFS to empty value.)
30802 as_nl='
30804 IFS=" "" $as_nl"
30806 # Find who we are. Look in the path if we contain no directory separator.
30807 case $0 in
30808 *[\\/]* ) as_myself=$0 ;;
30809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30810 for as_dir in $PATH
30812 IFS=$as_save_IFS
30813 test -z "$as_dir" && as_dir=.
30814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30815 done
30816 IFS=$as_save_IFS
30819 esac
30820 # We did not find ourselves, most probably we were run as `sh COMMAND'
30821 # in which case we are not to be found in the path.
30822 if test "x$as_myself" = x; then
30823 as_myself=$0
30825 if test ! -f "$as_myself"; then
30826 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30827 { (exit 1); exit 1; }
30830 # Work around bugs in pre-3.0 UWIN ksh.
30831 for as_var in ENV MAIL MAILPATH
30832 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30833 done
30834 PS1='$ '
30835 PS2='> '
30836 PS4='+ '
30838 # NLS nuisances.
30839 for as_var in \
30840 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30841 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30842 LC_TELEPHONE LC_TIME
30844 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30845 eval $as_var=C; export $as_var
30846 else
30847 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30849 done
30851 # Required to use basename.
30852 if expr a : '\(a\)' >/dev/null 2>&1 &&
30853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30854 as_expr=expr
30855 else
30856 as_expr=false
30859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30860 as_basename=basename
30861 else
30862 as_basename=false
30866 # Name of the executable.
30867 as_me=`$as_basename -- "$0" ||
30868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30869 X"$0" : 'X\(//\)$' \| \
30870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30871 echo X/"$0" |
30872 sed '/^.*\/\([^/][^/]*\)\/*$/{
30873 s//\1/
30876 /^X\/\(\/\/\)$/{
30877 s//\1/
30880 /^X\/\(\/\).*/{
30881 s//\1/
30884 s/.*/./; q'`
30886 # CDPATH.
30887 $as_unset CDPATH
30891 as_lineno_1=$LINENO
30892 as_lineno_2=$LINENO
30893 test "x$as_lineno_1" != "x$as_lineno_2" &&
30894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30897 # uniformly replaced by the line number. The first 'sed' inserts a
30898 # line-number line after each line using $LINENO; the second 'sed'
30899 # does the real work. The second script uses 'N' to pair each
30900 # line-number line with the line containing $LINENO, and appends
30901 # trailing '-' during substitution so that $LINENO is not a special
30902 # case at line end.
30903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30904 # scripts with optimization help from Paolo Bonzini. Blame Lee
30905 # E. McMahon (1931-1989) for sed's syntax. :-)
30906 sed -n '
30908 /[$]LINENO/=
30909 ' <$as_myself |
30910 sed '
30911 s/[$]LINENO.*/&-/
30912 t lineno
30914 :lineno
30916 :loop
30917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30918 t loop
30919 s/-\n.*//
30920 ' >$as_me.lineno &&
30921 chmod +x "$as_me.lineno" ||
30922 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30923 { (exit 1); exit 1; }; }
30925 # Don't try to exec as it changes $[0], causing all sort of problems
30926 # (the dirname of $[0] is not the place where we might find the
30927 # original and so on. Autoconf is especially sensitive to this).
30928 . "./$as_me.lineno"
30929 # Exit status is that of the last command.
30930 exit
30934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30935 as_dirname=dirname
30936 else
30937 as_dirname=false
30940 ECHO_C= ECHO_N= ECHO_T=
30941 case `echo -n x` in
30942 -n*)
30943 case `echo 'x\c'` in
30944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30945 *) ECHO_C='\c';;
30946 esac;;
30948 ECHO_N='-n';;
30949 esac
30951 if expr a : '\(a\)' >/dev/null 2>&1 &&
30952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30953 as_expr=expr
30954 else
30955 as_expr=false
30958 rm -f conf$$ conf$$.exe conf$$.file
30959 if test -d conf$$.dir; then
30960 rm -f conf$$.dir/conf$$.file
30961 else
30962 rm -f conf$$.dir
30963 mkdir conf$$.dir
30965 echo >conf$$.file
30966 if ln -s conf$$.file conf$$ 2>/dev/null; then
30967 as_ln_s='ln -s'
30968 # ... but there are two gotchas:
30969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30971 # In both cases, we have to default to `cp -p'.
30972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30973 as_ln_s='cp -p'
30974 elif ln conf$$.file conf$$ 2>/dev/null; then
30975 as_ln_s=ln
30976 else
30977 as_ln_s='cp -p'
30979 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30980 rmdir conf$$.dir 2>/dev/null
30982 if mkdir -p . 2>/dev/null; then
30983 as_mkdir_p=:
30984 else
30985 test -d ./-p && rmdir ./-p
30986 as_mkdir_p=false
30989 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
30990 # systems may use methods other than mode bits to determine executability.
30991 cat >conf$$.file <<_ASEOF
30992 #! /bin/sh
30993 exit 0
30994 _ASEOF
30995 chmod +x conf$$.file
30996 if test -x conf$$.file >/dev/null 2>&1; then
30997 as_executable_p="test -x"
30998 else
30999 as_executable_p=:
31001 rm -f conf$$.file
31003 # Sed expression to map a string onto a valid CPP name.
31004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31006 # Sed expression to map a string onto a valid variable name.
31007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31010 exec 6>&1
31012 # Save the log message, to keep $[0] and so on meaningful, and to
31013 # report actual input values of CONFIG_FILES etc. instead of their
31014 # values after options handling.
31015 ac_log="
31016 This file was extended by $as_me, which was
31017 generated by GNU Autoconf 2.60a. Invocation command line was
31019 CONFIG_FILES = $CONFIG_FILES
31020 CONFIG_HEADERS = $CONFIG_HEADERS
31021 CONFIG_LINKS = $CONFIG_LINKS
31022 CONFIG_COMMANDS = $CONFIG_COMMANDS
31023 $ $0 $@
31025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31028 _ACEOF
31030 cat >>$CONFIG_STATUS <<_ACEOF
31031 # Files that config.status was made for.
31032 config_files="$ac_config_files"
31033 config_headers="$ac_config_headers"
31035 _ACEOF
31037 cat >>$CONFIG_STATUS <<\_ACEOF
31038 ac_cs_usage="\
31039 \`$as_me' instantiates files from templates according to the
31040 current configuration.
31042 Usage: $0 [OPTIONS] [FILE]...
31044 -h, --help print this help, then exit
31045 -V, --version print version number and configuration settings, then exit
31046 -q, --quiet do not print progress messages
31047 -d, --debug don't remove temporary files
31048 --recheck update $as_me by reconfiguring in the same conditions
31049 --file=FILE[:TEMPLATE]
31050 instantiate the configuration file FILE
31051 --header=FILE[:TEMPLATE]
31052 instantiate the configuration header FILE
31054 Configuration files:
31055 $config_files
31057 Configuration headers:
31058 $config_headers
31060 Report bugs to <bug-autoconf@gnu.org>."
31062 _ACEOF
31063 cat >>$CONFIG_STATUS <<_ACEOF
31064 ac_cs_version="\\
31065 config.status
31066 configured by $0, generated by GNU Autoconf 2.60a,
31067 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31069 Copyright (C) 2006 Free Software Foundation, Inc.
31070 This config.status script is free software; the Free Software Foundation
31071 gives unlimited permission to copy, distribute and modify it."
31073 ac_pwd='$ac_pwd'
31074 srcdir='$srcdir'
31075 INSTALL='$INSTALL'
31076 _ACEOF
31078 cat >>$CONFIG_STATUS <<\_ACEOF
31079 # If no file are specified by the user, then we need to provide default
31080 # value. By we need to know if files were specified by the user.
31081 ac_need_defaults=:
31082 while test $# != 0
31084 case $1 in
31085 --*=*)
31086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31088 ac_shift=:
31091 ac_option=$1
31092 ac_optarg=$2
31093 ac_shift=shift
31095 esac
31097 case $ac_option in
31098 # Handling of the options.
31099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31100 ac_cs_recheck=: ;;
31101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31102 echo "$ac_cs_version"; exit ;;
31103 --debug | --debu | --deb | --de | --d | -d )
31104 debug=: ;;
31105 --file | --fil | --fi | --f )
31106 $ac_shift
31107 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31108 ac_need_defaults=false;;
31109 --header | --heade | --head | --hea )
31110 $ac_shift
31111 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31112 ac_need_defaults=false;;
31113 --he | --h)
31114 # Conflict between --help and --header
31115 { echo "$as_me: error: ambiguous option: $1
31116 Try \`$0 --help' for more information." >&2
31117 { (exit 1); exit 1; }; };;
31118 --help | --hel | -h )
31119 echo "$ac_cs_usage"; exit ;;
31120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31122 ac_cs_silent=: ;;
31124 # This is an error.
31125 -*) { echo "$as_me: error: unrecognized option: $1
31126 Try \`$0 --help' for more information." >&2
31127 { (exit 1); exit 1; }; } ;;
31129 *) ac_config_targets="$ac_config_targets $1"
31130 ac_need_defaults=false ;;
31132 esac
31133 shift
31134 done
31136 ac_configure_extra_args=
31138 if $ac_cs_silent; then
31139 exec 6>/dev/null
31140 ac_configure_extra_args="$ac_configure_extra_args --silent"
31143 _ACEOF
31144 cat >>$CONFIG_STATUS <<_ACEOF
31145 if \$ac_cs_recheck; then
31146 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31147 CONFIG_SHELL=$SHELL
31148 export CONFIG_SHELL
31149 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31152 _ACEOF
31153 cat >>$CONFIG_STATUS <<\_ACEOF
31154 exec 5>>config.log
31156 echo
31157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31158 ## Running $as_me. ##
31159 _ASBOX
31160 echo "$ac_log"
31161 } >&5
31163 _ACEOF
31164 cat >>$CONFIG_STATUS <<_ACEOF
31165 _ACEOF
31167 cat >>$CONFIG_STATUS <<\_ACEOF
31169 # Handling of arguments.
31170 for ac_config_target in $ac_config_targets
31172 case $ac_config_target in
31173 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31174 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
31175 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
31176 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
31178 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31179 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31180 { (exit 1); exit 1; }; };;
31181 esac
31182 done
31185 # If the user did not use the arguments to specify the items to instantiate,
31186 # then the envvar interface is used. Set only those that are not.
31187 # We use the long form for the default assignment because of an extremely
31188 # bizarre bug on SunOS 4.1.3.
31189 if $ac_need_defaults; then
31190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31194 # Have a temporary directory for convenience. Make it in the build tree
31195 # simply because there is no reason against having it here, and in addition,
31196 # creating and moving files from /tmp can sometimes cause problems.
31197 # Hook for its removal unless debugging.
31198 # Note that there is a small window in which the directory will not be cleaned:
31199 # after its creation but before its name has been assigned to `$tmp'.
31200 $debug ||
31202 tmp=
31203 trap 'exit_status=$?
31204 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31206 trap '{ (exit 1); exit 1; }' 1 2 13 15
31208 # Create a (secure) tmp directory for tmp files.
31211 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31212 test -n "$tmp" && test -d "$tmp"
31213 } ||
31215 tmp=./conf$$-$RANDOM
31216 (umask 077 && mkdir "$tmp")
31217 } ||
31219 echo "$me: cannot create a temporary directory in ." >&2
31220 { (exit 1); exit 1; }
31224 # Set up the sed scripts for CONFIG_FILES section.
31227 # No need to generate the scripts if there are no CONFIG_FILES.
31228 # This happens for instance when ./config.status config.h
31229 if test -n "$CONFIG_FILES"; then
31231 _ACEOF
31235 ac_delim='%!_!# '
31236 for ac_last_try in false false false false false :; do
31237 cat >conf$$subs.sed <<_ACEOF
31238 SHELL!$SHELL$ac_delim
31239 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31240 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31241 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31242 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31243 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31244 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31245 exec_prefix!$exec_prefix$ac_delim
31246 prefix!$prefix$ac_delim
31247 program_transform_name!$program_transform_name$ac_delim
31248 bindir!$bindir$ac_delim
31249 sbindir!$sbindir$ac_delim
31250 libexecdir!$libexecdir$ac_delim
31251 datarootdir!$datarootdir$ac_delim
31252 datadir!$datadir$ac_delim
31253 sysconfdir!$sysconfdir$ac_delim
31254 sharedstatedir!$sharedstatedir$ac_delim
31255 localstatedir!$localstatedir$ac_delim
31256 includedir!$includedir$ac_delim
31257 oldincludedir!$oldincludedir$ac_delim
31258 docdir!$docdir$ac_delim
31259 infodir!$infodir$ac_delim
31260 htmldir!$htmldir$ac_delim
31261 dvidir!$dvidir$ac_delim
31262 pdfdir!$pdfdir$ac_delim
31263 psdir!$psdir$ac_delim
31264 libdir!$libdir$ac_delim
31265 localedir!$localedir$ac_delim
31266 mandir!$mandir$ac_delim
31267 DEFS!$DEFS$ac_delim
31268 ECHO_C!$ECHO_C$ac_delim
31269 ECHO_N!$ECHO_N$ac_delim
31270 ECHO_T!$ECHO_T$ac_delim
31271 LIBS!$LIBS$ac_delim
31272 build_alias!$build_alias$ac_delim
31273 host_alias!$host_alias$ac_delim
31274 target_alias!$target_alias$ac_delim
31275 build!$build$ac_delim
31276 build_cpu!$build_cpu$ac_delim
31277 build_vendor!$build_vendor$ac_delim
31278 build_os!$build_os$ac_delim
31279 host!$host$ac_delim
31280 host_cpu!$host_cpu$ac_delim
31281 host_vendor!$host_vendor$ac_delim
31282 host_os!$host_os$ac_delim
31283 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
31284 BUILD_CPU!$BUILD_CPU$ac_delim
31285 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
31286 BUILD_OS!$BUILD_OS$ac_delim
31287 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
31288 HOST_CPU!$HOST_CPU$ac_delim
31289 HOST_VENDOR!$HOST_VENDOR$ac_delim
31290 HOST_OS!$HOST_OS$ac_delim
31291 OSARCH!$OSARCH$ac_delim
31292 UNAME!$UNAME$ac_delim
31293 PBX_OSREV!$PBX_OSREV$ac_delim
31294 CC!$CC$ac_delim
31295 CXX!$CXX$ac_delim
31296 LD!$LD$ac_delim
31297 RANLIB!$RANLIB$ac_delim
31298 AR!$AR$ac_delim
31299 CFLAGS!$CFLAGS$ac_delim
31300 LDFLAGS!$LDFLAGS$ac_delim
31301 CPPFLAGS!$CPPFLAGS$ac_delim
31302 ac_ct_CC!$ac_ct_CC$ac_delim
31303 EXEEXT!$EXEEXT$ac_delim
31304 OBJEXT!$OBJEXT$ac_delim
31305 CXXFLAGS!$CXXFLAGS$ac_delim
31306 ac_ct_CXX!$ac_ct_CXX$ac_delim
31307 CPP!$CPP$ac_delim
31308 CXXCPP!$CXXCPP$ac_delim
31309 AWK!$AWK$ac_delim
31310 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31311 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31312 INSTALL_DATA!$INSTALL_DATA$ac_delim
31313 LN_S!$LN_S$ac_delim
31314 GNU_MAKE!$GNU_MAKE$ac_delim
31315 GREP!$GREP$ac_delim
31316 FIND!$FIND$ac_delim
31317 COMPRESS!$COMPRESS$ac_delim
31318 BASENAME!$BASENAME$ac_delim
31319 ID!$ID$ac_delim
31320 DIRNAME!$DIRNAME$ac_delim
31321 LN!$LN$ac_delim
31322 DOT!$DOT$ac_delim
31323 AST_DEVMODE!$AST_DEVMODE$ac_delim
31324 ALSA_LIB!$ALSA_LIB$ac_delim
31325 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
31326 PBX_ALSA!$PBX_ALSA$ac_delim
31327 CURL_LIB!$CURL_LIB$ac_delim
31328 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
31329 PBX_CURL!$PBX_CURL$ac_delim
31330 CURSES_LIB!$CURSES_LIB$ac_delim
31331 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
31332 PBX_CURSES!$PBX_CURSES$ac_delim
31333 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
31334 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
31335 _ACEOF
31337 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31338 break
31339 elif $ac_last_try; then
31340 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31341 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31342 { (exit 1); exit 1; }; }
31343 else
31344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31346 done
31348 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31349 if test -n "$ac_eof"; then
31350 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31351 ac_eof=`expr $ac_eof + 1`
31354 cat >>$CONFIG_STATUS <<_ACEOF
31355 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31357 _ACEOF
31358 sed '
31359 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31360 s/^/s,@/; s/!/@,|#_!!_#|/
31363 s/'"$ac_delim"'$/,g/; t
31364 s/$/\\/; p
31365 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31366 ' >>$CONFIG_STATUS <conf$$subs.sed
31367 rm -f conf$$subs.sed
31368 cat >>$CONFIG_STATUS <<_ACEOF
31369 CEOF$ac_eof
31370 _ACEOF
31373 ac_delim='%!_!# '
31374 for ac_last_try in false false false false false :; do
31375 cat >conf$$subs.sed <<_ACEOF
31376 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
31377 GSM_LIB!$GSM_LIB$ac_delim
31378 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
31379 PBX_GSM!$PBX_GSM$ac_delim
31380 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
31381 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
31382 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
31383 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
31384 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
31385 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
31386 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
31387 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
31388 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
31389 KDE_LIB!$KDE_LIB$ac_delim
31390 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
31391 PBX_KDE!$PBX_KDE$ac_delim
31392 MISDN_LIB!$MISDN_LIB$ac_delim
31393 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
31394 PBX_MISDN!$PBX_MISDN$ac_delim
31395 NBS_LIB!$NBS_LIB$ac_delim
31396 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
31397 PBX_NBS!$PBX_NBS$ac_delim
31398 NCURSES_LIB!$NCURSES_LIB$ac_delim
31399 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
31400 PBX_NCURSES!$PBX_NCURSES$ac_delim
31401 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
31402 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
31403 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
31404 NEWT_LIB!$NEWT_LIB$ac_delim
31405 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
31406 PBX_NEWT!$PBX_NEWT$ac_delim
31407 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
31408 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
31409 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
31410 OGG_LIB!$OGG_LIB$ac_delim
31411 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
31412 PBX_OGG!$PBX_OGG$ac_delim
31413 OSPTK_LIB!$OSPTK_LIB$ac_delim
31414 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
31415 PBX_OSPTK!$PBX_OSPTK$ac_delim
31416 OSS_LIB!$OSS_LIB$ac_delim
31417 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
31418 PBX_OSS!$PBX_OSS$ac_delim
31419 POPT_LIB!$POPT_LIB$ac_delim
31420 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
31421 PBX_POPT!$PBX_POPT$ac_delim
31422 PGSQL_LIB!$PGSQL_LIB$ac_delim
31423 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
31424 PBX_PGSQL!$PBX_PGSQL$ac_delim
31425 PRI_LIB!$PRI_LIB$ac_delim
31426 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
31427 PBX_PRI!$PBX_PRI$ac_delim
31428 PWLIB_LIB!$PWLIB_LIB$ac_delim
31429 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
31430 PBX_PWLIB!$PBX_PWLIB$ac_delim
31431 OPENH323_LIB!$OPENH323_LIB$ac_delim
31432 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
31433 PBX_OPENH323!$PBX_OPENH323$ac_delim
31434 QT_LIB!$QT_LIB$ac_delim
31435 QT_INCLUDE!$QT_INCLUDE$ac_delim
31436 PBX_QT!$PBX_QT$ac_delim
31437 RADIUS_LIB!$RADIUS_LIB$ac_delim
31438 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
31439 PBX_RADIUS!$PBX_RADIUS$ac_delim
31440 SPEEX_LIB!$SPEEX_LIB$ac_delim
31441 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
31442 PBX_SPEEX!$PBX_SPEEX$ac_delim
31443 SQLITE_LIB!$SQLITE_LIB$ac_delim
31444 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
31445 PBX_SQLITE!$PBX_SQLITE$ac_delim
31446 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
31447 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
31448 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
31449 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
31450 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
31451 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
31452 FREETDS_LIB!$FREETDS_LIB$ac_delim
31453 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
31454 PBX_FREETDS!$PBX_FREETDS$ac_delim
31455 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
31456 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
31457 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
31458 TINFO_LIB!$TINFO_LIB$ac_delim
31459 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
31460 PBX_TINFO!$PBX_TINFO$ac_delim
31461 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
31462 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
31463 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
31464 VORBIS_LIB!$VORBIS_LIB$ac_delim
31465 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
31466 PBX_VORBIS!$PBX_VORBIS$ac_delim
31467 VPB_LIB!$VPB_LIB$ac_delim
31468 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
31469 PBX_VPB!$PBX_VPB$ac_delim
31470 ZLIB_LIB!$ZLIB_LIB$ac_delim
31471 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
31472 PBX_ZLIB!$PBX_ZLIB$ac_delim
31473 _ACEOF
31475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31476 break
31477 elif $ac_last_try; then
31478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31479 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31480 { (exit 1); exit 1; }; }
31481 else
31482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31484 done
31486 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31487 if test -n "$ac_eof"; then
31488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31489 ac_eof=`expr $ac_eof + 1`
31492 cat >>$CONFIG_STATUS <<_ACEOF
31493 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31495 _ACEOF
31496 sed '
31497 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31498 s/^/s,@/; s/!/@,|#_!!_#|/
31501 s/'"$ac_delim"'$/,g/; t
31502 s/$/\\/; p
31503 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31504 ' >>$CONFIG_STATUS <conf$$subs.sed
31505 rm -f conf$$subs.sed
31506 cat >>$CONFIG_STATUS <<_ACEOF
31507 CEOF$ac_eof
31508 _ACEOF
31511 ac_delim='%!_!# '
31512 for ac_last_try in false false false false false :; do
31513 cat >conf$$subs.sed <<_ACEOF
31514 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
31515 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
31516 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
31517 ALLOCA!$ALLOCA$ac_delim
31518 EGREP!$EGREP$ac_delim
31519 LIBOBJS!$LIBOBJS$ac_delim
31520 POW_LIB!$POW_LIB$ac_delim
31521 GC_CFLAGS!$GC_CFLAGS$ac_delim
31522 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
31523 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
31524 KDEINIT!$KDEINIT$ac_delim
31525 KDEDIR!$KDEDIR$ac_delim
31526 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
31527 PG_CONFIG!$PG_CONFIG$ac_delim
31528 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
31529 PWLIBDIR!$PWLIBDIR$ac_delim
31530 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
31531 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
31532 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
31533 OPENH323DIR!$OPENH323DIR$ac_delim
31534 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
31535 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
31536 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
31537 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
31538 QTMOC!$QTMOC$ac_delim
31539 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
31540 PBX_H323!$PBX_H323$ac_delim
31541 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
31542 GTKCONFIG!$GTKCONFIG$ac_delim
31543 PBX_GTK!$PBX_GTK$ac_delim
31544 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
31545 GTK_LIB!$GTK_LIB$ac_delim
31546 CURL!$CURL$ac_delim
31547 LTLIBOBJS!$LTLIBOBJS$ac_delim
31548 _ACEOF
31550 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
31551 break
31552 elif $ac_last_try; then
31553 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31554 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31555 { (exit 1); exit 1; }; }
31556 else
31557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31559 done
31561 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31562 if test -n "$ac_eof"; then
31563 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31564 ac_eof=`expr $ac_eof + 1`
31567 cat >>$CONFIG_STATUS <<_ACEOF
31568 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31570 _ACEOF
31571 sed '
31572 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31573 s/^/s,@/; s/!/@,|#_!!_#|/
31576 s/'"$ac_delim"'$/,g/; t
31577 s/$/\\/; p
31578 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31579 ' >>$CONFIG_STATUS <conf$$subs.sed
31580 rm -f conf$$subs.sed
31581 cat >>$CONFIG_STATUS <<_ACEOF
31582 :end
31583 s/|#_!!_#|//g
31584 CEOF$ac_eof
31585 _ACEOF
31588 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31589 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31590 # trailing colons and then remove the whole line if VPATH becomes empty
31591 # (actually we leave an empty line to preserve line numbers).
31592 if test "x$srcdir" = x.; then
31593 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31594 s/:*\$(srcdir):*/:/
31595 s/:*\${srcdir}:*/:/
31596 s/:*@srcdir@:*/:/
31597 s/^\([^=]*=[ ]*\):*/\1/
31598 s/:*$//
31599 s/^[^=]*=[ ]*$//
31603 cat >>$CONFIG_STATUS <<\_ACEOF
31604 fi # test -n "$CONFIG_FILES"
31607 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
31609 case $ac_tag in
31610 :[FHLC]) ac_mode=$ac_tag; continue;;
31611 esac
31612 case $ac_mode$ac_tag in
31613 :[FHL]*:*);;
31614 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31615 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31616 { (exit 1); exit 1; }; };;
31617 :[FH]-) ac_tag=-:-;;
31618 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31619 esac
31620 ac_save_IFS=$IFS
31621 IFS=:
31622 set x $ac_tag
31623 IFS=$ac_save_IFS
31624 shift
31625 ac_file=$1
31626 shift
31628 case $ac_mode in
31629 :L) ac_source=$1;;
31630 :[FH])
31631 ac_file_inputs=
31632 for ac_f
31634 case $ac_f in
31635 -) ac_f="$tmp/stdin";;
31636 *) # Look for the file first in the build tree, then in the source tree
31637 # (if the path is not absolute). The absolute path cannot be DOS-style,
31638 # because $ac_f cannot contain `:'.
31639 test -f "$ac_f" ||
31640 case $ac_f in
31641 [\\/$]*) false;;
31642 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31643 esac ||
31644 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31645 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31646 { (exit 1); exit 1; }; };;
31647 esac
31648 ac_file_inputs="$ac_file_inputs $ac_f"
31649 done
31651 # Let's still pretend it is `configure' which instantiates (i.e., don't
31652 # use $as_me), people would be surprised to read:
31653 # /* config.h. Generated by config.status. */
31654 configure_input="Generated from "`IFS=:
31655 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31656 if test x"$ac_file" != x-; then
31657 configure_input="$ac_file. $configure_input"
31658 { echo "$as_me:$LINENO: creating $ac_file" >&5
31659 echo "$as_me: creating $ac_file" >&6;}
31662 case $ac_tag in
31663 *:-:* | *:-) cat >"$tmp/stdin";;
31664 esac
31666 esac
31668 ac_dir=`$as_dirname -- "$ac_file" ||
31669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31670 X"$ac_file" : 'X\(//\)[^/]' \| \
31671 X"$ac_file" : 'X\(//\)$' \| \
31672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31673 echo X"$ac_file" |
31674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31675 s//\1/
31678 /^X\(\/\/\)[^/].*/{
31679 s//\1/
31682 /^X\(\/\/\)$/{
31683 s//\1/
31686 /^X\(\/\).*/{
31687 s//\1/
31690 s/.*/./; q'`
31691 { as_dir="$ac_dir"
31692 case $as_dir in #(
31693 -*) as_dir=./$as_dir;;
31694 esac
31695 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31696 as_dirs=
31697 while :; do
31698 case $as_dir in #(
31699 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31700 *) as_qdir=$as_dir;;
31701 esac
31702 as_dirs="'$as_qdir' $as_dirs"
31703 as_dir=`$as_dirname -- "$as_dir" ||
31704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31705 X"$as_dir" : 'X\(//\)[^/]' \| \
31706 X"$as_dir" : 'X\(//\)$' \| \
31707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31708 echo X"$as_dir" |
31709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31710 s//\1/
31713 /^X\(\/\/\)[^/].*/{
31714 s//\1/
31717 /^X\(\/\/\)$/{
31718 s//\1/
31721 /^X\(\/\).*/{
31722 s//\1/
31725 s/.*/./; q'`
31726 test -d "$as_dir" && break
31727 done
31728 test -z "$as_dirs" || eval "mkdir $as_dirs"
31729 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31730 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31731 { (exit 1); exit 1; }; }; }
31732 ac_builddir=.
31734 case "$ac_dir" in
31735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31737 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31738 # A ".." for each directory in $ac_dir_suffix.
31739 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31740 case $ac_top_builddir_sub in
31741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31743 esac ;;
31744 esac
31745 ac_abs_top_builddir=$ac_pwd
31746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31747 # for backward compatibility:
31748 ac_top_builddir=$ac_top_build_prefix
31750 case $srcdir in
31751 .) # We are building in place.
31752 ac_srcdir=.
31753 ac_top_srcdir=$ac_top_builddir_sub
31754 ac_abs_top_srcdir=$ac_pwd ;;
31755 [\\/]* | ?:[\\/]* ) # Absolute name.
31756 ac_srcdir=$srcdir$ac_dir_suffix;
31757 ac_top_srcdir=$srcdir
31758 ac_abs_top_srcdir=$srcdir ;;
31759 *) # Relative name.
31760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31761 ac_top_srcdir=$ac_top_build_prefix$srcdir
31762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31763 esac
31764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31767 case $ac_mode in
31770 # CONFIG_FILE
31773 case $INSTALL in
31774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31775 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31776 esac
31777 _ACEOF
31779 cat >>$CONFIG_STATUS <<\_ACEOF
31780 # If the template does not know about datarootdir, expand it.
31781 # FIXME: This hack should be removed a few years after 2.60.
31782 ac_datarootdir_hack=; ac_datarootdir_seen=
31784 case `sed -n '/datarootdir/ {
31788 /@datadir@/p
31789 /@docdir@/p
31790 /@infodir@/p
31791 /@localedir@/p
31792 /@mandir@/p
31793 ' $ac_file_inputs` in
31794 *datarootdir*) ac_datarootdir_seen=yes;;
31795 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31796 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31797 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31798 _ACEOF
31799 cat >>$CONFIG_STATUS <<_ACEOF
31800 ac_datarootdir_hack='
31801 s&@datadir@&$datadir&g
31802 s&@docdir@&$docdir&g
31803 s&@infodir@&$infodir&g
31804 s&@localedir@&$localedir&g
31805 s&@mandir@&$mandir&g
31806 s&\\\${datarootdir}&$datarootdir&g' ;;
31807 esac
31808 _ACEOF
31810 # Neutralize VPATH when `$srcdir' = `.'.
31811 # Shell code in configure.ac might set extrasub.
31812 # FIXME: do we really want to maintain this feature?
31813 cat >>$CONFIG_STATUS <<_ACEOF
31814 sed "$ac_vpsub
31815 $extrasub
31816 _ACEOF
31817 cat >>$CONFIG_STATUS <<\_ACEOF
31819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31820 s&@configure_input@&$configure_input&;t t
31821 s&@top_builddir@&$ac_top_builddir_sub&;t t
31822 s&@srcdir@&$ac_srcdir&;t t
31823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31824 s&@top_srcdir@&$ac_top_srcdir&;t t
31825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31826 s&@builddir@&$ac_builddir&;t t
31827 s&@abs_builddir@&$ac_abs_builddir&;t t
31828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31829 s&@INSTALL@&$ac_INSTALL&;t t
31830 $ac_datarootdir_hack
31831 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31834 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31836 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31837 which seems to be undefined. Please make sure it is defined." >&5
31838 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31839 which seems to be undefined. Please make sure it is defined." >&2;}
31841 rm -f "$tmp/stdin"
31842 case $ac_file in
31843 -) cat "$tmp/out"; rm -f "$tmp/out";;
31844 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31845 esac
31849 # CONFIG_HEADER
31851 _ACEOF
31853 # Transform confdefs.h into a sed script `conftest.defines', that
31854 # substitutes the proper values into config.h.in to produce config.h.
31855 rm -f conftest.defines conftest.tail
31856 # First, append a space to every undef/define line, to ease matching.
31857 echo 's/$/ /' >conftest.defines
31858 # Then, protect against being on the right side of a sed subst, or in
31859 # an unquoted here document, in config.status. If some macros were
31860 # called several times there might be several #defines for the same
31861 # symbol, which is useless. But do not sort them, since the last
31862 # AC_DEFINE must be honored.
31863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31864 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31865 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31866 # PARAMS is the parameter list in the macro definition--in most cases, it's
31867 # just an empty string.
31868 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31869 ac_dB='\\)[ (].*,\\1define\\2'
31870 ac_dC=' '
31871 ac_dD=' ,'
31873 uniq confdefs.h |
31874 sed -n '
31875 t rset
31876 :rset
31877 s/^[ ]*#[ ]*define[ ][ ]*//
31878 t ok
31881 s/[\\&,]/\\&/g
31882 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31883 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31884 ' >>conftest.defines
31886 # Remove the space that was appended to ease matching.
31887 # Then replace #undef with comments. This is necessary, for
31888 # example, in the case of _POSIX_SOURCE, which is predefined and required
31889 # on some systems where configure will not decide to define it.
31890 # (The regexp can be short, since the line contains either #define or #undef.)
31891 echo 's/ $//
31892 s,^[ #]*u.*,/* & */,' >>conftest.defines
31894 # Break up conftest.defines:
31895 ac_max_sed_lines=50
31897 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31898 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31899 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31900 # et cetera.
31901 ac_in='$ac_file_inputs'
31902 ac_out='"$tmp/out1"'
31903 ac_nxt='"$tmp/out2"'
31905 while :
31907 # Write a here document:
31908 cat >>$CONFIG_STATUS <<_ACEOF
31909 # First, check the format of the line:
31910 cat >"\$tmp/defines.sed" <<\\CEOF
31911 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31912 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31914 :def
31915 _ACEOF
31916 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31917 echo 'CEOF
31918 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31919 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31920 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31921 grep . conftest.tail >/dev/null || break
31922 rm -f conftest.defines
31923 mv conftest.tail conftest.defines
31924 done
31925 rm -f conftest.defines conftest.tail
31927 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31928 cat >>$CONFIG_STATUS <<\_ACEOF
31929 if test x"$ac_file" != x-; then
31930 echo "/* $configure_input */" >"$tmp/config.h"
31931 cat "$ac_result" >>"$tmp/config.h"
31932 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31933 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31934 echo "$as_me: $ac_file is unchanged" >&6;}
31935 else
31936 rm -f $ac_file
31937 mv "$tmp/config.h" $ac_file
31939 else
31940 echo "/* $configure_input */"
31941 cat "$ac_result"
31943 rm -f "$tmp/out12"
31947 esac
31949 done # for ac_tag
31952 { (exit 0); exit 0; }
31953 _ACEOF
31954 chmod +x $CONFIG_STATUS
31955 ac_clean_files=$ac_clean_files_save
31958 # configure is writing to config.log, and then calls config.status.
31959 # config.status does its own redirection, appending to config.log.
31960 # Unfortunately, on DOS this fails, as config.log is still kept open
31961 # by configure, so config.status won't be able to write to it; its
31962 # output is simply discarded. So we exec the FD to /dev/null,
31963 # effectively closing config.log, so it can be properly (re)opened and
31964 # appended to by config.status. When coming back to configure, we
31965 # need to make the FD available again.
31966 if test "$no_create" != yes; then
31967 ac_cs_success=:
31968 ac_config_status_args=
31969 test "$silent" = yes &&
31970 ac_config_status_args="$ac_config_status_args --quiet"
31971 exec 5>/dev/null
31972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31973 exec 5>>config.log
31974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31975 # would make configure fail if this is the last instruction.
31976 $ac_cs_success || { (exit 1); exit 1; }
31980 if test "x${silent}" != "xyes" ; then
31981 echo
31982 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
31983 echo " .\$7\$7.. .7\$\$7:. "
31984 echo " .\$\$:. ,\$7.7 "
31985 echo " .\$7. 7\$\$\$\$ .\$\$77 "
31986 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
31987 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
31988 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
31989 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
31990 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
31991 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
31992 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
31993 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
31994 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
31995 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
31996 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
31997 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
31998 echo " \$\$\$\$\$ \$\$\$ "
31999 echo " \$\$\$\$7. \$\$ (TM) "
32000 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
32001 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
32002 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
32003 echo
32006 { echo "$as_me:$LINENO: Package configured for: " >&5
32007 echo "$as_me: Package configured for: " >&6;}
32008 { echo "$as_me:$LINENO: OS type : $host_os" >&5
32009 echo "$as_me: OS type : $host_os" >&6;}
32010 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
32011 echo "$as_me: Host CPU : $host_cpu" >&6;}
32012 if test "${cross_compiling}" = "yes"; then
32013 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
32014 echo "$as_me: Cross Compilation = YES" >&6;}