we can only send one 'a=ptime' attribute per media session, not one for each format
[asterisk-bristuff.git] / configure
blobe5408588e7d2dcb4f12537eee2b413204582078f
1 #! /bin/sh
2 # From configure.ac Revision: 43997 .
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 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14352 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14353 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14354 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14358 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14359 else
14360 # Is the header compilable?
14361 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14362 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h. */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 #include <libkern/OSAtomic.h>
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_compile") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14387 { (case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_try") 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_try") 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_header_compiler=yes
14407 else
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_header_compiler=no
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14416 echo "${ECHO_T}$ac_header_compiler" >&6; }
14418 # Is the header present?
14419 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14420 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <libkern/OSAtomic.h>
14428 _ACEOF
14429 if { (ac_try="$ac_cpp conftest.$ac_ext"
14430 case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433 esac
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } >/dev/null; then
14442 if test -s conftest.err; then
14443 ac_cpp_err=$ac_c_preproc_warn_flag
14444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14445 else
14446 ac_cpp_err=
14448 else
14449 ac_cpp_err=yes
14451 if test -z "$ac_cpp_err"; then
14452 ac_header_preproc=yes
14453 else
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 ac_header_preproc=no
14460 rm -f conftest.err conftest.$ac_ext
14461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14462 echo "${ECHO_T}$ac_header_preproc" >&6; }
14464 # So? What about this header?
14465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 yes:no: )
14467 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14468 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14470 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14471 ac_header_preproc=yes
14473 no:yes:* )
14474 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14475 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14477 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14479 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14481 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14483 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14485 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14488 esac
14489 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14490 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14491 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14496 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14497 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14500 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_OSX_ATOMICS 1
14504 _ACEOF
14510 { echo "$as_me:$LINENO: checking for int" >&5
14511 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14512 if test "${ac_cv_type_int+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 $ac_includes_default
14522 typedef int ac__type_new_;
14524 main ()
14526 if ((ac__type_new_ *) 0)
14527 return 0;
14528 if (sizeof (ac__type_new_))
14529 return 0;
14531 return 0;
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (ac_try="$ac_compile"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_compile") 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549 { (case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_try") 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_cv_type_int=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_cv_type_int=no
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14579 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14581 # The cast to long int works around a bug in the HP C Compiler
14582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14584 # This bug is HP SR number 8606223364.
14585 { echo "$as_me:$LINENO: checking size of int" >&5
14586 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14587 if test "${ac_cv_sizeof_int+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590 if test "$cross_compiling" = yes; then
14591 # Depending upon the size, compute the lo and hi bounds.
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 $ac_includes_default
14599 typedef int ac__type_sizeof_;
14602 main ()
14604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14605 test_array [0] = 0
14608 return 0;
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14626 { (case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_try") 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_lo=0 ac_mid=0
14646 while :; do
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 $ac_includes_default
14654 typedef int ac__type_sizeof_;
14657 main ()
14659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14660 test_array [0] = 0
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (ac_try="$ac_compile"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14681 { (case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_try") 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest.$ac_objext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_hi=$ac_mid; break
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_lo=`expr $ac_mid + 1`
14706 if test $ac_lo -le $ac_mid; then
14707 ac_lo= ac_hi=
14708 break
14710 ac_mid=`expr 2 '*' $ac_mid + 1`
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 done
14715 else
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h. */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14726 typedef int ac__type_sizeof_;
14729 main ()
14731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14732 test_array [0] = 0
14735 return 0;
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (ac_try="$ac_compile"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743 esac
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_compile") 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753 { (case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_try") 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest.$ac_objext'
14763 { (case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_try") 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 ac_hi=-1 ac_mid=-1
14773 while :; do
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h. */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 $ac_includes_default
14781 typedef int ac__type_sizeof_;
14784 main ()
14786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14787 test_array [0] = 0
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_try") 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_lo=$ac_mid; break
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_hi=`expr '(' $ac_mid ')' - 1`
14833 if test $ac_mid -le $ac_hi; then
14834 ac_lo= ac_hi=
14835 break
14837 ac_mid=`expr 2 '*' $ac_mid`
14840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 done
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_lo= ac_hi=
14849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 # Binary search between lo and hi bounds.
14854 while test "x$ac_lo" != "x$ac_hi"; do
14855 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h. */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 $ac_includes_default
14863 typedef int ac__type_sizeof_;
14866 main ()
14868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14869 test_array [0] = 0
14872 return 0;
14874 _ACEOF
14875 rm -f conftest.$ac_objext
14876 if { (ac_try="$ac_compile"
14877 case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_compile") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest.$ac_objext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_hi=$ac_mid
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_lo=`expr '(' $ac_mid ')' + 1`
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 done
14919 case $ac_lo in
14920 ?*) ac_cv_sizeof_int=$ac_lo;;
14921 '') if test "$ac_cv_type_int" = yes; then
14922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14923 See \`config.log' for more details." >&5
14924 echo "$as_me: error: cannot compute sizeof (int)
14925 See \`config.log' for more details." >&2;}
14926 { (exit 77); exit 77; }; }
14927 else
14928 ac_cv_sizeof_int=0
14929 fi ;;
14930 esac
14931 else
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 $ac_includes_default
14939 typedef int ac__type_sizeof_;
14941 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14942 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14943 #include <stdio.h>
14944 #include <stdlib.h>
14946 main ()
14949 FILE *f = fopen ("conftest.val", "w");
14950 if (! f)
14951 return 1;
14952 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14954 long int i = longval ();
14955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14956 return 1;
14957 fprintf (f, "%ld\n", i);
14959 else
14961 unsigned long int i = ulongval ();
14962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14963 return 1;
14964 fprintf (f, "%lu\n", i);
14966 return ferror (f) || fclose (f) != 0;
14969 return 0;
14971 _ACEOF
14972 rm -f conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_sizeof_int=`cat conftest.val`
14993 else
14994 echo "$as_me: program exited with status $ac_status" >&5
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 ( exit $ac_status )
14999 if test "$ac_cv_type_int" = yes; then
15000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15001 See \`config.log' for more details." >&5
15002 echo "$as_me: error: cannot compute sizeof (int)
15003 See \`config.log' for more details." >&2;}
15004 { (exit 77); exit 77; }; }
15005 else
15006 ac_cv_sizeof_int=0
15009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15011 rm -f conftest.val
15013 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15014 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15018 cat >>confdefs.h <<_ACEOF
15019 #define SIZEOF_INT $ac_cv_sizeof_int
15020 _ACEOF
15024 # do the package library checks now
15027 if test "${USE_ALSA}" != "no"; then
15028 pbxlibdir=""
15029 if test "x${ALSA_DIR}" != "x"; then
15030 if test -d ${ALSA_DIR}/lib; then
15031 pbxlibdir="-L${ALSA_DIR}/lib"
15032 else
15033 pbxlibdir="-L${ALSA_DIR}"
15036 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15037 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15038 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 char snd_spcm_init ();
15058 main ()
15060 return snd_spcm_init ();
15062 return 0;
15064 _ACEOF
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest$ac_exeext'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 ac_cv_lib_asound_snd_spcm_init=yes
15100 else
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15104 ac_cv_lib_asound_snd_spcm_init=no
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15111 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15112 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15113 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15114 AST_ALSA_FOUND=yes
15115 else
15116 AST_ALSA_FOUND=no
15120 if test "${AST_ALSA_FOUND}" = "yes"; then
15121 ALSA_LIB="-lasound -lm -ldl"
15122 ALSA_HEADER_FOUND="1"
15123 if test "x${ALSA_DIR}" != "x"; then
15124 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15125 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15126 if test "xalsa/asoundlib.h" != "x" ; then
15127 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15130 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 ac_res=`eval echo '${'$as_ac_Header'}'`
15135 { echo "$as_me:$LINENO: result: $ac_res" >&5
15136 echo "${ECHO_T}$ac_res" >&6; }
15137 else
15138 # Is the header compilable?
15139 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15140 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 $ac_includes_default
15148 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (ac_try="$ac_compile"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_header_compiler=yes
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_header_compiler=no
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194 echo "${ECHO_T}$ac_header_compiler" >&6; }
15196 # Is the header present?
15197 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15198 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15206 _ACEOF
15207 if { (ac_try="$ac_cpp conftest.$ac_ext"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev/null; then
15220 if test -s conftest.err; then
15221 ac_cpp_err=$ac_c_preproc_warn_flag
15222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15223 else
15224 ac_cpp_err=
15226 else
15227 ac_cpp_err=yes
15229 if test -z "$ac_cpp_err"; then
15230 ac_header_preproc=yes
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_header_preproc=no
15238 rm -f conftest.err conftest.$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6; }
15242 # So? What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244 yes:no: )
15245 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
15251 no:yes:* )
15252 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15266 esac
15267 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15268 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272 eval "$as_ac_Header=\$ac_header_preproc"
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15280 ALSA_HEADER_FOUND=1
15281 else
15282 ALSA_HEADER_FOUND=0
15287 else
15288 if test "xalsa/asoundlib.h" != "x" ; then
15289 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15290 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15291 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15292 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15296 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15297 else
15298 # Is the header compilable?
15299 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15300 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <alsa/asoundlib.h>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest.$ac_objext'
15335 { (case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15338 esac
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_try") 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_header_compiler=yes
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_header_compiler=no
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15354 echo "${ECHO_T}$ac_header_compiler" >&6; }
15356 # Is the header present?
15357 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15358 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 #include <alsa/asoundlib.h>
15366 _ACEOF
15367 if { (ac_try="$ac_cpp conftest.$ac_ext"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev/null; then
15380 if test -s conftest.err; then
15381 ac_cpp_err=$ac_c_preproc_warn_flag
15382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15383 else
15384 ac_cpp_err=
15386 else
15387 ac_cpp_err=yes
15389 if test -z "$ac_cpp_err"; then
15390 ac_header_preproc=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_preproc=no
15398 rm -f conftest.err conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15400 echo "${ECHO_T}$ac_header_preproc" >&6; }
15402 # So? What about this header?
15403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15404 yes:no: )
15405 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15406 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15408 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15409 ac_header_preproc=yes
15411 no:yes:* )
15412 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15413 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15415 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15417 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15419 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15421 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15423 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15426 esac
15427 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15428 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15429 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15434 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15435 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15438 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15439 ALSA_HEADER_FOUND=1
15440 else
15441 ALSA_HEADER_FOUND=0
15447 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15448 if test ! -z "${ALSA_MANDATORY}" ;
15449 then
15450 { echo "$as_me:$LINENO: ***" >&5
15451 echo "$as_me: ***" >&6;}
15452 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
15453 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
15454 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support" >&5
15455 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support" >&or re-run configure;}
15456 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15457 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15458 exit 1
15460 ALSA_LIB=""
15461 ALSA_INCLUDE=""
15462 PBX_ALSA=0
15463 else
15464 PBX_ALSA=1
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_ALSA 1
15468 _ACEOF
15471 elif test ! -z "${ALSA_MANDATORY}";
15472 then
15473 { echo "$as_me:$LINENO: ***" >&5
15474 echo "$as_me: ***" >&6;}
15475 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
15476 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
15477 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
15478 echo "$as_me: *** Either correct the installation" >&or run configure;}
15479 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15480 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15481 exit 1
15487 if test "${USE_CURSES}" != "no"; then
15488 pbxlibdir=""
15489 if test "x${CURSES_DIR}" != "x"; then
15490 if test -d ${CURSES_DIR}/lib; then
15491 pbxlibdir="-L${CURSES_DIR}/lib"
15492 else
15493 pbxlibdir="-L${CURSES_DIR}"
15496 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15497 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15498 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 ac_check_lib_save_LIBS=$LIBS
15502 LIBS="-lcurses ${pbxlibdir} $LIBS"
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 /* Override any GCC internal prototype to avoid an error.
15511 Use char because int might match the return type of a GCC
15512 builtin and then its argument prototype would still apply. */
15513 #ifdef __cplusplus
15514 extern "C"
15515 #endif
15516 char initscr ();
15518 main ()
15520 return initscr ();
15522 return 0;
15524 _ACEOF
15525 rm -f conftest.$ac_objext conftest$ac_exeext
15526 if { (ac_try="$ac_link"
15527 case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15530 esac
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_link") 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15540 { (case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_try") 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest$ac_exeext'
15550 { (case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_try") 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_lib_curses_initscr=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_lib_curses_initscr=no
15567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15568 conftest$ac_exeext conftest.$ac_ext
15569 LIBS=$ac_check_lib_save_LIBS
15571 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15572 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15573 if test $ac_cv_lib_curses_initscr = yes; then
15574 AST_CURSES_FOUND=yes
15575 else
15576 AST_CURSES_FOUND=no
15580 if test "${AST_CURSES_FOUND}" = "yes"; then
15581 CURSES_LIB="-lcurses "
15582 CURSES_HEADER_FOUND="1"
15583 if test "x${CURSES_DIR}" != "x"; then
15584 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15585 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15586 if test "xcurses.h" != "x" ; then
15587 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15589 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15590 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 ac_res=`eval echo '${'$as_ac_Header'}'`
15595 { echo "$as_me:$LINENO: result: $ac_res" >&5
15596 echo "${ECHO_T}$ac_res" >&6; }
15597 else
15598 # Is the header compilable?
15599 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15600 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h. */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607 $ac_includes_default
15608 #include <${CURSES_DIR}/include/curses.h>
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_header_compiler=yes
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_header_compiler=no
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15654 echo "${ECHO_T}$ac_header_compiler" >&6; }
15656 # Is the header present?
15657 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15658 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h. */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 #include <${CURSES_DIR}/include/curses.h>
15666 _ACEOF
15667 if { (ac_try="$ac_cpp conftest.$ac_ext"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } >/dev/null; then
15680 if test -s conftest.err; then
15681 ac_cpp_err=$ac_c_preproc_warn_flag
15682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15683 else
15684 ac_cpp_err=
15686 else
15687 ac_cpp_err=yes
15689 if test -z "$ac_cpp_err"; then
15690 ac_header_preproc=yes
15691 else
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_header_preproc=no
15698 rm -f conftest.err conftest.$ac_ext
15699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15700 echo "${ECHO_T}$ac_header_preproc" >&6; }
15702 # So? What about this header?
15703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15704 yes:no: )
15705 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15706 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
15708 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
15709 ac_header_preproc=yes
15711 no:yes:* )
15712 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
15713 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
15715 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
15717 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
15719 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
15721 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
15723 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
15726 esac
15727 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15728 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 eval "$as_ac_Header=\$ac_header_preproc"
15734 ac_res=`eval echo '${'$as_ac_Header'}'`
15735 { echo "$as_me:$LINENO: result: $ac_res" >&5
15736 echo "${ECHO_T}$ac_res" >&6; }
15739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15740 CURSES_HEADER_FOUND=1
15741 else
15742 CURSES_HEADER_FOUND=0
15747 else
15748 if test "xcurses.h" != "x" ; then
15749 if test "${ac_cv_header_curses_h+set}" = set; then
15750 { echo "$as_me:$LINENO: checking for curses.h" >&5
15751 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15752 if test "${ac_cv_header_curses_h+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15756 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15757 else
15758 # Is the header compilable?
15759 { echo "$as_me:$LINENO: checking curses.h usability" >&5
15760 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h. */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 $ac_includes_default
15768 #include <curses.h>
15769 _ACEOF
15770 rm -f conftest.$ac_objext
15771 if { (ac_try="$ac_compile"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_compile") 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15785 { (case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_try") 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking curses.h presence" >&5
15818 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <curses.h>
15826 _ACEOF
15827 if { (ac_try="$ac_cpp conftest.$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } >/dev/null; then
15840 if test -s conftest.err; then
15841 ac_cpp_err=$ac_c_preproc_warn_flag
15842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15843 else
15844 ac_cpp_err=
15846 else
15847 ac_cpp_err=yes
15849 if test -z "$ac_cpp_err"; then
15850 ac_header_preproc=yes
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_preproc=no
15858 rm -f conftest.err conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862 # So? What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15864 yes:no: )
15865 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15866 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
15868 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
15869 ac_header_preproc=yes
15871 no:yes:* )
15872 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
15873 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
15875 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
15877 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
15879 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
15881 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
15883 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
15886 esac
15887 { echo "$as_me:$LINENO: checking for curses.h" >&5
15888 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15889 if test "${ac_cv_header_curses_h+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 ac_cv_header_curses_h=$ac_header_preproc
15894 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15895 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15898 if test $ac_cv_header_curses_h = yes; then
15899 CURSES_HEADER_FOUND=1
15900 else
15901 CURSES_HEADER_FOUND=0
15907 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
15908 if test ! -z "${CURSES_MANDATORY}" ;
15909 then
15910 { echo "$as_me:$LINENO: ***" >&5
15911 echo "$as_me: ***" >&6;}
15912 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
15913 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
15914 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support" >&5
15915 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support" >&or re-run configure;}
15916 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15917 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15918 exit 1
15920 CURSES_LIB=""
15921 CURSES_INCLUDE=""
15922 PBX_CURSES=0
15923 else
15924 PBX_CURSES=1
15926 cat >>confdefs.h <<_ACEOF
15927 #define HAVE_CURSES 1
15928 _ACEOF
15931 elif test ! -z "${CURSES_MANDATORY}";
15932 then
15933 { echo "$as_me:$LINENO: ***" >&5
15934 echo "$as_me: ***" >&6;}
15935 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
15936 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
15937 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
15938 echo "$as_me: *** Either correct the installation" >&or run configure;}
15939 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
15940 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
15941 exit 1
15946 GSM_INTERNAL="yes"
15948 GSM_SYSTEM="yes"
15949 if test "${USE_GSM}" != "no"; then
15950 if test "${GSM_DIR}" = "internal"; then
15951 GSM_SYSTEM="no"
15952 elif test "${GSM_DIR}" != ""; then
15953 GSM_INTERNAL="no"
15955 if test "${GSM_SYSTEM}" = "yes"; then
15956 gsmlibdir=""
15957 if test "x${GSM_DIR}" != "x"; then
15958 if test -d ${GSM_DIR}/lib; then
15959 gsmlibdir="-L${GSM_DIR}/lib"
15960 else
15961 gsmlibdir="-L${GSM_DIR}"
15964 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
15965 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
15966 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969 ac_check_lib_save_LIBS=$LIBS
15970 LIBS="-lgsm ${gsmlibdir} $LIBS"
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h. */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char gsm_create ();
15986 main ()
15988 return gsm_create ();
15990 return 0;
15992 _ACEOF
15993 rm -f conftest.$ac_objext conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_try") 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest$ac_exeext'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16021 esac
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_cv_lib_gsm_gsm_create=yes
16028 else
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 ac_cv_lib_gsm_gsm_create=no
16035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16036 conftest$ac_exeext conftest.$ac_ext
16037 LIBS=$ac_check_lib_save_LIBS
16039 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16040 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16041 if test $ac_cv_lib_gsm_gsm_create = yes; then
16043 cat >>confdefs.h <<_ACEOF
16044 #define HAVE_GSM 1
16045 _ACEOF
16049 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16050 GSM_LIB="-lgsm"
16051 if test "x${GSM_DIR}" != "x"; then
16052 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16053 GSM_INCLUDE="-I${GSM_DIR}/include"
16055 PBX_GSM=1
16056 GSM_INTERNAL="no"
16059 if test "${GSM_INTERNAL}" = "yes"; then
16060 PBX_GSM=1
16065 if test "${USE_IKSEMEL}" != "no"; then
16066 pbxlibdir=""
16067 if test "x${IKSEMEL_DIR}" != "x"; then
16068 if test -d ${IKSEMEL_DIR}/lib; then
16069 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16070 else
16071 pbxlibdir="-L${IKSEMEL_DIR}"
16074 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16075 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16076 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079 ac_check_lib_save_LIBS=$LIBS
16080 LIBS="-liksemel ${pbxlibdir} $LIBS"
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16088 /* Override any GCC internal prototype to avoid an error.
16089 Use char because int might match the return type of a GCC
16090 builtin and then its argument prototype would still apply. */
16091 #ifdef __cplusplus
16092 extern "C"
16093 #endif
16094 char iks_start_sasl ();
16096 main ()
16098 return iks_start_sasl ();
16100 return 0;
16102 _ACEOF
16103 rm -f conftest.$ac_objext conftest$ac_exeext
16104 if { (ac_try="$ac_link"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_link") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16118 { (case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_try") 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; } &&
16127 { ac_try='test -s conftest$ac_exeext'
16128 { (case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_try") 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_lib_iksemel_iks_start_sasl=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_cv_lib_iksemel_iks_start_sasl=no
16145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16146 conftest$ac_exeext conftest.$ac_ext
16147 LIBS=$ac_check_lib_save_LIBS
16149 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16150 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16151 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16152 AST_IKSEMEL_FOUND=yes
16153 else
16154 AST_IKSEMEL_FOUND=no
16158 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16159 IKSEMEL_LIB="-liksemel "
16160 IKSEMEL_HEADER_FOUND="1"
16161 if test "x${IKSEMEL_DIR}" != "x"; then
16162 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16163 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16164 if test "xiksemel.h" != "x" ; then
16165 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16168 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 ac_res=`eval echo '${'$as_ac_Header'}'`
16173 { echo "$as_me:$LINENO: result: $ac_res" >&5
16174 echo "${ECHO_T}$ac_res" >&6; }
16175 else
16176 # Is the header compilable?
16177 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16178 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 $ac_includes_default
16186 #include <${IKSEMEL_DIR}/include/iksemel.h>
16187 _ACEOF
16188 rm -f conftest.$ac_objext
16189 if { (ac_try="$ac_compile"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_compile") 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16203 { (case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_try") 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest.$ac_objext'
16213 { (case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_try") 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_header_compiler=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ac_header_compiler=no
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16232 echo "${ECHO_T}$ac_header_compiler" >&6; }
16234 # Is the header present?
16235 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16236 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <${IKSEMEL_DIR}/include/iksemel.h>
16244 _ACEOF
16245 if { (ac_try="$ac_cpp conftest.$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev/null; then
16258 if test -s conftest.err; then
16259 ac_cpp_err=$ac_c_preproc_warn_flag
16260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16261 else
16262 ac_cpp_err=
16264 else
16265 ac_cpp_err=yes
16267 if test -z "$ac_cpp_err"; then
16268 ac_header_preproc=yes
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ac_header_preproc=no
16276 rm -f conftest.err conftest.$ac_ext
16277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16278 echo "${ECHO_T}$ac_header_preproc" >&6; }
16280 # So? What about this header?
16281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16282 yes:no: )
16283 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16284 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16286 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16287 ac_header_preproc=yes
16289 no:yes:* )
16290 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16291 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16293 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16295 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16297 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16299 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16301 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16304 esac
16305 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16306 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310 eval "$as_ac_Header=\$ac_header_preproc"
16312 ac_res=`eval echo '${'$as_ac_Header'}'`
16313 { echo "$as_me:$LINENO: result: $ac_res" >&5
16314 echo "${ECHO_T}$ac_res" >&6; }
16317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16318 IKSEMEL_HEADER_FOUND=1
16319 else
16320 IKSEMEL_HEADER_FOUND=0
16325 else
16326 if test "xiksemel.h" != "x" ; then
16327 if test "${ac_cv_header_iksemel_h+set}" = set; then
16328 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16329 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16330 if test "${ac_cv_header_iksemel_h+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16334 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16335 else
16336 # Is the header compilable?
16337 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16338 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <iksemel.h>
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_compile") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_header_compiler=yes
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_header_compiler=no
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392 echo "${ECHO_T}$ac_header_compiler" >&6; }
16394 # Is the header present?
16395 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16396 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <iksemel.h>
16404 _ACEOF
16405 if { (ac_try="$ac_cpp conftest.$ac_ext"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } >/dev/null; then
16418 if test -s conftest.err; then
16419 ac_cpp_err=$ac_c_preproc_warn_flag
16420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16421 else
16422 ac_cpp_err=
16424 else
16425 ac_cpp_err=yes
16427 if test -z "$ac_cpp_err"; then
16428 ac_header_preproc=yes
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_header_preproc=no
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442 yes:no: )
16443 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
16449 no:yes:* )
16450 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16464 esac
16465 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16466 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16467 if test "${ac_cv_header_iksemel_h+set}" = set; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470 ac_cv_header_iksemel_h=$ac_header_preproc
16472 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16473 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16476 if test $ac_cv_header_iksemel_h = yes; then
16477 IKSEMEL_HEADER_FOUND=1
16478 else
16479 IKSEMEL_HEADER_FOUND=0
16485 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16486 if test ! -z "${IKSEMEL_MANDATORY}" ;
16487 then
16488 { echo "$as_me:$LINENO: ***" >&5
16489 echo "$as_me: ***" >&6;}
16490 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
16491 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
16492 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&5
16493 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&or re-run configure;}
16494 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16495 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16496 exit 1
16498 IKSEMEL_LIB=""
16499 IKSEMEL_INCLUDE=""
16500 PBX_IKSEMEL=0
16501 else
16502 PBX_IKSEMEL=1
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_IKSEMEL 1
16506 _ACEOF
16509 elif test ! -z "${IKSEMEL_MANDATORY}";
16510 then
16511 { echo "$as_me:$LINENO: ***" >&5
16512 echo "$as_me: ***" >&6;}
16513 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
16514 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
16515 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
16516 echo "$as_me: *** Either correct the installation" >&or run configure;}
16517 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16518 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16519 exit 1
16524 if test "${PBX_IKSEMEL}" = 1; then
16526 if test "${USE_GNUTLS}" != "no"; then
16527 pbxlibdir=""
16528 if test "x${GNUTLS_DIR}" != "x"; then
16529 if test -d ${GNUTLS_DIR}/lib; then
16530 pbxlibdir="-L${GNUTLS_DIR}/lib"
16531 else
16532 pbxlibdir="-L${GNUTLS_DIR}"
16535 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
16536 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
16537 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540 ac_check_lib_save_LIBS=$LIBS
16541 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16542 cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h. */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16549 /* Override any GCC internal prototype to avoid an error.
16550 Use char because int might match the return type of a GCC
16551 builtin and then its argument prototype would still apply. */
16552 #ifdef __cplusplus
16553 extern "C"
16554 #endif
16555 char gnutls_bye ();
16557 main ()
16559 return gnutls_bye ();
16561 return 0;
16563 _ACEOF
16564 rm -f conftest.$ac_objext conftest$ac_exeext
16565 if { (ac_try="$ac_link"
16566 case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_link") 2>conftest.er1
16572 ac_status=$?
16573 grep -v '^ *+' conftest.er1 >conftest.err
16574 rm -f conftest.er1
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest$ac_exeext'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ac_cv_lib_gnutls_gnutls_bye=yes
16599 else
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ac_cv_lib_gnutls_gnutls_bye=no
16606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16607 conftest$ac_exeext conftest.$ac_ext
16608 LIBS=$ac_check_lib_save_LIBS
16610 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
16611 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16612 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16613 AST_GNUTLS_FOUND=yes
16614 else
16615 AST_GNUTLS_FOUND=no
16619 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16620 GNUTLS_LIB="-lgnutls "
16621 GNUTLS_HEADER_FOUND="1"
16622 if test "x${GNUTLS_DIR}" != "x"; then
16623 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16624 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
16625 if test "x" != "x" ; then
16626 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
16627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16628 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16629 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 ac_res=`eval echo '${'$as_ac_Header'}'`
16634 { echo "$as_me:$LINENO: result: $ac_res" >&5
16635 echo "${ECHO_T}$ac_res" >&6; }
16636 else
16637 # Is the header compilable?
16638 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
16639 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h. */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 $ac_includes_default
16647 #include <${GNUTLS_DIR}/include/>
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_header_compiler=yes
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_header_compiler=no
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16693 echo "${ECHO_T}$ac_header_compiler" >&6; }
16695 # Is the header present?
16696 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
16697 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <${GNUTLS_DIR}/include/>
16705 _ACEOF
16706 if { (ac_try="$ac_cpp conftest.$ac_ext"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } >/dev/null; then
16719 if test -s conftest.err; then
16720 ac_cpp_err=$ac_c_preproc_warn_flag
16721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16722 else
16723 ac_cpp_err=
16725 else
16726 ac_cpp_err=yes
16728 if test -z "$ac_cpp_err"; then
16729 ac_header_preproc=yes
16730 else
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_header_preproc=no
16737 rm -f conftest.err conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16739 echo "${ECHO_T}$ac_header_preproc" >&6; }
16741 # So? What about this header?
16742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16743 yes:no: )
16744 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
16745 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
16747 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
16748 ac_header_preproc=yes
16750 no:yes:* )
16751 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
16752 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
16754 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
16756 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
16758 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
16760 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
16762 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
16765 esac
16766 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16767 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 eval "$as_ac_Header=\$ac_header_preproc"
16773 ac_res=`eval echo '${'$as_ac_Header'}'`
16774 { echo "$as_me:$LINENO: result: $ac_res" >&5
16775 echo "${ECHO_T}$ac_res" >&6; }
16778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16779 GNUTLS_HEADER_FOUND=1
16780 else
16781 GNUTLS_HEADER_FOUND=0
16786 else
16787 if test "x" != "x" ; then
16788 if test "${ac_cv_header_+set}" = set; then
16789 { echo "$as_me:$LINENO: checking for " >&5
16790 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16791 if test "${ac_cv_header_+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16795 echo "${ECHO_T}$ac_cv_header_" >&6; }
16796 else
16797 # Is the header compilable?
16798 { echo "$as_me:$LINENO: checking usability" >&5
16799 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 $ac_includes_default
16807 #include <>
16808 _ACEOF
16809 rm -f conftest.$ac_objext
16810 if { (ac_try="$ac_compile"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_compile") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_header_compiler=no
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853 echo "${ECHO_T}$ac_header_compiler" >&6; }
16855 # Is the header present?
16856 { echo "$as_me:$LINENO: checking presence" >&5
16857 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 #include <>
16865 _ACEOF
16866 if { (ac_try="$ac_cpp conftest.$ac_ext"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_c_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16882 else
16883 ac_cpp_err=
16885 else
16886 ac_cpp_err=yes
16888 if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_header_preproc=no
16897 rm -f conftest.err conftest.$ac_ext
16898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16899 echo "${ECHO_T}$ac_header_preproc" >&6; }
16901 # So? What about this header?
16902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16903 yes:no: )
16904 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
16905 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
16907 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
16908 ac_header_preproc=yes
16910 no:yes:* )
16911 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
16912 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
16914 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
16916 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
16918 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
16920 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
16922 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
16925 esac
16926 { echo "$as_me:$LINENO: checking for " >&5
16927 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16928 if test "${ac_cv_header_+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 ac_cv_header_=$ac_header_preproc
16933 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16934 echo "${ECHO_T}$ac_cv_header_" >&6; }
16937 if test $ac_cv_header_ = yes; then
16938 GNUTLS_HEADER_FOUND=1
16939 else
16940 GNUTLS_HEADER_FOUND=0
16946 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
16947 if test ! -z "${GNUTLS_MANDATORY}" ;
16948 then
16949 { echo "$as_me:$LINENO: ***" >&5
16950 echo "$as_me: ***" >&6;}
16951 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
16952 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
16953 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support" >&5
16954 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support" >&or re-run configure;}
16955 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16956 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16957 exit 1
16959 GNUTLS_LIB=""
16960 GNUTLS_INCLUDE=""
16961 PBX_GNUTLS=0
16962 else
16963 PBX_GNUTLS=1
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_GNUTLS 1
16967 _ACEOF
16970 elif test ! -z "${GNUTLS_MANDATORY}";
16971 then
16972 { echo "$as_me:$LINENO: ***" >&5
16973 echo "$as_me: ***" >&6;}
16974 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
16975 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
16976 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
16977 echo "$as_me: *** Either correct the installation" >&or run configure;}
16978 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16979 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16980 exit 1
16984 if test "${PBX_GNUTLS}" = 1; then
16985 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16989 if test "${USE_IMAP_TK}" != "no"; then
16990 if test "${IMAP_TK_DIR}" = ""; then
16991 IMAP_TK_DIR=`pwd`"/../imap-2004g"
16993 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
16994 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
16995 saved_cppflags="${CPPFLAGS}"
16996 saved_libs="${LIBS}"
16997 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
16998 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17000 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17001 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 #include "c-client.h"
17009 void mm_searched (MAILSTREAM *stream,unsigned long number)
17012 void mm_exists (MAILSTREAM *stream,unsigned long number)
17015 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17018 void mm_flags (MAILSTREAM *stream,unsigned long number)
17021 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17024 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17027 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17030 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17033 void mm_log (char *string,long errflg)
17036 void mm_dlog (char *string)
17039 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17042 void mm_critical (MAILSTREAM *stream)
17045 void mm_nocritical (MAILSTREAM *stream)
17048 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17051 void mm_fatal (char *string)
17055 main ()
17058 MAILSTREAM *foo = mail_open(NULL, "", 0);
17062 return 0;
17064 _ACEOF
17065 rm -f conftest.$ac_objext conftest$ac_exeext
17066 if { (ac_try="$ac_link"
17067 case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_link") 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest$ac_exeext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_imap_tk="yes"
17100 else
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_cv_imap_tk="no"
17108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17109 conftest$ac_exeext conftest.$ac_ext
17110 if test "${ac_cv_imap_tk}" = "yes"; then
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 #include "c-client.h"
17118 void mm_searched (MAILSTREAM *stream,unsigned long number)
17121 void mm_exists (MAILSTREAM *stream,unsigned long number)
17124 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17127 void mm_flags (MAILSTREAM *stream,unsigned long number)
17130 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17133 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17136 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17139 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17142 void mm_log (char *string,long errflg)
17145 void mm_dlog (char *string)
17148 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17151 void mm_critical (MAILSTREAM *stream)
17154 void mm_nocritical (MAILSTREAM *stream)
17157 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17160 void mm_fatal (char *string)
17164 main ()
17167 long check = mail_expunge_full(NULL, "", 0);
17171 return 0;
17173 _ACEOF
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (ac_try="$ac_link"
17176 case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_link") 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17189 { (case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_try") 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest$ac_exeext'
17199 { (case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_try") 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 ac_cv_imap_tk2006="yes"
17209 else
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17213 ac_cv_imap_tk2006="no"
17217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17218 conftest$ac_exeext conftest.$ac_ext
17220 CPPFLAGS="${saved_cppflags}"
17221 LIBS="${saved_libs}"
17222 if test "${ac_cv_imap_tk}" = "yes"; then
17223 { echo "$as_me:$LINENO: result: yes" >&5
17224 echo "${ECHO_T}yes" >&6; }
17225 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17226 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17227 PBX_IMAP_TK=1
17229 cat >>confdefs.h <<\_ACEOF
17230 #define HAVE_IMAP_TK 1
17231 _ACEOF
17233 if test "${ac_cv_imap_tk2006}" = "yes"; then
17235 cat >>confdefs.h <<\_ACEOF
17236 #define HAVE_IMAP_TK2006 1
17237 _ACEOF
17240 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17241 { echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6; }
17243 { echo "$as_me:$LINENO: ***" >&5
17244 echo "$as_me: ***" >&6;}
17245 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17246 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17247 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17248 echo "$as_me: *** Either correct the installation" >&or run configure;}
17249 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17250 echo "$as_me: *** including --without-imap." >&6;}
17251 exit 1
17252 else
17253 { echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6; }
17258 ac_ext=cpp
17259 ac_cpp='$CXXCPP $CPPFLAGS'
17260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17265 if test "${USE_KDE}" != "no"; then
17266 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17267 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17268 saved_libs="${LIBS}"
17269 saved_cppflags="${CPPFLAGS}"
17270 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17271 if test -d ${KDE_DIR}/lib; then
17272 kdelibdir="${KDE_DIR}/lib"
17273 else
17274 kdelibdir="${KDE_DIR}"
17276 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h. */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #include "kcrash.h"
17287 main ()
17289 KCrash::defaultCrashHandler(1);
17291 return 0;
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (ac_try="$ac_link"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_link") 2>conftest.er1
17303 ac_status=$?
17304 grep -v '^ *+' conftest.er1 >conftest.err
17305 rm -f conftest.er1
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } &&
17309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17310 { (case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_try") 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest$ac_exeext'
17320 { (case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_try") 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_cv_lib_kde_crash="yes"
17330 else
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17334 ac_cv_lib_kde_crash="no"
17337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17338 conftest$ac_exeext conftest.$ac_ext
17340 LIBS="${saved_libs}"
17341 CPPFLAGS="${saved_cppflags}"
17343 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17344 { echo "$as_me:$LINENO: result: yes" >&5
17345 echo "${ECHO_T}yes" >&6; }
17346 KDE_LIB="-lkdecore -lkdeui"
17347 if test "${KDE_DIR}" != ""; then
17348 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17349 KDE_INCLUDE="-I${KDE_DIR}/include"
17351 PBX_KDE=1
17353 cat >>confdefs.h <<\_ACEOF
17354 #define HAVE_LIBKDE 1
17355 _ACEOF
17357 elif test ! -z "${KDE_MANDATORY}"; then
17358 { echo "$as_me:$LINENO: result: no" >&5
17359 echo "${ECHO_T}no" >&6; }
17360 { echo "$as_me:$LINENO: ***" >&5
17361 echo "$as_me: ***" >&6;}
17362 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17363 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17364 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17365 echo "$as_me: *** Either correct the installation" >&or run configure;}
17366 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17367 echo "$as_me: *** including --without-kde." >&6;}
17368 exit 1
17369 else
17370 { echo "$as_me:$LINENO: result: no" >&5
17371 echo "${ECHO_T}no" >&6; }
17374 if test "${PBX_KDE}" = 1; then
17375 if test -n "$ac_tool_prefix"; then
17376 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17377 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17380 if test "${ac_cv_path_KDEINIT+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 case $KDEINIT in
17384 [\\/]* | ?:[\\/]*)
17385 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17391 IFS=$as_save_IFS
17392 test -z "$as_dir" && as_dir=.
17393 for ac_exec_ext in '' $ac_executable_extensions; do
17394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17395 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17397 break 2
17399 done
17400 done
17401 IFS=$as_save_IFS
17404 esac
17406 KDEINIT=$ac_cv_path_KDEINIT
17407 if test -n "$KDEINIT"; then
17408 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17409 echo "${ECHO_T}$KDEINIT" >&6; }
17410 else
17411 { echo "$as_me:$LINENO: result: no" >&5
17412 echo "${ECHO_T}no" >&6; }
17417 if test -z "$ac_cv_path_KDEINIT"; then
17418 ac_pt_KDEINIT=$KDEINIT
17419 # Extract the first word of "kdeinit", so it can be a program name with args.
17420 set dummy kdeinit; ac_word=$2
17421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17423 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426 case $ac_pt_KDEINIT in
17427 [\\/]* | ?:[\\/]*)
17428 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17434 IFS=$as_save_IFS
17435 test -z "$as_dir" && as_dir=.
17436 for ac_exec_ext in '' $ac_executable_extensions; do
17437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17438 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17440 break 2
17442 done
17443 done
17444 IFS=$as_save_IFS
17447 esac
17449 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17450 if test -n "$ac_pt_KDEINIT"; then
17451 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17452 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17453 else
17454 { echo "$as_me:$LINENO: result: no" >&5
17455 echo "${ECHO_T}no" >&6; }
17458 if test "x$ac_pt_KDEINIT" = x; then
17459 KDEINIT="No"
17460 else
17461 case $cross_compiling:$ac_tool_warned in
17462 yes:)
17463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17464 whose name does not start with the host triplet. If you think this
17465 configuration is useful to you, please write to autoconf@gnu.org." >&5
17466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17467 whose name does not start with the host triplet. If you think this
17468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17469 ac_tool_warned=yes ;;
17470 esac
17471 KDEINIT=$ac_pt_KDEINIT
17473 else
17474 KDEINIT="$ac_cv_path_KDEINIT"
17477 if test ! x"${KDEINIT}" = xNo; then
17478 KDEDIR=$(${DIRNAME} ${KDEINIT})
17479 KDEDIR=$(${DIRNAME} ${KDEDIR})
17484 ac_ext=c
17485 ac_cpp='$CPP $CPPFLAGS'
17486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17492 if test "${USE_MISDN}" != "no"; then
17493 pbxlibdir=""
17494 if test "x${MISDN_DIR}" != "x"; then
17495 if test -d ${MISDN_DIR}/lib; then
17496 pbxlibdir="-L${MISDN_DIR}/lib"
17497 else
17498 pbxlibdir="-L${MISDN_DIR}"
17501 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17502 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17503 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506 ac_check_lib_save_LIBS=$LIBS
17507 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17508 cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h. */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17515 /* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17518 #ifdef __cplusplus
17519 extern "C"
17520 #endif
17521 char mISDN_open ();
17523 main ()
17525 return mISDN_open ();
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_cv_lib_mISDN_mISDN_open=yes
17565 else
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 ac_cv_lib_mISDN_mISDN_open=no
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573 conftest$ac_exeext conftest.$ac_ext
17574 LIBS=$ac_check_lib_save_LIBS
17576 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17577 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17578 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17579 AST_MISDN_FOUND=yes
17580 else
17581 AST_MISDN_FOUND=no
17585 if test "${AST_MISDN_FOUND}" = "yes"; then
17586 MISDN_LIB="-lmISDN "
17587 MISDN_HEADER_FOUND="1"
17588 if test "x${MISDN_DIR}" != "x"; then
17589 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17590 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17591 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17592 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17595 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 ac_res=`eval echo '${'$as_ac_Header'}'`
17600 { echo "$as_me:$LINENO: result: $ac_res" >&5
17601 echo "${ECHO_T}$ac_res" >&6; }
17602 else
17603 # Is the header compilable?
17604 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17605 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17606 cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h. */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 $ac_includes_default
17613 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17614 _ACEOF
17615 rm -f conftest.$ac_objext
17616 if { (ac_try="$ac_compile"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_compile") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17630 { (case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_try") 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_header_compiler=yes
17650 else
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_header_compiler=no
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17659 echo "${ECHO_T}$ac_header_compiler" >&6; }
17661 # Is the header present?
17662 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17663 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17671 _ACEOF
17672 if { (ac_try="$ac_cpp conftest.$ac_ext"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } >/dev/null; then
17685 if test -s conftest.err; then
17686 ac_cpp_err=$ac_c_preproc_warn_flag
17687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17688 else
17689 ac_cpp_err=
17691 else
17692 ac_cpp_err=yes
17694 if test -z "$ac_cpp_err"; then
17695 ac_header_preproc=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_header_preproc=no
17703 rm -f conftest.err conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17705 echo "${ECHO_T}$ac_header_preproc" >&6; }
17707 # So? What about this header?
17708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17709 yes:no: )
17710 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17711 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17712 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17713 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17714 ac_header_preproc=yes
17716 no:yes:* )
17717 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17718 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17720 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17722 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17723 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17724 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17725 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17726 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17728 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17731 esac
17732 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17733 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737 eval "$as_ac_Header=\$ac_header_preproc"
17739 ac_res=`eval echo '${'$as_ac_Header'}'`
17740 { echo "$as_me:$LINENO: result: $ac_res" >&5
17741 echo "${ECHO_T}$ac_res" >&6; }
17744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17745 MISDN_HEADER_FOUND=1
17746 else
17747 MISDN_HEADER_FOUND=0
17752 else
17753 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17754 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17755 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17756 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17757 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17761 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17762 else
17763 # Is the header compilable?
17764 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17765 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 #include <mISDNuser/mISDNlib.h>
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (ac_try="$ac_compile"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_compile") 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17790 { (case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_try") 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_header_compiler=yes
17810 else
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 ac_header_compiler=no
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17819 echo "${ECHO_T}$ac_header_compiler" >&6; }
17821 # Is the header present?
17822 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17823 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17824 cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h. */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 #include <mISDNuser/mISDNlib.h>
17831 _ACEOF
17832 if { (ac_try="$ac_cpp conftest.$ac_ext"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } >/dev/null; then
17845 if test -s conftest.err; then
17846 ac_cpp_err=$ac_c_preproc_warn_flag
17847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17848 else
17849 ac_cpp_err=
17851 else
17852 ac_cpp_err=yes
17854 if test -z "$ac_cpp_err"; then
17855 ac_header_preproc=yes
17856 else
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 ac_header_preproc=no
17863 rm -f conftest.err conftest.$ac_ext
17864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17865 echo "${ECHO_T}$ac_header_preproc" >&6; }
17867 # So? What about this header?
17868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17869 yes:no: )
17870 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17871 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17873 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17874 ac_header_preproc=yes
17876 no:yes:* )
17877 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17878 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17879 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17880 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17881 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17882 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17883 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17884 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17885 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17886 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17888 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17891 esac
17892 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17893 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17894 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17899 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17900 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17903 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17904 MISDN_HEADER_FOUND=1
17905 else
17906 MISDN_HEADER_FOUND=0
17912 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17913 if test ! -z "${MISDN_MANDATORY}" ;
17914 then
17915 { echo "$as_me:$LINENO: ***" >&5
17916 echo "$as_me: ***" >&6;}
17917 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17918 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17919 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support" >&5
17920 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support" >&or re-run configure;}
17921 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17922 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17923 exit 1
17925 MISDN_LIB=""
17926 MISDN_INCLUDE=""
17927 PBX_MISDN=0
17928 else
17929 PBX_MISDN=1
17931 cat >>confdefs.h <<_ACEOF
17932 #define HAVE_MISDN 1
17933 _ACEOF
17936 elif test ! -z "${MISDN_MANDATORY}";
17937 then
17938 { echo "$as_me:$LINENO: ***" >&5
17939 echo "$as_me: ***" >&6;}
17940 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17941 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17942 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
17943 echo "$as_me: *** Either correct the installation" >&or run configure;}
17944 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17945 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17946 exit 1
17951 if test "${PBX_MISDN}" = 1; then
17953 if test "${USE_ISDNNET}" != "no"; then
17954 pbxlibdir=""
17955 if test "x${ISDNNET_DIR}" != "x"; then
17956 if test -d ${ISDNNET_DIR}/lib; then
17957 pbxlibdir="-L${ISDNNET_DIR}/lib"
17958 else
17959 pbxlibdir="-L${ISDNNET_DIR}"
17962 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17963 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17964 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967 ac_check_lib_save_LIBS=$LIBS
17968 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17969 cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h. */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17976 /* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17979 #ifdef __cplusplus
17980 extern "C"
17981 #endif
17982 char init_manager ();
17984 main ()
17986 return init_manager ();
17988 return 0;
17990 _ACEOF
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_link") 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 ac_cv_lib_isdnnet_init_manager=yes
18026 else
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 ac_cv_lib_isdnnet_init_manager=no
18033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
18038 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18039 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18040 AST_ISDNNET_FOUND=yes
18041 else
18042 AST_ISDNNET_FOUND=no
18046 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18047 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
18048 ISDNNET_HEADER_FOUND="1"
18049 if test "x${ISDNNET_DIR}" != "x"; then
18050 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
18051 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
18052 if test "xmISDNuser/isdn_net.h" != "x" ; then
18053 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
18054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18055 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18056 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 ac_res=`eval echo '${'$as_ac_Header'}'`
18061 { echo "$as_me:$LINENO: result: $ac_res" >&5
18062 echo "${ECHO_T}$ac_res" >&6; }
18063 else
18064 # Is the header compilable?
18065 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
18066 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18074 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_compile") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try='test -s conftest.$ac_objext'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_header_compiler=yes
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_header_compiler=no
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18120 echo "${ECHO_T}$ac_header_compiler" >&6; }
18122 # Is the header present?
18123 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
18124 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18132 _ACEOF
18133 if { (ac_try="$ac_cpp conftest.$ac_ext"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137 esac
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18140 ac_status=$?
18141 grep -v '^ *+' conftest.er1 >conftest.err
18142 rm -f conftest.er1
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } >/dev/null; then
18146 if test -s conftest.err; then
18147 ac_cpp_err=$ac_c_preproc_warn_flag
18148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18149 else
18150 ac_cpp_err=
18152 else
18153 ac_cpp_err=yes
18155 if test -z "$ac_cpp_err"; then
18156 ac_header_preproc=yes
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_header_preproc=no
18164 rm -f conftest.err conftest.$ac_ext
18165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18166 echo "${ECHO_T}$ac_header_preproc" >&6; }
18168 # So? What about this header?
18169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18170 yes:no: )
18171 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18172 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18174 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18175 ac_header_preproc=yes
18177 no:yes:* )
18178 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18179 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18180 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18181 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18182 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18183 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18184 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18185 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18186 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18187 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18188 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18189 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18192 esac
18193 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18194 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 eval "$as_ac_Header=\$ac_header_preproc"
18200 ac_res=`eval echo '${'$as_ac_Header'}'`
18201 { echo "$as_me:$LINENO: result: $ac_res" >&5
18202 echo "${ECHO_T}$ac_res" >&6; }
18205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18206 ISDNNET_HEADER_FOUND=1
18207 else
18208 ISDNNET_HEADER_FOUND=0
18213 else
18214 if test "xmISDNuser/isdn_net.h" != "x" ; then
18215 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18216 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18217 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18218 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18222 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18223 else
18224 # Is the header compilable?
18225 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18226 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h. */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 $ac_includes_default
18234 #include <mISDNuser/isdn_net.h>
18235 _ACEOF
18236 rm -f conftest.$ac_objext
18237 if { (ac_try="$ac_compile"
18238 case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_compile") 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_header_compiler=yes
18271 else
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18275 ac_header_compiler=no
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18280 echo "${ECHO_T}$ac_header_compiler" >&6; }
18282 # Is the header present?
18283 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18284 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h. */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 #include <mISDNuser/isdn_net.h>
18292 _ACEOF
18293 if { (ac_try="$ac_cpp conftest.$ac_ext"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } >/dev/null; then
18306 if test -s conftest.err; then
18307 ac_cpp_err=$ac_c_preproc_warn_flag
18308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18309 else
18310 ac_cpp_err=
18312 else
18313 ac_cpp_err=yes
18315 if test -z "$ac_cpp_err"; then
18316 ac_header_preproc=yes
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_header_preproc=no
18324 rm -f conftest.err conftest.$ac_ext
18325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18326 echo "${ECHO_T}$ac_header_preproc" >&6; }
18328 # So? What about this header?
18329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18330 yes:no: )
18331 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18332 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18334 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18335 ac_header_preproc=yes
18337 no:yes:* )
18338 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18339 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18341 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18343 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18345 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18347 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18349 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18352 esac
18353 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18354 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18355 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18360 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18361 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18364 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18365 ISDNNET_HEADER_FOUND=1
18366 else
18367 ISDNNET_HEADER_FOUND=0
18373 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18374 if test ! -z "${ISDNNET_MANDATORY}" ;
18375 then
18376 { echo "$as_me:$LINENO: ***" >&5
18377 echo "$as_me: ***" >&6;}
18378 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18379 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18380 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support" >&5
18381 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support" >&or re-run configure;}
18382 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18383 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18384 exit 1
18386 ISDNNET_LIB=""
18387 ISDNNET_INCLUDE=""
18388 PBX_ISDNNET=0
18389 else
18390 PBX_ISDNNET=1
18392 cat >>confdefs.h <<_ACEOF
18393 #define HAVE_ISDNNET 1
18394 _ACEOF
18397 elif test ! -z "${ISDNNET_MANDATORY}";
18398 then
18399 { echo "$as_me:$LINENO: ***" >&5
18400 echo "$as_me: ***" >&6;}
18401 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18402 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18403 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18404 echo "$as_me: *** Either correct the installation" >&or run configure;}
18405 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18406 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18407 exit 1
18412 if test "${USE_SUPPSERV}" != "no"; then
18413 pbxlibdir=""
18414 if test "x${SUPPSERV_DIR}" != "x"; then
18415 if test -d ${SUPPSERV_DIR}/lib; then
18416 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18417 else
18418 pbxlibdir="-L${SUPPSERV_DIR}"
18421 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18422 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18423 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426 ac_check_lib_save_LIBS=$LIBS
18427 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18435 /* Override any GCC internal prototype to avoid an error.
18436 Use char because int might match the return type of a GCC
18437 builtin and then its argument prototype would still apply. */
18438 #ifdef __cplusplus
18439 extern "C"
18440 #endif
18441 char encodeFac ();
18443 main ()
18445 return encodeFac ();
18447 return 0;
18449 _ACEOF
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (ac_try="$ac_link"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_link") 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
18464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_try") 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_lib_suppserv_encodeFac=yes
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_lib_suppserv_encodeFac=no
18492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18493 conftest$ac_exeext conftest.$ac_ext
18494 LIBS=$ac_check_lib_save_LIBS
18496 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18497 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18498 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18499 AST_SUPPSERV_FOUND=yes
18500 else
18501 AST_SUPPSERV_FOUND=no
18505 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18506 SUPPSERV_LIB="-lsuppserv "
18507 SUPPSERV_HEADER_FOUND="1"
18508 if test "x${SUPPSERV_DIR}" != "x"; then
18509 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18510 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18511 if test "xmISDNuser/suppserv.h" != "x" ; then
18512 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18514 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18515 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 ac_res=`eval echo '${'$as_ac_Header'}'`
18520 { echo "$as_me:$LINENO: result: $ac_res" >&5
18521 echo "${ECHO_T}$ac_res" >&6; }
18522 else
18523 # Is the header compilable?
18524 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18525 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h. */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18532 $ac_includes_default
18533 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18534 _ACEOF
18535 rm -f conftest.$ac_objext
18536 if { (ac_try="$ac_compile"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_compile") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try='test -s conftest.$ac_objext'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 ac_header_compiler=yes
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_header_compiler=no
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18579 echo "${ECHO_T}$ac_header_compiler" >&6; }
18581 # Is the header present?
18582 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18583 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18591 _ACEOF
18592 if { (ac_try="$ac_cpp conftest.$ac_ext"
18593 case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596 esac
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } >/dev/null; then
18605 if test -s conftest.err; then
18606 ac_cpp_err=$ac_c_preproc_warn_flag
18607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18608 else
18609 ac_cpp_err=
18611 else
18612 ac_cpp_err=yes
18614 if test -z "$ac_cpp_err"; then
18615 ac_header_preproc=yes
18616 else
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ac_header_preproc=no
18623 rm -f conftest.err conftest.$ac_ext
18624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18625 echo "${ECHO_T}$ac_header_preproc" >&6; }
18627 # So? What about this header?
18628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18629 yes:no: )
18630 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18631 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18633 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18634 ac_header_preproc=yes
18636 no:yes:* )
18637 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18638 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18639 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18640 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18642 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18643 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18644 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18645 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18646 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18647 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18648 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18651 esac
18652 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18653 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 eval "$as_ac_Header=\$ac_header_preproc"
18659 ac_res=`eval echo '${'$as_ac_Header'}'`
18660 { echo "$as_me:$LINENO: result: $ac_res" >&5
18661 echo "${ECHO_T}$ac_res" >&6; }
18664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18665 SUPPSERV_HEADER_FOUND=1
18666 else
18667 SUPPSERV_HEADER_FOUND=0
18672 else
18673 if test "xmISDNuser/suppserv.h" != "x" ; then
18674 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18675 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18676 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18677 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18681 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18682 else
18683 # Is the header compilable?
18684 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18685 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 $ac_includes_default
18693 #include <mISDNuser/suppserv.h>
18694 _ACEOF
18695 rm -f conftest.$ac_objext
18696 if { (ac_try="$ac_compile"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_compile") 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_header_compiler=yes
18730 else
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_header_compiler=no
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18739 echo "${ECHO_T}$ac_header_compiler" >&6; }
18741 # Is the header present?
18742 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18743 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h. */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 #include <mISDNuser/suppserv.h>
18751 _ACEOF
18752 if { (ac_try="$ac_cpp conftest.$ac_ext"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18759 ac_status=$?
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } >/dev/null; then
18765 if test -s conftest.err; then
18766 ac_cpp_err=$ac_c_preproc_warn_flag
18767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18768 else
18769 ac_cpp_err=
18771 else
18772 ac_cpp_err=yes
18774 if test -z "$ac_cpp_err"; then
18775 ac_header_preproc=yes
18776 else
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18780 ac_header_preproc=no
18783 rm -f conftest.err conftest.$ac_ext
18784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18785 echo "${ECHO_T}$ac_header_preproc" >&6; }
18787 # So? What about this header?
18788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18789 yes:no: )
18790 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18791 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18793 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18794 ac_header_preproc=yes
18796 no:yes:* )
18797 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18798 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18799 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18800 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18801 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18802 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18803 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18804 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18805 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18806 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18808 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18811 esac
18812 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18813 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18814 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18819 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18820 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18823 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18824 SUPPSERV_HEADER_FOUND=1
18825 else
18826 SUPPSERV_HEADER_FOUND=0
18832 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18833 if test ! -z "${SUPPSERV_MANDATORY}" ;
18834 then
18835 { echo "$as_me:$LINENO: ***" >&5
18836 echo "$as_me: ***" >&6;}
18837 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18838 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18839 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&5
18840 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&or re-run configure;}
18841 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18842 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18843 exit 1
18845 SUPPSERV_LIB=""
18846 SUPPSERV_INCLUDE=""
18847 PBX_SUPPSERV=0
18848 else
18849 PBX_SUPPSERV=1
18851 cat >>confdefs.h <<_ACEOF
18852 #define HAVE_SUPPSERV 1
18853 _ACEOF
18856 elif test ! -z "${SUPPSERV_MANDATORY}";
18857 then
18858 { echo "$as_me:$LINENO: ***" >&5
18859 echo "$as_me: ***" >&6;}
18860 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18861 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18862 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
18863 echo "$as_me: *** Either correct the installation" >&or run configure;}
18864 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18865 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18866 exit 1
18873 if test "${USE_NBS}" != "no"; then
18874 pbxlibdir=""
18875 if test "x${NBS_DIR}" != "x"; then
18876 if test -d ${NBS_DIR}/lib; then
18877 pbxlibdir="-L${NBS_DIR}/lib"
18878 else
18879 pbxlibdir="-L${NBS_DIR}"
18882 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18883 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18884 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-lnbs ${pbxlibdir} $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18896 /* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 char nbs_connect ();
18904 main ()
18906 return nbs_connect ();
18908 return 0;
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_nbs_nbs_connect=yes
18946 else
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950 ac_cv_lib_nbs_nbs_connect=no
18953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18957 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18958 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18959 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18960 AST_NBS_FOUND=yes
18961 else
18962 AST_NBS_FOUND=no
18966 if test "${AST_NBS_FOUND}" = "yes"; then
18967 NBS_LIB="-lnbs "
18968 NBS_HEADER_FOUND="1"
18969 if test "x${NBS_DIR}" != "x"; then
18970 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
18971 NBS_INCLUDE="-I${NBS_DIR}/include"
18972 if test "xnbs.h" != "x" ; then
18973 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18975 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18976 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 ac_res=`eval echo '${'$as_ac_Header'}'`
18981 { echo "$as_me:$LINENO: result: $ac_res" >&5
18982 echo "${ECHO_T}$ac_res" >&6; }
18983 else
18984 # Is the header compilable?
18985 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18986 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h. */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 $ac_includes_default
18994 #include <${NBS_DIR}/include/nbs.h>
18995 _ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (ac_try="$ac_compile"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_compile") 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_header_compiler=yes
19031 else
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_header_compiler=no
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19040 echo "${ECHO_T}$ac_header_compiler" >&6; }
19042 # Is the header present?
19043 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
19044 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h. */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 #include <${NBS_DIR}/include/nbs.h>
19052 _ACEOF
19053 if { (ac_try="$ac_cpp conftest.$ac_ext"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } >/dev/null; then
19066 if test -s conftest.err; then
19067 ac_cpp_err=$ac_c_preproc_warn_flag
19068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19069 else
19070 ac_cpp_err=
19072 else
19073 ac_cpp_err=yes
19075 if test -z "$ac_cpp_err"; then
19076 ac_header_preproc=yes
19077 else
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_header_preproc=no
19084 rm -f conftest.err conftest.$ac_ext
19085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19086 echo "${ECHO_T}$ac_header_preproc" >&6; }
19088 # So? What about this header?
19089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19090 yes:no: )
19091 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19092 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19093 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
19094 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
19095 ac_header_preproc=yes
19097 no:yes:* )
19098 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
19099 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
19100 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
19101 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
19102 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
19103 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
19104 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19105 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19106 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
19107 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
19108 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
19109 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
19112 esac
19113 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19114 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118 eval "$as_ac_Header=\$ac_header_preproc"
19120 ac_res=`eval echo '${'$as_ac_Header'}'`
19121 { echo "$as_me:$LINENO: result: $ac_res" >&5
19122 echo "${ECHO_T}$ac_res" >&6; }
19125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19126 NBS_HEADER_FOUND=1
19127 else
19128 NBS_HEADER_FOUND=0
19133 else
19134 if test "xnbs.h" != "x" ; then
19135 if test "${ac_cv_header_nbs_h+set}" = set; then
19136 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19137 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19138 if test "${ac_cv_header_nbs_h+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19142 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19143 else
19144 # Is the header compilable?
19145 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
19146 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
19147 cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h. */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 $ac_includes_default
19154 #include <nbs.h>
19155 _ACEOF
19156 rm -f conftest.$ac_objext
19157 if { (ac_try="$ac_compile"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_compile") 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
19170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19171 { (case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174 esac
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_try") 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest.$ac_objext'
19181 { (case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_try") 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_header_compiler=yes
19191 else
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_header_compiler=no
19198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19200 echo "${ECHO_T}$ac_header_compiler" >&6; }
19202 # Is the header present?
19203 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
19204 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <nbs.h>
19212 _ACEOF
19213 if { (ac_try="$ac_cpp conftest.$ac_ext"
19214 case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } >/dev/null; then
19226 if test -s conftest.err; then
19227 ac_cpp_err=$ac_c_preproc_warn_flag
19228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19229 else
19230 ac_cpp_err=
19232 else
19233 ac_cpp_err=yes
19235 if test -z "$ac_cpp_err"; then
19236 ac_header_preproc=yes
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_header_preproc=no
19244 rm -f conftest.err conftest.$ac_ext
19245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19246 echo "${ECHO_T}$ac_header_preproc" >&6; }
19248 # So? What about this header?
19249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19250 yes:no: )
19251 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19252 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
19254 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
19255 ac_header_preproc=yes
19257 no:yes:* )
19258 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
19259 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
19260 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
19261 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
19262 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
19263 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
19264 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19265 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19266 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
19267 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
19268 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
19269 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
19272 esac
19273 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19274 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19275 if test "${ac_cv_header_nbs_h+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 ac_cv_header_nbs_h=$ac_header_preproc
19280 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19281 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19284 if test $ac_cv_header_nbs_h = yes; then
19285 NBS_HEADER_FOUND=1
19286 else
19287 NBS_HEADER_FOUND=0
19293 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
19294 if test ! -z "${NBS_MANDATORY}" ;
19295 then
19296 { echo "$as_me:$LINENO: ***" >&5
19297 echo "$as_me: ***" >&6;}
19298 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19299 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19300 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support" >&5
19301 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support" >&or re-run configure;}
19302 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19303 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19304 exit 1
19306 NBS_LIB=""
19307 NBS_INCLUDE=""
19308 PBX_NBS=0
19309 else
19310 PBX_NBS=1
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_NBS 1
19314 _ACEOF
19317 elif test ! -z "${NBS_MANDATORY}";
19318 then
19319 { echo "$as_me:$LINENO: ***" >&5
19320 echo "$as_me: ***" >&6;}
19321 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19322 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19323 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19324 echo "$as_me: *** Either correct the installation" >&or run configure;}
19325 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19326 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19327 exit 1
19333 if test "${USE_NCURSES}" != "no"; then
19334 pbxlibdir=""
19335 if test "x${NCURSES_DIR}" != "x"; then
19336 if test -d ${NCURSES_DIR}/lib; then
19337 pbxlibdir="-L${NCURSES_DIR}/lib"
19338 else
19339 pbxlibdir="-L${NCURSES_DIR}"
19342 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19343 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19344 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347 ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-lncurses ${pbxlibdir} $LIBS"
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19356 /* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19359 #ifdef __cplusplus
19360 extern "C"
19361 #endif
19362 char initscr ();
19364 main ()
19366 return initscr ();
19368 return 0;
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_link") 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
19396 { (case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_try") 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 ac_cv_lib_ncurses_initscr=yes
19406 else
19407 echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19410 ac_cv_lib_ncurses_initscr=no
19413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19414 conftest$ac_exeext conftest.$ac_ext
19415 LIBS=$ac_check_lib_save_LIBS
19417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19418 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19419 if test $ac_cv_lib_ncurses_initscr = yes; then
19420 AST_NCURSES_FOUND=yes
19421 else
19422 AST_NCURSES_FOUND=no
19426 if test "${AST_NCURSES_FOUND}" = "yes"; then
19427 NCURSES_LIB="-lncurses "
19428 NCURSES_HEADER_FOUND="1"
19429 if test "x${NCURSES_DIR}" != "x"; then
19430 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19431 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19432 if test "xcurses.h" != "x" ; then
19433 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19435 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19436 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 ac_res=`eval echo '${'$as_ac_Header'}'`
19441 { echo "$as_me:$LINENO: result: $ac_res" >&5
19442 echo "${ECHO_T}$ac_res" >&6; }
19443 else
19444 # Is the header compilable?
19445 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19446 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h. */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19453 $ac_includes_default
19454 #include <${NCURSES_DIR}/include/curses.h>
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (ac_try="$ac_compile"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest.$ac_objext'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 ac_header_compiler=yes
19491 else
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_header_compiler=no
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19500 echo "${ECHO_T}$ac_header_compiler" >&6; }
19502 # Is the header present?
19503 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19504 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 #include <${NCURSES_DIR}/include/curses.h>
19512 _ACEOF
19513 if { (ac_try="$ac_cpp conftest.$ac_ext"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } >/dev/null; then
19526 if test -s conftest.err; then
19527 ac_cpp_err=$ac_c_preproc_warn_flag
19528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19529 else
19530 ac_cpp_err=
19532 else
19533 ac_cpp_err=yes
19535 if test -z "$ac_cpp_err"; then
19536 ac_header_preproc=yes
19537 else
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ac_header_preproc=no
19544 rm -f conftest.err conftest.$ac_ext
19545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19546 echo "${ECHO_T}$ac_header_preproc" >&6; }
19548 # So? What about this header?
19549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19550 yes:no: )
19551 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19552 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19554 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19555 ac_header_preproc=yes
19557 no:yes:* )
19558 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19559 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19560 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19561 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19562 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19563 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19565 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19567 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19569 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19572 esac
19573 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19574 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 eval "$as_ac_Header=\$ac_header_preproc"
19580 ac_res=`eval echo '${'$as_ac_Header'}'`
19581 { echo "$as_me:$LINENO: result: $ac_res" >&5
19582 echo "${ECHO_T}$ac_res" >&6; }
19585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19586 NCURSES_HEADER_FOUND=1
19587 else
19588 NCURSES_HEADER_FOUND=0
19593 else
19594 if test "xcurses.h" != "x" ; then
19595 if test "${ac_cv_header_curses_h+set}" = set; then
19596 { echo "$as_me:$LINENO: checking for curses.h" >&5
19597 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19598 if test "${ac_cv_header_curses_h+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19602 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19603 else
19604 # Is the header compilable?
19605 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19606 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 $ac_includes_default
19614 #include <curses.h>
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_header_compiler=yes
19651 else
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_header_compiler=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19660 echo "${ECHO_T}$ac_header_compiler" >&6; }
19662 # Is the header present?
19663 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19664 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h. */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 #include <curses.h>
19672 _ACEOF
19673 if { (ac_try="$ac_cpp conftest.$ac_ext"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } >/dev/null; then
19686 if test -s conftest.err; then
19687 ac_cpp_err=$ac_c_preproc_warn_flag
19688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19689 else
19690 ac_cpp_err=
19692 else
19693 ac_cpp_err=yes
19695 if test -z "$ac_cpp_err"; then
19696 ac_header_preproc=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_header_preproc=no
19704 rm -f conftest.err conftest.$ac_ext
19705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19706 echo "${ECHO_T}$ac_header_preproc" >&6; }
19708 # So? What about this header?
19709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19710 yes:no: )
19711 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19712 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19714 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19715 ac_header_preproc=yes
19717 no:yes:* )
19718 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19719 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19720 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19721 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19723 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19725 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19727 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19729 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19732 esac
19733 { echo "$as_me:$LINENO: checking for curses.h" >&5
19734 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19735 if test "${ac_cv_header_curses_h+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 ac_cv_header_curses_h=$ac_header_preproc
19740 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19741 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19744 if test $ac_cv_header_curses_h = yes; then
19745 NCURSES_HEADER_FOUND=1
19746 else
19747 NCURSES_HEADER_FOUND=0
19753 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19754 if test ! -z "${NCURSES_MANDATORY}" ;
19755 then
19756 { echo "$as_me:$LINENO: ***" >&5
19757 echo "$as_me: ***" >&6;}
19758 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19759 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19760 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support" >&5
19761 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support" >&or re-run configure;}
19762 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19763 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19764 exit 1
19766 NCURSES_LIB=""
19767 NCURSES_INCLUDE=""
19768 PBX_NCURSES=0
19769 else
19770 PBX_NCURSES=1
19772 cat >>confdefs.h <<_ACEOF
19773 #define HAVE_NCURSES 1
19774 _ACEOF
19777 elif test ! -z "${NCURSES_MANDATORY}";
19778 then
19779 { echo "$as_me:$LINENO: ***" >&5
19780 echo "$as_me: ***" >&6;}
19781 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19782 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19783 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19784 echo "$as_me: *** Either correct the installation" >&or run configure;}
19785 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19786 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19787 exit 1
19792 NETSNMP_CONFIG=No
19793 if test "${USE_NETSNMP}" != "no"; then
19794 if test "x${NETSNMP_DIR}" != "x"; then
19795 if test -n "$ac_tool_prefix"; then
19796 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19797 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19800 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 case $NETSNMP_CONFIG in
19804 [\\/]* | ?:[\\/]*)
19805 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 for as_dir in ${NETSNMP_DIR}/bin
19811 IFS=$as_save_IFS
19812 test -z "$as_dir" && as_dir=.
19813 for ac_exec_ext in '' $ac_executable_extensions; do
19814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19815 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19817 break 2
19819 done
19820 done
19821 IFS=$as_save_IFS
19824 esac
19826 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19827 if test -n "$NETSNMP_CONFIG"; then
19828 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19829 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19830 else
19831 { echo "$as_me:$LINENO: result: no" >&5
19832 echo "${ECHO_T}no" >&6; }
19837 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19838 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19839 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19840 set dummy net-snmp-config; ac_word=$2
19841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19843 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846 case $ac_pt_NETSNMP_CONFIG in
19847 [\\/]* | ?:[\\/]*)
19848 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19852 for as_dir in ${NETSNMP_DIR}/bin
19854 IFS=$as_save_IFS
19855 test -z "$as_dir" && as_dir=.
19856 for ac_exec_ext in '' $ac_executable_extensions; do
19857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19858 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19860 break 2
19862 done
19863 done
19864 IFS=$as_save_IFS
19867 esac
19869 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19870 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19871 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19872 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19873 else
19874 { echo "$as_me:$LINENO: result: no" >&5
19875 echo "${ECHO_T}no" >&6; }
19878 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19879 NETSNMP_CONFIG="No"
19880 else
19881 case $cross_compiling:$ac_tool_warned in
19882 yes:)
19883 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19884 whose name does not start with the host triplet. If you think this
19885 configuration is useful to you, please write to autoconf@gnu.org." >&5
19886 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19887 whose name does not start with the host triplet. If you think this
19888 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19889 ac_tool_warned=yes ;;
19890 esac
19891 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19893 else
19894 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19897 if test x"${NETSNMP_CONFIG}" = xNo; then
19898 { echo "$as_me:$LINENO: ***" >&5
19899 echo "$as_me: ***" >&6;}
19900 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19901 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19902 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19903 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19904 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
19905 echo "$as_me: *** Either correct the installation" >&or run configure;}
19906 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19907 echo "$as_me: *** including --without-netsnmp" >&6;}
19908 exit 1
19910 else
19911 if test -n "$ac_tool_prefix"; then
19912 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19913 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19916 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 case $NETSNMP_CONFIG in
19920 [\\/]* | ?:[\\/]*)
19921 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19925 for as_dir in $PATH
19927 IFS=$as_save_IFS
19928 test -z "$as_dir" && as_dir=.
19929 for ac_exec_ext in '' $ac_executable_extensions; do
19930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19931 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19933 break 2
19935 done
19936 done
19937 IFS=$as_save_IFS
19940 esac
19942 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19943 if test -n "$NETSNMP_CONFIG"; then
19944 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19945 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19946 else
19947 { echo "$as_me:$LINENO: result: no" >&5
19948 echo "${ECHO_T}no" >&6; }
19953 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19954 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19955 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19956 set dummy net-snmp-config; ac_word=$2
19957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19959 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962 case $ac_pt_NETSNMP_CONFIG in
19963 [\\/]* | ?:[\\/]*)
19964 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19968 for as_dir in $PATH
19970 IFS=$as_save_IFS
19971 test -z "$as_dir" && as_dir=.
19972 for ac_exec_ext in '' $ac_executable_extensions; do
19973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19974 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19976 break 2
19978 done
19979 done
19980 IFS=$as_save_IFS
19983 esac
19985 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19986 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19987 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19988 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19989 else
19990 { echo "$as_me:$LINENO: result: no" >&5
19991 echo "${ECHO_T}no" >&6; }
19994 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19995 NETSNMP_CONFIG="No"
19996 else
19997 case $cross_compiling:$ac_tool_warned in
19998 yes:)
19999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20000 whose name does not start with the host triplet. If you think this
20001 configuration is useful to you, please write to autoconf@gnu.org." >&5
20002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20003 whose name does not start with the host triplet. If you think this
20004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20005 ac_tool_warned=yes ;;
20006 esac
20007 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20009 else
20010 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20015 if test x"${NETSNMP_CONFIG}" != xNo; then
20016 NETSNMP_libs=`net-snmp-config --agent-libs`
20018 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
20019 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
20020 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023 ac_check_lib_save_LIBS=$LIBS
20024 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20032 /* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20035 #ifdef __cplusplus
20036 extern "C"
20037 #endif
20038 char snmp_register_callback ();
20040 main ()
20042 return snmp_register_callback ();
20044 return 0;
20046 _ACEOF
20047 rm -f conftest.$ac_objext conftest$ac_exeext
20048 if { (ac_try="$ac_link"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_link") 2>conftest.er1
20055 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20062 { (case "(($ac_try" in
20063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064 *) ac_try_echo=$ac_try;;
20065 esac
20066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067 (eval "$ac_try") 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; } &&
20071 { ac_try='test -s conftest$ac_exeext'
20072 { (case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_try") 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 ac_cv_lib_netsnmp_snmp_register_callback=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 ac_cv_lib_netsnmp_snmp_register_callback=no
20089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20090 conftest$ac_exeext conftest.$ac_ext
20091 LIBS=$ac_check_lib_save_LIBS
20093 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20094 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20095 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20097 cat >>confdefs.h <<_ACEOF
20098 #define HAVE_NETSNMP 1
20099 _ACEOF
20104 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20105 NETSNMP_LIB="${NETSNMP_libs}"
20106 PBX_NETSNMP=1
20107 elif test ! -z "${NETSNMP_MANDATORY}";
20108 then
20109 { echo "$as_me:$LINENO: ***" >&5
20110 echo "$as_me: ***" >&6;}
20111 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20112 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20113 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20114 echo "$as_me: *** Either correct the installation" >&or run configure;}
20115 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20116 echo "$as_me: *** including --without-netsnmp" >&6;}
20117 exit 1
20119 elif test ! -z "${NETSNMP_MANDATORY}";
20120 then
20121 { echo "$as_me:$LINENO: ***" >&5
20122 echo "$as_me: ***" >&6;}
20123 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20124 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20125 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20126 echo "$as_me: *** Either correct the installation" >&or run configure;}
20127 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20128 echo "$as_me: *** including --without-netsnmp" >&6;}
20129 exit 1
20133 if test "${USE_NEWT}" != "no"; then
20134 pbxlibdir=""
20135 if test "x${NEWT_DIR}" != "x"; then
20136 if test -d ${NEWT_DIR}/lib; then
20137 pbxlibdir="-L${NEWT_DIR}/lib"
20138 else
20139 pbxlibdir="-L${NEWT_DIR}"
20142 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
20143 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
20144 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147 ac_check_lib_save_LIBS=$LIBS
20148 LIBS="-lnewt ${pbxlibdir} $LIBS"
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char newtBell ();
20164 main ()
20166 return newtBell ();
20168 return 0;
20170 _ACEOF
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>conftest.er1
20179 ac_status=$?
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20186 { (case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_try") 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest$ac_exeext'
20196 { (case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_try") 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_cv_lib_newt_newtBell=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_cv_lib_newt_newtBell=no
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
20218 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20219 if test $ac_cv_lib_newt_newtBell = yes; then
20220 AST_NEWT_FOUND=yes
20221 else
20222 AST_NEWT_FOUND=no
20226 if test "${AST_NEWT_FOUND}" = "yes"; then
20227 NEWT_LIB="-lnewt "
20228 NEWT_HEADER_FOUND="1"
20229 if test "x${NEWT_DIR}" != "x"; then
20230 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20231 NEWT_INCLUDE="-I${NEWT_DIR}/include"
20232 if test "xnewt.h" != "x" ; then
20233 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
20234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20235 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20236 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 ac_res=`eval echo '${'$as_ac_Header'}'`
20241 { echo "$as_me:$LINENO: result: $ac_res" >&5
20242 echo "${ECHO_T}$ac_res" >&6; }
20243 else
20244 # Is the header compilable?
20245 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
20246 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
20247 cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h. */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 $ac_includes_default
20254 #include <${NEWT_DIR}/include/newt.h>
20255 _ACEOF
20256 rm -f conftest.$ac_objext
20257 if { (ac_try="$ac_compile"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_compile") 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20271 { (case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_try") 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } &&
20280 { ac_try='test -s conftest.$ac_objext'
20281 { (case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_try") 2>&5
20287 ac_status=$?
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; }; then
20290 ac_header_compiler=yes
20291 else
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_header_compiler=no
20298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20300 echo "${ECHO_T}$ac_header_compiler" >&6; }
20302 # Is the header present?
20303 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
20304 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h. */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 #include <${NEWT_DIR}/include/newt.h>
20312 _ACEOF
20313 if { (ac_try="$ac_cpp conftest.$ac_ext"
20314 case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20320 ac_status=$?
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } >/dev/null; then
20326 if test -s conftest.err; then
20327 ac_cpp_err=$ac_c_preproc_warn_flag
20328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20329 else
20330 ac_cpp_err=
20332 else
20333 ac_cpp_err=yes
20335 if test -z "$ac_cpp_err"; then
20336 ac_header_preproc=yes
20337 else
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_preproc=no
20344 rm -f conftest.err conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20346 echo "${ECHO_T}$ac_header_preproc" >&6; }
20348 # So? What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20350 yes:no: )
20351 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20352 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
20354 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
20355 ac_header_preproc=yes
20357 no:yes:* )
20358 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
20359 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
20361 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
20363 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
20365 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
20367 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
20369 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
20372 esac
20373 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20374 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 eval "$as_ac_Header=\$ac_header_preproc"
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20386 NEWT_HEADER_FOUND=1
20387 else
20388 NEWT_HEADER_FOUND=0
20393 else
20394 if test "xnewt.h" != "x" ; then
20395 if test "${ac_cv_header_newt_h+set}" = set; then
20396 { echo "$as_me:$LINENO: checking for newt.h" >&5
20397 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20398 if test "${ac_cv_header_newt_h+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20402 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20403 else
20404 # Is the header compilable?
20405 { echo "$as_me:$LINENO: checking newt.h usability" >&5
20406 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 $ac_includes_default
20414 #include <newt.h>
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_compile") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20437 ac_status=$?
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest.$ac_objext'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_header_compiler=yes
20451 else
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_header_compiler=no
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20460 echo "${ECHO_T}$ac_header_compiler" >&6; }
20462 # Is the header present?
20463 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20464 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 #include <newt.h>
20472 _ACEOF
20473 if { (ac_try="$ac_cpp conftest.$ac_ext"
20474 case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } >/dev/null; then
20486 if test -s conftest.err; then
20487 ac_cpp_err=$ac_c_preproc_warn_flag
20488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20489 else
20490 ac_cpp_err=
20492 else
20493 ac_cpp_err=yes
20495 if test -z "$ac_cpp_err"; then
20496 ac_header_preproc=yes
20497 else
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_header_preproc=no
20504 rm -f conftest.err conftest.$ac_ext
20505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20506 echo "${ECHO_T}$ac_header_preproc" >&6; }
20508 # So? What about this header?
20509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20510 yes:no: )
20511 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20512 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20514 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20515 ac_header_preproc=yes
20517 no:yes:* )
20518 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20519 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20521 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20523 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20525 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20527 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20529 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20532 esac
20533 { echo "$as_me:$LINENO: checking for newt.h" >&5
20534 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20535 if test "${ac_cv_header_newt_h+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 else
20538 ac_cv_header_newt_h=$ac_header_preproc
20540 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20541 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20544 if test $ac_cv_header_newt_h = yes; then
20545 NEWT_HEADER_FOUND=1
20546 else
20547 NEWT_HEADER_FOUND=0
20553 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20554 if test ! -z "${NEWT_MANDATORY}" ;
20555 then
20556 { echo "$as_me:$LINENO: ***" >&5
20557 echo "$as_me: ***" >&6;}
20558 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20559 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20560 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support" >&5
20561 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support" >&or re-run configure;}
20562 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20563 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20564 exit 1
20566 NEWT_LIB=""
20567 NEWT_INCLUDE=""
20568 PBX_NEWT=0
20569 else
20570 PBX_NEWT=1
20572 cat >>confdefs.h <<_ACEOF
20573 #define HAVE_NEWT 1
20574 _ACEOF
20577 elif test ! -z "${NEWT_MANDATORY}";
20578 then
20579 { echo "$as_me:$LINENO: ***" >&5
20580 echo "$as_me: ***" >&6;}
20581 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20582 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20583 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
20584 echo "$as_me: *** Either correct the installation" >&or run configure;}
20585 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20586 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20587 exit 1
20593 if test "${USE_UNIXODBC}" != "no"; then
20594 pbxlibdir=""
20595 if test "x${UNIXODBC_DIR}" != "x"; then
20596 if test -d ${UNIXODBC_DIR}/lib; then
20597 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20598 else
20599 pbxlibdir="-L${UNIXODBC_DIR}"
20602 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20603 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char SQLConnect ();
20624 main ()
20626 return SQLConnect ();
20628 return 0;
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_lib_odbc_SQLConnect=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_lib_odbc_SQLConnect=no
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20678 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20679 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20680 AST_UNIXODBC_FOUND=yes
20681 else
20682 AST_UNIXODBC_FOUND=no
20686 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20687 UNIXODBC_LIB="-lodbc -lltdl"
20688 UNIXODBC_HEADER_FOUND="1"
20689 if test "x${UNIXODBC_DIR}" != "x"; then
20690 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20691 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20692 if test "xsql.h" != "x" ; then
20693 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20696 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 ac_res=`eval echo '${'$as_ac_Header'}'`
20701 { echo "$as_me:$LINENO: result: $ac_res" >&5
20702 echo "${ECHO_T}$ac_res" >&6; }
20703 else
20704 # Is the header compilable?
20705 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20706 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 $ac_includes_default
20714 #include <${UNIXODBC_DIR}/include/sql.h>
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731 { (case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_try") 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_try") 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_header_compiler=yes
20751 else
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_header_compiler=no
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20760 echo "${ECHO_T}$ac_header_compiler" >&6; }
20762 # Is the header present?
20763 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20764 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <${UNIXODBC_DIR}/include/sql.h>
20772 _ACEOF
20773 if { (ac_try="$ac_cpp conftest.$ac_ext"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } >/dev/null; then
20786 if test -s conftest.err; then
20787 ac_cpp_err=$ac_c_preproc_warn_flag
20788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20789 else
20790 ac_cpp_err=
20792 else
20793 ac_cpp_err=yes
20795 if test -z "$ac_cpp_err"; then
20796 ac_header_preproc=yes
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_header_preproc=no
20804 rm -f conftest.err conftest.$ac_ext
20805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20806 echo "${ECHO_T}$ac_header_preproc" >&6; }
20808 # So? What about this header?
20809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20810 yes:no: )
20811 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20812 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20814 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20815 ac_header_preproc=yes
20817 no:yes:* )
20818 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20819 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20821 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20823 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20825 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20827 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20829 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20832 esac
20833 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20834 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838 eval "$as_ac_Header=\$ac_header_preproc"
20840 ac_res=`eval echo '${'$as_ac_Header'}'`
20841 { echo "$as_me:$LINENO: result: $ac_res" >&5
20842 echo "${ECHO_T}$ac_res" >&6; }
20845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20846 UNIXODBC_HEADER_FOUND=1
20847 else
20848 UNIXODBC_HEADER_FOUND=0
20853 else
20854 if test "xsql.h" != "x" ; then
20855 if test "${ac_cv_header_sql_h+set}" = set; then
20856 { echo "$as_me:$LINENO: checking for sql.h" >&5
20857 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20858 if test "${ac_cv_header_sql_h+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20862 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20863 else
20864 # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20866 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #include <sql.h>
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20891 { (case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_try") 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_try") 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_header_compiler=yes
20911 else
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_header_compiler=no
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20920 echo "${ECHO_T}$ac_header_compiler" >&6; }
20922 # Is the header present?
20923 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20924 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 #include <sql.h>
20932 _ACEOF
20933 if { (ac_try="$ac_cpp conftest.$ac_ext"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } >/dev/null; then
20946 if test -s conftest.err; then
20947 ac_cpp_err=$ac_c_preproc_warn_flag
20948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20949 else
20950 ac_cpp_err=
20952 else
20953 ac_cpp_err=yes
20955 if test -z "$ac_cpp_err"; then
20956 ac_header_preproc=yes
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_header_preproc=no
20964 rm -f conftest.err conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20966 echo "${ECHO_T}$ac_header_preproc" >&6; }
20968 # So? What about this header?
20969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20970 yes:no: )
20971 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20972 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20974 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20975 ac_header_preproc=yes
20977 no:yes:* )
20978 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20979 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20981 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20983 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20985 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20986 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20987 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20989 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20992 esac
20993 { echo "$as_me:$LINENO: checking for sql.h" >&5
20994 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20995 if test "${ac_cv_header_sql_h+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20998 ac_cv_header_sql_h=$ac_header_preproc
21000 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
21001 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
21004 if test $ac_cv_header_sql_h = yes; then
21005 UNIXODBC_HEADER_FOUND=1
21006 else
21007 UNIXODBC_HEADER_FOUND=0
21013 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
21014 if test ! -z "${UNIXODBC_MANDATORY}" ;
21015 then
21016 { echo "$as_me:$LINENO: ***" >&5
21017 echo "$as_me: ***" >&6;}
21018 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
21019 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
21020 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&5
21021 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&or re-run configure;}
21022 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21023 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21024 exit 1
21026 UNIXODBC_LIB=""
21027 UNIXODBC_INCLUDE=""
21028 PBX_UNIXODBC=0
21029 else
21030 PBX_UNIXODBC=1
21032 cat >>confdefs.h <<_ACEOF
21033 #define HAVE_UNIXODBC 1
21034 _ACEOF
21037 elif test ! -z "${UNIXODBC_MANDATORY}";
21038 then
21039 { echo "$as_me:$LINENO: ***" >&5
21040 echo "$as_me: ***" >&6;}
21041 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
21042 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
21043 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21044 echo "$as_me: *** Either correct the installation" >&or run configure;}
21045 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21046 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21047 exit 1
21053 if test "${USE_OGG}" != "no"; then
21054 pbxlibdir=""
21055 if test "x${OGG_DIR}" != "x"; then
21056 if test -d ${OGG_DIR}/lib; then
21057 pbxlibdir="-L${OGG_DIR}/lib"
21058 else
21059 pbxlibdir="-L${OGG_DIR}"
21062 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
21063 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
21064 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067 ac_check_lib_save_LIBS=$LIBS
21068 LIBS="-logg ${pbxlibdir} $LIBS"
21069 cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h. */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21079 #ifdef __cplusplus
21080 extern "C"
21081 #endif
21082 char ogg_sync_init ();
21084 main ()
21086 return ogg_sync_init ();
21088 return 0;
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_link") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
21105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21106 { (case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_try") 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest$ac_exeext'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 ac_cv_lib_ogg_ogg_sync_init=yes
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_cv_lib_ogg_ogg_sync_init=no
21133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21134 conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21137 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
21138 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21139 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21140 AST_OGG_FOUND=yes
21141 else
21142 AST_OGG_FOUND=no
21146 if test "${AST_OGG_FOUND}" = "yes"; then
21147 OGG_LIB="-logg "
21148 OGG_HEADER_FOUND="1"
21149 if test "x${OGG_DIR}" != "x"; then
21150 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21151 OGG_INCLUDE="-I${OGG_DIR}/include"
21152 if test "x" != "x" ; then
21153 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
21154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21155 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21156 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 ac_res=`eval echo '${'$as_ac_Header'}'`
21161 { echo "$as_me:$LINENO: result: $ac_res" >&5
21162 echo "${ECHO_T}$ac_res" >&6; }
21163 else
21164 # Is the header compilable?
21165 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
21166 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 $ac_includes_default
21174 #include <${OGG_DIR}/include/>
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_compile") 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21191 { (case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_try") 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try='test -s conftest.$ac_objext'
21201 { (case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_try") 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_header_compiler=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_header_compiler=no
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21220 echo "${ECHO_T}$ac_header_compiler" >&6; }
21222 # Is the header present?
21223 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
21224 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h. */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 #include <${OGG_DIR}/include/>
21232 _ACEOF
21233 if { (ac_try="$ac_cpp conftest.$ac_ext"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } >/dev/null; then
21246 if test -s conftest.err; then
21247 ac_cpp_err=$ac_c_preproc_warn_flag
21248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21249 else
21250 ac_cpp_err=
21252 else
21253 ac_cpp_err=yes
21255 if test -z "$ac_cpp_err"; then
21256 ac_header_preproc=yes
21257 else
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ac_header_preproc=no
21264 rm -f conftest.err conftest.$ac_ext
21265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21266 echo "${ECHO_T}$ac_header_preproc" >&6; }
21268 # So? What about this header?
21269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21270 yes:no: )
21271 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
21272 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
21274 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
21275 ac_header_preproc=yes
21277 no:yes:* )
21278 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
21279 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
21281 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
21283 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
21285 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
21287 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
21289 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
21292 esac
21293 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21294 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21296 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 else
21298 eval "$as_ac_Header=\$ac_header_preproc"
21300 ac_res=`eval echo '${'$as_ac_Header'}'`
21301 { echo "$as_me:$LINENO: result: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21306 OGG_HEADER_FOUND=1
21307 else
21308 OGG_HEADER_FOUND=0
21313 else
21314 if test "x" != "x" ; then
21315 if test "${ac_cv_header_+set}" = set; then
21316 { echo "$as_me:$LINENO: checking for " >&5
21317 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21318 if test "${ac_cv_header_+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21322 echo "${ECHO_T}$ac_cv_header_" >&6; }
21323 else
21324 # Is the header compilable?
21325 { echo "$as_me:$LINENO: checking usability" >&5
21326 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 $ac_includes_default
21334 #include <>
21335 _ACEOF
21336 rm -f conftest.$ac_objext
21337 if { (ac_try="$ac_compile"
21338 case "(($ac_try" in
21339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340 *) ac_try_echo=$ac_try;;
21341 esac
21342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343 (eval "$ac_compile") 2>conftest.er1
21344 ac_status=$?
21345 grep -v '^ *+' conftest.er1 >conftest.err
21346 rm -f conftest.er1
21347 cat conftest.err >&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } &&
21350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21351 { (case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_try") 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
21361 { (case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_try") 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 ac_header_compiler=yes
21371 else
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_header_compiler=no
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21380 echo "${ECHO_T}$ac_header_compiler" >&6; }
21382 # Is the header present?
21383 { echo "$as_me:$LINENO: checking presence" >&5
21384 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h. */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <>
21392 _ACEOF
21393 if { (ac_try="$ac_cpp conftest.$ac_ext"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21400 ac_status=$?
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } >/dev/null; then
21406 if test -s conftest.err; then
21407 ac_cpp_err=$ac_c_preproc_warn_flag
21408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21409 else
21410 ac_cpp_err=
21412 else
21413 ac_cpp_err=yes
21415 if test -z "$ac_cpp_err"; then
21416 ac_header_preproc=yes
21417 else
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_header_preproc=no
21424 rm -f conftest.err conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6; }
21428 # So? What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 yes:no: )
21431 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21432 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21434 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21435 ac_header_preproc=yes
21437 no:yes:* )
21438 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21439 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21441 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21443 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21445 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21449 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21452 esac
21453 { echo "$as_me:$LINENO: checking for " >&5
21454 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21455 if test "${ac_cv_header_+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458 ac_cv_header_=$ac_header_preproc
21460 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21461 echo "${ECHO_T}$ac_cv_header_" >&6; }
21464 if test $ac_cv_header_ = yes; then
21465 OGG_HEADER_FOUND=1
21466 else
21467 OGG_HEADER_FOUND=0
21473 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
21474 if test ! -z "${OGG_MANDATORY}" ;
21475 then
21476 { echo "$as_me:$LINENO: ***" >&5
21477 echo "$as_me: ***" >&6;}
21478 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
21479 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
21480 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support" >&5
21481 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support" >&or re-run configure;}
21482 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21483 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21484 exit 1
21486 OGG_LIB=""
21487 OGG_INCLUDE=""
21488 PBX_OGG=0
21489 else
21490 PBX_OGG=1
21492 cat >>confdefs.h <<_ACEOF
21493 #define HAVE_OGG 1
21494 _ACEOF
21497 elif test ! -z "${OGG_MANDATORY}";
21498 then
21499 { echo "$as_me:$LINENO: ***" >&5
21500 echo "$as_me: ***" >&6;}
21501 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
21502 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
21503 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21504 echo "$as_me: *** Either correct the installation" >&or run configure;}
21505 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21506 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21507 exit 1
21513 if test "${USE_OSPTK}" != "no"; then
21514 pbxlibdir=""
21515 if test "x${OSPTK_DIR}" != "x"; then
21516 if test -d ${OSPTK_DIR}/lib; then
21517 pbxlibdir="-L${OSPTK_DIR}/lib"
21518 else
21519 pbxlibdir="-L${OSPTK_DIR}"
21522 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
21523 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
21524 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527 ac_check_lib_save_LIBS=$LIBS
21528 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h. */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21536 /* Override any GCC internal prototype to avoid an error.
21537 Use char because int might match the return type of a GCC
21538 builtin and then its argument prototype would still apply. */
21539 #ifdef __cplusplus
21540 extern "C"
21541 #endif
21542 char OSPPCryptoDecrypt ();
21544 main ()
21546 return OSPPCryptoDecrypt ();
21548 return 0;
21550 _ACEOF
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>conftest.er1
21559 ac_status=$?
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
21565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21566 { (case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_try") 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; } &&
21575 { ac_try='test -s conftest$ac_exeext'
21576 { (case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_try") 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21595 LIBS=$ac_check_lib_save_LIBS
21597 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21598 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21599 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21600 AST_OSPTK_FOUND=yes
21601 else
21602 AST_OSPTK_FOUND=no
21606 if test "${AST_OSPTK_FOUND}" = "yes"; then
21607 OSPTK_LIB="-losptk -lcrypto -lssl"
21608 OSPTK_HEADER_FOUND="1"
21609 if test "x${OSPTK_DIR}" != "x"; then
21610 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21611 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21612 if test "xosp/osp.h" != "x" ; then
21613 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21615 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21616 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 ac_res=`eval echo '${'$as_ac_Header'}'`
21621 { echo "$as_me:$LINENO: result: $ac_res" >&5
21622 echo "${ECHO_T}$ac_res" >&6; }
21623 else
21624 # Is the header compilable?
21625 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21626 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 $ac_includes_default
21634 #include <${OSPTK_DIR}/include/osp/osp.h>
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (ac_try="$ac_compile"
21638 case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_compile") 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21651 { (case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_try") 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
21661 { (case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_try") 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 ac_header_compiler=yes
21671 else
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ac_header_compiler=no
21678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21680 echo "${ECHO_T}$ac_header_compiler" >&6; }
21682 # Is the header present?
21683 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21684 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 #include <${OSPTK_DIR}/include/osp/osp.h>
21692 _ACEOF
21693 if { (ac_try="$ac_cpp conftest.$ac_ext"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } >/dev/null; then
21706 if test -s conftest.err; then
21707 ac_cpp_err=$ac_c_preproc_warn_flag
21708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21709 else
21710 ac_cpp_err=
21712 else
21713 ac_cpp_err=yes
21715 if test -z "$ac_cpp_err"; then
21716 ac_header_preproc=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_preproc=no
21724 rm -f conftest.err conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21726 echo "${ECHO_T}$ac_header_preproc" >&6; }
21728 # So? What about this header?
21729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21730 yes:no: )
21731 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21732 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21734 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21735 ac_header_preproc=yes
21737 no:yes:* )
21738 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21739 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21741 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21743 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21745 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21747 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21749 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21752 esac
21753 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21754 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758 eval "$as_ac_Header=\$ac_header_preproc"
21760 ac_res=`eval echo '${'$as_ac_Header'}'`
21761 { echo "$as_me:$LINENO: result: $ac_res" >&5
21762 echo "${ECHO_T}$ac_res" >&6; }
21765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21766 OSPTK_HEADER_FOUND=1
21767 else
21768 OSPTK_HEADER_FOUND=0
21773 else
21774 if test "xosp/osp.h" != "x" ; then
21775 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21776 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21777 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21778 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21782 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21783 else
21784 # Is the header compilable?
21785 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21786 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21794 #include <osp/osp.h>
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 ac_header_compiler=yes
21831 else
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_header_compiler=no
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21840 echo "${ECHO_T}$ac_header_compiler" >&6; }
21842 # Is the header present?
21843 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21844 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <osp/osp.h>
21852 _ACEOF
21853 if { (ac_try="$ac_cpp conftest.$ac_ext"
21854 case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } >/dev/null; then
21866 if test -s conftest.err; then
21867 ac_cpp_err=$ac_c_preproc_warn_flag
21868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21869 else
21870 ac_cpp_err=
21872 else
21873 ac_cpp_err=yes
21875 if test -z "$ac_cpp_err"; then
21876 ac_header_preproc=yes
21877 else
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_header_preproc=no
21884 rm -f conftest.err conftest.$ac_ext
21885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21886 echo "${ECHO_T}$ac_header_preproc" >&6; }
21888 # So? What about this header?
21889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21890 yes:no: )
21891 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21892 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21894 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21895 ac_header_preproc=yes
21897 no:yes:* )
21898 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21899 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21901 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21903 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21905 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21907 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21909 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21912 esac
21913 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21914 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21915 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918 ac_cv_header_osp_osp_h=$ac_header_preproc
21920 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21921 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21924 if test $ac_cv_header_osp_osp_h = yes; then
21925 OSPTK_HEADER_FOUND=1
21926 else
21927 OSPTK_HEADER_FOUND=0
21933 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21934 if test ! -z "${OSPTK_MANDATORY}" ;
21935 then
21936 { echo "$as_me:$LINENO: ***" >&5
21937 echo "$as_me: ***" >&6;}
21938 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21939 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21940 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support" >&5
21941 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support" >&or re-run configure;}
21942 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21943 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21944 exit 1
21946 OSPTK_LIB=""
21947 OSPTK_INCLUDE=""
21948 PBX_OSPTK=0
21949 else
21950 PBX_OSPTK=1
21952 cat >>confdefs.h <<_ACEOF
21953 #define HAVE_OSPTK 1
21954 _ACEOF
21957 elif test ! -z "${OSPTK_MANDATORY}";
21958 then
21959 { echo "$as_me:$LINENO: ***" >&5
21960 echo "$as_me: ***" >&6;}
21961 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21962 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21963 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
21964 echo "$as_me: *** Either correct the installation" >&or run configure;}
21965 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21966 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21967 exit 1
21972 PBX_OSS=0
21973 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21974 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21975 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21976 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21980 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21981 else
21982 # Is the header compilable?
21983 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21984 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 #include <linux/soundcard.h>
21993 _ACEOF
21994 rm -f conftest.$ac_objext
21995 if { (ac_try="$ac_compile"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
21999 esac
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_compile") 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22009 { (case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_try") 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try='test -s conftest.$ac_objext'
22019 { (case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_try") 2>&5
22025 ac_status=$?
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; }; then
22028 ac_header_compiler=yes
22029 else
22030 echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22033 ac_header_compiler=no
22036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22038 echo "${ECHO_T}$ac_header_compiler" >&6; }
22040 # Is the header present?
22041 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
22042 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 #include <linux/soundcard.h>
22050 _ACEOF
22051 if { (ac_try="$ac_cpp conftest.$ac_ext"
22052 case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22058 ac_status=$?
22059 grep -v '^ *+' conftest.er1 >conftest.err
22060 rm -f conftest.er1
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } >/dev/null; then
22064 if test -s conftest.err; then
22065 ac_cpp_err=$ac_c_preproc_warn_flag
22066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22067 else
22068 ac_cpp_err=
22070 else
22071 ac_cpp_err=yes
22073 if test -z "$ac_cpp_err"; then
22074 ac_header_preproc=yes
22075 else
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_header_preproc=no
22082 rm -f conftest.err conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6; }
22086 # So? What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22088 yes:no: )
22089 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
22095 no:yes:* )
22096 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
22110 esac
22111 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22112 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22113 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116 ac_cv_header_linux_soundcard_h=$ac_header_preproc
22118 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22119 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22122 if test $ac_cv_header_linux_soundcard_h = yes; then
22124 PBX_OSS=1
22126 cat >>confdefs.h <<_ACEOF
22127 #define HAVE_OSS 1
22128 _ACEOF
22134 if test "$PBX_OSS" = "0"; then
22135 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22136 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22137 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22138 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22142 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22143 else
22144 # Is the header compilable?
22145 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
22146 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 $ac_includes_default
22154 #include <sys/soundcard.h>
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } &&
22170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22171 { (case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_try") 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; } &&
22180 { ac_try='test -s conftest.$ac_objext'
22181 { (case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_try") 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 ac_header_compiler=yes
22191 else
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_header_compiler=no
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22200 echo "${ECHO_T}$ac_header_compiler" >&6; }
22202 # Is the header present?
22203 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22204 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 #include <sys/soundcard.h>
22212 _ACEOF
22213 if { (ac_try="$ac_cpp conftest.$ac_ext"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } >/dev/null; then
22226 if test -s conftest.err; then
22227 ac_cpp_err=$ac_c_preproc_warn_flag
22228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22229 else
22230 ac_cpp_err=
22232 else
22233 ac_cpp_err=yes
22235 if test -z "$ac_cpp_err"; then
22236 ac_header_preproc=yes
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_header_preproc=no
22244 rm -f conftest.err conftest.$ac_ext
22245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22246 echo "${ECHO_T}$ac_header_preproc" >&6; }
22248 # So? What about this header?
22249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22250 yes:no: )
22251 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22252 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22253 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22254 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22255 ac_header_preproc=yes
22257 no:yes:* )
22258 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22259 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22260 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22261 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22262 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22263 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22264 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22265 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22267 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22268 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22269 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22272 esac
22273 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22274 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22275 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22280 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22281 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22284 if test $ac_cv_header_sys_soundcard_h = yes; then
22286 PBX_OSS=1
22288 cat >>confdefs.h <<_ACEOF
22289 #define HAVE_OSS 1
22290 _ACEOF
22297 if test "$PBX_OSS" = "0"; then
22299 if test "${USE_OSS}" != "no"; then
22300 pbxlibdir=""
22301 if test "x${OSS_DIR}" != "x"; then
22302 if test -d ${OSS_DIR}/lib; then
22303 pbxlibdir="-L${OSS_DIR}/lib"
22304 else
22305 pbxlibdir="-L${OSS_DIR}"
22308 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22309 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22310 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313 ac_check_lib_save_LIBS=$LIBS
22314 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22315 cat >conftest.$ac_ext <<_ACEOF
22316 /* confdefs.h. */
22317 _ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h. */
22322 /* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
22325 #ifdef __cplusplus
22326 extern "C"
22327 #endif
22328 char oss_ioctl_mixer ();
22330 main ()
22332 return oss_ioctl_mixer ();
22334 return 0;
22336 _ACEOF
22337 rm -f conftest.$ac_objext conftest$ac_exeext
22338 if { (ac_try="$ac_link"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_link") 2>conftest.er1
22345 ac_status=$?
22346 grep -v '^ *+' conftest.er1 >conftest.err
22347 rm -f conftest.er1
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } &&
22351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22352 { (case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_try") 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } &&
22361 { ac_try='test -s conftest$ac_exeext'
22362 { (case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_try") 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22372 else
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22380 conftest$ac_exeext conftest.$ac_ext
22381 LIBS=$ac_check_lib_save_LIBS
22383 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22384 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22385 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22386 AST_OSS_FOUND=yes
22387 else
22388 AST_OSS_FOUND=no
22392 if test "${AST_OSS_FOUND}" = "yes"; then
22393 OSS_LIB="-lossaudio "
22394 OSS_HEADER_FOUND="1"
22395 if test "x${OSS_DIR}" != "x"; then
22396 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22397 OSS_INCLUDE="-I${OSS_DIR}/include"
22398 if test "xsoundcard.h" != "x" ; then
22399 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
22400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22401 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22402 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22404 echo $ECHO_N "(cached) $ECHO_C" >&6
22406 ac_res=`eval echo '${'$as_ac_Header'}'`
22407 { echo "$as_me:$LINENO: result: $ac_res" >&5
22408 echo "${ECHO_T}$ac_res" >&6; }
22409 else
22410 # Is the header compilable?
22411 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
22412 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
22413 cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h. */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 $ac_includes_default
22420 #include <${OSS_DIR}/include/soundcard.h>
22421 _ACEOF
22422 rm -f conftest.$ac_objext
22423 if { (ac_try="$ac_compile"
22424 case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22427 esac
22428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429 (eval "$ac_compile") 2>conftest.er1
22430 ac_status=$?
22431 grep -v '^ *+' conftest.er1 >conftest.err
22432 rm -f conftest.er1
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22437 { (case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_try") 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; } &&
22446 { ac_try='test -s conftest.$ac_objext'
22447 { (case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_try") 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
22456 ac_header_compiler=yes
22457 else
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 ac_header_compiler=no
22464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22466 echo "${ECHO_T}$ac_header_compiler" >&6; }
22468 # Is the header present?
22469 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
22470 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
22471 cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h. */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22477 #include <${OSS_DIR}/include/soundcard.h>
22478 _ACEOF
22479 if { (ac_try="$ac_cpp conftest.$ac_ext"
22480 case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22486 ac_status=$?
22487 grep -v '^ *+' conftest.er1 >conftest.err
22488 rm -f conftest.er1
22489 cat conftest.err >&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } >/dev/null; then
22492 if test -s conftest.err; then
22493 ac_cpp_err=$ac_c_preproc_warn_flag
22494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22495 else
22496 ac_cpp_err=
22498 else
22499 ac_cpp_err=yes
22501 if test -z "$ac_cpp_err"; then
22502 ac_header_preproc=yes
22503 else
22504 echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_header_preproc=no
22510 rm -f conftest.err conftest.$ac_ext
22511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22512 echo "${ECHO_T}$ac_header_preproc" >&6; }
22514 # So? What about this header?
22515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22516 yes:no: )
22517 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22518 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
22520 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
22521 ac_header_preproc=yes
22523 no:yes:* )
22524 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
22525 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
22527 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
22529 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22531 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
22533 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
22535 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
22538 esac
22539 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22540 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544 eval "$as_ac_Header=\$ac_header_preproc"
22546 ac_res=`eval echo '${'$as_ac_Header'}'`
22547 { echo "$as_me:$LINENO: result: $ac_res" >&5
22548 echo "${ECHO_T}$ac_res" >&6; }
22551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22552 OSS_HEADER_FOUND=1
22553 else
22554 OSS_HEADER_FOUND=0
22559 else
22560 if test "xsoundcard.h" != "x" ; then
22561 if test "${ac_cv_header_soundcard_h+set}" = set; then
22562 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22563 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22564 if test "${ac_cv_header_soundcard_h+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22568 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22569 else
22570 # Is the header compilable?
22571 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22572 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22573 cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h. */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 $ac_includes_default
22580 #include <soundcard.h>
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } &&
22596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22597 { (case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_try") 2>&5
22603 ac_status=$?
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; } &&
22606 { ac_try='test -s conftest.$ac_objext'
22607 { (case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610 esac
22611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_try") 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ac_header_compiler=yes
22617 else
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 ac_header_compiler=no
22624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22626 echo "${ECHO_T}$ac_header_compiler" >&6; }
22628 # Is the header present?
22629 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22630 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22631 cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h. */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h. */
22637 #include <soundcard.h>
22638 _ACEOF
22639 if { (ac_try="$ac_cpp conftest.$ac_ext"
22640 case "(($ac_try" in
22641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22642 *) ac_try_echo=$ac_try;;
22643 esac
22644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22646 ac_status=$?
22647 grep -v '^ *+' conftest.er1 >conftest.err
22648 rm -f conftest.er1
22649 cat conftest.err >&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } >/dev/null; then
22652 if test -s conftest.err; then
22653 ac_cpp_err=$ac_c_preproc_warn_flag
22654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22655 else
22656 ac_cpp_err=
22658 else
22659 ac_cpp_err=yes
22661 if test -z "$ac_cpp_err"; then
22662 ac_header_preproc=yes
22663 else
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ac_header_preproc=no
22670 rm -f conftest.err conftest.$ac_ext
22671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22672 echo "${ECHO_T}$ac_header_preproc" >&6; }
22674 # So? What about this header?
22675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22676 yes:no: )
22677 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22678 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22680 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22681 ac_header_preproc=yes
22683 no:yes:* )
22684 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22685 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22686 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22687 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22688 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22689 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22690 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22691 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22692 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22693 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22694 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22695 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22698 esac
22699 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22700 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22701 if test "${ac_cv_header_soundcard_h+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704 ac_cv_header_soundcard_h=$ac_header_preproc
22706 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22707 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22710 if test $ac_cv_header_soundcard_h = yes; then
22711 OSS_HEADER_FOUND=1
22712 else
22713 OSS_HEADER_FOUND=0
22719 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22720 if test ! -z "${OSS_MANDATORY}" ;
22721 then
22722 { echo "$as_me:$LINENO: ***" >&5
22723 echo "$as_me: ***" >&6;}
22724 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22725 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22726 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support" >&5
22727 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support" >&or re-run configure;}
22728 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22729 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22730 exit 1
22732 OSS_LIB=""
22733 OSS_INCLUDE=""
22734 PBX_OSS=0
22735 else
22736 PBX_OSS=1
22738 cat >>confdefs.h <<_ACEOF
22739 #define HAVE_OSS 1
22740 _ACEOF
22743 elif test ! -z "${OSS_MANDATORY}";
22744 then
22745 { echo "$as_me:$LINENO: ***" >&5
22746 echo "$as_me: ***" >&6;}
22747 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22748 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22749 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22750 echo "$as_me: *** Either correct the installation" >&or run configure;}
22751 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22752 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22753 exit 1
22759 PG_CONFIG=No
22760 if test "${USE_PGSQL}" != "no"; then
22761 if test "x${PGSQL_DIR}" != "x"; then
22762 if test -n "$ac_tool_prefix"; then
22763 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22764 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22767 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 else
22770 case $PG_CONFIG in
22771 [\\/]* | ?:[\\/]*)
22772 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22776 for as_dir in ${PGSQL_DIR}/bin
22778 IFS=$as_save_IFS
22779 test -z "$as_dir" && as_dir=.
22780 for ac_exec_ext in '' $ac_executable_extensions; do
22781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22782 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22784 break 2
22786 done
22787 done
22788 IFS=$as_save_IFS
22791 esac
22793 PG_CONFIG=$ac_cv_path_PG_CONFIG
22794 if test -n "$PG_CONFIG"; then
22795 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22796 echo "${ECHO_T}$PG_CONFIG" >&6; }
22797 else
22798 { echo "$as_me:$LINENO: result: no" >&5
22799 echo "${ECHO_T}no" >&6; }
22804 if test -z "$ac_cv_path_PG_CONFIG"; then
22805 ac_pt_PG_CONFIG=$PG_CONFIG
22806 # Extract the first word of "pg_config", so it can be a program name with args.
22807 set dummy pg_config; ac_word=$2
22808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22810 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813 case $ac_pt_PG_CONFIG in
22814 [\\/]* | ?:[\\/]*)
22815 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22819 for as_dir in ${PGSQL_DIR}/bin
22821 IFS=$as_save_IFS
22822 test -z "$as_dir" && as_dir=.
22823 for ac_exec_ext in '' $ac_executable_extensions; do
22824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22825 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22827 break 2
22829 done
22830 done
22831 IFS=$as_save_IFS
22834 esac
22836 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22837 if test -n "$ac_pt_PG_CONFIG"; then
22838 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22839 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22840 else
22841 { echo "$as_me:$LINENO: result: no" >&5
22842 echo "${ECHO_T}no" >&6; }
22845 if test "x$ac_pt_PG_CONFIG" = x; then
22846 PG_CONFIG="No"
22847 else
22848 case $cross_compiling:$ac_tool_warned in
22849 yes:)
22850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22851 whose name does not start with the host triplet. If you think this
22852 configuration is useful to you, please write to autoconf@gnu.org." >&5
22853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22854 whose name does not start with the host triplet. If you think this
22855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22856 ac_tool_warned=yes ;;
22857 esac
22858 PG_CONFIG=$ac_pt_PG_CONFIG
22860 else
22861 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22864 if test x"${PG_CONFIG}" = xNo; then
22865 { echo "$as_me:$LINENO: ***" >&5
22866 echo "$as_me: ***" >&6;}
22867 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22868 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22869 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22870 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22871 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
22872 echo "$as_me: *** Either correct the installation" >&or run configure;}
22873 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22874 echo "$as_me: *** including --without-postgres" >&6;}
22875 exit 1
22877 else
22878 if test -n "$ac_tool_prefix"; then
22879 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22880 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22883 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886 case $PG_CONFIG in
22887 [\\/]* | ?:[\\/]*)
22888 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22892 for as_dir in $PATH
22894 IFS=$as_save_IFS
22895 test -z "$as_dir" && as_dir=.
22896 for ac_exec_ext in '' $ac_executable_extensions; do
22897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22898 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22900 break 2
22902 done
22903 done
22904 IFS=$as_save_IFS
22907 esac
22909 PG_CONFIG=$ac_cv_path_PG_CONFIG
22910 if test -n "$PG_CONFIG"; then
22911 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22912 echo "${ECHO_T}$PG_CONFIG" >&6; }
22913 else
22914 { echo "$as_me:$LINENO: result: no" >&5
22915 echo "${ECHO_T}no" >&6; }
22920 if test -z "$ac_cv_path_PG_CONFIG"; then
22921 ac_pt_PG_CONFIG=$PG_CONFIG
22922 # Extract the first word of "pg_config", so it can be a program name with args.
22923 set dummy pg_config; ac_word=$2
22924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22926 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22928 else
22929 case $ac_pt_PG_CONFIG in
22930 [\\/]* | ?:[\\/]*)
22931 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22935 for as_dir in $PATH
22937 IFS=$as_save_IFS
22938 test -z "$as_dir" && as_dir=.
22939 for ac_exec_ext in '' $ac_executable_extensions; do
22940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22941 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22943 break 2
22945 done
22946 done
22947 IFS=$as_save_IFS
22950 esac
22952 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22953 if test -n "$ac_pt_PG_CONFIG"; then
22954 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22955 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22956 else
22957 { echo "$as_me:$LINENO: result: no" >&5
22958 echo "${ECHO_T}no" >&6; }
22961 if test "x$ac_pt_PG_CONFIG" = x; then
22962 PG_CONFIG="No"
22963 else
22964 case $cross_compiling:$ac_tool_warned in
22965 yes:)
22966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22967 whose name does not start with the host triplet. If you think this
22968 configuration is useful to you, please write to autoconf@gnu.org." >&5
22969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22970 whose name does not start with the host triplet. If you think this
22971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22972 ac_tool_warned=yes ;;
22973 esac
22974 PG_CONFIG=$ac_pt_PG_CONFIG
22976 else
22977 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22982 if test "${PG_CONFIG}" != No; then
22983 PGSQL_libdir=`pg_config --libdir`
22984 PGSQL_includedir=`pg_config --includedir`
22986 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22987 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22988 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 ac_check_lib_save_LIBS=$LIBS
22992 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22993 cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h. */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
23000 /* Override any GCC internal prototype to avoid an error.
23001 Use char because int might match the return type of a GCC
23002 builtin and then its argument prototype would still apply. */
23003 #ifdef __cplusplus
23004 extern "C"
23005 #endif
23006 char PQexec ();
23008 main ()
23010 return PQexec ();
23012 return 0;
23014 _ACEOF
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_link") 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23030 { (case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_try") 2>&5
23036 ac_status=$?
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; } &&
23039 { ac_try='test -s conftest$ac_exeext'
23040 { (case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_try") 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; }; then
23049 ac_cv_lib_pq_PQexec=yes
23050 else
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_cv_lib_pq_PQexec=no
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058 conftest$ac_exeext conftest.$ac_ext
23059 LIBS=$ac_check_lib_save_LIBS
23061 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23062 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23063 if test $ac_cv_lib_pq_PQexec = yes; then
23065 cat >>confdefs.h <<_ACEOF
23066 #define HAVE_PGSQL 1
23067 _ACEOF
23072 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23073 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz -lcrypt"
23074 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23075 PBX_PGSQL=1
23076 elif test ! -z "${PGSQL_MANDATORY}";
23077 then
23078 { echo "$as_me:$LINENO: ***" >&5
23079 echo "$as_me: ***" >&6;}
23080 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23081 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23082 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23083 echo "$as_me: *** Either correct the installation" >&or run configure;}
23084 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23085 echo "$as_me: *** including --without-postgres" >&6;}
23086 exit 1
23088 elif test ! -z "${PGSQL_MANDATORY}";
23089 then
23090 { echo "$as_me:$LINENO: ***" >&5
23091 echo "$as_me: ***" >&6;}
23092 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23093 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23094 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23095 echo "$as_me: *** Either correct the installation" >&or run configure;}
23096 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23097 echo "$as_me: *** including --without-postgres" >&6;}
23098 exit 1
23102 if test "${USE_POPT}" != "no"; then
23103 pbxlibdir=""
23104 if test "x${POPT_DIR}" != "x"; then
23105 if test -d ${POPT_DIR}/lib; then
23106 pbxlibdir="-L${POPT_DIR}/lib"
23107 else
23108 pbxlibdir="-L${POPT_DIR}"
23111 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23112 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23113 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 ac_check_lib_save_LIBS=$LIBS
23117 LIBS="-lpopt ${pbxlibdir} $LIBS"
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h. */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23125 /* Override any GCC internal prototype to avoid an error.
23126 Use char because int might match the return type of a GCC
23127 builtin and then its argument prototype would still apply. */
23128 #ifdef __cplusplus
23129 extern "C"
23130 #endif
23131 char poptStrerror ();
23133 main ()
23135 return poptStrerror ();
23137 return 0;
23139 _ACEOF
23140 rm -f conftest.$ac_objext conftest$ac_exeext
23141 if { (ac_try="$ac_link"
23142 case "(($ac_try" in
23143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144 *) ac_try_echo=$ac_try;;
23145 esac
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147 (eval "$ac_link") 2>conftest.er1
23148 ac_status=$?
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23155 { (case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_try") 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
23165 { (case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_try") 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_lib_popt_poptStrerror=yes
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ac_cv_lib_popt_poptStrerror=no
23182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23183 conftest$ac_exeext conftest.$ac_ext
23184 LIBS=$ac_check_lib_save_LIBS
23186 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
23187 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
23188 if test $ac_cv_lib_popt_poptStrerror = yes; then
23189 AST_POPT_FOUND=yes
23190 else
23191 AST_POPT_FOUND=no
23195 if test "${AST_POPT_FOUND}" = "yes"; then
23196 POPT_LIB="-lpopt "
23197 POPT_HEADER_FOUND="1"
23198 if test "x${POPT_DIR}" != "x"; then
23199 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
23200 POPT_INCLUDE="-I${POPT_DIR}/include"
23201 if test "xpopt.h" != "x" ; then
23202 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
23203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23204 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23205 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23207 echo $ECHO_N "(cached) $ECHO_C" >&6
23209 ac_res=`eval echo '${'$as_ac_Header'}'`
23210 { echo "$as_me:$LINENO: result: $ac_res" >&5
23211 echo "${ECHO_T}$ac_res" >&6; }
23212 else
23213 # Is the header compilable?
23214 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
23215 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h. */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 $ac_includes_default
23223 #include <${POPT_DIR}/include/popt.h>
23224 _ACEOF
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23230 esac
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_compile") 2>conftest.er1
23233 ac_status=$?
23234 grep -v '^ *+' conftest.er1 >conftest.err
23235 rm -f conftest.er1
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
23239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23240 { (case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_try") 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest.$ac_objext'
23250 { (case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23253 esac
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_try") 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ac_header_compiler=yes
23260 else
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23264 ac_header_compiler=no
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23269 echo "${ECHO_T}$ac_header_compiler" >&6; }
23271 # Is the header present?
23272 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
23273 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
23274 cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h. */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 #include <${POPT_DIR}/include/popt.h>
23281 _ACEOF
23282 if { (ac_try="$ac_cpp conftest.$ac_ext"
23283 case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23286 esac
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23289 ac_status=$?
23290 grep -v '^ *+' conftest.er1 >conftest.err
23291 rm -f conftest.er1
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } >/dev/null; then
23295 if test -s conftest.err; then
23296 ac_cpp_err=$ac_c_preproc_warn_flag
23297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23298 else
23299 ac_cpp_err=
23301 else
23302 ac_cpp_err=yes
23304 if test -z "$ac_cpp_err"; then
23305 ac_header_preproc=yes
23306 else
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_header_preproc=no
23313 rm -f conftest.err conftest.$ac_ext
23314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23315 echo "${ECHO_T}$ac_header_preproc" >&6; }
23317 # So? What about this header?
23318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 yes:no: )
23320 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23321 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23322 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
23323 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
23324 ac_header_preproc=yes
23326 no:yes:* )
23327 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23328 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23329 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23330 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23331 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23332 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23333 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23334 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23335 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23336 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23337 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23338 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23341 esac
23342 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23343 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347 eval "$as_ac_Header=\$ac_header_preproc"
23349 ac_res=`eval echo '${'$as_ac_Header'}'`
23350 { echo "$as_me:$LINENO: result: $ac_res" >&5
23351 echo "${ECHO_T}$ac_res" >&6; }
23354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23355 POPT_HEADER_FOUND=1
23356 else
23357 POPT_HEADER_FOUND=0
23362 else
23363 if test "xpopt.h" != "x" ; then
23364 if test "${ac_cv_header_popt_h+set}" = set; then
23365 { echo "$as_me:$LINENO: checking for popt.h" >&5
23366 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23367 if test "${ac_cv_header_popt_h+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23370 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23371 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23372 else
23373 # Is the header compilable?
23374 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23375 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23376 cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h. */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 $ac_includes_default
23383 #include <popt.h>
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23393 ac_status=$?
23394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } &&
23399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23400 { (case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_try") 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; } &&
23409 { ac_try='test -s conftest.$ac_objext'
23410 { (case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23413 esac
23414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415 (eval "$ac_try") 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_header_compiler=yes
23420 else
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23424 ac_header_compiler=no
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23429 echo "${ECHO_T}$ac_header_compiler" >&6; }
23431 # Is the header present?
23432 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23433 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h. */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <popt.h>
23441 _ACEOF
23442 if { (ac_try="$ac_cpp conftest.$ac_ext"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } >/dev/null; then
23455 if test -s conftest.err; then
23456 ac_cpp_err=$ac_c_preproc_warn_flag
23457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23458 else
23459 ac_cpp_err=
23461 else
23462 ac_cpp_err=yes
23464 if test -z "$ac_cpp_err"; then
23465 ac_header_preproc=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_header_preproc=no
23473 rm -f conftest.err conftest.$ac_ext
23474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23475 echo "${ECHO_T}$ac_header_preproc" >&6; }
23477 # So? What about this header?
23478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23479 yes:no: )
23480 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23481 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23482 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23483 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23484 ac_header_preproc=yes
23486 no:yes:* )
23487 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23488 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23489 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23490 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23491 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23492 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23493 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23494 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23495 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23496 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23498 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23501 esac
23502 { echo "$as_me:$LINENO: checking for popt.h" >&5
23503 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23504 if test "${ac_cv_header_popt_h+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507 ac_cv_header_popt_h=$ac_header_preproc
23509 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23510 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23513 if test $ac_cv_header_popt_h = yes; then
23514 POPT_HEADER_FOUND=1
23515 else
23516 POPT_HEADER_FOUND=0
23522 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23523 if test ! -z "${POPT_MANDATORY}" ;
23524 then
23525 { echo "$as_me:$LINENO: ***" >&5
23526 echo "$as_me: ***" >&6;}
23527 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23528 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23529 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support" >&5
23530 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support" >&or re-run configure;}
23531 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23532 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23533 exit 1
23535 POPT_LIB=""
23536 POPT_INCLUDE=""
23537 PBX_POPT=0
23538 else
23539 PBX_POPT=1
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_POPT 1
23543 _ACEOF
23546 elif test ! -z "${POPT_MANDATORY}";
23547 then
23548 { echo "$as_me:$LINENO: ***" >&5
23549 echo "$as_me: ***" >&6;}
23550 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23551 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23552 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
23553 echo "$as_me: *** Either correct the installation" >&or run configure;}
23554 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23555 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23556 exit 1
23562 if test "${USE_PRI}" != "no"; then
23563 pbxlibdir=""
23564 if test "x${PRI_DIR}" != "x"; then
23565 if test -d ${PRI_DIR}/lib; then
23566 pbxlibdir="-L${PRI_DIR}/lib"
23567 else
23568 pbxlibdir="-L${PRI_DIR}"
23571 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
23572 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
23573 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576 ac_check_lib_save_LIBS=$LIBS
23577 LIBS="-lpri ${pbxlibdir} $LIBS"
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23585 /* Override any GCC internal prototype to avoid an error.
23586 Use char because int might match the return type of a GCC
23587 builtin and then its argument prototype would still apply. */
23588 #ifdef __cplusplus
23589 extern "C"
23590 #endif
23591 char pri_call ();
23593 main ()
23595 return pri_call ();
23597 return 0;
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607 (eval "$ac_link") 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
23614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23615 { (case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_try") 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; } &&
23624 { ac_try='test -s conftest$ac_exeext'
23625 { (case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_try") 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_lib_pri_pri_call=yes
23635 else
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_lib_pri_pri_call=no
23642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23643 conftest$ac_exeext conftest.$ac_ext
23644 LIBS=$ac_check_lib_save_LIBS
23646 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
23647 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23648 if test $ac_cv_lib_pri_pri_call = yes; then
23649 AST_PRI_FOUND=yes
23650 else
23651 AST_PRI_FOUND=no
23655 if test "${AST_PRI_FOUND}" = "yes"; then
23656 PRI_LIB="-lpri "
23657 PRI_HEADER_FOUND="1"
23658 if test "x${PRI_DIR}" != "x"; then
23659 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23660 PRI_INCLUDE="-I${PRI_DIR}/include"
23661 if test "xlibpri.h" != "x" ; then
23662 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
23663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23664 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23665 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 ac_res=`eval echo '${'$as_ac_Header'}'`
23670 { echo "$as_me:$LINENO: result: $ac_res" >&5
23671 echo "${ECHO_T}$ac_res" >&6; }
23672 else
23673 # Is the header compilable?
23674 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
23675 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
23676 cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h. */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 #include <${PRI_DIR}/include/libpri.h>
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } &&
23699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23700 { (case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_try") 2>&5
23706 ac_status=$?
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); }; } &&
23709 { ac_try='test -s conftest.$ac_objext'
23710 { (case "(($ac_try" in
23711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23712 *) ac_try_echo=$ac_try;;
23713 esac
23714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23715 (eval "$ac_try") 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23719 ac_header_compiler=yes
23720 else
23721 echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23724 ac_header_compiler=no
23727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23729 echo "${ECHO_T}$ac_header_compiler" >&6; }
23731 # Is the header present?
23732 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
23733 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
23734 cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h. */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23740 #include <${PRI_DIR}/include/libpri.h>
23741 _ACEOF
23742 if { (ac_try="$ac_cpp conftest.$ac_ext"
23743 case "(($ac_try" in
23744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745 *) ac_try_echo=$ac_try;;
23746 esac
23747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23749 ac_status=$?
23750 grep -v '^ *+' conftest.er1 >conftest.err
23751 rm -f conftest.er1
23752 cat conftest.err >&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } >/dev/null; then
23755 if test -s conftest.err; then
23756 ac_cpp_err=$ac_c_preproc_warn_flag
23757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23758 else
23759 ac_cpp_err=
23761 else
23762 ac_cpp_err=yes
23764 if test -z "$ac_cpp_err"; then
23765 ac_header_preproc=yes
23766 else
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 ac_header_preproc=no
23773 rm -f conftest.err conftest.$ac_ext
23774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23775 echo "${ECHO_T}$ac_header_preproc" >&6; }
23777 # So? What about this header?
23778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23779 yes:no: )
23780 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23781 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23782 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
23783 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
23784 ac_header_preproc=yes
23786 no:yes:* )
23787 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
23788 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
23789 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
23790 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
23791 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
23792 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
23793 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23794 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23795 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
23796 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
23797 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
23798 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
23801 esac
23802 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23803 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807 eval "$as_ac_Header=\$ac_header_preproc"
23809 ac_res=`eval echo '${'$as_ac_Header'}'`
23810 { echo "$as_me:$LINENO: result: $ac_res" >&5
23811 echo "${ECHO_T}$ac_res" >&6; }
23814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23815 PRI_HEADER_FOUND=1
23816 else
23817 PRI_HEADER_FOUND=0
23822 else
23823 if test "xlibpri.h" != "x" ; then
23824 if test "${ac_cv_header_libpri_h+set}" = set; then
23825 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23826 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23827 if test "${ac_cv_header_libpri_h+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23830 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23831 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23832 else
23833 # Is the header compilable?
23834 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23835 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23836 cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h. */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842 $ac_includes_default
23843 #include <libpri.h>
23844 _ACEOF
23845 rm -f conftest.$ac_objext
23846 if { (ac_try="$ac_compile"
23847 case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23850 esac
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_compile") 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23860 { (case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_try") 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; } &&
23869 { ac_try='test -s conftest.$ac_objext'
23870 { (case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_try") 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 ac_header_compiler=yes
23880 else
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 ac_header_compiler=no
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23889 echo "${ECHO_T}$ac_header_compiler" >&6; }
23891 # Is the header present?
23892 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23893 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h. */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 #include <libpri.h>
23901 _ACEOF
23902 if { (ac_try="$ac_cpp conftest.$ac_ext"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23906 esac
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23909 ac_status=$?
23910 grep -v '^ *+' conftest.er1 >conftest.err
23911 rm -f conftest.er1
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } >/dev/null; then
23915 if test -s conftest.err; then
23916 ac_cpp_err=$ac_c_preproc_warn_flag
23917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23918 else
23919 ac_cpp_err=
23921 else
23922 ac_cpp_err=yes
23924 if test -z "$ac_cpp_err"; then
23925 ac_header_preproc=yes
23926 else
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ac_header_preproc=no
23933 rm -f conftest.err conftest.$ac_ext
23934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23935 echo "${ECHO_T}$ac_header_preproc" >&6; }
23937 # So? What about this header?
23938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23939 yes:no: )
23940 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23941 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23942 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23943 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23944 ac_header_preproc=yes
23946 no:yes:* )
23947 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23948 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23949 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23950 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23951 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23952 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23953 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23954 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23955 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23956 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23957 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23958 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23961 esac
23962 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23963 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23964 if test "${ac_cv_header_libpri_h+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967 ac_cv_header_libpri_h=$ac_header_preproc
23969 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23970 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23973 if test $ac_cv_header_libpri_h = yes; then
23974 PRI_HEADER_FOUND=1
23975 else
23976 PRI_HEADER_FOUND=0
23982 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23983 if test ! -z "${PRI_MANDATORY}" ;
23984 then
23985 { echo "$as_me:$LINENO: ***" >&5
23986 echo "$as_me: ***" >&6;}
23987 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23988 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23989 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support" >&5
23990 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support" >&or re-run configure;}
23991 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23992 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23993 exit 1
23995 PRI_LIB=""
23996 PRI_INCLUDE=""
23997 PBX_PRI=0
23998 else
23999 PBX_PRI=1
24001 cat >>confdefs.h <<_ACEOF
24002 #define HAVE_PRI 1
24003 _ACEOF
24006 elif test ! -z "${PRI_MANDATORY}";
24007 then
24008 { echo "$as_me:$LINENO: ***" >&5
24009 echo "$as_me: ***" >&6;}
24010 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24011 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24012 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24013 echo "$as_me: *** Either correct the installation" >&or run configure;}
24014 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24015 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24016 exit 1
24021 if test "${USE_PWLIB}" != "no"; then
24022 if test ! -z "${PWLIB_DIR}"; then
24023 PWLIBDIR="${PWLIB_DIR}"
24026 PWLIB_INCDIR=
24027 PWLIB_LIBDIR=
24028 if test "${PWLIBDIR:-unset}" != "unset" ; then
24029 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
24030 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24031 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24032 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035 test "$cross_compiling" = yes &&
24036 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24037 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24038 { (exit 1); exit 1; }; }
24039 if test -r "${PWLIBDIR}/version.h"; then
24040 eval "$as_ac_File=yes"
24041 else
24042 eval "$as_ac_File=no"
24045 ac_res=`eval echo '${'$as_ac_File'}'`
24046 { echo "$as_me:$LINENO: result: $ac_res" >&5
24047 echo "${ECHO_T}$ac_res" >&6; }
24048 if test `eval echo '${'$as_ac_File'}'` = yes; then
24049 HAS_PWLIB=1
24053 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24054 if test "${OPENH323DIR:-unset}" != "unset"; then
24055 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24056 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24057 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24058 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061 test "$cross_compiling" = yes &&
24062 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24063 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24064 { (exit 1); exit 1; }; }
24065 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
24066 eval "$as_ac_File=yes"
24067 else
24068 eval "$as_ac_File=no"
24071 ac_res=`eval echo '${'$as_ac_File'}'`
24072 { echo "$as_me:$LINENO: result: $ac_res" >&5
24073 echo "${ECHO_T}$ac_res" >&6; }
24074 if test `eval echo '${'$as_ac_File'}'` = yes; then
24075 HAS_PWLIB=1
24079 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24080 PWLIBDIR="${OPENH323DIR}/../pwlib"
24081 else
24082 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
24083 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
24084 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
24085 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088 test "$cross_compiling" = yes &&
24089 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24090 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24091 { (exit 1); exit 1; }; }
24092 if test -r "${HOME}/pwlib/include/ptlib.h"; then
24093 eval "$as_ac_File=yes"
24094 else
24095 eval "$as_ac_File=no"
24098 ac_res=`eval echo '${'$as_ac_File'}'`
24099 { echo "$as_me:$LINENO: result: $ac_res" >&5
24100 echo "${ECHO_T}$ac_res" >&6; }
24101 if test `eval echo '${'$as_ac_File'}'` = yes; then
24102 HAS_PWLIB=1
24105 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24106 PWLIBDIR="${HOME}/pwlib"
24107 else
24108 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
24109 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
24110 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
24111 echo $ECHO_N "(cached) $ECHO_C" >&6
24112 else
24113 test "$cross_compiling" = yes &&
24114 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24115 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24116 { (exit 1); exit 1; }; }
24117 if test -r "/usr/local/include/ptlib.h"; then
24118 ac_cv_file__usr_local_include_ptlib_h=yes
24119 else
24120 ac_cv_file__usr_local_include_ptlib_h=no
24123 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
24124 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
24125 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
24126 HAS_PWLIB=1
24129 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24130 # Extract the first word of "ptlib-config", so it can be a program name with args.
24131 set dummy ptlib-config; ac_word=$2
24132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24134 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24135 echo $ECHO_N "(cached) $ECHO_C" >&6
24136 else
24137 case $PTLIB_CONFIG in
24138 [\\/]* | ?:[\\/]*)
24139 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24143 for as_dir in /usr/local/bin
24145 IFS=$as_save_IFS
24146 test -z "$as_dir" && as_dir=.
24147 for ac_exec_ext in '' $ac_executable_extensions; do
24148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24149 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24151 break 2
24153 done
24154 done
24155 IFS=$as_save_IFS
24158 esac
24160 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24161 if test -n "$PTLIB_CONFIG"; then
24162 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24163 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24164 else
24165 { echo "$as_me:$LINENO: result: no" >&5
24166 echo "${ECHO_T}no" >&6; }
24170 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
24171 # Extract the first word of "ptlib-config", so it can be a program name with args.
24172 set dummy ptlib-config; ac_word=$2
24173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24175 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178 case $PTLIB_CONFIG in
24179 [\\/]* | ?:[\\/]*)
24180 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24184 for as_dir in /usr/local/share/pwlib/make
24186 IFS=$as_save_IFS
24187 test -z "$as_dir" && as_dir=.
24188 for ac_exec_ext in '' $ac_executable_extensions; do
24189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24190 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24192 break 2
24194 done
24195 done
24196 IFS=$as_save_IFS
24199 esac
24201 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24202 if test -n "$PTLIB_CONFIG"; then
24203 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24204 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24205 else
24206 { echo "$as_me:$LINENO: result: no" >&5
24207 echo "${ECHO_T}no" >&6; }
24212 PWLIB_INCDIR="/usr/local/include"
24213 PWLIB_LIBDIR="/usr/local/lib"
24214 else
24215 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
24216 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
24217 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24219 else
24220 test "$cross_compiling" = yes &&
24221 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24222 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24223 { (exit 1); exit 1; }; }
24224 if test -r "/usr/include/ptlib.h"; then
24225 ac_cv_file__usr_include_ptlib_h=yes
24226 else
24227 ac_cv_file__usr_include_ptlib_h=no
24230 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
24231 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
24232 if test $ac_cv_file__usr_include_ptlib_h = yes; then
24233 HAS_PWLIB=1
24236 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24237 # Extract the first word of "ptlib-config", so it can be a program name with args.
24238 set dummy ptlib-config; ac_word=$2
24239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24241 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
24242 echo $ECHO_N "(cached) $ECHO_C" >&6
24243 else
24244 case $PTLIB_CONFIG in
24245 [\\/]* | ?:[\\/]*)
24246 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
24249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24250 for as_dir in /usr/share/pwlib/make
24252 IFS=$as_save_IFS
24253 test -z "$as_dir" && as_dir=.
24254 for ac_exec_ext in '' $ac_executable_extensions; do
24255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24256 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24258 break 2
24260 done
24261 done
24262 IFS=$as_save_IFS
24265 esac
24267 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
24268 if test -n "$PTLIB_CONFIG"; then
24269 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
24270 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
24271 else
24272 { echo "$as_me:$LINENO: result: no" >&5
24273 echo "${ECHO_T}no" >&6; }
24277 PWLIB_INCDIR="/usr/include"
24278 PWLIB_LIBDIR="/usr/lib"
24285 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
24286 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
24287 # exit
24290 if test "${HAS_PWLIB:-unset}" != "unset" ; then
24291 if test "${PWLIBDIR:-unset}" = "unset" ; then
24292 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
24293 PWLIBDIR=`$PTLIB_CONFIG --prefix`
24294 else
24295 echo "Cannot find ptlib-config - please install and try again"
24296 exit
24300 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
24301 PWLIBDIR="/usr/share/pwlib"
24302 PWLIB_INCDIR="/usr/include"
24303 PWLIB_LIBDIR="/usr/lib"
24305 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
24306 PWLIBDIR="/usr/local/share/pwlib"
24307 PWLIB_INCDIR="/usr/local/include"
24308 PWLIB_LIBDIR="/usr/local/lib"
24311 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
24312 PWLIB_INCDIR="${PWLIBDIR}/include"
24314 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
24315 PWLIB_LIBDIR="${PWLIBDIR}/lib"
24324 if test "${HAS_PWLIB:-unset}" != "unset"; then
24325 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24326 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
24327 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
24328 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
24329 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
24330 let PWLIB_REQ=1*10000+9*100+2
24332 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
24333 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24334 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
24335 { echo "$as_me:$LINENO: result: no" >&5
24336 echo "${ECHO_T}no" >&6; }
24337 unset HAS_PWLIB
24338 else
24339 { echo "$as_me:$LINENO: result: yes" >&5
24340 echo "${ECHO_T}yes" >&6; }
24345 if test "${HAS_PWLIB:-unset}" != "unset"; then
24347 PWLIB_OSTYPE=
24348 case "$host_os" in
24349 linux*) PWLIB_OSTYPE=linux ;
24351 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
24353 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
24354 ENDLDLIBS="-lossaudio" ;
24356 netbsd* ) PWLIB_OSTYPE=NetBSD ;
24357 ENDLDLIBS="-lossaudio" ;
24359 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
24361 darwin* ) PWLIB_OSTYPE=Darwin ;
24363 beos*) PWLIB_OSTYPE=beos ;
24364 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
24366 cygwin*) PWLIB_OSTYPE=cygwin ;
24368 mingw*) PWLIB_OSTYPE=mingw ;
24369 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
24370 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
24372 * ) PWLIB_OSTYPE="$host_os" ;
24373 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
24374 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
24376 esac
24378 PWLIB_MACHTYPE=
24379 case "$host_cpu" in
24380 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
24383 x86_64) PWLIB_MACHTYPE=x86_64 ;
24384 P_64BIT=1 ;
24385 LIB64=1 ;
24388 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
24389 P_64BIT=1 ;
24392 sparc ) PWLIB_MACHTYPE=sparc ;
24395 powerpc ) PWLIB_MACHTYPE=ppc ;
24398 ppc ) PWLIB_MACHTYPE=ppc ;
24401 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
24402 P_64BIT=1 ;
24403 LIB64=1 ;
24406 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
24407 P_64BIT=1 ;
24408 LIB64=1 ;
24411 ia64) PWLIB_MACHTYPE=ia64 ;
24412 P_64BIT=1 ;
24415 s390x) PWLIB_MACHTYPE=s390x ;
24416 P_64BIT=1 ;
24417 LIB64=1 ;
24420 s390) PWLIB_MACHTYPE=s390 ;
24423 * ) PWLIB_MACHTYPE="$host_cpu";
24424 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24425 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24426 esac
24428 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24433 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24436 if test "${HAS_PWLIB:-unset}" != "unset"; then
24437 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24438 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24440 saved_cppflags="${CPPFLAGS}"
24441 saved_libs="${LIBS}"
24442 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24443 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24445 ac_ext=cpp
24446 ac_cpp='$CXXCPP $CPPFLAGS'
24447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24452 cat >conftest.$ac_ext <<_ACEOF
24453 /* confdefs.h. */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h. */
24458 #include "ptlib.h"
24460 main ()
24462 BOOL q = PTime::IsDaylightSavings();
24464 return 0;
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (ac_try="$ac_link"
24469 case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_link") 2>conftest.er1
24475 ac_status=$?
24476 grep -v '^ *+' conftest.er1 >conftest.err
24477 rm -f conftest.er1
24478 cat conftest.err >&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } &&
24481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24482 { (case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24485 esac
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487 (eval "$ac_try") 2>&5
24488 ac_status=$?
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; } &&
24491 { ac_try='test -s conftest$ac_exeext'
24492 { (case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24495 esac
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_try") 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24501 { echo "$as_me:$LINENO: result: yes" >&5
24502 echo "${ECHO_T}yes" >&6; }
24503 ac_cv_lib_PWLIB="yes"
24505 else
24506 echo "$as_me: failed program was:" >&5
24507 sed 's/^/| /' conftest.$ac_ext >&5
24509 { echo "$as_me:$LINENO: result: no" >&5
24510 echo "${ECHO_T}no" >&6; }
24511 ac_cv_lib_PWLIB="no"
24516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24517 conftest$ac_exeext conftest.$ac_ext
24519 ac_ext=c
24520 ac_cpp='$CPP $CPPFLAGS'
24521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24526 LIBS="${saved_libs}"
24527 CPPFLAGS="${saved_cppflags}"
24529 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24530 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24531 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24532 else
24533 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24535 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24536 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24538 PBX_PWLIB=1
24540 cat >>confdefs.h <<\_ACEOF
24541 #define HAVE_PWLIB 1
24542 _ACEOF
24550 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24551 { echo "$as_me:$LINENO: ***" >&5
24552 echo "$as_me: ***" >&6;}
24553 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24554 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24555 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24556 echo "$as_me: *** Either correct the installation" >&or run configure;}
24557 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24558 echo "$as_me: *** including --without-pwlib" >&6;}
24559 exit 1
24562 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24563 if test ! -z "${OPENH323_DIR}"; then
24564 OPENH323DIR="${OPENH323_DIR}"
24567 OPENH323_INCDIR=
24568 OPENH323_LIBDIR=
24569 if test "${OPENH323DIR:-unset}" != "unset" ; then
24570 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
24571 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24572 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24573 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24574 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 else
24576 test "$cross_compiling" = yes &&
24577 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24578 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24579 { (exit 1); exit 1; }; }
24580 if test -r "${OPENH323DIR}/version.h"; then
24581 eval "$as_ac_File=yes"
24582 else
24583 eval "$as_ac_File=no"
24586 ac_res=`eval echo '${'$as_ac_File'}'`
24587 { echo "$as_me:$LINENO: result: $ac_res" >&5
24588 echo "${ECHO_T}$ac_res" >&6; }
24589 if test `eval echo '${'$as_ac_File'}'` = yes; then
24590 HAS_OPENH323=1
24594 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24595 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
24596 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24597 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24598 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24600 else
24601 test "$cross_compiling" = yes &&
24602 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24603 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24604 { (exit 1); exit 1; }; }
24605 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24606 eval "$as_ac_File=yes"
24607 else
24608 eval "$as_ac_File=no"
24611 ac_res=`eval echo '${'$as_ac_File'}'`
24612 { echo "$as_me:$LINENO: result: $ac_res" >&5
24613 echo "${ECHO_T}$ac_res" >&6; }
24614 if test `eval echo '${'$as_ac_File'}'` = yes; then
24615 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24618 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24619 OPENH323DIR="${PWLIBDIR}/../openh323"
24620 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
24621 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24622 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24623 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626 test "$cross_compiling" = yes &&
24627 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24628 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24629 { (exit 1); exit 1; }; }
24630 if test -r "${OPENH323DIR}/include/h323.h"; then
24631 eval "$as_ac_File=yes"
24632 else
24633 eval "$as_ac_File=no"
24636 ac_res=`eval echo '${'$as_ac_File'}'`
24637 { echo "$as_me:$LINENO: result: $ac_res" >&5
24638 echo "${ECHO_T}$ac_res" >&6; }
24639 if test `eval echo '${'$as_ac_File'}'` = yes; then
24641 else
24642 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24645 else
24646 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
24647 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24648 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24649 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652 test "$cross_compiling" = yes &&
24653 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24654 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24655 { (exit 1); exit 1; }; }
24656 if test -r "${HOME}/openh323/include/h323.h"; then
24657 eval "$as_ac_File=yes"
24658 else
24659 eval "$as_ac_File=no"
24662 ac_res=`eval echo '${'$as_ac_File'}'`
24663 { echo "$as_me:$LINENO: result: $ac_res" >&5
24664 echo "${ECHO_T}$ac_res" >&6; }
24665 if test `eval echo '${'$as_ac_File'}'` = yes; then
24666 HAS_OPENH323=1
24669 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24670 OPENH323DIR="${HOME}/openh323"
24671 else
24672 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
24673 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
24674 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24676 else
24677 test "$cross_compiling" = yes &&
24678 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24679 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24680 { (exit 1); exit 1; }; }
24681 if test -r "/usr/local/include/openh323/h323.h"; then
24682 ac_cv_file__usr_local_include_openh323_h323_h=yes
24683 else
24684 ac_cv_file__usr_local_include_openh323_h323_h=no
24687 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
24688 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
24689 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
24690 HAS_OPENH323=1
24693 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24694 OPENH323DIR="/usr/local/share/openh323"
24695 OPENH323_INCDIR="/usr/local/include/openh323"
24696 OPENH323_LIBDIR="/usr/local/lib"
24697 else
24698 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
24699 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
24700 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24702 else
24703 test "$cross_compiling" = yes &&
24704 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24705 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24706 { (exit 1); exit 1; }; }
24707 if test -r "/usr/include/openh323/h323.h"; then
24708 ac_cv_file__usr_include_openh323_h323_h=yes
24709 else
24710 ac_cv_file__usr_include_openh323_h323_h=no
24713 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
24714 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
24715 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
24716 HAS_OPENH323=1
24719 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24720 OPENH323DIR="/usr/share/openh323"
24721 OPENH323_INCDIR="/usr/include/openh323"
24722 OPENH323_LIBDIR="/usr/lib"
24729 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24730 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
24731 OPENH323_INCDIR="${OPENH323DIR}/include"
24733 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
24734 OPENH323_LIBDIR="${OPENH323DIR}/lib"
24743 if test "${HAS_OPENH323:-unset}" != "unset"; then
24744 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24745 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
24746 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
24747 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
24748 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
24749 let OPENH323_REQ=1*10000+17*100+3
24751 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
24752 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24753 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
24754 { echo "$as_me:$LINENO: result: no" >&5
24755 echo "${ECHO_T}no" >&6; }
24756 unset HAS_OPENH323
24757 else
24758 { echo "$as_me:$LINENO: result: yes" >&5
24759 echo "${ECHO_T}yes" >&6; }
24764 if test "${HAS_OPENH323:-unset}" != "unset"; then
24765 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
24766 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
24767 OPENH323_SUFFIX=
24768 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
24769 libfile=
24770 if test -n "$files"; then
24771 for f in $files; do
24772 if test -f $f -a ! -L $f; then
24773 libfile=`basename $f`
24774 break;
24776 done
24778 if test "${libfile:-unset}" != "unset"; then
24779 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
24781 case "${OPENH323_SUFFIX}" in
24783 OPENH323_BUILD="notrace";;
24785 OPENH323_BUILD="opt";;
24787 OPENH323_BUILD="debug";;
24789 OPENH323_BUILD="notrace";;
24790 esac
24791 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
24792 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
24798 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
24800 if test "${HAS_OPENH323:-unset}" != "unset"; then
24801 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
24802 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
24804 saved_cppflags="${CPPFLAGS}"
24805 saved_libs="${LIBS}"
24806 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
24807 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
24809 ac_ext=cpp
24810 ac_cpp='$CXXCPP $CPPFLAGS'
24811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24816 cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h. */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h. */
24822 #include "ptlib.h"
24823 #include "h323.h"
24824 #include "h323ep.h"
24826 main ()
24828 H323EndPoint ep = H323EndPoint();
24830 return 0;
24832 _ACEOF
24833 rm -f conftest.$ac_objext conftest$ac_exeext
24834 if { (ac_try="$ac_link"
24835 case "(($ac_try" in
24836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24838 esac
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_link") 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24848 { (case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_try") 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; } &&
24857 { ac_try='test -s conftest$ac_exeext'
24858 { (case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24861 esac
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863 (eval "$ac_try") 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 { echo "$as_me:$LINENO: result: yes" >&5
24868 echo "${ECHO_T}yes" >&6; }
24869 ac_cv_lib_OPENH323="yes"
24871 else
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24875 { echo "$as_me:$LINENO: result: no" >&5
24876 echo "${ECHO_T}no" >&6; }
24877 ac_cv_lib_OPENH323="no"
24882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24883 conftest$ac_exeext conftest.$ac_ext
24885 ac_ext=c
24886 ac_cpp='$CPP $CPPFLAGS'
24887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24892 LIBS="${saved_libs}"
24893 CPPFLAGS="${saved_cppflags}"
24895 if test "${ac_cv_lib_OPENH323}" = "yes"; then
24896 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
24897 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
24898 else
24899 OPENH323_LIB="-l${PLATFORM_OPENH323}"
24901 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
24902 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
24904 PBX_OPENH323=1
24906 cat >>confdefs.h <<\_ACEOF
24907 #define HAVE_OPENH323 1
24908 _ACEOF
24914 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
24915 { echo "$as_me:$LINENO: ***" >&5
24916 echo "$as_me: ***" >&6;}
24917 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24918 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24919 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
24920 echo "$as_me: *** Either correct the installation" >&or run configure;}
24921 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24922 echo "$as_me: *** including --without-pwlib" >&6;}
24923 exit 1
24927 ac_ext=cpp
24928 ac_cpp='$CXXCPP $CPPFLAGS'
24929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24934 if test "${USE_QT}" != "no"; then
24935 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24936 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24937 saved_libs="${LIBS}"
24938 saved_cppflags="${CPPFLAGS}"
24939 if test "x${QT_DIR}" != "x"; then
24940 LIBS="${LIBS} -L${QT_DIR}/lib"
24941 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24943 LIBS="${LIBS} -lqt"
24944 qtlib="qt"
24945 cat >conftest.$ac_ext <<_ACEOF
24947 /* confdefs.h. */
24948 _ACEOF
24949 cat confdefs.h >>conftest.$ac_ext
24950 cat >>conftest.$ac_ext <<_ACEOF
24951 /* end confdefs.h. */
24952 #include <qt3/qdatetime.h>
24954 main ()
24956 QDate date();
24958 return 0;
24961 _ACEOF
24962 rm -f conftest.$ac_objext conftest$ac_exeext
24963 if { (ac_try="$ac_link"
24964 case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24967 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_link") 2>conftest.er1
24970 ac_status=$?
24971 grep -v '^ *+' conftest.er1 >conftest.err
24972 rm -f conftest.er1
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } &&
24976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24977 { (case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24980 esac
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982 (eval "$ac_try") 2>&5
24983 ac_status=$?
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; } &&
24986 { ac_try='test -s conftest$ac_exeext'
24987 { (case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_try") 2>&5
24993 ac_status=$?
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); }; }; then
24996 ac_cv_lib_qt_qt_date="yes"
24997 else
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25001 ac_cv_lib_qt_qt_date="no"
25004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25005 conftest$ac_exeext conftest.$ac_ext
25006 LIBS="${saved_libs}"
25007 CPPFLAGS="${saved_cppflags}"
25009 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
25010 saved_libs="${LIBS}"
25011 saved_cppflags="${CPPFLAGS}"
25012 if test "x${QT_DIR}" != "x"; then
25013 LIBS="${LIBS} -L${QT_DIR}/lib"
25014 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
25016 LIBS="${LIBS} -lqt-mt"
25017 qtlib="qt-mt"
25018 cat >conftest.$ac_ext <<_ACEOF
25020 /* confdefs.h. */
25021 _ACEOF
25022 cat confdefs.h >>conftest.$ac_ext
25023 cat >>conftest.$ac_ext <<_ACEOF
25024 /* end confdefs.h. */
25025 #include <qt3/qdatetime.h>
25027 main ()
25029 QDate date();
25031 return 0;
25034 _ACEOF
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036 if { (ac_try="$ac_link"
25037 case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25040 esac
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042 (eval "$ac_link") 2>conftest.er1
25043 ac_status=$?
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } &&
25049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25050 { (case "(($ac_try" in
25051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052 *) ac_try_echo=$ac_try;;
25053 esac
25054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25055 (eval "$ac_try") 2>&5
25056 ac_status=$?
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; } &&
25059 { ac_try='test -s conftest$ac_exeext'
25060 { (case "(($ac_try" in
25061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062 *) ac_try_echo=$ac_try;;
25063 esac
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065 (eval "$ac_try") 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; }; then
25069 ac_cv_lib_qt_qt_date="yes"
25070 else
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 ac_cv_lib_qt_qt_date="no"
25077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25078 conftest$ac_exeext conftest.$ac_ext
25079 LIBS="${saved_libs}"
25080 CPPFLAGS="${saved_cppflags}"
25083 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25084 { echo "$as_me:$LINENO: result: yes" >&5
25085 echo "${ECHO_T}yes" >&6; }
25086 else
25087 { echo "$as_me:$LINENO: result: no" >&5
25088 echo "${ECHO_T}no" >&6; }
25091 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
25092 QT_LIB="-l${qtlib}"
25093 if test "${QT_DIR}" != ""; then
25094 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
25095 QT_INCLUDE="-I${QT_DIR}/include"
25097 PBX_QT=1
25099 cat >>confdefs.h <<\_ACEOF
25100 #define HAVE_QT 1
25101 _ACEOF
25103 if test -n "$ac_tool_prefix"; then
25104 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
25105 set dummy ${ac_tool_prefix}moc; ac_word=$2
25106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25108 if test "${ac_cv_path_QTMOC+set}" = set; then
25109 echo $ECHO_N "(cached) $ECHO_C" >&6
25110 else
25111 case $QTMOC in
25112 [\\/]* | ?:[\\/]*)
25113 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
25116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25117 for as_dir in $PATH
25119 IFS=$as_save_IFS
25120 test -z "$as_dir" && as_dir=.
25121 for ac_exec_ext in '' $ac_executable_extensions; do
25122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25123 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25125 break 2
25127 done
25128 done
25129 IFS=$as_save_IFS
25132 esac
25134 QTMOC=$ac_cv_path_QTMOC
25135 if test -n "$QTMOC"; then
25136 { echo "$as_me:$LINENO: result: $QTMOC" >&5
25137 echo "${ECHO_T}$QTMOC" >&6; }
25138 else
25139 { echo "$as_me:$LINENO: result: no" >&5
25140 echo "${ECHO_T}no" >&6; }
25145 if test -z "$ac_cv_path_QTMOC"; then
25146 ac_pt_QTMOC=$QTMOC
25147 # Extract the first word of "moc", so it can be a program name with args.
25148 set dummy moc; ac_word=$2
25149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25151 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 else
25154 case $ac_pt_QTMOC in
25155 [\\/]* | ?:[\\/]*)
25156 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
25159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25160 for as_dir in $PATH
25162 IFS=$as_save_IFS
25163 test -z "$as_dir" && as_dir=.
25164 for ac_exec_ext in '' $ac_executable_extensions; do
25165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25166 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
25167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25168 break 2
25170 done
25171 done
25172 IFS=$as_save_IFS
25175 esac
25177 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
25178 if test -n "$ac_pt_QTMOC"; then
25179 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
25180 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
25181 else
25182 { echo "$as_me:$LINENO: result: no" >&5
25183 echo "${ECHO_T}no" >&6; }
25186 if test "x$ac_pt_QTMOC" = x; then
25187 QTMOC="No"
25188 else
25189 case $cross_compiling:$ac_tool_warned in
25190 yes:)
25191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25192 whose name does not start with the host triplet. If you think this
25193 configuration is useful to you, please write to autoconf@gnu.org." >&5
25194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25195 whose name does not start with the host triplet. If you think this
25196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25197 ac_tool_warned=yes ;;
25198 esac
25199 QTMOC=$ac_pt_QTMOC
25201 else
25202 QTMOC="$ac_cv_path_QTMOC"
25205 elif test ! -z "${QT_MANDATORY}";
25206 then
25207 { echo "$as_me:$LINENO: ***" >&5
25208 echo "$as_me: ***" >&6;}
25209 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
25210 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
25211 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25212 echo "$as_me: *** Either correct the installation" >&or run configure;}
25213 { echo "$as_me:$LINENO: *** including --without-qt." >&5
25214 echo "$as_me: *** including --without-qt." >&6;}
25215 exit 1
25219 ac_ext=c
25220 ac_cpp='$CPP $CPPFLAGS'
25221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25227 if test "${USE_RADIUS}" != "no"; then
25228 pbxlibdir=""
25229 if test "x${RADIUS_DIR}" != "x"; then
25230 if test -d ${RADIUS_DIR}/lib; then
25231 pbxlibdir="-L${RADIUS_DIR}/lib"
25232 else
25233 pbxlibdir="-L${RADIUS_DIR}"
25236 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
25237 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
25238 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
25239 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 else
25241 ac_check_lib_save_LIBS=$LIBS
25242 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h. */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25250 /* Override any GCC internal prototype to avoid an error.
25251 Use char because int might match the return type of a GCC
25252 builtin and then its argument prototype would still apply. */
25253 #ifdef __cplusplus
25254 extern "C"
25255 #endif
25256 char rc_read_config ();
25258 main ()
25260 return rc_read_config ();
25262 return 0;
25264 _ACEOF
25265 rm -f conftest.$ac_objext conftest$ac_exeext
25266 if { (ac_try="$ac_link"
25267 case "(($ac_try" in
25268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269 *) ac_try_echo=$ac_try;;
25270 esac
25271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272 (eval "$ac_link") 2>conftest.er1
25273 ac_status=$?
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } &&
25279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25280 { (case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25283 esac
25284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25285 (eval "$ac_try") 2>&5
25286 ac_status=$?
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; } &&
25289 { ac_try='test -s conftest$ac_exeext'
25290 { (case "(($ac_try" in
25291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292 *) ac_try_echo=$ac_try;;
25293 esac
25294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295 (eval "$ac_try") 2>&5
25296 ac_status=$?
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; }; then
25299 ac_cv_lib_radiusclient_ng_rc_read_config=yes
25300 else
25301 echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25304 ac_cv_lib_radiusclient_ng_rc_read_config=no
25307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25308 conftest$ac_exeext conftest.$ac_ext
25309 LIBS=$ac_check_lib_save_LIBS
25311 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
25312 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
25313 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
25314 AST_RADIUS_FOUND=yes
25315 else
25316 AST_RADIUS_FOUND=no
25320 if test "${AST_RADIUS_FOUND}" = "yes"; then
25321 RADIUS_LIB="-lradiusclient-ng "
25322 RADIUS_HEADER_FOUND="1"
25323 if test "x${RADIUS_DIR}" != "x"; then
25324 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
25325 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
25326 if test "xradiusclient-ng.h" != "x" ; then
25327 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
25328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25329 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25330 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25332 echo $ECHO_N "(cached) $ECHO_C" >&6
25334 ac_res=`eval echo '${'$as_ac_Header'}'`
25335 { echo "$as_me:$LINENO: result: $ac_res" >&5
25336 echo "${ECHO_T}$ac_res" >&6; }
25337 else
25338 # Is the header compilable?
25339 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
25340 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
25341 cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h. */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 $ac_includes_default
25348 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25349 _ACEOF
25350 rm -f conftest.$ac_objext
25351 if { (ac_try="$ac_compile"
25352 case "(($ac_try" in
25353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354 *) ac_try_echo=$ac_try;;
25355 esac
25356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25357 (eval "$ac_compile") 2>conftest.er1
25358 ac_status=$?
25359 grep -v '^ *+' conftest.er1 >conftest.err
25360 rm -f conftest.er1
25361 cat conftest.err >&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } &&
25364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25365 { (case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25368 esac
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 (eval "$ac_try") 2>&5
25371 ac_status=$?
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; } &&
25374 { ac_try='test -s conftest.$ac_objext'
25375 { (case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25378 esac
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380 (eval "$ac_try") 2>&5
25381 ac_status=$?
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
25384 ac_header_compiler=yes
25385 else
25386 echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25389 ac_header_compiler=no
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25394 echo "${ECHO_T}$ac_header_compiler" >&6; }
25396 # Is the header present?
25397 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
25398 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
25399 cat >conftest.$ac_ext <<_ACEOF
25400 /* confdefs.h. */
25401 _ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h. */
25405 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
25406 _ACEOF
25407 if { (ac_try="$ac_cpp conftest.$ac_ext"
25408 case "(($ac_try" in
25409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410 *) ac_try_echo=$ac_try;;
25411 esac
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25414 ac_status=$?
25415 grep -v '^ *+' conftest.er1 >conftest.err
25416 rm -f conftest.er1
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } >/dev/null; then
25420 if test -s conftest.err; then
25421 ac_cpp_err=$ac_c_preproc_warn_flag
25422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25423 else
25424 ac_cpp_err=
25426 else
25427 ac_cpp_err=yes
25429 if test -z "$ac_cpp_err"; then
25430 ac_header_preproc=yes
25431 else
25432 echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25435 ac_header_preproc=no
25438 rm -f conftest.err conftest.$ac_ext
25439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25440 echo "${ECHO_T}$ac_header_preproc" >&6; }
25442 # So? What about this header?
25443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25444 yes:no: )
25445 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25446 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25447 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
25448 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25449 ac_header_preproc=yes
25451 no:yes:* )
25452 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
25453 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
25454 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
25455 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25456 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
25457 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
25458 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25459 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25460 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25461 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25462 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25463 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25466 esac
25467 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
25468 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
25469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 else
25472 eval "$as_ac_Header=\$ac_header_preproc"
25474 ac_res=`eval echo '${'$as_ac_Header'}'`
25475 { echo "$as_me:$LINENO: result: $ac_res" >&5
25476 echo "${ECHO_T}$ac_res" >&6; }
25479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25480 RADIUS_HEADER_FOUND=1
25481 else
25482 RADIUS_HEADER_FOUND=0
25487 else
25488 if test "xradiusclient-ng.h" != "x" ; then
25489 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25490 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25491 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25492 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25495 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25496 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25497 else
25498 # Is the header compilable?
25499 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
25500 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
25501 cat >conftest.$ac_ext <<_ACEOF
25502 /* confdefs.h. */
25503 _ACEOF
25504 cat confdefs.h >>conftest.$ac_ext
25505 cat >>conftest.$ac_ext <<_ACEOF
25506 /* end confdefs.h. */
25507 $ac_includes_default
25508 #include <radiusclient-ng.h>
25509 _ACEOF
25510 rm -f conftest.$ac_objext
25511 if { (ac_try="$ac_compile"
25512 case "(($ac_try" in
25513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514 *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517 (eval "$ac_compile") 2>conftest.er1
25518 ac_status=$?
25519 grep -v '^ *+' conftest.er1 >conftest.err
25520 rm -f conftest.er1
25521 cat conftest.err >&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } &&
25524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25525 { (case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25528 esac
25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530 (eval "$ac_try") 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; } &&
25534 { ac_try='test -s conftest.$ac_objext'
25535 { (case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_try") 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 ac_header_compiler=yes
25545 else
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 ac_header_compiler=no
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25554 echo "${ECHO_T}$ac_header_compiler" >&6; }
25556 # Is the header present?
25557 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25558 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25559 cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h. */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 #include <radiusclient-ng.h>
25566 _ACEOF
25567 if { (ac_try="$ac_cpp conftest.$ac_ext"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25571 esac
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25574 ac_status=$?
25575 grep -v '^ *+' conftest.er1 >conftest.err
25576 rm -f conftest.er1
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } >/dev/null; then
25580 if test -s conftest.err; then
25581 ac_cpp_err=$ac_c_preproc_warn_flag
25582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25583 else
25584 ac_cpp_err=
25586 else
25587 ac_cpp_err=yes
25589 if test -z "$ac_cpp_err"; then
25590 ac_header_preproc=yes
25591 else
25592 echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25595 ac_header_preproc=no
25598 rm -f conftest.err conftest.$ac_ext
25599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25600 echo "${ECHO_T}$ac_header_preproc" >&6; }
25602 # So? What about this header?
25603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25604 yes:no: )
25605 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25606 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25607 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25608 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25609 ac_header_preproc=yes
25611 no:yes:* )
25612 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25613 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25614 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25615 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25616 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25617 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25618 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25619 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25620 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25621 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25622 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25623 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25626 esac
25627 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25628 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25629 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
25634 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25635 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25638 if test $ac_cv_header_radiusclient_ng_h = yes; then
25639 RADIUS_HEADER_FOUND=1
25640 else
25641 RADIUS_HEADER_FOUND=0
25647 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25648 if test ! -z "${RADIUS_MANDATORY}" ;
25649 then
25650 { echo "$as_me:$LINENO: ***" >&5
25651 echo "$as_me: ***" >&6;}
25652 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25653 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25654 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support" >&5
25655 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support" >&or re-run configure;}
25656 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25657 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25658 exit 1
25660 RADIUS_LIB=""
25661 RADIUS_INCLUDE=""
25662 PBX_RADIUS=0
25663 else
25664 PBX_RADIUS=1
25666 cat >>confdefs.h <<_ACEOF
25667 #define HAVE_RADIUS 1
25668 _ACEOF
25671 elif test ! -z "${RADIUS_MANDATORY}";
25672 then
25673 { echo "$as_me:$LINENO: ***" >&5
25674 echo "$as_me: ***" >&6;}
25675 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
25676 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
25677 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
25678 echo "$as_me: *** Either correct the installation" >&or run configure;}
25679 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25680 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25681 exit 1
25687 if test "${USE_SPEEX}" != "no"; then
25688 pbxlibdir=""
25689 if test "x${SPEEX_DIR}" != "x"; then
25690 if test -d ${SPEEX_DIR}/lib; then
25691 pbxlibdir="-L${SPEEX_DIR}/lib"
25692 else
25693 pbxlibdir="-L${SPEEX_DIR}"
25696 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
25697 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
25698 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701 ac_check_lib_save_LIBS=$LIBS
25702 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
25703 cat >conftest.$ac_ext <<_ACEOF
25704 /* confdefs.h. */
25705 _ACEOF
25706 cat confdefs.h >>conftest.$ac_ext
25707 cat >>conftest.$ac_ext <<_ACEOF
25708 /* end confdefs.h. */
25710 /* Override any GCC internal prototype to avoid an error.
25711 Use char because int might match the return type of a GCC
25712 builtin and then its argument prototype would still apply. */
25713 #ifdef __cplusplus
25714 extern "C"
25715 #endif
25716 char speex_encode ();
25718 main ()
25720 return speex_encode ();
25722 return 0;
25724 _ACEOF
25725 rm -f conftest.$ac_objext conftest$ac_exeext
25726 if { (ac_try="$ac_link"
25727 case "(($ac_try" in
25728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25729 *) ac_try_echo=$ac_try;;
25730 esac
25731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25732 (eval "$ac_link") 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
25739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25740 { (case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25743 esac
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745 (eval "$ac_try") 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; } &&
25749 { ac_try='test -s conftest$ac_exeext'
25750 { (case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25753 esac
25754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_try") 2>&5
25756 ac_status=$?
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; }; then
25759 ac_cv_lib_speex_speex_encode=yes
25760 else
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25764 ac_cv_lib_speex_speex_encode=no
25767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25768 conftest$ac_exeext conftest.$ac_ext
25769 LIBS=$ac_check_lib_save_LIBS
25771 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
25772 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
25773 if test $ac_cv_lib_speex_speex_encode = yes; then
25774 AST_SPEEX_FOUND=yes
25775 else
25776 AST_SPEEX_FOUND=no
25780 if test "${AST_SPEEX_FOUND}" = "yes"; then
25781 SPEEX_LIB="-lspeex -lm"
25782 SPEEX_HEADER_FOUND="1"
25783 if test "x${SPEEX_DIR}" != "x"; then
25784 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
25785 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
25786 if test "xspeex/speex.h" != "x" ; then
25787 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
25788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25789 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25790 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25792 echo $ECHO_N "(cached) $ECHO_C" >&6
25794 ac_res=`eval echo '${'$as_ac_Header'}'`
25795 { echo "$as_me:$LINENO: result: $ac_res" >&5
25796 echo "${ECHO_T}$ac_res" >&6; }
25797 else
25798 # Is the header compilable?
25799 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
25800 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
25801 cat >conftest.$ac_ext <<_ACEOF
25802 /* confdefs.h. */
25803 _ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25807 $ac_includes_default
25808 #include <${SPEEX_DIR}/include/speex/speex.h>
25809 _ACEOF
25810 rm -f conftest.$ac_objext
25811 if { (ac_try="$ac_compile"
25812 case "(($ac_try" in
25813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25814 *) ac_try_echo=$ac_try;;
25815 esac
25816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25817 (eval "$ac_compile") 2>conftest.er1
25818 ac_status=$?
25819 grep -v '^ *+' conftest.er1 >conftest.err
25820 rm -f conftest.er1
25821 cat conftest.err >&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } &&
25824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25825 { (case "(($ac_try" in
25826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25827 *) ac_try_echo=$ac_try;;
25828 esac
25829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25830 (eval "$ac_try") 2>&5
25831 ac_status=$?
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); }; } &&
25834 { ac_try='test -s conftest.$ac_objext'
25835 { (case "(($ac_try" in
25836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837 *) ac_try_echo=$ac_try;;
25838 esac
25839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25840 (eval "$ac_try") 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_header_compiler=yes
25845 else
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 ac_header_compiler=no
25852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25854 echo "${ECHO_T}$ac_header_compiler" >&6; }
25856 # Is the header present?
25857 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
25858 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
25859 cat >conftest.$ac_ext <<_ACEOF
25860 /* confdefs.h. */
25861 _ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h. */
25865 #include <${SPEEX_DIR}/include/speex/speex.h>
25866 _ACEOF
25867 if { (ac_try="$ac_cpp conftest.$ac_ext"
25868 case "(($ac_try" in
25869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870 *) ac_try_echo=$ac_try;;
25871 esac
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25874 ac_status=$?
25875 grep -v '^ *+' conftest.er1 >conftest.err
25876 rm -f conftest.er1
25877 cat conftest.err >&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); } >/dev/null; then
25880 if test -s conftest.err; then
25881 ac_cpp_err=$ac_c_preproc_warn_flag
25882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25883 else
25884 ac_cpp_err=
25886 else
25887 ac_cpp_err=yes
25889 if test -z "$ac_cpp_err"; then
25890 ac_header_preproc=yes
25891 else
25892 echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25895 ac_header_preproc=no
25898 rm -f conftest.err conftest.$ac_ext
25899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25900 echo "${ECHO_T}$ac_header_preproc" >&6; }
25902 # So? What about this header?
25903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25904 yes:no: )
25905 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25906 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25907 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
25908 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
25909 ac_header_preproc=yes
25911 no:yes:* )
25912 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
25913 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
25914 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
25915 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
25916 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
25917 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
25918 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25919 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25920 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
25921 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
25922 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
25923 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
25926 esac
25927 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25928 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932 eval "$as_ac_Header=\$ac_header_preproc"
25934 ac_res=`eval echo '${'$as_ac_Header'}'`
25935 { echo "$as_me:$LINENO: result: $ac_res" >&5
25936 echo "${ECHO_T}$ac_res" >&6; }
25939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25940 SPEEX_HEADER_FOUND=1
25941 else
25942 SPEEX_HEADER_FOUND=0
25947 else
25948 if test "xspeex/speex.h" != "x" ; then
25949 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25950 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25951 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25952 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25956 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25957 else
25958 # Is the header compilable?
25959 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
25960 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
25961 cat >conftest.$ac_ext <<_ACEOF
25962 /* confdefs.h. */
25963 _ACEOF
25964 cat confdefs.h >>conftest.$ac_ext
25965 cat >>conftest.$ac_ext <<_ACEOF
25966 /* end confdefs.h. */
25967 $ac_includes_default
25968 #include <speex/speex.h>
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (ac_try="$ac_compile"
25972 case "(($ac_try" in
25973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974 *) ac_try_echo=$ac_try;;
25975 esac
25976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25977 (eval "$ac_compile") 2>conftest.er1
25978 ac_status=$?
25979 grep -v '^ *+' conftest.er1 >conftest.err
25980 rm -f conftest.er1
25981 cat conftest.err >&5
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); } &&
25984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25985 { (case "(($ac_try" in
25986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25987 *) ac_try_echo=$ac_try;;
25988 esac
25989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25990 (eval "$ac_try") 2>&5
25991 ac_status=$?
25992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993 (exit $ac_status); }; } &&
25994 { ac_try='test -s conftest.$ac_objext'
25995 { (case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25998 esac
25999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26000 (eval "$ac_try") 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; }; then
26004 ac_header_compiler=yes
26005 else
26006 echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26009 ac_header_compiler=no
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26014 echo "${ECHO_T}$ac_header_compiler" >&6; }
26016 # Is the header present?
26017 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
26018 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
26019 cat >conftest.$ac_ext <<_ACEOF
26020 /* confdefs.h. */
26021 _ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h. */
26025 #include <speex/speex.h>
26026 _ACEOF
26027 if { (ac_try="$ac_cpp conftest.$ac_ext"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26031 esac
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26034 ac_status=$?
26035 grep -v '^ *+' conftest.er1 >conftest.err
26036 rm -f conftest.er1
26037 cat conftest.err >&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } >/dev/null; then
26040 if test -s conftest.err; then
26041 ac_cpp_err=$ac_c_preproc_warn_flag
26042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26043 else
26044 ac_cpp_err=
26046 else
26047 ac_cpp_err=yes
26049 if test -z "$ac_cpp_err"; then
26050 ac_header_preproc=yes
26051 else
26052 echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26055 ac_header_preproc=no
26058 rm -f conftest.err conftest.$ac_ext
26059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26060 echo "${ECHO_T}$ac_header_preproc" >&6; }
26062 # So? What about this header?
26063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26064 yes:no: )
26065 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
26066 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26067 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
26068 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
26069 ac_header_preproc=yes
26071 no:yes:* )
26072 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
26073 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
26074 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
26075 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
26076 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
26077 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
26078 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
26079 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
26080 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
26081 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
26082 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
26083 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
26086 esac
26087 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
26088 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
26089 if test "${ac_cv_header_speex_speex_h+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26092 ac_cv_header_speex_speex_h=$ac_header_preproc
26094 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
26095 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
26098 if test $ac_cv_header_speex_speex_h = yes; then
26099 SPEEX_HEADER_FOUND=1
26100 else
26101 SPEEX_HEADER_FOUND=0
26107 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
26108 if test ! -z "${SPEEX_MANDATORY}" ;
26109 then
26110 { echo "$as_me:$LINENO: ***" >&5
26111 echo "$as_me: ***" >&6;}
26112 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
26113 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
26114 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support" >&5
26115 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support" >&or re-run configure;}
26116 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26117 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26118 exit 1
26120 SPEEX_LIB=""
26121 SPEEX_INCLUDE=""
26122 PBX_SPEEX=0
26123 else
26124 PBX_SPEEX=1
26126 cat >>confdefs.h <<_ACEOF
26127 #define HAVE_SPEEX 1
26128 _ACEOF
26131 elif test ! -z "${SPEEX_MANDATORY}";
26132 then
26133 { echo "$as_me:$LINENO: ***" >&5
26134 echo "$as_me: ***" >&6;}
26135 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
26136 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
26137 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26138 echo "$as_me: *** Either correct the installation" >&or run configure;}
26139 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
26140 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
26141 exit 1
26147 if test "${USE_SQLITE}" != "no"; then
26148 pbxlibdir=""
26149 if test "x${SQLITE_DIR}" != "x"; then
26150 if test -d ${SQLITE_DIR}/lib; then
26151 pbxlibdir="-L${SQLITE_DIR}/lib"
26152 else
26153 pbxlibdir="-L${SQLITE_DIR}"
26156 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
26157 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
26158 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
26159 echo $ECHO_N "(cached) $ECHO_C" >&6
26160 else
26161 ac_check_lib_save_LIBS=$LIBS
26162 LIBS="-lsqlite ${pbxlibdir} $LIBS"
26163 cat >conftest.$ac_ext <<_ACEOF
26164 /* confdefs.h. */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h. */
26170 /* Override any GCC internal prototype to avoid an error.
26171 Use char because int might match the return type of a GCC
26172 builtin and then its argument prototype would still apply. */
26173 #ifdef __cplusplus
26174 extern "C"
26175 #endif
26176 char sqlite_exec ();
26178 main ()
26180 return sqlite_exec ();
26182 return 0;
26184 _ACEOF
26185 rm -f conftest.$ac_objext conftest$ac_exeext
26186 if { (ac_try="$ac_link"
26187 case "(($ac_try" in
26188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26189 *) ac_try_echo=$ac_try;;
26190 esac
26191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26192 (eval "$ac_link") 2>conftest.er1
26193 ac_status=$?
26194 grep -v '^ *+' conftest.er1 >conftest.err
26195 rm -f conftest.er1
26196 cat conftest.err >&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
26199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26200 { (case "(($ac_try" in
26201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26202 *) ac_try_echo=$ac_try;;
26203 esac
26204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26205 (eval "$ac_try") 2>&5
26206 ac_status=$?
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; } &&
26209 { ac_try='test -s conftest$ac_exeext'
26210 { (case "(($ac_try" in
26211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212 *) ac_try_echo=$ac_try;;
26213 esac
26214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26215 (eval "$ac_try") 2>&5
26216 ac_status=$?
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; }; then
26219 ac_cv_lib_sqlite_sqlite_exec=yes
26220 else
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 ac_cv_lib_sqlite_sqlite_exec=no
26227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26228 conftest$ac_exeext conftest.$ac_ext
26229 LIBS=$ac_check_lib_save_LIBS
26231 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
26232 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
26233 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
26234 AST_SQLITE_FOUND=yes
26235 else
26236 AST_SQLITE_FOUND=no
26240 if test "${AST_SQLITE_FOUND}" = "yes"; then
26241 SQLITE_LIB="-lsqlite "
26242 SQLITE_HEADER_FOUND="1"
26243 if test "x${SQLITE_DIR}" != "x"; then
26244 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
26245 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
26246 if test "xsqlite.h" != "x" ; then
26247 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
26248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26249 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26250 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26254 ac_res=`eval echo '${'$as_ac_Header'}'`
26255 { echo "$as_me:$LINENO: result: $ac_res" >&5
26256 echo "${ECHO_T}$ac_res" >&6; }
26257 else
26258 # Is the header compilable?
26259 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
26260 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
26261 cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h. */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26267 $ac_includes_default
26268 #include <${SQLITE_DIR}/include/sqlite.h>
26269 _ACEOF
26270 rm -f conftest.$ac_objext
26271 if { (ac_try="$ac_compile"
26272 case "(($ac_try" in
26273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274 *) ac_try_echo=$ac_try;;
26275 esac
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277 (eval "$ac_compile") 2>conftest.er1
26278 ac_status=$?
26279 grep -v '^ *+' conftest.er1 >conftest.err
26280 rm -f conftest.er1
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } &&
26284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26288 esac
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest.$ac_objext'
26295 { (case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26298 esac
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_try") 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 ac_header_compiler=yes
26305 else
26306 echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 ac_header_compiler=no
26312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26314 echo "${ECHO_T}$ac_header_compiler" >&6; }
26316 # Is the header present?
26317 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
26318 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
26319 cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h. */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 #include <${SQLITE_DIR}/include/sqlite.h>
26326 _ACEOF
26327 if { (ac_try="$ac_cpp conftest.$ac_ext"
26328 case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26334 ac_status=$?
26335 grep -v '^ *+' conftest.er1 >conftest.err
26336 rm -f conftest.er1
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } >/dev/null; then
26340 if test -s conftest.err; then
26341 ac_cpp_err=$ac_c_preproc_warn_flag
26342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26343 else
26344 ac_cpp_err=
26346 else
26347 ac_cpp_err=yes
26349 if test -z "$ac_cpp_err"; then
26350 ac_header_preproc=yes
26351 else
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_header_preproc=no
26358 rm -f conftest.err conftest.$ac_ext
26359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26360 echo "${ECHO_T}$ac_header_preproc" >&6; }
26362 # So? What about this header?
26363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364 yes:no: )
26365 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26366 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
26368 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
26369 ac_header_preproc=yes
26371 no:yes:* )
26372 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
26373 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
26375 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
26377 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26379 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
26381 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
26383 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
26386 esac
26387 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
26388 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
26389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 else
26392 eval "$as_ac_Header=\$ac_header_preproc"
26394 ac_res=`eval echo '${'$as_ac_Header'}'`
26395 { echo "$as_me:$LINENO: result: $ac_res" >&5
26396 echo "${ECHO_T}$ac_res" >&6; }
26399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26400 SQLITE_HEADER_FOUND=1
26401 else
26402 SQLITE_HEADER_FOUND=0
26407 else
26408 if test "xsqlite.h" != "x" ; then
26409 if test "${ac_cv_header_sqlite_h+set}" = set; then
26410 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26411 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26412 if test "${ac_cv_header_sqlite_h+set}" = set; then
26413 echo $ECHO_N "(cached) $ECHO_C" >&6
26415 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26416 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26417 else
26418 # Is the header compilable?
26419 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
26420 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
26421 cat >conftest.$ac_ext <<_ACEOF
26422 /* confdefs.h. */
26423 _ACEOF
26424 cat confdefs.h >>conftest.$ac_ext
26425 cat >>conftest.$ac_ext <<_ACEOF
26426 /* end confdefs.h. */
26427 $ac_includes_default
26428 #include <sqlite.h>
26429 _ACEOF
26430 rm -f conftest.$ac_objext
26431 if { (ac_try="$ac_compile"
26432 case "(($ac_try" in
26433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434 *) ac_try_echo=$ac_try;;
26435 esac
26436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26437 (eval "$ac_compile") 2>conftest.er1
26438 ac_status=$?
26439 grep -v '^ *+' conftest.er1 >conftest.err
26440 rm -f conftest.er1
26441 cat conftest.err >&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } &&
26444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26445 { (case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_try") 2>&5
26451 ac_status=$?
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; } &&
26454 { ac_try='test -s conftest.$ac_objext'
26455 { (case "(($ac_try" in
26456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26457 *) ac_try_echo=$ac_try;;
26458 esac
26459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26460 (eval "$ac_try") 2>&5
26461 ac_status=$?
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; }; then
26464 ac_header_compiler=yes
26465 else
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26469 ac_header_compiler=no
26472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26474 echo "${ECHO_T}$ac_header_compiler" >&6; }
26476 # Is the header present?
26477 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
26478 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
26479 cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h. */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 #include <sqlite.h>
26486 _ACEOF
26487 if { (ac_try="$ac_cpp conftest.$ac_ext"
26488 case "(($ac_try" in
26489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490 *) ac_try_echo=$ac_try;;
26491 esac
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26494 ac_status=$?
26495 grep -v '^ *+' conftest.er1 >conftest.err
26496 rm -f conftest.er1
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } >/dev/null; then
26500 if test -s conftest.err; then
26501 ac_cpp_err=$ac_c_preproc_warn_flag
26502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26503 else
26504 ac_cpp_err=
26506 else
26507 ac_cpp_err=yes
26509 if test -z "$ac_cpp_err"; then
26510 ac_header_preproc=yes
26511 else
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ac_header_preproc=no
26518 rm -f conftest.err conftest.$ac_ext
26519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26520 echo "${ECHO_T}$ac_header_preproc" >&6; }
26522 # So? What about this header?
26523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26524 yes:no: )
26525 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
26526 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
26528 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
26529 ac_header_preproc=yes
26531 no:yes:* )
26532 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
26533 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
26534 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
26535 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
26537 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
26538 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
26539 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
26540 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
26541 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
26542 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
26543 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
26546 esac
26547 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
26548 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
26549 if test "${ac_cv_header_sqlite_h+set}" = set; then
26550 echo $ECHO_N "(cached) $ECHO_C" >&6
26551 else
26552 ac_cv_header_sqlite_h=$ac_header_preproc
26554 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
26555 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
26558 if test $ac_cv_header_sqlite_h = yes; then
26559 SQLITE_HEADER_FOUND=1
26560 else
26561 SQLITE_HEADER_FOUND=0
26567 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
26568 if test ! -z "${SQLITE_MANDATORY}" ;
26569 then
26570 { echo "$as_me:$LINENO: ***" >&5
26571 echo "$as_me: ***" >&6;}
26572 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
26573 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
26574 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support" >&5
26575 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support" >&or re-run configure;}
26576 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26577 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26578 exit 1
26580 SQLITE_LIB=""
26581 SQLITE_INCLUDE=""
26582 PBX_SQLITE=0
26583 else
26584 PBX_SQLITE=1
26586 cat >>confdefs.h <<_ACEOF
26587 #define HAVE_SQLITE 1
26588 _ACEOF
26591 elif test ! -z "${SQLITE_MANDATORY}";
26592 then
26593 { echo "$as_me:$LINENO: ***" >&5
26594 echo "$as_me: ***" >&6;}
26595 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
26596 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
26597 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
26598 echo "$as_me: *** Either correct the installation" >&or run configure;}
26599 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
26600 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
26601 exit 1
26607 if test "${USE_OPENSSL}" != "no"; then
26608 pbxlibdir=""
26609 if test "x${OPENSSL_DIR}" != "x"; then
26610 if test -d ${OPENSSL_DIR}/lib; then
26611 pbxlibdir="-L${OPENSSL_DIR}/lib"
26612 else
26613 pbxlibdir="-L${OPENSSL_DIR}"
26616 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
26617 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
26618 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620 else
26621 ac_check_lib_save_LIBS=$LIBS
26622 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
26623 cat >conftest.$ac_ext <<_ACEOF
26624 /* confdefs.h. */
26625 _ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h. */
26630 /* Override any GCC internal prototype to avoid an error.
26631 Use char because int might match the return type of a GCC
26632 builtin and then its argument prototype would still apply. */
26633 #ifdef __cplusplus
26634 extern "C"
26635 #endif
26636 char ssl2_connect ();
26638 main ()
26640 return ssl2_connect ();
26642 return 0;
26644 _ACEOF
26645 rm -f conftest.$ac_objext conftest$ac_exeext
26646 if { (ac_try="$ac_link"
26647 case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26650 esac
26651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652 (eval "$ac_link") 2>conftest.er1
26653 ac_status=$?
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26660 { (case "(($ac_try" in
26661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26662 *) ac_try_echo=$ac_try;;
26663 esac
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665 (eval "$ac_try") 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try='test -s conftest$ac_exeext'
26670 { (case "(($ac_try" in
26671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672 *) ac_try_echo=$ac_try;;
26673 esac
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675 (eval "$ac_try") 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_cv_lib_ssl_ssl2_connect=yes
26680 else
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26684 ac_cv_lib_ssl_ssl2_connect=no
26687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26688 conftest$ac_exeext conftest.$ac_ext
26689 LIBS=$ac_check_lib_save_LIBS
26691 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26692 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26693 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26694 AST_OPENSSL_FOUND=yes
26695 else
26696 AST_OPENSSL_FOUND=no
26700 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26701 OPENSSL_LIB="-lssl -lcrypto"
26702 OPENSSL_HEADER_FOUND="1"
26703 if test "x${OPENSSL_DIR}" != "x"; then
26704 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
26705 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
26706 if test "xopenssl/ssl.h" != "x" ; then
26707 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
26708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26709 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26710 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26712 echo $ECHO_N "(cached) $ECHO_C" >&6
26714 ac_res=`eval echo '${'$as_ac_Header'}'`
26715 { echo "$as_me:$LINENO: result: $ac_res" >&5
26716 echo "${ECHO_T}$ac_res" >&6; }
26717 else
26718 # Is the header compilable?
26719 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26720 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26721 cat >conftest.$ac_ext <<_ACEOF
26722 /* confdefs.h. */
26723 _ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h. */
26727 $ac_includes_default
26728 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26729 _ACEOF
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734 *) ac_try_echo=$ac_try;;
26735 esac
26736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26737 (eval "$ac_compile") 2>conftest.er1
26738 ac_status=$?
26739 grep -v '^ *+' conftest.er1 >conftest.err
26740 rm -f conftest.er1
26741 cat conftest.err >&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
26744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26745 { (case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_try") 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest.$ac_objext'
26755 { (case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26758 esac
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760 (eval "$ac_try") 2>&5
26761 ac_status=$?
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_header_compiler=yes
26765 else
26766 echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26769 ac_header_compiler=no
26772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26774 echo "${ECHO_T}$ac_header_compiler" >&6; }
26776 # Is the header present?
26777 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
26778 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
26779 cat >conftest.$ac_ext <<_ACEOF
26780 /* confdefs.h. */
26781 _ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h. */
26785 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26786 _ACEOF
26787 if { (ac_try="$ac_cpp conftest.$ac_ext"
26788 case "(($ac_try" in
26789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790 *) ac_try_echo=$ac_try;;
26791 esac
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26794 ac_status=$?
26795 grep -v '^ *+' conftest.er1 >conftest.err
26796 rm -f conftest.er1
26797 cat conftest.err >&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } >/dev/null; then
26800 if test -s conftest.err; then
26801 ac_cpp_err=$ac_c_preproc_warn_flag
26802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26803 else
26804 ac_cpp_err=
26806 else
26807 ac_cpp_err=yes
26809 if test -z "$ac_cpp_err"; then
26810 ac_header_preproc=yes
26811 else
26812 echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26815 ac_header_preproc=no
26818 rm -f conftest.err conftest.$ac_ext
26819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26820 echo "${ECHO_T}$ac_header_preproc" >&6; }
26822 # So? What about this header?
26823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26824 yes:no: )
26825 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26826 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
26828 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
26829 ac_header_preproc=yes
26831 no:yes:* )
26832 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
26833 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
26834 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
26835 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26836 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
26837 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
26838 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26839 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26840 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
26841 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26842 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
26843 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26846 esac
26847 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26848 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26850 echo $ECHO_N "(cached) $ECHO_C" >&6
26851 else
26852 eval "$as_ac_Header=\$ac_header_preproc"
26854 ac_res=`eval echo '${'$as_ac_Header'}'`
26855 { echo "$as_me:$LINENO: result: $ac_res" >&5
26856 echo "${ECHO_T}$ac_res" >&6; }
26859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26860 OPENSSL_HEADER_FOUND=1
26861 else
26862 OPENSSL_HEADER_FOUND=0
26867 else
26868 if test "xopenssl/ssl.h" != "x" ; then
26869 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26870 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26871 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26872 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26876 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26877 else
26878 # Is the header compilable?
26879 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
26880 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h. */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26887 $ac_includes_default
26888 #include <openssl/ssl.h>
26889 _ACEOF
26890 rm -f conftest.$ac_objext
26891 if { (ac_try="$ac_compile"
26892 case "(($ac_try" in
26893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26894 *) ac_try_echo=$ac_try;;
26895 esac
26896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26897 (eval "$ac_compile") 2>conftest.er1
26898 ac_status=$?
26899 grep -v '^ *+' conftest.er1 >conftest.err
26900 rm -f conftest.er1
26901 cat conftest.err >&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } &&
26904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26905 { (case "(($ac_try" in
26906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26907 *) ac_try_echo=$ac_try;;
26908 esac
26909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26910 (eval "$ac_try") 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; } &&
26914 { ac_try='test -s conftest.$ac_objext'
26915 { (case "(($ac_try" in
26916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917 *) ac_try_echo=$ac_try;;
26918 esac
26919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26920 (eval "$ac_try") 2>&5
26921 ac_status=$?
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; }; then
26924 ac_header_compiler=yes
26925 else
26926 echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26929 ac_header_compiler=no
26932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26934 echo "${ECHO_T}$ac_header_compiler" >&6; }
26936 # Is the header present?
26937 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
26938 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
26939 cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h. */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26945 #include <openssl/ssl.h>
26946 _ACEOF
26947 if { (ac_try="$ac_cpp conftest.$ac_ext"
26948 case "(($ac_try" in
26949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26950 *) ac_try_echo=$ac_try;;
26951 esac
26952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26954 ac_status=$?
26955 grep -v '^ *+' conftest.er1 >conftest.err
26956 rm -f conftest.er1
26957 cat conftest.err >&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } >/dev/null; then
26960 if test -s conftest.err; then
26961 ac_cpp_err=$ac_c_preproc_warn_flag
26962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26963 else
26964 ac_cpp_err=
26966 else
26967 ac_cpp_err=yes
26969 if test -z "$ac_cpp_err"; then
26970 ac_header_preproc=yes
26971 else
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 ac_header_preproc=no
26978 rm -f conftest.err conftest.$ac_ext
26979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26980 echo "${ECHO_T}$ac_header_preproc" >&6; }
26982 # So? What about this header?
26983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26984 yes:no: )
26985 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26986 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
26988 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
26989 ac_header_preproc=yes
26991 no:yes:* )
26992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
26993 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
26995 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
26997 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
26998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26999 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
27001 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
27002 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
27003 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
27006 esac
27007 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
27008 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
27009 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
27010 echo $ECHO_N "(cached) $ECHO_C" >&6
27011 else
27012 ac_cv_header_openssl_ssl_h=$ac_header_preproc
27014 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
27015 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
27018 if test $ac_cv_header_openssl_ssl_h = yes; then
27019 OPENSSL_HEADER_FOUND=1
27020 else
27021 OPENSSL_HEADER_FOUND=0
27027 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
27028 if test ! -z "${OPENSSL_MANDATORY}" ;
27029 then
27030 { echo "$as_me:$LINENO: ***" >&5
27031 echo "$as_me: ***" >&6;}
27032 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
27033 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
27034 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support" >&5
27035 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support" >&or re-run configure;}
27036 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27037 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27038 exit 1
27040 OPENSSL_LIB=""
27041 OPENSSL_INCLUDE=""
27042 PBX_OPENSSL=0
27043 else
27044 PBX_OPENSSL=1
27046 cat >>confdefs.h <<_ACEOF
27047 #define HAVE_OPENSSL 1
27048 _ACEOF
27051 elif test ! -z "${OPENSSL_MANDATORY}";
27052 then
27053 { echo "$as_me:$LINENO: ***" >&5
27054 echo "$as_me: ***" >&6;}
27055 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
27056 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
27057 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27058 echo "$as_me: *** Either correct the installation" >&or run configure;}
27059 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
27060 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
27061 exit 1
27067 if test "${USE_FREETDS}" != "no"; then
27068 pbxlibdir=""
27069 if test "x${FREETDS_DIR}" != "x"; then
27070 if test -d ${FREETDS_DIR}/lib; then
27071 pbxlibdir="-L${FREETDS_DIR}/lib"
27072 else
27073 pbxlibdir="-L${FREETDS_DIR}"
27076 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
27077 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
27078 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081 ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-ltds ${pbxlibdir} $LIBS"
27083 cat >conftest.$ac_ext <<_ACEOF
27084 /* confdefs.h. */
27085 _ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h. */
27090 /* Override any GCC internal prototype to avoid an error.
27091 Use char because int might match the return type of a GCC
27092 builtin and then its argument prototype would still apply. */
27093 #ifdef __cplusplus
27094 extern "C"
27095 #endif
27096 char tds_version ();
27098 main ()
27100 return tds_version ();
27102 return 0;
27104 _ACEOF
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (ac_try="$ac_link"
27107 case "(($ac_try" in
27108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109 *) ac_try_echo=$ac_try;;
27110 esac
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112 (eval "$ac_link") 2>conftest.er1
27113 ac_status=$?
27114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
27119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27120 { (case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_try") 2>&5
27126 ac_status=$?
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest$ac_exeext'
27130 { (case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27133 esac
27134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135 (eval "$ac_try") 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; }; then
27139 ac_cv_lib_tds_tds_version=yes
27140 else
27141 echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27144 ac_cv_lib_tds_tds_version=no
27147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27148 conftest$ac_exeext conftest.$ac_ext
27149 LIBS=$ac_check_lib_save_LIBS
27151 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
27152 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
27153 if test $ac_cv_lib_tds_tds_version = yes; then
27154 AST_FREETDS_FOUND=yes
27155 else
27156 AST_FREETDS_FOUND=no
27160 if test "${AST_FREETDS_FOUND}" = "yes"; then
27161 FREETDS_LIB="-ltds "
27162 FREETDS_HEADER_FOUND="1"
27163 if test "x${FREETDS_DIR}" != "x"; then
27164 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
27165 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
27166 if test "xtds.h" != "x" ; then
27167 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
27168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27169 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27170 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27174 ac_res=`eval echo '${'$as_ac_Header'}'`
27175 { echo "$as_me:$LINENO: result: $ac_res" >&5
27176 echo "${ECHO_T}$ac_res" >&6; }
27177 else
27178 # Is the header compilable?
27179 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
27180 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
27181 cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h. */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27187 $ac_includes_default
27188 #include <${FREETDS_DIR}/include/tds.h>
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (ac_try="$ac_compile"
27192 case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_compile") 2>conftest.er1
27198 ac_status=$?
27199 grep -v '^ *+' conftest.er1 >conftest.err
27200 rm -f conftest.er1
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } &&
27204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27205 { (case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_try") 2>&5
27211 ac_status=$?
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest.$ac_objext'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218 esac
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27221 ac_status=$?
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; }; then
27224 ac_header_compiler=yes
27225 else
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27229 ac_header_compiler=no
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27234 echo "${ECHO_T}$ac_header_compiler" >&6; }
27236 # Is the header present?
27237 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
27238 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
27239 cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h. */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 #include <${FREETDS_DIR}/include/tds.h>
27246 _ACEOF
27247 if { (ac_try="$ac_cpp conftest.$ac_ext"
27248 case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27251 esac
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27254 ac_status=$?
27255 grep -v '^ *+' conftest.er1 >conftest.err
27256 rm -f conftest.er1
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } >/dev/null; then
27260 if test -s conftest.err; then
27261 ac_cpp_err=$ac_c_preproc_warn_flag
27262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27263 else
27264 ac_cpp_err=
27266 else
27267 ac_cpp_err=yes
27269 if test -z "$ac_cpp_err"; then
27270 ac_header_preproc=yes
27271 else
27272 echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27275 ac_header_preproc=no
27278 rm -f conftest.err conftest.$ac_ext
27279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27280 echo "${ECHO_T}$ac_header_preproc" >&6; }
27282 # So? What about this header?
27283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27284 yes:no: )
27285 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27286 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27287 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
27288 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
27289 ac_header_preproc=yes
27291 no:yes:* )
27292 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
27293 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
27294 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
27295 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
27297 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
27298 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
27299 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27300 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
27301 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
27302 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
27303 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
27306 esac
27307 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
27308 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
27309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27310 echo $ECHO_N "(cached) $ECHO_C" >&6
27311 else
27312 eval "$as_ac_Header=\$ac_header_preproc"
27314 ac_res=`eval echo '${'$as_ac_Header'}'`
27315 { echo "$as_me:$LINENO: result: $ac_res" >&5
27316 echo "${ECHO_T}$ac_res" >&6; }
27319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27320 FREETDS_HEADER_FOUND=1
27321 else
27322 FREETDS_HEADER_FOUND=0
27327 else
27328 if test "xtds.h" != "x" ; then
27329 if test "${ac_cv_header_tds_h+set}" = set; then
27330 { echo "$as_me:$LINENO: checking for tds.h" >&5
27331 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27332 if test "${ac_cv_header_tds_h+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27336 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27337 else
27338 # Is the header compilable?
27339 { echo "$as_me:$LINENO: checking tds.h usability" >&5
27340 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
27341 cat >conftest.$ac_ext <<_ACEOF
27342 /* confdefs.h. */
27343 _ACEOF
27344 cat confdefs.h >>conftest.$ac_ext
27345 cat >>conftest.$ac_ext <<_ACEOF
27346 /* end confdefs.h. */
27347 $ac_includes_default
27348 #include <tds.h>
27349 _ACEOF
27350 rm -f conftest.$ac_objext
27351 if { (ac_try="$ac_compile"
27352 case "(($ac_try" in
27353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354 *) ac_try_echo=$ac_try;;
27355 esac
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_compile") 2>conftest.er1
27358 ac_status=$?
27359 grep -v '^ *+' conftest.er1 >conftest.err
27360 rm -f conftest.er1
27361 cat conftest.err >&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); } &&
27364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27365 { (case "(($ac_try" in
27366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367 *) ac_try_echo=$ac_try;;
27368 esac
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370 (eval "$ac_try") 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest.$ac_objext'
27375 { (case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_try") 2>&5
27381 ac_status=$?
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; }; then
27384 ac_header_compiler=yes
27385 else
27386 echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 ac_header_compiler=no
27392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27394 echo "${ECHO_T}$ac_header_compiler" >&6; }
27396 # Is the header present?
27397 { echo "$as_me:$LINENO: checking tds.h presence" >&5
27398 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
27399 cat >conftest.$ac_ext <<_ACEOF
27400 /* confdefs.h. */
27401 _ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27405 #include <tds.h>
27406 _ACEOF
27407 if { (ac_try="$ac_cpp conftest.$ac_ext"
27408 case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411 esac
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27414 ac_status=$?
27415 grep -v '^ *+' conftest.er1 >conftest.err
27416 rm -f conftest.er1
27417 cat conftest.err >&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); } >/dev/null; then
27420 if test -s conftest.err; then
27421 ac_cpp_err=$ac_c_preproc_warn_flag
27422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27423 else
27424 ac_cpp_err=
27426 else
27427 ac_cpp_err=yes
27429 if test -z "$ac_cpp_err"; then
27430 ac_header_preproc=yes
27431 else
27432 echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27435 ac_header_preproc=no
27438 rm -f conftest.err conftest.$ac_ext
27439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27440 echo "${ECHO_T}$ac_header_preproc" >&6; }
27442 # So? What about this header?
27443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27444 yes:no: )
27445 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
27446 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27447 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
27448 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
27449 ac_header_preproc=yes
27451 no:yes:* )
27452 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
27453 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
27455 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
27457 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
27459 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
27460 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
27461 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
27462 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
27463 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
27466 esac
27467 { echo "$as_me:$LINENO: checking for tds.h" >&5
27468 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
27469 if test "${ac_cv_header_tds_h+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472 ac_cv_header_tds_h=$ac_header_preproc
27474 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
27475 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
27478 if test $ac_cv_header_tds_h = yes; then
27479 FREETDS_HEADER_FOUND=1
27480 else
27481 FREETDS_HEADER_FOUND=0
27487 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
27488 if test ! -z "${FREETDS_MANDATORY}" ;
27489 then
27490 { echo "$as_me:$LINENO: ***" >&5
27491 echo "$as_me: ***" >&6;}
27492 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
27493 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
27494 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support" >&5
27495 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support" >&or re-run configure;}
27496 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27497 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27498 exit 1
27500 FREETDS_LIB=""
27501 FREETDS_INCLUDE=""
27502 PBX_FREETDS=0
27503 else
27504 PBX_FREETDS=1
27506 cat >>confdefs.h <<_ACEOF
27507 #define HAVE_FREETDS 1
27508 _ACEOF
27511 elif test ! -z "${FREETDS_MANDATORY}";
27512 then
27513 { echo "$as_me:$LINENO: ***" >&5
27514 echo "$as_me: ***" >&6;}
27515 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
27516 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
27517 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27518 echo "$as_me: *** Either correct the installation" >&or run configure;}
27519 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
27520 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
27521 exit 1
27525 if test "${PBX_FREETDS}" != "0";
27526 then
27527 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
27528 *0.64*)
27529 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
27531 *0.63*)
27532 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
27534 *0.62*)
27535 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
27538 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
27540 esac
27544 if test "${USE_TERMCAP}" != "no"; then
27545 pbxlibdir=""
27546 if test "x${TERMCAP_DIR}" != "x"; then
27547 if test -d ${TERMCAP_DIR}/lib; then
27548 pbxlibdir="-L${TERMCAP_DIR}/lib"
27549 else
27550 pbxlibdir="-L${TERMCAP_DIR}"
27553 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
27554 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
27555 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27557 else
27558 ac_check_lib_save_LIBS=$LIBS
27559 LIBS="-ltermcap ${pbxlibdir} $LIBS"
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h. */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27567 /* Override any GCC internal prototype to avoid an error.
27568 Use char because int might match the return type of a GCC
27569 builtin and then its argument prototype would still apply. */
27570 #ifdef __cplusplus
27571 extern "C"
27572 #endif
27573 char tgetent ();
27575 main ()
27577 return tgetent ();
27579 return 0;
27581 _ACEOF
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_link") 2>conftest.er1
27590 ac_status=$?
27591 grep -v '^ *+' conftest.er1 >conftest.err
27592 rm -f conftest.er1
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } &&
27596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27597 { (case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_try") 2>&5
27603 ac_status=$?
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; } &&
27606 { ac_try='test -s conftest$ac_exeext'
27607 { (case "(($ac_try" in
27608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609 *) ac_try_echo=$ac_try;;
27610 esac
27611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612 (eval "$ac_try") 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 ac_cv_lib_termcap_tgetent=yes
27617 else
27618 echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27621 ac_cv_lib_termcap_tgetent=no
27624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27625 conftest$ac_exeext conftest.$ac_ext
27626 LIBS=$ac_check_lib_save_LIBS
27628 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
27629 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
27630 if test $ac_cv_lib_termcap_tgetent = yes; then
27631 AST_TERMCAP_FOUND=yes
27632 else
27633 AST_TERMCAP_FOUND=no
27637 if test "${AST_TERMCAP_FOUND}" = "yes"; then
27638 TERMCAP_LIB="-ltermcap "
27639 TERMCAP_HEADER_FOUND="1"
27640 if test "x${TERMCAP_DIR}" != "x"; then
27641 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
27642 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
27643 if test "x" != "x" ; then
27644 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
27645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27646 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27647 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27651 ac_res=`eval echo '${'$as_ac_Header'}'`
27652 { echo "$as_me:$LINENO: result: $ac_res" >&5
27653 echo "${ECHO_T}$ac_res" >&6; }
27654 else
27655 # Is the header compilable?
27656 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
27657 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
27658 cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h. */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27664 $ac_includes_default
27665 #include <${TERMCAP_DIR}/include/>
27666 _ACEOF
27667 rm -f conftest.$ac_objext
27668 if { (ac_try="$ac_compile"
27669 case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_compile") 2>conftest.er1
27675 ac_status=$?
27676 grep -v '^ *+' conftest.er1 >conftest.err
27677 rm -f conftest.er1
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest.$ac_objext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695 esac
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 ac_header_compiler=yes
27702 else
27703 echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27706 ac_header_compiler=no
27709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27711 echo "${ECHO_T}$ac_header_compiler" >&6; }
27713 # Is the header present?
27714 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
27715 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
27716 cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h. */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27722 #include <${TERMCAP_DIR}/include/>
27723 _ACEOF
27724 if { (ac_try="$ac_cpp conftest.$ac_ext"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27728 esac
27729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27731 ac_status=$?
27732 grep -v '^ *+' conftest.er1 >conftest.err
27733 rm -f conftest.er1
27734 cat conftest.err >&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); } >/dev/null; then
27737 if test -s conftest.err; then
27738 ac_cpp_err=$ac_c_preproc_warn_flag
27739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27740 else
27741 ac_cpp_err=
27743 else
27744 ac_cpp_err=yes
27746 if test -z "$ac_cpp_err"; then
27747 ac_header_preproc=yes
27748 else
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_header_preproc=no
27755 rm -f conftest.err conftest.$ac_ext
27756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27757 echo "${ECHO_T}$ac_header_preproc" >&6; }
27759 # So? What about this header?
27760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27761 yes:no: )
27762 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27763 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27764 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
27765 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
27766 ac_header_preproc=yes
27768 no:yes:* )
27769 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
27770 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
27771 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
27772 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
27773 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
27774 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
27775 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27776 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27777 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
27778 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27779 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
27780 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27783 esac
27784 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
27785 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
27786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27787 echo $ECHO_N "(cached) $ECHO_C" >&6
27788 else
27789 eval "$as_ac_Header=\$ac_header_preproc"
27791 ac_res=`eval echo '${'$as_ac_Header'}'`
27792 { echo "$as_me:$LINENO: result: $ac_res" >&5
27793 echo "${ECHO_T}$ac_res" >&6; }
27796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27797 TERMCAP_HEADER_FOUND=1
27798 else
27799 TERMCAP_HEADER_FOUND=0
27804 else
27805 if test "x" != "x" ; then
27806 if test "${ac_cv_header_+set}" = set; then
27807 { echo "$as_me:$LINENO: checking for " >&5
27808 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27809 if test "${ac_cv_header_+set}" = set; then
27810 echo $ECHO_N "(cached) $ECHO_C" >&6
27812 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27813 echo "${ECHO_T}$ac_cv_header_" >&6; }
27814 else
27815 # Is the header compilable?
27816 { echo "$as_me:$LINENO: checking usability" >&5
27817 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27818 cat >conftest.$ac_ext <<_ACEOF
27819 /* confdefs.h. */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h. */
27824 $ac_includes_default
27825 #include <>
27826 _ACEOF
27827 rm -f conftest.$ac_objext
27828 if { (ac_try="$ac_compile"
27829 case "(($ac_try" in
27830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831 *) ac_try_echo=$ac_try;;
27832 esac
27833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834 (eval "$ac_compile") 2>conftest.er1
27835 ac_status=$?
27836 grep -v '^ *+' conftest.er1 >conftest.err
27837 rm -f conftest.er1
27838 cat conftest.err >&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); } &&
27841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27842 { (case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27845 esac
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847 (eval "$ac_try") 2>&5
27848 ac_status=$?
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); }; } &&
27851 { ac_try='test -s conftest.$ac_objext'
27852 { (case "(($ac_try" in
27853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854 *) ac_try_echo=$ac_try;;
27855 esac
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857 (eval "$ac_try") 2>&5
27858 ac_status=$?
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); }; }; then
27861 ac_header_compiler=yes
27862 else
27863 echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27866 ac_header_compiler=no
27869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27871 echo "${ECHO_T}$ac_header_compiler" >&6; }
27873 # Is the header present?
27874 { echo "$as_me:$LINENO: checking presence" >&5
27875 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27876 cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h. */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27882 #include <>
27883 _ACEOF
27884 if { (ac_try="$ac_cpp conftest.$ac_ext"
27885 case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27888 esac
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27891 ac_status=$?
27892 grep -v '^ *+' conftest.er1 >conftest.err
27893 rm -f conftest.er1
27894 cat conftest.err >&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } >/dev/null; then
27897 if test -s conftest.err; then
27898 ac_cpp_err=$ac_c_preproc_warn_flag
27899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27900 else
27901 ac_cpp_err=
27903 else
27904 ac_cpp_err=yes
27906 if test -z "$ac_cpp_err"; then
27907 ac_header_preproc=yes
27908 else
27909 echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27912 ac_header_preproc=no
27915 rm -f conftest.err conftest.$ac_ext
27916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27917 echo "${ECHO_T}$ac_header_preproc" >&6; }
27919 # So? What about this header?
27920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27921 yes:no: )
27922 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27923 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27924 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27925 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27926 ac_header_preproc=yes
27928 no:yes:* )
27929 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27930 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27931 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27932 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27933 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27934 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27935 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27936 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27937 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27938 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27939 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27940 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27943 esac
27944 { echo "$as_me:$LINENO: checking for " >&5
27945 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27946 if test "${ac_cv_header_+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948 else
27949 ac_cv_header_=$ac_header_preproc
27951 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27952 echo "${ECHO_T}$ac_cv_header_" >&6; }
27955 if test $ac_cv_header_ = yes; then
27956 TERMCAP_HEADER_FOUND=1
27957 else
27958 TERMCAP_HEADER_FOUND=0
27964 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
27965 if test ! -z "${TERMCAP_MANDATORY}" ;
27966 then
27967 { echo "$as_me:$LINENO: ***" >&5
27968 echo "$as_me: ***" >&6;}
27969 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
27970 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
27971 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support" >&5
27972 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support" >&or re-run configure;}
27973 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27974 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27975 exit 1
27977 TERMCAP_LIB=""
27978 TERMCAP_INCLUDE=""
27979 PBX_TERMCAP=0
27980 else
27981 PBX_TERMCAP=1
27983 cat >>confdefs.h <<_ACEOF
27984 #define HAVE_TERMCAP 1
27985 _ACEOF
27988 elif test ! -z "${TERMCAP_MANDATORY}";
27989 then
27990 { echo "$as_me:$LINENO: ***" >&5
27991 echo "$as_me: ***" >&6;}
27992 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
27993 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
27994 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
27995 echo "$as_me: *** Either correct the installation" >&or run configure;}
27996 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27997 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27998 exit 1
28004 if test "${USE_TINFO}" != "no"; then
28005 pbxlibdir=""
28006 if test "x${TINFO_DIR}" != "x"; then
28007 if test -d ${TINFO_DIR}/lib; then
28008 pbxlibdir="-L${TINFO_DIR}/lib"
28009 else
28010 pbxlibdir="-L${TINFO_DIR}"
28013 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
28014 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
28015 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
28016 echo $ECHO_N "(cached) $ECHO_C" >&6
28017 else
28018 ac_check_lib_save_LIBS=$LIBS
28019 LIBS="-ltinfo ${pbxlibdir} $LIBS"
28020 cat >conftest.$ac_ext <<_ACEOF
28021 /* confdefs.h. */
28022 _ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h. */
28027 /* Override any GCC internal prototype to avoid an error.
28028 Use char because int might match the return type of a GCC
28029 builtin and then its argument prototype would still apply. */
28030 #ifdef __cplusplus
28031 extern "C"
28032 #endif
28033 char tgetent ();
28035 main ()
28037 return tgetent ();
28039 return 0;
28041 _ACEOF
28042 rm -f conftest.$ac_objext conftest$ac_exeext
28043 if { (ac_try="$ac_link"
28044 case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_link") 2>conftest.er1
28050 ac_status=$?
28051 grep -v '^ *+' conftest.er1 >conftest.err
28052 rm -f conftest.er1
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
28056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28057 { (case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28060 esac
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_try") 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; } &&
28066 { ac_try='test -s conftest$ac_exeext'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; }; then
28076 ac_cv_lib_tinfo_tgetent=yes
28077 else
28078 echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28081 ac_cv_lib_tinfo_tgetent=no
28084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28085 conftest$ac_exeext conftest.$ac_ext
28086 LIBS=$ac_check_lib_save_LIBS
28088 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
28089 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
28090 if test $ac_cv_lib_tinfo_tgetent = yes; then
28091 AST_TINFO_FOUND=yes
28092 else
28093 AST_TINFO_FOUND=no
28097 if test "${AST_TINFO_FOUND}" = "yes"; then
28098 TINFO_LIB="-ltinfo "
28099 TINFO_HEADER_FOUND="1"
28100 if test "x${TINFO_DIR}" != "x"; then
28101 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
28102 TINFO_INCLUDE="-I${TINFO_DIR}/include"
28103 if test "x" != "x" ; then
28104 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
28105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28106 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28107 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
28111 ac_res=`eval echo '${'$as_ac_Header'}'`
28112 { echo "$as_me:$LINENO: result: $ac_res" >&5
28113 echo "${ECHO_T}$ac_res" >&6; }
28114 else
28115 # Is the header compilable?
28116 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
28117 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
28118 cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h. */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28124 $ac_includes_default
28125 #include <${TINFO_DIR}/include/>
28126 _ACEOF
28127 rm -f conftest.$ac_objext
28128 if { (ac_try="$ac_compile"
28129 case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28132 esac
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_compile") 2>conftest.er1
28135 ac_status=$?
28136 grep -v '^ *+' conftest.er1 >conftest.err
28137 rm -f conftest.er1
28138 cat conftest.err >&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); } &&
28141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28142 { (case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28145 esac
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_try") 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; } &&
28151 { ac_try='test -s conftest.$ac_objext'
28152 { (case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28155 esac
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157 (eval "$ac_try") 2>&5
28158 ac_status=$?
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; }; then
28161 ac_header_compiler=yes
28162 else
28163 echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28166 ac_header_compiler=no
28169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28171 echo "${ECHO_T}$ac_header_compiler" >&6; }
28173 # Is the header present?
28174 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
28175 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
28176 cat >conftest.$ac_ext <<_ACEOF
28177 /* confdefs.h. */
28178 _ACEOF
28179 cat confdefs.h >>conftest.$ac_ext
28180 cat >>conftest.$ac_ext <<_ACEOF
28181 /* end confdefs.h. */
28182 #include <${TINFO_DIR}/include/>
28183 _ACEOF
28184 if { (ac_try="$ac_cpp conftest.$ac_ext"
28185 case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28188 esac
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28191 ac_status=$?
28192 grep -v '^ *+' conftest.er1 >conftest.err
28193 rm -f conftest.er1
28194 cat conftest.err >&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } >/dev/null; then
28197 if test -s conftest.err; then
28198 ac_cpp_err=$ac_c_preproc_warn_flag
28199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28200 else
28201 ac_cpp_err=
28203 else
28204 ac_cpp_err=yes
28206 if test -z "$ac_cpp_err"; then
28207 ac_header_preproc=yes
28208 else
28209 echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28212 ac_header_preproc=no
28215 rm -f conftest.err conftest.$ac_ext
28216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28217 echo "${ECHO_T}$ac_header_preproc" >&6; }
28219 # So? What about this header?
28220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28221 yes:no: )
28222 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
28223 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
28224 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
28225 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
28226 ac_header_preproc=yes
28228 no:yes:* )
28229 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
28230 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
28231 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
28232 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
28233 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
28234 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
28235 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
28236 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
28237 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
28238 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
28239 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
28240 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
28243 esac
28244 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
28245 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
28246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 else
28249 eval "$as_ac_Header=\$ac_header_preproc"
28251 ac_res=`eval echo '${'$as_ac_Header'}'`
28252 { echo "$as_me:$LINENO: result: $ac_res" >&5
28253 echo "${ECHO_T}$ac_res" >&6; }
28256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28257 TINFO_HEADER_FOUND=1
28258 else
28259 TINFO_HEADER_FOUND=0
28264 else
28265 if test "x" != "x" ; then
28266 if test "${ac_cv_header_+set}" = set; then
28267 { echo "$as_me:$LINENO: checking for " >&5
28268 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28269 if test "${ac_cv_header_+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28272 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28273 echo "${ECHO_T}$ac_cv_header_" >&6; }
28274 else
28275 # Is the header compilable?
28276 { echo "$as_me:$LINENO: checking usability" >&5
28277 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28278 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h. */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 $ac_includes_default
28285 #include <>
28286 _ACEOF
28287 rm -f conftest.$ac_objext
28288 if { (ac_try="$ac_compile"
28289 case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28292 esac
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_compile") 2>conftest.er1
28295 ac_status=$?
28296 grep -v '^ *+' conftest.er1 >conftest.err
28297 rm -f conftest.er1
28298 cat conftest.err >&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } &&
28301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest.$ac_objext'
28312 { (case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28315 esac
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317 (eval "$ac_try") 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; }; then
28321 ac_header_compiler=yes
28322 else
28323 echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28326 ac_header_compiler=no
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28331 echo "${ECHO_T}$ac_header_compiler" >&6; }
28333 # Is the header present?
28334 { echo "$as_me:$LINENO: checking presence" >&5
28335 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28336 cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h. */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 #include <>
28343 _ACEOF
28344 if { (ac_try="$ac_cpp conftest.$ac_ext"
28345 case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28348 esac
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28351 ac_status=$?
28352 grep -v '^ *+' conftest.er1 >conftest.err
28353 rm -f conftest.er1
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } >/dev/null; then
28357 if test -s conftest.err; then
28358 ac_cpp_err=$ac_c_preproc_warn_flag
28359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28360 else
28361 ac_cpp_err=
28363 else
28364 ac_cpp_err=yes
28366 if test -z "$ac_cpp_err"; then
28367 ac_header_preproc=yes
28368 else
28369 echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28372 ac_header_preproc=no
28375 rm -f conftest.err conftest.$ac_ext
28376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28377 echo "${ECHO_T}$ac_header_preproc" >&6; }
28379 # So? What about this header?
28380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28381 yes:no: )
28382 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28383 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28384 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28385 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28386 ac_header_preproc=yes
28388 no:yes:* )
28389 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28390 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28391 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28392 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28393 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28394 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28395 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28396 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28397 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28398 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28399 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28400 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28403 esac
28404 { echo "$as_me:$LINENO: checking for " >&5
28405 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28406 if test "${ac_cv_header_+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28408 else
28409 ac_cv_header_=$ac_header_preproc
28411 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28412 echo "${ECHO_T}$ac_cv_header_" >&6; }
28415 if test $ac_cv_header_ = yes; then
28416 TINFO_HEADER_FOUND=1
28417 else
28418 TINFO_HEADER_FOUND=0
28424 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
28425 if test ! -z "${TINFO_MANDATORY}" ;
28426 then
28427 { echo "$as_me:$LINENO: ***" >&5
28428 echo "$as_me: ***" >&6;}
28429 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
28430 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
28431 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support" >&5
28432 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support" >&or re-run configure;}
28433 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28434 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28435 exit 1
28437 TINFO_LIB=""
28438 TINFO_INCLUDE=""
28439 PBX_TINFO=0
28440 else
28441 PBX_TINFO=1
28443 cat >>confdefs.h <<_ACEOF
28444 #define HAVE_TINFO 1
28445 _ACEOF
28448 elif test ! -z "${TINFO_MANDATORY}";
28449 then
28450 { echo "$as_me:$LINENO: ***" >&5
28451 echo "$as_me: ***" >&6;}
28452 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
28453 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
28454 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28455 echo "$as_me: *** Either correct the installation" >&or run configure;}
28456 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
28457 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
28458 exit 1
28463 if test "${host_os}" != "linux-gnu" ; then
28464 tonezone_extra="-lm"
28468 if test "${USE_TONEZONE}" != "no"; then
28469 pbxlibdir=""
28470 if test "x${TONEZONE_DIR}" != "x"; then
28471 if test -d ${TONEZONE_DIR}/lib; then
28472 pbxlibdir="-L${TONEZONE_DIR}/lib"
28473 else
28474 pbxlibdir="-L${TONEZONE_DIR}"
28477 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
28478 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
28479 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
28480 echo $ECHO_N "(cached) $ECHO_C" >&6
28481 else
28482 ac_check_lib_save_LIBS=$LIBS
28483 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
28484 cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h. */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28491 /* Override any GCC internal prototype to avoid an error.
28492 Use char because int might match the return type of a GCC
28493 builtin and then its argument prototype would still apply. */
28494 #ifdef __cplusplus
28495 extern "C"
28496 #endif
28497 char tone_zone_find ();
28499 main ()
28501 return tone_zone_find ();
28503 return 0;
28505 _ACEOF
28506 rm -f conftest.$ac_objext conftest$ac_exeext
28507 if { (ac_try="$ac_link"
28508 case "(($ac_try" in
28509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28510 *) ac_try_echo=$ac_try;;
28511 esac
28512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28513 (eval "$ac_link") 2>conftest.er1
28514 ac_status=$?
28515 grep -v '^ *+' conftest.er1 >conftest.err
28516 rm -f conftest.er1
28517 cat conftest.err >&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); } &&
28520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28521 { (case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28524 esac
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_try") 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; } &&
28530 { ac_try='test -s conftest$ac_exeext'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 ac_cv_lib_tonezone_tone_zone_find=yes
28541 else
28542 echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28545 ac_cv_lib_tonezone_tone_zone_find=no
28548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28549 conftest$ac_exeext conftest.$ac_ext
28550 LIBS=$ac_check_lib_save_LIBS
28552 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
28553 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
28554 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
28555 AST_TONEZONE_FOUND=yes
28556 else
28557 AST_TONEZONE_FOUND=no
28561 if test "${AST_TONEZONE_FOUND}" = "yes"; then
28562 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
28563 TONEZONE_HEADER_FOUND="1"
28564 if test "x${TONEZONE_DIR}" != "x"; then
28565 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
28566 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
28567 if test "xzaptel/tonezone.h" != "x" ; then
28568 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
28569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28570 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28571 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28575 ac_res=`eval echo '${'$as_ac_Header'}'`
28576 { echo "$as_me:$LINENO: result: $ac_res" >&5
28577 echo "${ECHO_T}$ac_res" >&6; }
28578 else
28579 # Is the header compilable?
28580 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
28581 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
28582 cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h. */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h. */
28588 $ac_includes_default
28589 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28590 _ACEOF
28591 rm -f conftest.$ac_objext
28592 if { (ac_try="$ac_compile"
28593 case "(($ac_try" in
28594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28595 *) ac_try_echo=$ac_try;;
28596 esac
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598 (eval "$ac_compile") 2>conftest.er1
28599 ac_status=$?
28600 grep -v '^ *+' conftest.er1 >conftest.err
28601 rm -f conftest.er1
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28606 { (case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_try") 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest.$ac_objext'
28616 { (case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28619 esac
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_try") 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
28625 ac_header_compiler=yes
28626 else
28627 echo "$as_me: failed program was:" >&5
28628 sed 's/^/| /' conftest.$ac_ext >&5
28630 ac_header_compiler=no
28633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28635 echo "${ECHO_T}$ac_header_compiler" >&6; }
28637 # Is the header present?
28638 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
28639 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
28640 cat >conftest.$ac_ext <<_ACEOF
28641 /* confdefs.h. */
28642 _ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h. */
28646 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
28647 _ACEOF
28648 if { (ac_try="$ac_cpp conftest.$ac_ext"
28649 case "(($ac_try" in
28650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651 *) ac_try_echo=$ac_try;;
28652 esac
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28655 ac_status=$?
28656 grep -v '^ *+' conftest.er1 >conftest.err
28657 rm -f conftest.er1
28658 cat conftest.err >&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); } >/dev/null; then
28661 if test -s conftest.err; then
28662 ac_cpp_err=$ac_c_preproc_warn_flag
28663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28664 else
28665 ac_cpp_err=
28667 else
28668 ac_cpp_err=yes
28670 if test -z "$ac_cpp_err"; then
28671 ac_header_preproc=yes
28672 else
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 ac_header_preproc=no
28679 rm -f conftest.err conftest.$ac_ext
28680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28681 echo "${ECHO_T}$ac_header_preproc" >&6; }
28683 # So? What about this header?
28684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28685 yes:no: )
28686 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
28687 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
28689 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
28690 ac_header_preproc=yes
28692 no:yes:* )
28693 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
28694 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
28695 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
28696 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
28697 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
28698 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
28699 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
28700 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
28701 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
28702 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
28704 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
28707 esac
28708 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
28709 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
28710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 else
28713 eval "$as_ac_Header=\$ac_header_preproc"
28715 ac_res=`eval echo '${'$as_ac_Header'}'`
28716 { echo "$as_me:$LINENO: result: $ac_res" >&5
28717 echo "${ECHO_T}$ac_res" >&6; }
28720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28721 TONEZONE_HEADER_FOUND=1
28722 else
28723 TONEZONE_HEADER_FOUND=0
28728 else
28729 if test "xzaptel/tonezone.h" != "x" ; then
28730 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28731 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
28732 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
28733 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28734 echo $ECHO_N "(cached) $ECHO_C" >&6
28736 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
28737 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
28738 else
28739 # Is the header compilable?
28740 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
28741 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
28742 cat >conftest.$ac_ext <<_ACEOF
28743 /* confdefs.h. */
28744 _ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h. */
28748 $ac_includes_default
28749 #include <zaptel/tonezone.h>
28750 _ACEOF
28751 rm -f conftest.$ac_objext
28752 if { (ac_try="$ac_compile"
28753 case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_compile") 2>conftest.er1
28759 ac_status=$?
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28772 ac_status=$?
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest.$ac_objext'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 ac_header_compiler=yes
28786 else
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 ac_header_compiler=no
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28795 echo "${ECHO_T}$ac_header_compiler" >&6; }
28797 # Is the header present?
28798 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
28799 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
28800 cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h. */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 #include <zaptel/tonezone.h>
28807 _ACEOF
28808 if { (ac_try="$ac_cpp conftest.$ac_ext"
28809 case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28812 esac
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28815 ac_status=$?
28816 grep -v '^ *+' conftest.er1 >conftest.err
28817 rm -f conftest.er1
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } >/dev/null; then
28821 if test -s conftest.err; then
28822 ac_cpp_err=$ac_c_preproc_warn_flag
28823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28824 else
28825 ac_cpp_err=
28827 else
28828 ac_cpp_err=yes
28830 if test -z "$ac_cpp_err"; then
28831 ac_header_preproc=yes
28832 else
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_header_preproc=no
28839 rm -f conftest.err conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28841 echo "${ECHO_T}$ac_header_preproc" >&6; }
28843 # So? What about this header?
28844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845 yes:no: )
28846 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
28847 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
28849 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
28850 ac_header_preproc=yes
28852 no:yes:* )
28853 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
28854 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
28856 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
28858 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
28860 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
28862 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
28864 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
28867 esac
28868 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
28869 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
28870 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28872 else
28873 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
28875 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
28876 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
28879 if test $ac_cv_header_zaptel_tonezone_h = yes; then
28880 TONEZONE_HEADER_FOUND=1
28881 else
28882 TONEZONE_HEADER_FOUND=0
28888 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
28889 if test ! -z "${TONEZONE_MANDATORY}" ;
28890 then
28891 { echo "$as_me:$LINENO: ***" >&5
28892 echo "$as_me: ***" >&6;}
28893 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
28894 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
28895 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support" >&5
28896 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support" >&or re-run configure;}
28897 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28898 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28899 exit 1
28901 TONEZONE_LIB=""
28902 TONEZONE_INCLUDE=""
28903 PBX_TONEZONE=0
28904 else
28905 PBX_TONEZONE=1
28907 cat >>confdefs.h <<_ACEOF
28908 #define HAVE_TONEZONE 1
28909 _ACEOF
28912 elif test ! -z "${TONEZONE_MANDATORY}";
28913 then
28914 { echo "$as_me:$LINENO: ***" >&5
28915 echo "$as_me: ***" >&6;}
28916 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
28917 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
28918 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
28919 echo "$as_me: *** Either correct the installation" >&or run configure;}
28920 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
28921 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
28922 exit 1
28928 if test "${USE_VORBIS}" != "no"; then
28929 pbxlibdir=""
28930 if test "x${VORBIS_DIR}" != "x"; then
28931 if test -d ${VORBIS_DIR}/lib; then
28932 pbxlibdir="-L${VORBIS_DIR}/lib"
28933 else
28934 pbxlibdir="-L${VORBIS_DIR}"
28937 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
28938 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
28939 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28941 else
28942 ac_check_lib_save_LIBS=$LIBS
28943 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
28944 cat >conftest.$ac_ext <<_ACEOF
28945 /* confdefs.h. */
28946 _ACEOF
28947 cat confdefs.h >>conftest.$ac_ext
28948 cat >>conftest.$ac_ext <<_ACEOF
28949 /* end confdefs.h. */
28951 /* Override any GCC internal prototype to avoid an error.
28952 Use char because int might match the return type of a GCC
28953 builtin and then its argument prototype would still apply. */
28954 #ifdef __cplusplus
28955 extern "C"
28956 #endif
28957 char vorbis_info_init ();
28959 main ()
28961 return vorbis_info_init ();
28963 return 0;
28965 _ACEOF
28966 rm -f conftest.$ac_objext conftest$ac_exeext
28967 if { (ac_try="$ac_link"
28968 case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28971 esac
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973 (eval "$ac_link") 2>conftest.er1
28974 ac_status=$?
28975 grep -v '^ *+' conftest.er1 >conftest.err
28976 rm -f conftest.er1
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } &&
28980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28981 { (case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28984 esac
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986 (eval "$ac_try") 2>&5
28987 ac_status=$?
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; } &&
28990 { ac_try='test -s conftest$ac_exeext'
28991 { (case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28994 esac
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_try") 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; }; then
29000 ac_cv_lib_vorbis_vorbis_info_init=yes
29001 else
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29005 ac_cv_lib_vorbis_vorbis_info_init=no
29008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29009 conftest$ac_exeext conftest.$ac_ext
29010 LIBS=$ac_check_lib_save_LIBS
29012 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
29013 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
29014 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
29015 AST_VORBIS_FOUND=yes
29016 else
29017 AST_VORBIS_FOUND=no
29021 if test "${AST_VORBIS_FOUND}" = "yes"; then
29022 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
29023 VORBIS_HEADER_FOUND="1"
29024 if test "x${VORBIS_DIR}" != "x"; then
29025 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
29026 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
29027 if test "xvorbis/codec.h" != "x" ; then
29028 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
29029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29030 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29031 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29033 echo $ECHO_N "(cached) $ECHO_C" >&6
29035 ac_res=`eval echo '${'$as_ac_Header'}'`
29036 { echo "$as_me:$LINENO: result: $ac_res" >&5
29037 echo "${ECHO_T}$ac_res" >&6; }
29038 else
29039 # Is the header compilable?
29040 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
29041 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
29042 cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h. */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h. */
29048 $ac_includes_default
29049 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29050 _ACEOF
29051 rm -f conftest.$ac_objext
29052 if { (ac_try="$ac_compile"
29053 case "(($ac_try" in
29054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29055 *) ac_try_echo=$ac_try;;
29056 esac
29057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29058 (eval "$ac_compile") 2>conftest.er1
29059 ac_status=$?
29060 grep -v '^ *+' conftest.er1 >conftest.err
29061 rm -f conftest.er1
29062 cat conftest.err >&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } &&
29065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29066 { (case "(($ac_try" in
29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29069 esac
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071 (eval "$ac_try") 2>&5
29072 ac_status=$?
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest.$ac_objext'
29076 { (case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29079 esac
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081 (eval "$ac_try") 2>&5
29082 ac_status=$?
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 ac_header_compiler=yes
29086 else
29087 echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29090 ac_header_compiler=no
29093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29095 echo "${ECHO_T}$ac_header_compiler" >&6; }
29097 # Is the header present?
29098 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
29099 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
29100 cat >conftest.$ac_ext <<_ACEOF
29101 /* confdefs.h. */
29102 _ACEOF
29103 cat confdefs.h >>conftest.$ac_ext
29104 cat >>conftest.$ac_ext <<_ACEOF
29105 /* end confdefs.h. */
29106 #include <${VORBIS_DIR}/include/vorbis/codec.h>
29107 _ACEOF
29108 if { (ac_try="$ac_cpp conftest.$ac_ext"
29109 case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112 esac
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } >/dev/null; then
29121 if test -s conftest.err; then
29122 ac_cpp_err=$ac_c_preproc_warn_flag
29123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29124 else
29125 ac_cpp_err=
29127 else
29128 ac_cpp_err=yes
29130 if test -z "$ac_cpp_err"; then
29131 ac_header_preproc=yes
29132 else
29133 echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29136 ac_header_preproc=no
29139 rm -f conftest.err conftest.$ac_ext
29140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29141 echo "${ECHO_T}$ac_header_preproc" >&6; }
29143 # So? What about this header?
29144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29145 yes:no: )
29146 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29147 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29148 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
29149 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
29150 ac_header_preproc=yes
29152 no:yes:* )
29153 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
29154 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
29156 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
29158 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29160 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29161 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
29162 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29163 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
29164 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29167 esac
29168 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
29169 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
29170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172 else
29173 eval "$as_ac_Header=\$ac_header_preproc"
29175 ac_res=`eval echo '${'$as_ac_Header'}'`
29176 { echo "$as_me:$LINENO: result: $ac_res" >&5
29177 echo "${ECHO_T}$ac_res" >&6; }
29180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29181 VORBIS_HEADER_FOUND=1
29182 else
29183 VORBIS_HEADER_FOUND=0
29188 else
29189 if test "xvorbis/codec.h" != "x" ; then
29190 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29191 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29192 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29193 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29196 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29197 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29198 else
29199 # Is the header compilable?
29200 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
29201 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h. */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29208 $ac_includes_default
29209 #include <vorbis/codec.h>
29210 _ACEOF
29211 rm -f conftest.$ac_objext
29212 if { (ac_try="$ac_compile"
29213 case "(($ac_try" in
29214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29215 *) ac_try_echo=$ac_try;;
29216 esac
29217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29218 (eval "$ac_compile") 2>conftest.er1
29219 ac_status=$?
29220 grep -v '^ *+' conftest.er1 >conftest.err
29221 rm -f conftest.er1
29222 cat conftest.err >&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); } &&
29225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29226 { (case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_try") 2>&5
29232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest.$ac_objext'
29236 { (case "(($ac_try" in
29237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29238 *) ac_try_echo=$ac_try;;
29239 esac
29240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29241 (eval "$ac_try") 2>&5
29242 ac_status=$?
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); }; }; then
29245 ac_header_compiler=yes
29246 else
29247 echo "$as_me: failed program was:" >&5
29248 sed 's/^/| /' conftest.$ac_ext >&5
29250 ac_header_compiler=no
29253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29255 echo "${ECHO_T}$ac_header_compiler" >&6; }
29257 # Is the header present?
29258 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
29259 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
29260 cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h. */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 #include <vorbis/codec.h>
29267 _ACEOF
29268 if { (ac_try="$ac_cpp conftest.$ac_ext"
29269 case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29272 esac
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29275 ac_status=$?
29276 grep -v '^ *+' conftest.er1 >conftest.err
29277 rm -f conftest.er1
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } >/dev/null; then
29281 if test -s conftest.err; then
29282 ac_cpp_err=$ac_c_preproc_warn_flag
29283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29284 else
29285 ac_cpp_err=
29287 else
29288 ac_cpp_err=yes
29290 if test -z "$ac_cpp_err"; then
29291 ac_header_preproc=yes
29292 else
29293 echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29296 ac_header_preproc=no
29299 rm -f conftest.err conftest.$ac_ext
29300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29301 echo "${ECHO_T}$ac_header_preproc" >&6; }
29303 # So? What about this header?
29304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29305 yes:no: )
29306 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
29307 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
29309 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
29310 ac_header_preproc=yes
29312 no:yes:* )
29313 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
29314 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
29315 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
29316 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
29318 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
29320 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
29322 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
29324 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
29327 esac
29328 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
29329 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
29330 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332 else
29333 ac_cv_header_vorbis_codec_h=$ac_header_preproc
29335 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
29336 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
29339 if test $ac_cv_header_vorbis_codec_h = yes; then
29340 VORBIS_HEADER_FOUND=1
29341 else
29342 VORBIS_HEADER_FOUND=0
29348 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
29349 if test ! -z "${VORBIS_MANDATORY}" ;
29350 then
29351 { echo "$as_me:$LINENO: ***" >&5
29352 echo "$as_me: ***" >&6;}
29353 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
29354 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
29355 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support" >&5
29356 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support" >&or re-run configure;}
29357 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29358 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29359 exit 1
29361 VORBIS_LIB=""
29362 VORBIS_INCLUDE=""
29363 PBX_VORBIS=0
29364 else
29365 PBX_VORBIS=1
29367 cat >>confdefs.h <<_ACEOF
29368 #define HAVE_VORBIS 1
29369 _ACEOF
29372 elif test ! -z "${VORBIS_MANDATORY}";
29373 then
29374 { echo "$as_me:$LINENO: ***" >&5
29375 echo "$as_me: ***" >&6;}
29376 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
29377 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
29378 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29379 echo "$as_me: *** Either correct the installation" >&or run configure;}
29380 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
29381 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
29382 exit 1
29387 ac_ext=cpp
29388 ac_cpp='$CXXCPP $CPPFLAGS'
29389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29394 if test "${USE_VPB}" != "no"; then
29395 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
29396 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
29397 saved_libs="${LIBS}"
29398 saved_cppflags="${CPPFLAGS}"
29399 if test "x${VPB_DIR}" != "x"; then
29400 if test -d ${VPB_DIR}/lib; then
29401 vpblibdir=${VPB_DIR}/lib
29402 else
29403 vpblibdir=${VPB_DIR}
29405 LIBS="${LIBS} -L${vpblibdir}"
29406 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
29408 LIBS="${LIBS} -lvpb -lpthread"
29409 cat >conftest.$ac_ext <<_ACEOF
29411 /* confdefs.h. */
29412 _ACEOF
29413 cat confdefs.h >>conftest.$ac_ext
29414 cat >>conftest.$ac_ext <<_ACEOF
29415 /* end confdefs.h. */
29416 #include <vpbapi.h>
29418 main ()
29420 int q = vpb_open(0,0);
29422 return 0;
29425 _ACEOF
29426 rm -f conftest.$ac_objext conftest$ac_exeext
29427 if { (ac_try="$ac_link"
29428 case "(($ac_try" in
29429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430 *) ac_try_echo=$ac_try;;
29431 esac
29432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29433 (eval "$ac_link") 2>conftest.er1
29434 ac_status=$?
29435 grep -v '^ *+' conftest.er1 >conftest.err
29436 rm -f conftest.er1
29437 cat conftest.err >&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); } &&
29440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29447 ac_status=$?
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; } &&
29450 { ac_try='test -s conftest$ac_exeext'
29451 { (case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_try") 2>&5
29457 ac_status=$?
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 { echo "$as_me:$LINENO: result: yes" >&5
29461 echo "${ECHO_T}yes" >&6; }
29462 ac_cv_lib_vpb_vpb_open="yes"
29464 else
29465 echo "$as_me: failed program was:" >&5
29466 sed 's/^/| /' conftest.$ac_ext >&5
29468 { echo "$as_me:$LINENO: result: no" >&5
29469 echo "${ECHO_T}no" >&6; }
29470 ac_cv_lib_vpb_vpb_open="no"
29475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29476 conftest$ac_exeext conftest.$ac_ext
29477 LIBS="${saved_libs}"
29478 CPPFLAGS="${saved_cppflags}"
29479 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
29480 VPB_LIB="-lvpb"
29481 if test "${VPB_DIR}" != ""; then
29482 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
29483 VPB_INCLUDE="-I${VPB_DIR}/include"
29485 PBX_VPB=1
29487 cat >>confdefs.h <<\_ACEOF
29488 #define HAVE_VPB 1
29489 _ACEOF
29491 elif test ! -z "${VPB_MANDATORY}"; then
29492 { echo "$as_me:$LINENO: ***" >&5
29493 echo "$as_me: ***" >&6;}
29494 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
29495 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
29496 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29497 echo "$as_me: *** Either correct the installation" >&or run configure;}
29498 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
29499 echo "$as_me: *** including --without-vpb." >&6;}
29500 exit 1
29504 ac_ext=c
29505 ac_cpp='$CPP $CPPFLAGS'
29506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29512 if test "${USE_ZLIB}" != "no"; then
29513 pbxlibdir=""
29514 if test "x${ZLIB_DIR}" != "x"; then
29515 if test -d ${ZLIB_DIR}/lib; then
29516 pbxlibdir="-L${ZLIB_DIR}/lib"
29517 else
29518 pbxlibdir="-L${ZLIB_DIR}"
29521 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
29522 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
29523 if test "${ac_cv_lib_z_compress+set}" = set; then
29524 echo $ECHO_N "(cached) $ECHO_C" >&6
29525 else
29526 ac_check_lib_save_LIBS=$LIBS
29527 LIBS="-lz ${pbxlibdir} $LIBS"
29528 cat >conftest.$ac_ext <<_ACEOF
29529 /* confdefs.h. */
29530 _ACEOF
29531 cat confdefs.h >>conftest.$ac_ext
29532 cat >>conftest.$ac_ext <<_ACEOF
29533 /* end confdefs.h. */
29535 /* Override any GCC internal prototype to avoid an error.
29536 Use char because int might match the return type of a GCC
29537 builtin and then its argument prototype would still apply. */
29538 #ifdef __cplusplus
29539 extern "C"
29540 #endif
29541 char compress ();
29543 main ()
29545 return compress ();
29547 return 0;
29549 _ACEOF
29550 rm -f conftest.$ac_objext conftest$ac_exeext
29551 if { (ac_try="$ac_link"
29552 case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_link") 2>conftest.er1
29558 ac_status=$?
29559 grep -v '^ *+' conftest.er1 >conftest.err
29560 rm -f conftest.er1
29561 cat conftest.err >&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } &&
29564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29565 { (case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_try") 2>&5
29571 ac_status=$?
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; } &&
29574 { ac_try='test -s conftest$ac_exeext'
29575 { (case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_try") 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; }; then
29584 ac_cv_lib_z_compress=yes
29585 else
29586 echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589 ac_cv_lib_z_compress=no
29592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29593 conftest$ac_exeext conftest.$ac_ext
29594 LIBS=$ac_check_lib_save_LIBS
29596 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
29597 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
29598 if test $ac_cv_lib_z_compress = yes; then
29599 AST_ZLIB_FOUND=yes
29600 else
29601 AST_ZLIB_FOUND=no
29605 if test "${AST_ZLIB_FOUND}" = "yes"; then
29606 ZLIB_LIB="-lz "
29607 ZLIB_HEADER_FOUND="1"
29608 if test "x${ZLIB_DIR}" != "x"; then
29609 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
29610 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
29611 if test "xzlib.h" != "x" ; then
29612 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
29613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29614 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29615 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29617 echo $ECHO_N "(cached) $ECHO_C" >&6
29619 ac_res=`eval echo '${'$as_ac_Header'}'`
29620 { echo "$as_me:$LINENO: result: $ac_res" >&5
29621 echo "${ECHO_T}$ac_res" >&6; }
29622 else
29623 # Is the header compilable?
29624 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
29625 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
29626 cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h. */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 $ac_includes_default
29633 #include <${ZLIB_DIR}/include/zlib.h>
29634 _ACEOF
29635 rm -f conftest.$ac_objext
29636 if { (ac_try="$ac_compile"
29637 case "(($ac_try" in
29638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29639 *) ac_try_echo=$ac_try;;
29640 esac
29641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29642 (eval "$ac_compile") 2>conftest.er1
29643 ac_status=$?
29644 grep -v '^ *+' conftest.er1 >conftest.err
29645 rm -f conftest.er1
29646 cat conftest.err >&5
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); } &&
29649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29650 { (case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29653 esac
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655 (eval "$ac_try") 2>&5
29656 ac_status=$?
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; } &&
29659 { ac_try='test -s conftest.$ac_objext'
29660 { (case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29663 esac
29664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665 (eval "$ac_try") 2>&5
29666 ac_status=$?
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; }; then
29669 ac_header_compiler=yes
29670 else
29671 echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29674 ac_header_compiler=no
29677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29679 echo "${ECHO_T}$ac_header_compiler" >&6; }
29681 # Is the header present?
29682 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
29683 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
29684 cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h. */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 #include <${ZLIB_DIR}/include/zlib.h>
29691 _ACEOF
29692 if { (ac_try="$ac_cpp conftest.$ac_ext"
29693 case "(($ac_try" in
29694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695 *) ac_try_echo=$ac_try;;
29696 esac
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29699 ac_status=$?
29700 grep -v '^ *+' conftest.er1 >conftest.err
29701 rm -f conftest.er1
29702 cat conftest.err >&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } >/dev/null; then
29705 if test -s conftest.err; then
29706 ac_cpp_err=$ac_c_preproc_warn_flag
29707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29708 else
29709 ac_cpp_err=
29711 else
29712 ac_cpp_err=yes
29714 if test -z "$ac_cpp_err"; then
29715 ac_header_preproc=yes
29716 else
29717 echo "$as_me: failed program was:" >&5
29718 sed 's/^/| /' conftest.$ac_ext >&5
29720 ac_header_preproc=no
29723 rm -f conftest.err conftest.$ac_ext
29724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29725 echo "${ECHO_T}$ac_header_preproc" >&6; }
29727 # So? What about this header?
29728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29729 yes:no: )
29730 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29731 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29732 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
29733 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
29734 ac_header_preproc=yes
29736 no:yes:* )
29737 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
29738 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
29739 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
29740 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
29742 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29744 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
29746 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
29748 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
29751 esac
29752 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
29753 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
29754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29755 echo $ECHO_N "(cached) $ECHO_C" >&6
29756 else
29757 eval "$as_ac_Header=\$ac_header_preproc"
29759 ac_res=`eval echo '${'$as_ac_Header'}'`
29760 { echo "$as_me:$LINENO: result: $ac_res" >&5
29761 echo "${ECHO_T}$ac_res" >&6; }
29764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29765 ZLIB_HEADER_FOUND=1
29766 else
29767 ZLIB_HEADER_FOUND=0
29772 else
29773 if test "xzlib.h" != "x" ; then
29774 if test "${ac_cv_header_zlib_h+set}" = set; then
29775 { echo "$as_me:$LINENO: checking for zlib.h" >&5
29776 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29777 if test "${ac_cv_header_zlib_h+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29780 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29781 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29782 else
29783 # Is the header compilable?
29784 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
29785 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
29786 cat >conftest.$ac_ext <<_ACEOF
29787 /* confdefs.h. */
29788 _ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h. */
29792 $ac_includes_default
29793 #include <zlib.h>
29794 _ACEOF
29795 rm -f conftest.$ac_objext
29796 if { (ac_try="$ac_compile"
29797 case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800 esac
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_compile") 2>conftest.er1
29803 ac_status=$?
29804 grep -v '^ *+' conftest.er1 >conftest.err
29805 rm -f conftest.er1
29806 cat conftest.err >&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } &&
29809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29810 { (case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_try") 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; } &&
29819 { ac_try='test -s conftest.$ac_objext'
29820 { (case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29823 esac
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_try") 2>&5
29826 ac_status=$?
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; }; then
29829 ac_header_compiler=yes
29830 else
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ac_header_compiler=no
29837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29839 echo "${ECHO_T}$ac_header_compiler" >&6; }
29841 # Is the header present?
29842 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
29843 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
29844 cat >conftest.$ac_ext <<_ACEOF
29845 /* confdefs.h. */
29846 _ACEOF
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h. */
29850 #include <zlib.h>
29851 _ACEOF
29852 if { (ac_try="$ac_cpp conftest.$ac_ext"
29853 case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856 esac
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29859 ac_status=$?
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } >/dev/null; then
29865 if test -s conftest.err; then
29866 ac_cpp_err=$ac_c_preproc_warn_flag
29867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29868 else
29869 ac_cpp_err=
29871 else
29872 ac_cpp_err=yes
29874 if test -z "$ac_cpp_err"; then
29875 ac_header_preproc=yes
29876 else
29877 echo "$as_me: failed program was:" >&5
29878 sed 's/^/| /' conftest.$ac_ext >&5
29880 ac_header_preproc=no
29883 rm -f conftest.err conftest.$ac_ext
29884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29885 echo "${ECHO_T}$ac_header_preproc" >&6; }
29887 # So? What about this header?
29888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29889 yes:no: )
29890 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29891 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29893 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29894 ac_header_preproc=yes
29896 no:yes:* )
29897 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29898 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29899 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29900 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29901 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29902 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29904 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29906 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29908 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29911 esac
29912 { echo "$as_me:$LINENO: checking for zlib.h" >&5
29913 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29914 if test "${ac_cv_header_zlib_h+set}" = set; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29916 else
29917 ac_cv_header_zlib_h=$ac_header_preproc
29919 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29920 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29923 if test $ac_cv_header_zlib_h = yes; then
29924 ZLIB_HEADER_FOUND=1
29925 else
29926 ZLIB_HEADER_FOUND=0
29932 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
29933 if test ! -z "${ZLIB_MANDATORY}" ;
29934 then
29935 { echo "$as_me:$LINENO: ***" >&5
29936 echo "$as_me: ***" >&6;}
29937 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
29938 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
29939 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support" >&5
29940 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support" >&or re-run configure;}
29941 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
29942 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
29943 exit 1
29945 ZLIB_LIB=""
29946 ZLIB_INCLUDE=""
29947 PBX_ZLIB=0
29948 else
29949 PBX_ZLIB=1
29951 cat >>confdefs.h <<_ACEOF
29952 #define HAVE_ZLIB 1
29953 _ACEOF
29956 elif test ! -z "${ZLIB_MANDATORY}";
29957 then
29958 { echo "$as_me:$LINENO: ***" >&5
29959 echo "$as_me: ***" >&6;}
29960 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
29961 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
29962 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
29963 echo "$as_me: *** Either correct the installation" >&or run configure;}
29964 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
29965 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
29966 exit 1
29971 if test "${USE_ZAPTEL}" != "no"; then
29972 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
29973 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
29974 saved_cppflags="${CPPFLAGS}"
29975 if test "x${ZAPTEL_DIR}" != "x"; then
29976 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
29978 cat >conftest.$ac_ext <<_ACEOF
29980 /* confdefs.h. */
29981 _ACEOF
29982 cat confdefs.h >>conftest.$ac_ext
29983 cat >>conftest.$ac_ext <<_ACEOF
29984 /* end confdefs.h. */
29985 #include <zaptel/zaptel.h>
29987 main ()
29989 int foo = ZT_TONE_DTMF_BASE;
29991 return 0;
29994 _ACEOF
29995 rm -f conftest.$ac_objext
29996 if { (ac_try="$ac_compile"
29997 case "(($ac_try" in
29998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999 *) ac_try_echo=$ac_try;;
30000 esac
30001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30002 (eval "$ac_compile") 2>conftest.er1
30003 ac_status=$?
30004 grep -v '^ *+' conftest.er1 >conftest.err
30005 rm -f conftest.er1
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
30009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; } &&
30019 { ac_try='test -s conftest.$ac_objext'
30020 { (case "(($ac_try" in
30021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30022 *) ac_try_echo=$ac_try;;
30023 esac
30024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025 (eval "$ac_try") 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 { echo "$as_me:$LINENO: result: yes" >&5
30030 echo "${ECHO_T}yes" >&6; }
30031 ac_cv_zaptel_h="yes"
30033 else
30034 echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30037 { echo "$as_me:$LINENO: result: no" >&5
30038 echo "${ECHO_T}no" >&6; }
30039 ac_cv_zaptel_h="no"
30044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30045 CPPFLAGS="${saved_cppflags}"
30046 if test "${ac_cv_zaptel_h}" = "yes"; then
30047 if test "${ZAPTEL_DIR}" != ""; then
30048 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
30050 PBX_ZAPTEL=1
30052 cat >>confdefs.h <<\_ACEOF
30053 #define HAVE_ZAPTEL 1
30054 _ACEOF
30056 elif test ! -z "${ZAPTEL_MANDATORY}";
30057 then
30058 { echo "$as_me:$LINENO: ***" >&5
30059 echo "$as_me: ***" >&6;}
30060 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
30061 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
30062 { echo "$as_me:$LINENO: *** Either correct the installation" >&5
30063 echo "$as_me: *** Either correct the installation" >&or run configure;}
30064 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
30065 echo "$as_me: *** including --without-zaptel." >&6;}
30066 exit 1
30070 EDITLINE_LIB=""
30071 if test "x$TERMCAP_LIB" != "x" ; then
30072 EDITLINE_LIB="$TERMCAP_LIB"
30073 elif test "x$TINFO_LIB" != "x" ; then
30074 EDITLINE_LIB="$TINFO_LIB"
30075 elif test "x$CURSES_LIB" != "x" ; then
30076 EDITLINE_LIB="$CURSES_LIB"
30077 elif test "x$NCURSES_LIB" != "x" ; then
30078 EDITLINE_LIB="$NCURSES_LIB"
30079 else
30080 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
30081 echo "$as_me: error: *** termcap support not found" >&2;}
30082 { (exit 1); exit 1; }; }
30086 if test "${ac_cv_header_h323_h+set}" = set; then
30087 { echo "$as_me:$LINENO: checking for h323.h" >&5
30088 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30089 if test "${ac_cv_header_h323_h+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30092 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30093 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30094 else
30095 # Is the header compilable?
30096 { echo "$as_me:$LINENO: checking h323.h usability" >&5
30097 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
30098 cat >conftest.$ac_ext <<_ACEOF
30099 /* confdefs.h. */
30100 _ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h. */
30104 $ac_includes_default
30105 #include <h323.h>
30106 _ACEOF
30107 rm -f conftest.$ac_objext
30108 if { (ac_try="$ac_compile"
30109 case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30112 esac
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_compile") 2>conftest.er1
30115 ac_status=$?
30116 grep -v '^ *+' conftest.er1 >conftest.err
30117 rm -f conftest.er1
30118 cat conftest.err >&5
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); } &&
30121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30122 { (case "(($ac_try" in
30123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124 *) ac_try_echo=$ac_try;;
30125 esac
30126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127 (eval "$ac_try") 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest.$ac_objext'
30132 { (case "(($ac_try" in
30133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30134 *) ac_try_echo=$ac_try;;
30135 esac
30136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30137 (eval "$ac_try") 2>&5
30138 ac_status=$?
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; }; then
30141 ac_header_compiler=yes
30142 else
30143 echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30146 ac_header_compiler=no
30149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30151 echo "${ECHO_T}$ac_header_compiler" >&6; }
30153 # Is the header present?
30154 { echo "$as_me:$LINENO: checking h323.h presence" >&5
30155 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
30156 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h. */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <h323.h>
30163 _ACEOF
30164 if { (ac_try="$ac_cpp conftest.$ac_ext"
30165 case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30171 ac_status=$?
30172 grep -v '^ *+' conftest.er1 >conftest.err
30173 rm -f conftest.er1
30174 cat conftest.err >&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); } >/dev/null; then
30177 if test -s conftest.err; then
30178 ac_cpp_err=$ac_c_preproc_warn_flag
30179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30180 else
30181 ac_cpp_err=
30183 else
30184 ac_cpp_err=yes
30186 if test -z "$ac_cpp_err"; then
30187 ac_header_preproc=yes
30188 else
30189 echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30192 ac_header_preproc=no
30195 rm -f conftest.err conftest.$ac_ext
30196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30197 echo "${ECHO_T}$ac_header_preproc" >&6; }
30199 # So? What about this header?
30200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30201 yes:no: )
30202 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30203 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30204 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
30205 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
30206 ac_header_preproc=yes
30208 no:yes:* )
30209 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
30210 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
30212 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
30213 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
30214 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
30215 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
30216 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30217 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
30218 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
30219 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
30220 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
30223 esac
30224 { echo "$as_me:$LINENO: checking for h323.h" >&5
30225 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
30226 if test "${ac_cv_header_h323_h+set}" = set; then
30227 echo $ECHO_N "(cached) $ECHO_C" >&6
30228 else
30229 ac_cv_header_h323_h=$ac_header_preproc
30231 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
30232 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
30235 if test $ac_cv_header_h323_h = yes; then
30236 PBX_H323=1
30237 else
30238 PBX_H323=0
30244 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
30245 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
30246 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249 cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h. */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30256 #include <linux/version.h>
30257 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
30258 #include <linux/compiler.h>
30259 #endif
30262 #include <linux/ixjuser.h>
30263 _ACEOF
30264 rm -f conftest.$ac_objext
30265 if { (ac_try="$ac_compile"
30266 case "(($ac_try" in
30267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268 *) ac_try_echo=$ac_try;;
30269 esac
30270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271 (eval "$ac_compile") 2>conftest.er1
30272 ac_status=$?
30273 grep -v '^ *+' conftest.er1 >conftest.err
30274 rm -f conftest.er1
30275 cat conftest.err >&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); } &&
30278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; } &&
30288 { ac_try='test -s conftest.$ac_objext'
30289 { (case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30292 esac
30293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_try") 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
30298 ac_cv_header_linux_ixjuser_h=yes
30299 else
30300 echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30303 ac_cv_header_linux_ixjuser_h=no
30306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30308 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
30309 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
30310 if test $ac_cv_header_linux_ixjuser_h = yes; then
30311 PBX_IXJUSER=1
30312 else
30313 PBX_IXJUSER=0
30319 PBX_GTK=0
30320 if test -n "$ac_tool_prefix"; then
30321 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
30322 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
30323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30325 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
30326 echo $ECHO_N "(cached) $ECHO_C" >&6
30327 else
30328 if test -n "$GTKCONFIG"; then
30329 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
30330 else
30331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30332 for as_dir in $PATH
30334 IFS=$as_save_IFS
30335 test -z "$as_dir" && as_dir=.
30336 for ac_exec_ext in '' $ac_executable_extensions; do
30337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30338 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
30339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30340 break 2
30342 done
30343 done
30344 IFS=$as_save_IFS
30348 GTKCONFIG=$ac_cv_prog_GTKCONFIG
30349 if test -n "$GTKCONFIG"; then
30350 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
30351 echo "${ECHO_T}$GTKCONFIG" >&6; }
30352 else
30353 { echo "$as_me:$LINENO: result: no" >&5
30354 echo "${ECHO_T}no" >&6; }
30359 if test -z "$ac_cv_prog_GTKCONFIG"; then
30360 ac_ct_GTKCONFIG=$GTKCONFIG
30361 # Extract the first word of "gtk-config", so it can be a program name with args.
30362 set dummy gtk-config; ac_word=$2
30363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30365 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30367 else
30368 if test -n "$ac_ct_GTKCONFIG"; then
30369 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
30370 else
30371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30372 for as_dir in $PATH
30374 IFS=$as_save_IFS
30375 test -z "$as_dir" && as_dir=.
30376 for ac_exec_ext in '' $ac_executable_extensions; do
30377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30378 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
30379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30380 break 2
30382 done
30383 done
30384 IFS=$as_save_IFS
30388 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
30389 if test -n "$ac_ct_GTKCONFIG"; then
30390 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
30391 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
30392 else
30393 { echo "$as_me:$LINENO: result: no" >&5
30394 echo "${ECHO_T}no" >&6; }
30397 if test "x$ac_ct_GTKCONFIG" = x; then
30398 GTKCONFIG="No"
30399 else
30400 case $cross_compiling:$ac_tool_warned in
30401 yes:)
30402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30403 whose name does not start with the host triplet. If you think this
30404 configuration is useful to you, please write to autoconf@gnu.org." >&5
30405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30406 whose name does not start with the host triplet. If you think this
30407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30408 ac_tool_warned=yes ;;
30409 esac
30410 GTKCONFIG=$ac_ct_GTKCONFIG
30412 else
30413 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
30416 if test ! "x${GTKCONFIG}" = xNo; then
30417 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
30418 GTK_LIB=$(${GTKCONFIG} --libs gthread)
30419 PBX_GTK=1
30421 cat >>confdefs.h <<\_ACEOF
30422 #define HAVE_GTK 1
30423 _ACEOF
30430 if test "${USE_CURL}" != "no"; then
30431 if test -n "$ac_tool_prefix"; then
30432 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
30433 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
30434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30436 if test "${ac_cv_path_CURL+set}" = set; then
30437 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 else
30439 case $CURL in
30440 [\\/]* | ?:[\\/]*)
30441 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
30444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30445 for as_dir in $PATH
30447 IFS=$as_save_IFS
30448 test -z "$as_dir" && as_dir=.
30449 for ac_exec_ext in '' $ac_executable_extensions; do
30450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30451 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
30452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30453 break 2
30455 done
30456 done
30457 IFS=$as_save_IFS
30460 esac
30462 CURL=$ac_cv_path_CURL
30463 if test -n "$CURL"; then
30464 { echo "$as_me:$LINENO: result: $CURL" >&5
30465 echo "${ECHO_T}$CURL" >&6; }
30466 else
30467 { echo "$as_me:$LINENO: result: no" >&5
30468 echo "${ECHO_T}no" >&6; }
30473 if test -z "$ac_cv_path_CURL"; then
30474 ac_pt_CURL=$CURL
30475 # Extract the first word of "curl-config", so it can be a program name with args.
30476 set dummy curl-config; ac_word=$2
30477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30479 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482 case $ac_pt_CURL in
30483 [\\/]* | ?:[\\/]*)
30484 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
30487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30488 for as_dir in $PATH
30490 IFS=$as_save_IFS
30491 test -z "$as_dir" && as_dir=.
30492 for ac_exec_ext in '' $ac_executable_extensions; do
30493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30494 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
30495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30496 break 2
30498 done
30499 done
30500 IFS=$as_save_IFS
30503 esac
30505 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
30506 if test -n "$ac_pt_CURL"; then
30507 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
30508 echo "${ECHO_T}$ac_pt_CURL" >&6; }
30509 else
30510 { echo "$as_me:$LINENO: result: no" >&5
30511 echo "${ECHO_T}no" >&6; }
30514 if test "x$ac_pt_CURL" = x; then
30515 CURL="No"
30516 else
30517 case $cross_compiling:$ac_tool_warned in
30518 yes:)
30519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30520 whose name does not start with the host triplet. If you think this
30521 configuration is useful to you, please write to autoconf@gnu.org." >&5
30522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30523 whose name does not start with the host triplet. If you think this
30524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30525 ac_tool_warned=yes ;;
30526 esac
30527 CURL=$ac_pt_CURL
30529 else
30530 CURL="$ac_cv_path_CURL"
30533 if test ! x"${CURL}" = xNo; then
30534 # check for version
30535 if test "${host_os}" = "SunOS"; then
30536 if [ 0x`curl-config --vernum` -ge 0x70907 ]; then
30537 CURL_INCLUDE=$(${CURL} --cflags)
30538 CURL_LIB=$(${CURL} --libs)
30539 PBX_CURL=1
30541 cat >>confdefs.h <<\_ACEOF
30542 #define HAVE_CURL 1
30543 _ACEOF
30546 else
30547 if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
30548 CURL_INCLUDE=$(${CURL} --cflags)
30549 CURL_LIB=$(${CURL} --libs)
30550 PBX_CURL=1
30552 cat >>confdefs.h <<\_ACEOF
30553 #define HAVE_CURL 1
30554 _ACEOF
30561 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
30563 cat >confcache <<\_ACEOF
30564 # This file is a shell script that caches the results of configure
30565 # tests run on this system so they can be shared between configure
30566 # scripts and configure runs, see configure's option --config-cache.
30567 # It is not useful on other systems. If it contains results you don't
30568 # want to keep, you may remove or edit it.
30570 # config.status only pays attention to the cache file if you give it
30571 # the --recheck option to rerun configure.
30573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30575 # following values.
30577 _ACEOF
30579 # The following way of writing the cache mishandles newlines in values,
30580 # but we know of no workaround that is simple, portable, and efficient.
30581 # So, we kill variables containing newlines.
30582 # Ultrix sh set writes to stderr and can't be redirected directly,
30583 # and sets the high bit in the cache file unless we assign to the vars.
30585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30586 eval ac_val=\$$ac_var
30587 case $ac_val in #(
30588 *${as_nl}*)
30589 case $ac_var in #(
30590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30592 esac
30593 case $ac_var in #(
30594 _ | IFS | as_nl) ;; #(
30595 *) $as_unset $ac_var ;;
30596 esac ;;
30597 esac
30598 done
30600 (set) 2>&1 |
30601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30602 *${as_nl}ac_space=\ *)
30603 # `set' does not quote correctly, so add quotes (double-quote
30604 # substitution turns \\\\ into \\, and sed turns \\ into \).
30605 sed -n \
30606 "s/'/'\\\\''/g;
30607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30608 ;; #(
30610 # `set' quotes correctly as required by POSIX, so do not add quotes.
30611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30613 esac |
30614 sort
30616 sed '
30617 /^ac_cv_env_/b end
30618 t clear
30619 :clear
30620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30621 t end
30622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30623 :end' >>confcache
30624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30625 if test -w "$cache_file"; then
30626 test "x$cache_file" != "x/dev/null" &&
30627 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30628 echo "$as_me: updating cache $cache_file" >&6;}
30629 cat confcache >$cache_file
30630 else
30631 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30632 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30635 rm -f confcache
30637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30638 # Let make expand exec_prefix.
30639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30641 DEFS=-DHAVE_CONFIG_H
30643 ac_libobjs=
30644 ac_ltlibobjs=
30645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30646 # 1. Remove the extension, and $U if already installed.
30647 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30648 ac_i=`echo "$ac_i" | sed "$ac_script"`
30649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30650 # will be set to the directory where LIBOBJS objects are built.
30651 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30652 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30653 done
30654 LIBOBJS=$ac_libobjs
30656 LTLIBOBJS=$ac_ltlibobjs
30660 : ${CONFIG_STATUS=./config.status}
30661 ac_clean_files_save=$ac_clean_files
30662 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30663 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30664 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30665 cat >$CONFIG_STATUS <<_ACEOF
30666 #! $SHELL
30667 # Generated by $as_me.
30668 # Run this file to recreate the current configuration.
30669 # Compiler output produced by configure, useful for debugging
30670 # configure, is in config.log if it exists.
30672 debug=false
30673 ac_cs_recheck=false
30674 ac_cs_silent=false
30675 SHELL=\${CONFIG_SHELL-$SHELL}
30676 _ACEOF
30678 cat >>$CONFIG_STATUS <<\_ACEOF
30679 ## --------------------- ##
30680 ## M4sh Initialization. ##
30681 ## --------------------- ##
30683 # Be Bourne compatible
30684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30685 emulate sh
30686 NULLCMD=:
30687 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30688 # is contrary to our usage. Disable this feature.
30689 alias -g '${1+"$@"}'='"$@"'
30690 setopt NO_GLOB_SUBST
30691 else
30692 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30694 BIN_SH=xpg4; export BIN_SH # for Tru64
30695 DUALCASE=1; export DUALCASE # for MKS sh
30698 # PATH needs CR
30699 # Avoid depending upon Character Ranges.
30700 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30701 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30702 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30703 as_cr_digits='0123456789'
30704 as_cr_alnum=$as_cr_Letters$as_cr_digits
30706 # The user is always right.
30707 if test "${PATH_SEPARATOR+set}" != set; then
30708 echo "#! /bin/sh" >conf$$.sh
30709 echo "exit 0" >>conf$$.sh
30710 chmod +x conf$$.sh
30711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30712 PATH_SEPARATOR=';'
30713 else
30714 PATH_SEPARATOR=:
30716 rm -f conf$$.sh
30719 # Support unset when possible.
30720 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30721 as_unset=unset
30722 else
30723 as_unset=false
30727 # IFS
30728 # We need space, tab and new line, in precisely that order. Quoting is
30729 # there to prevent editors from complaining about space-tab.
30730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30731 # splitting by setting IFS to empty value.)
30732 as_nl='
30734 IFS=" "" $as_nl"
30736 # Find who we are. Look in the path if we contain no directory separator.
30737 case $0 in
30738 *[\\/]* ) as_myself=$0 ;;
30739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30740 for as_dir in $PATH
30742 IFS=$as_save_IFS
30743 test -z "$as_dir" && as_dir=.
30744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30745 done
30746 IFS=$as_save_IFS
30749 esac
30750 # We did not find ourselves, most probably we were run as `sh COMMAND'
30751 # in which case we are not to be found in the path.
30752 if test "x$as_myself" = x; then
30753 as_myself=$0
30755 if test ! -f "$as_myself"; then
30756 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30757 { (exit 1); exit 1; }
30760 # Work around bugs in pre-3.0 UWIN ksh.
30761 for as_var in ENV MAIL MAILPATH
30762 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30763 done
30764 PS1='$ '
30765 PS2='> '
30766 PS4='+ '
30768 # NLS nuisances.
30769 for as_var in \
30770 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30771 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30772 LC_TELEPHONE LC_TIME
30774 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30775 eval $as_var=C; export $as_var
30776 else
30777 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30779 done
30781 # Required to use basename.
30782 if expr a : '\(a\)' >/dev/null 2>&1 &&
30783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30784 as_expr=expr
30785 else
30786 as_expr=false
30789 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30790 as_basename=basename
30791 else
30792 as_basename=false
30796 # Name of the executable.
30797 as_me=`$as_basename -- "$0" ||
30798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30799 X"$0" : 'X\(//\)$' \| \
30800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30801 echo X/"$0" |
30802 sed '/^.*\/\([^/][^/]*\)\/*$/{
30803 s//\1/
30806 /^X\/\(\/\/\)$/{
30807 s//\1/
30810 /^X\/\(\/\).*/{
30811 s//\1/
30814 s/.*/./; q'`
30816 # CDPATH.
30817 $as_unset CDPATH
30821 as_lineno_1=$LINENO
30822 as_lineno_2=$LINENO
30823 test "x$as_lineno_1" != "x$as_lineno_2" &&
30824 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30826 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30827 # uniformly replaced by the line number. The first 'sed' inserts a
30828 # line-number line after each line using $LINENO; the second 'sed'
30829 # does the real work. The second script uses 'N' to pair each
30830 # line-number line with the line containing $LINENO, and appends
30831 # trailing '-' during substitution so that $LINENO is not a special
30832 # case at line end.
30833 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30834 # scripts with optimization help from Paolo Bonzini. Blame Lee
30835 # E. McMahon (1931-1989) for sed's syntax. :-)
30836 sed -n '
30838 /[$]LINENO/=
30839 ' <$as_myself |
30840 sed '
30841 s/[$]LINENO.*/&-/
30842 t lineno
30844 :lineno
30846 :loop
30847 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30848 t loop
30849 s/-\n.*//
30850 ' >$as_me.lineno &&
30851 chmod +x "$as_me.lineno" ||
30852 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30853 { (exit 1); exit 1; }; }
30855 # Don't try to exec as it changes $[0], causing all sort of problems
30856 # (the dirname of $[0] is not the place where we might find the
30857 # original and so on. Autoconf is especially sensitive to this).
30858 . "./$as_me.lineno"
30859 # Exit status is that of the last command.
30860 exit
30864 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30865 as_dirname=dirname
30866 else
30867 as_dirname=false
30870 ECHO_C= ECHO_N= ECHO_T=
30871 case `echo -n x` in
30872 -n*)
30873 case `echo 'x\c'` in
30874 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30875 *) ECHO_C='\c';;
30876 esac;;
30878 ECHO_N='-n';;
30879 esac
30881 if expr a : '\(a\)' >/dev/null 2>&1 &&
30882 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30883 as_expr=expr
30884 else
30885 as_expr=false
30888 rm -f conf$$ conf$$.exe conf$$.file
30889 if test -d conf$$.dir; then
30890 rm -f conf$$.dir/conf$$.file
30891 else
30892 rm -f conf$$.dir
30893 mkdir conf$$.dir
30895 echo >conf$$.file
30896 if ln -s conf$$.file conf$$ 2>/dev/null; then
30897 as_ln_s='ln -s'
30898 # ... but there are two gotchas:
30899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30901 # In both cases, we have to default to `cp -p'.
30902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30903 as_ln_s='cp -p'
30904 elif ln conf$$.file conf$$ 2>/dev/null; then
30905 as_ln_s=ln
30906 else
30907 as_ln_s='cp -p'
30909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30910 rmdir conf$$.dir 2>/dev/null
30912 if mkdir -p . 2>/dev/null; then
30913 as_mkdir_p=:
30914 else
30915 test -d ./-p && rmdir ./-p
30916 as_mkdir_p=false
30919 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
30920 # systems may use methods other than mode bits to determine executability.
30921 cat >conf$$.file <<_ASEOF
30922 #! /bin/sh
30923 exit 0
30924 _ASEOF
30925 chmod +x conf$$.file
30926 if test -x conf$$.file >/dev/null 2>&1; then
30927 as_executable_p="test -x"
30928 else
30929 as_executable_p=:
30931 rm -f conf$$.file
30933 # Sed expression to map a string onto a valid CPP name.
30934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30936 # Sed expression to map a string onto a valid variable name.
30937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30940 exec 6>&1
30942 # Save the log message, to keep $[0] and so on meaningful, and to
30943 # report actual input values of CONFIG_FILES etc. instead of their
30944 # values after options handling.
30945 ac_log="
30946 This file was extended by $as_me, which was
30947 generated by GNU Autoconf 2.60a. Invocation command line was
30949 CONFIG_FILES = $CONFIG_FILES
30950 CONFIG_HEADERS = $CONFIG_HEADERS
30951 CONFIG_LINKS = $CONFIG_LINKS
30952 CONFIG_COMMANDS = $CONFIG_COMMANDS
30953 $ $0 $@
30955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30958 _ACEOF
30960 cat >>$CONFIG_STATUS <<_ACEOF
30961 # Files that config.status was made for.
30962 config_files="$ac_config_files"
30963 config_headers="$ac_config_headers"
30965 _ACEOF
30967 cat >>$CONFIG_STATUS <<\_ACEOF
30968 ac_cs_usage="\
30969 \`$as_me' instantiates files from templates according to the
30970 current configuration.
30972 Usage: $0 [OPTIONS] [FILE]...
30974 -h, --help print this help, then exit
30975 -V, --version print version number and configuration settings, then exit
30976 -q, --quiet do not print progress messages
30977 -d, --debug don't remove temporary files
30978 --recheck update $as_me by reconfiguring in the same conditions
30979 --file=FILE[:TEMPLATE]
30980 instantiate the configuration file FILE
30981 --header=FILE[:TEMPLATE]
30982 instantiate the configuration header FILE
30984 Configuration files:
30985 $config_files
30987 Configuration headers:
30988 $config_headers
30990 Report bugs to <bug-autoconf@gnu.org>."
30992 _ACEOF
30993 cat >>$CONFIG_STATUS <<_ACEOF
30994 ac_cs_version="\\
30995 config.status
30996 configured by $0, generated by GNU Autoconf 2.60a,
30997 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30999 Copyright (C) 2006 Free Software Foundation, Inc.
31000 This config.status script is free software; the Free Software Foundation
31001 gives unlimited permission to copy, distribute and modify it."
31003 ac_pwd='$ac_pwd'
31004 srcdir='$srcdir'
31005 INSTALL='$INSTALL'
31006 _ACEOF
31008 cat >>$CONFIG_STATUS <<\_ACEOF
31009 # If no file are specified by the user, then we need to provide default
31010 # value. By we need to know if files were specified by the user.
31011 ac_need_defaults=:
31012 while test $# != 0
31014 case $1 in
31015 --*=*)
31016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31018 ac_shift=:
31021 ac_option=$1
31022 ac_optarg=$2
31023 ac_shift=shift
31025 esac
31027 case $ac_option in
31028 # Handling of the options.
31029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31030 ac_cs_recheck=: ;;
31031 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31032 echo "$ac_cs_version"; exit ;;
31033 --debug | --debu | --deb | --de | --d | -d )
31034 debug=: ;;
31035 --file | --fil | --fi | --f )
31036 $ac_shift
31037 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31038 ac_need_defaults=false;;
31039 --header | --heade | --head | --hea )
31040 $ac_shift
31041 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31042 ac_need_defaults=false;;
31043 --he | --h)
31044 # Conflict between --help and --header
31045 { echo "$as_me: error: ambiguous option: $1
31046 Try \`$0 --help' for more information." >&2
31047 { (exit 1); exit 1; }; };;
31048 --help | --hel | -h )
31049 echo "$ac_cs_usage"; exit ;;
31050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31052 ac_cs_silent=: ;;
31054 # This is an error.
31055 -*) { echo "$as_me: error: unrecognized option: $1
31056 Try \`$0 --help' for more information." >&2
31057 { (exit 1); exit 1; }; } ;;
31059 *) ac_config_targets="$ac_config_targets $1"
31060 ac_need_defaults=false ;;
31062 esac
31063 shift
31064 done
31066 ac_configure_extra_args=
31068 if $ac_cs_silent; then
31069 exec 6>/dev/null
31070 ac_configure_extra_args="$ac_configure_extra_args --silent"
31073 _ACEOF
31074 cat >>$CONFIG_STATUS <<_ACEOF
31075 if \$ac_cs_recheck; then
31076 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31077 CONFIG_SHELL=$SHELL
31078 export CONFIG_SHELL
31079 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31082 _ACEOF
31083 cat >>$CONFIG_STATUS <<\_ACEOF
31084 exec 5>>config.log
31086 echo
31087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31088 ## Running $as_me. ##
31089 _ASBOX
31090 echo "$ac_log"
31091 } >&5
31093 _ACEOF
31094 cat >>$CONFIG_STATUS <<_ACEOF
31095 _ACEOF
31097 cat >>$CONFIG_STATUS <<\_ACEOF
31099 # Handling of arguments.
31100 for ac_config_target in $ac_config_targets
31102 case $ac_config_target in
31103 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
31104 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
31105 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
31106 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
31108 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31109 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31110 { (exit 1); exit 1; }; };;
31111 esac
31112 done
31115 # If the user did not use the arguments to specify the items to instantiate,
31116 # then the envvar interface is used. Set only those that are not.
31117 # We use the long form for the default assignment because of an extremely
31118 # bizarre bug on SunOS 4.1.3.
31119 if $ac_need_defaults; then
31120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31124 # Have a temporary directory for convenience. Make it in the build tree
31125 # simply because there is no reason against having it here, and in addition,
31126 # creating and moving files from /tmp can sometimes cause problems.
31127 # Hook for its removal unless debugging.
31128 # Note that there is a small window in which the directory will not be cleaned:
31129 # after its creation but before its name has been assigned to `$tmp'.
31130 $debug ||
31132 tmp=
31133 trap 'exit_status=$?
31134 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31136 trap '{ (exit 1); exit 1; }' 1 2 13 15
31138 # Create a (secure) tmp directory for tmp files.
31141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31142 test -n "$tmp" && test -d "$tmp"
31143 } ||
31145 tmp=./conf$$-$RANDOM
31146 (umask 077 && mkdir "$tmp")
31147 } ||
31149 echo "$me: cannot create a temporary directory in ." >&2
31150 { (exit 1); exit 1; }
31154 # Set up the sed scripts for CONFIG_FILES section.
31157 # No need to generate the scripts if there are no CONFIG_FILES.
31158 # This happens for instance when ./config.status config.h
31159 if test -n "$CONFIG_FILES"; then
31161 _ACEOF
31165 ac_delim='%!_!# '
31166 for ac_last_try in false false false false false :; do
31167 cat >conf$$subs.sed <<_ACEOF
31168 SHELL!$SHELL$ac_delim
31169 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31170 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31171 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31172 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31173 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31174 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31175 exec_prefix!$exec_prefix$ac_delim
31176 prefix!$prefix$ac_delim
31177 program_transform_name!$program_transform_name$ac_delim
31178 bindir!$bindir$ac_delim
31179 sbindir!$sbindir$ac_delim
31180 libexecdir!$libexecdir$ac_delim
31181 datarootdir!$datarootdir$ac_delim
31182 datadir!$datadir$ac_delim
31183 sysconfdir!$sysconfdir$ac_delim
31184 sharedstatedir!$sharedstatedir$ac_delim
31185 localstatedir!$localstatedir$ac_delim
31186 includedir!$includedir$ac_delim
31187 oldincludedir!$oldincludedir$ac_delim
31188 docdir!$docdir$ac_delim
31189 infodir!$infodir$ac_delim
31190 htmldir!$htmldir$ac_delim
31191 dvidir!$dvidir$ac_delim
31192 pdfdir!$pdfdir$ac_delim
31193 psdir!$psdir$ac_delim
31194 libdir!$libdir$ac_delim
31195 localedir!$localedir$ac_delim
31196 mandir!$mandir$ac_delim
31197 DEFS!$DEFS$ac_delim
31198 ECHO_C!$ECHO_C$ac_delim
31199 ECHO_N!$ECHO_N$ac_delim
31200 ECHO_T!$ECHO_T$ac_delim
31201 LIBS!$LIBS$ac_delim
31202 build_alias!$build_alias$ac_delim
31203 host_alias!$host_alias$ac_delim
31204 target_alias!$target_alias$ac_delim
31205 build!$build$ac_delim
31206 build_cpu!$build_cpu$ac_delim
31207 build_vendor!$build_vendor$ac_delim
31208 build_os!$build_os$ac_delim
31209 host!$host$ac_delim
31210 host_cpu!$host_cpu$ac_delim
31211 host_vendor!$host_vendor$ac_delim
31212 host_os!$host_os$ac_delim
31213 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
31214 BUILD_CPU!$BUILD_CPU$ac_delim
31215 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
31216 BUILD_OS!$BUILD_OS$ac_delim
31217 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
31218 HOST_CPU!$HOST_CPU$ac_delim
31219 HOST_VENDOR!$HOST_VENDOR$ac_delim
31220 HOST_OS!$HOST_OS$ac_delim
31221 OSARCH!$OSARCH$ac_delim
31222 UNAME!$UNAME$ac_delim
31223 PBX_OSREV!$PBX_OSREV$ac_delim
31224 CC!$CC$ac_delim
31225 CXX!$CXX$ac_delim
31226 LD!$LD$ac_delim
31227 RANLIB!$RANLIB$ac_delim
31228 AR!$AR$ac_delim
31229 CFLAGS!$CFLAGS$ac_delim
31230 LDFLAGS!$LDFLAGS$ac_delim
31231 CPPFLAGS!$CPPFLAGS$ac_delim
31232 ac_ct_CC!$ac_ct_CC$ac_delim
31233 EXEEXT!$EXEEXT$ac_delim
31234 OBJEXT!$OBJEXT$ac_delim
31235 CXXFLAGS!$CXXFLAGS$ac_delim
31236 ac_ct_CXX!$ac_ct_CXX$ac_delim
31237 CPP!$CPP$ac_delim
31238 CXXCPP!$CXXCPP$ac_delim
31239 AWK!$AWK$ac_delim
31240 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31241 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31242 INSTALL_DATA!$INSTALL_DATA$ac_delim
31243 LN_S!$LN_S$ac_delim
31244 GNU_MAKE!$GNU_MAKE$ac_delim
31245 GREP!$GREP$ac_delim
31246 FIND!$FIND$ac_delim
31247 COMPRESS!$COMPRESS$ac_delim
31248 BASENAME!$BASENAME$ac_delim
31249 ID!$ID$ac_delim
31250 DIRNAME!$DIRNAME$ac_delim
31251 LN!$LN$ac_delim
31252 DOT!$DOT$ac_delim
31253 AST_DEVMODE!$AST_DEVMODE$ac_delim
31254 ALSA_LIB!$ALSA_LIB$ac_delim
31255 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
31256 PBX_ALSA!$PBX_ALSA$ac_delim
31257 CURL_LIB!$CURL_LIB$ac_delim
31258 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
31259 PBX_CURL!$PBX_CURL$ac_delim
31260 CURSES_LIB!$CURSES_LIB$ac_delim
31261 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
31262 PBX_CURSES!$PBX_CURSES$ac_delim
31263 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
31264 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
31265 _ACEOF
31267 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31268 break
31269 elif $ac_last_try; then
31270 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31271 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31272 { (exit 1); exit 1; }; }
31273 else
31274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31276 done
31278 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31279 if test -n "$ac_eof"; then
31280 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31281 ac_eof=`expr $ac_eof + 1`
31284 cat >>$CONFIG_STATUS <<_ACEOF
31285 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31287 _ACEOF
31288 sed '
31289 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31290 s/^/s,@/; s/!/@,|#_!!_#|/
31293 s/'"$ac_delim"'$/,g/; t
31294 s/$/\\/; p
31295 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31296 ' >>$CONFIG_STATUS <conf$$subs.sed
31297 rm -f conf$$subs.sed
31298 cat >>$CONFIG_STATUS <<_ACEOF
31299 CEOF$ac_eof
31300 _ACEOF
31303 ac_delim='%!_!# '
31304 for ac_last_try in false false false false false :; do
31305 cat >conf$$subs.sed <<_ACEOF
31306 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
31307 GSM_LIB!$GSM_LIB$ac_delim
31308 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
31309 PBX_GSM!$PBX_GSM$ac_delim
31310 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
31311 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
31312 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
31313 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
31314 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
31315 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
31316 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
31317 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
31318 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
31319 KDE_LIB!$KDE_LIB$ac_delim
31320 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
31321 PBX_KDE!$PBX_KDE$ac_delim
31322 MISDN_LIB!$MISDN_LIB$ac_delim
31323 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
31324 PBX_MISDN!$PBX_MISDN$ac_delim
31325 NBS_LIB!$NBS_LIB$ac_delim
31326 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
31327 PBX_NBS!$PBX_NBS$ac_delim
31328 NCURSES_LIB!$NCURSES_LIB$ac_delim
31329 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
31330 PBX_NCURSES!$PBX_NCURSES$ac_delim
31331 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
31332 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
31333 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
31334 NEWT_LIB!$NEWT_LIB$ac_delim
31335 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
31336 PBX_NEWT!$PBX_NEWT$ac_delim
31337 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
31338 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
31339 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
31340 OGG_LIB!$OGG_LIB$ac_delim
31341 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
31342 PBX_OGG!$PBX_OGG$ac_delim
31343 OSPTK_LIB!$OSPTK_LIB$ac_delim
31344 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
31345 PBX_OSPTK!$PBX_OSPTK$ac_delim
31346 OSS_LIB!$OSS_LIB$ac_delim
31347 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
31348 PBX_OSS!$PBX_OSS$ac_delim
31349 POPT_LIB!$POPT_LIB$ac_delim
31350 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
31351 PBX_POPT!$PBX_POPT$ac_delim
31352 PGSQL_LIB!$PGSQL_LIB$ac_delim
31353 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
31354 PBX_PGSQL!$PBX_PGSQL$ac_delim
31355 PRI_LIB!$PRI_LIB$ac_delim
31356 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
31357 PBX_PRI!$PBX_PRI$ac_delim
31358 PWLIB_LIB!$PWLIB_LIB$ac_delim
31359 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
31360 PBX_PWLIB!$PBX_PWLIB$ac_delim
31361 OPENH323_LIB!$OPENH323_LIB$ac_delim
31362 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
31363 PBX_OPENH323!$PBX_OPENH323$ac_delim
31364 QT_LIB!$QT_LIB$ac_delim
31365 QT_INCLUDE!$QT_INCLUDE$ac_delim
31366 PBX_QT!$PBX_QT$ac_delim
31367 RADIUS_LIB!$RADIUS_LIB$ac_delim
31368 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
31369 PBX_RADIUS!$PBX_RADIUS$ac_delim
31370 SPEEX_LIB!$SPEEX_LIB$ac_delim
31371 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
31372 PBX_SPEEX!$PBX_SPEEX$ac_delim
31373 SQLITE_LIB!$SQLITE_LIB$ac_delim
31374 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
31375 PBX_SQLITE!$PBX_SQLITE$ac_delim
31376 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
31377 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
31378 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
31379 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
31380 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
31381 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
31382 FREETDS_LIB!$FREETDS_LIB$ac_delim
31383 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
31384 PBX_FREETDS!$PBX_FREETDS$ac_delim
31385 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
31386 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
31387 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
31388 TINFO_LIB!$TINFO_LIB$ac_delim
31389 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
31390 PBX_TINFO!$PBX_TINFO$ac_delim
31391 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
31392 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
31393 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
31394 VORBIS_LIB!$VORBIS_LIB$ac_delim
31395 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
31396 PBX_VORBIS!$PBX_VORBIS$ac_delim
31397 VPB_LIB!$VPB_LIB$ac_delim
31398 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
31399 PBX_VPB!$PBX_VPB$ac_delim
31400 ZLIB_LIB!$ZLIB_LIB$ac_delim
31401 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
31402 PBX_ZLIB!$PBX_ZLIB$ac_delim
31403 _ACEOF
31405 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31406 break
31407 elif $ac_last_try; then
31408 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31410 { (exit 1); exit 1; }; }
31411 else
31412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31414 done
31416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31417 if test -n "$ac_eof"; then
31418 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31419 ac_eof=`expr $ac_eof + 1`
31422 cat >>$CONFIG_STATUS <<_ACEOF
31423 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31425 _ACEOF
31426 sed '
31427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31428 s/^/s,@/; s/!/@,|#_!!_#|/
31431 s/'"$ac_delim"'$/,g/; t
31432 s/$/\\/; p
31433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31434 ' >>$CONFIG_STATUS <conf$$subs.sed
31435 rm -f conf$$subs.sed
31436 cat >>$CONFIG_STATUS <<_ACEOF
31437 CEOF$ac_eof
31438 _ACEOF
31441 ac_delim='%!_!# '
31442 for ac_last_try in false false false false false :; do
31443 cat >conf$$subs.sed <<_ACEOF
31444 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
31445 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
31446 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
31447 ALLOCA!$ALLOCA$ac_delim
31448 EGREP!$EGREP$ac_delim
31449 LIBOBJS!$LIBOBJS$ac_delim
31450 POW_LIB!$POW_LIB$ac_delim
31451 GC_CFLAGS!$GC_CFLAGS$ac_delim
31452 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
31453 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
31454 KDEINIT!$KDEINIT$ac_delim
31455 KDEDIR!$KDEDIR$ac_delim
31456 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
31457 PG_CONFIG!$PG_CONFIG$ac_delim
31458 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
31459 PWLIBDIR!$PWLIBDIR$ac_delim
31460 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
31461 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
31462 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
31463 OPENH323DIR!$OPENH323DIR$ac_delim
31464 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
31465 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
31466 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
31467 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
31468 QTMOC!$QTMOC$ac_delim
31469 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
31470 PBX_H323!$PBX_H323$ac_delim
31471 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
31472 GTKCONFIG!$GTKCONFIG$ac_delim
31473 PBX_GTK!$PBX_GTK$ac_delim
31474 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
31475 GTK_LIB!$GTK_LIB$ac_delim
31476 CURL!$CURL$ac_delim
31477 LTLIBOBJS!$LTLIBOBJS$ac_delim
31478 _ACEOF
31480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
31481 break
31482 elif $ac_last_try; then
31483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31485 { (exit 1); exit 1; }; }
31486 else
31487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31489 done
31491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31492 if test -n "$ac_eof"; then
31493 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31494 ac_eof=`expr $ac_eof + 1`
31497 cat >>$CONFIG_STATUS <<_ACEOF
31498 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31500 _ACEOF
31501 sed '
31502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31503 s/^/s,@/; s/!/@,|#_!!_#|/
31506 s/'"$ac_delim"'$/,g/; t
31507 s/$/\\/; p
31508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31509 ' >>$CONFIG_STATUS <conf$$subs.sed
31510 rm -f conf$$subs.sed
31511 cat >>$CONFIG_STATUS <<_ACEOF
31512 :end
31513 s/|#_!!_#|//g
31514 CEOF$ac_eof
31515 _ACEOF
31518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31520 # trailing colons and then remove the whole line if VPATH becomes empty
31521 # (actually we leave an empty line to preserve line numbers).
31522 if test "x$srcdir" = x.; then
31523 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31524 s/:*\$(srcdir):*/:/
31525 s/:*\${srcdir}:*/:/
31526 s/:*@srcdir@:*/:/
31527 s/^\([^=]*=[ ]*\):*/\1/
31528 s/:*$//
31529 s/^[^=]*=[ ]*$//
31533 cat >>$CONFIG_STATUS <<\_ACEOF
31534 fi # test -n "$CONFIG_FILES"
31537 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
31539 case $ac_tag in
31540 :[FHLC]) ac_mode=$ac_tag; continue;;
31541 esac
31542 case $ac_mode$ac_tag in
31543 :[FHL]*:*);;
31544 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31545 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31546 { (exit 1); exit 1; }; };;
31547 :[FH]-) ac_tag=-:-;;
31548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31549 esac
31550 ac_save_IFS=$IFS
31551 IFS=:
31552 set x $ac_tag
31553 IFS=$ac_save_IFS
31554 shift
31555 ac_file=$1
31556 shift
31558 case $ac_mode in
31559 :L) ac_source=$1;;
31560 :[FH])
31561 ac_file_inputs=
31562 for ac_f
31564 case $ac_f in
31565 -) ac_f="$tmp/stdin";;
31566 *) # Look for the file first in the build tree, then in the source tree
31567 # (if the path is not absolute). The absolute path cannot be DOS-style,
31568 # because $ac_f cannot contain `:'.
31569 test -f "$ac_f" ||
31570 case $ac_f in
31571 [\\/$]*) false;;
31572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31573 esac ||
31574 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31575 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31576 { (exit 1); exit 1; }; };;
31577 esac
31578 ac_file_inputs="$ac_file_inputs $ac_f"
31579 done
31581 # Let's still pretend it is `configure' which instantiates (i.e., don't
31582 # use $as_me), people would be surprised to read:
31583 # /* config.h. Generated by config.status. */
31584 configure_input="Generated from "`IFS=:
31585 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31586 if test x"$ac_file" != x-; then
31587 configure_input="$ac_file. $configure_input"
31588 { echo "$as_me:$LINENO: creating $ac_file" >&5
31589 echo "$as_me: creating $ac_file" >&6;}
31592 case $ac_tag in
31593 *:-:* | *:-) cat >"$tmp/stdin";;
31594 esac
31596 esac
31598 ac_dir=`$as_dirname -- "$ac_file" ||
31599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31600 X"$ac_file" : 'X\(//\)[^/]' \| \
31601 X"$ac_file" : 'X\(//\)$' \| \
31602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31603 echo X"$ac_file" |
31604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31605 s//\1/
31608 /^X\(\/\/\)[^/].*/{
31609 s//\1/
31612 /^X\(\/\/\)$/{
31613 s//\1/
31616 /^X\(\/\).*/{
31617 s//\1/
31620 s/.*/./; q'`
31621 { as_dir="$ac_dir"
31622 case $as_dir in #(
31623 -*) as_dir=./$as_dir;;
31624 esac
31625 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31626 as_dirs=
31627 while :; do
31628 case $as_dir in #(
31629 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31630 *) as_qdir=$as_dir;;
31631 esac
31632 as_dirs="'$as_qdir' $as_dirs"
31633 as_dir=`$as_dirname -- "$as_dir" ||
31634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31635 X"$as_dir" : 'X\(//\)[^/]' \| \
31636 X"$as_dir" : 'X\(//\)$' \| \
31637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31638 echo X"$as_dir" |
31639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31640 s//\1/
31643 /^X\(\/\/\)[^/].*/{
31644 s//\1/
31647 /^X\(\/\/\)$/{
31648 s//\1/
31651 /^X\(\/\).*/{
31652 s//\1/
31655 s/.*/./; q'`
31656 test -d "$as_dir" && break
31657 done
31658 test -z "$as_dirs" || eval "mkdir $as_dirs"
31659 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31661 { (exit 1); exit 1; }; }; }
31662 ac_builddir=.
31664 case "$ac_dir" in
31665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31668 # A ".." for each directory in $ac_dir_suffix.
31669 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31670 case $ac_top_builddir_sub in
31671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31673 esac ;;
31674 esac
31675 ac_abs_top_builddir=$ac_pwd
31676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31677 # for backward compatibility:
31678 ac_top_builddir=$ac_top_build_prefix
31680 case $srcdir in
31681 .) # We are building in place.
31682 ac_srcdir=.
31683 ac_top_srcdir=$ac_top_builddir_sub
31684 ac_abs_top_srcdir=$ac_pwd ;;
31685 [\\/]* | ?:[\\/]* ) # Absolute name.
31686 ac_srcdir=$srcdir$ac_dir_suffix;
31687 ac_top_srcdir=$srcdir
31688 ac_abs_top_srcdir=$srcdir ;;
31689 *) # Relative name.
31690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31691 ac_top_srcdir=$ac_top_build_prefix$srcdir
31692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31693 esac
31694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31697 case $ac_mode in
31700 # CONFIG_FILE
31703 case $INSTALL in
31704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31705 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31706 esac
31707 _ACEOF
31709 cat >>$CONFIG_STATUS <<\_ACEOF
31710 # If the template does not know about datarootdir, expand it.
31711 # FIXME: This hack should be removed a few years after 2.60.
31712 ac_datarootdir_hack=; ac_datarootdir_seen=
31714 case `sed -n '/datarootdir/ {
31718 /@datadir@/p
31719 /@docdir@/p
31720 /@infodir@/p
31721 /@localedir@/p
31722 /@mandir@/p
31723 ' $ac_file_inputs` in
31724 *datarootdir*) ac_datarootdir_seen=yes;;
31725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31726 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31727 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31728 _ACEOF
31729 cat >>$CONFIG_STATUS <<_ACEOF
31730 ac_datarootdir_hack='
31731 s&@datadir@&$datadir&g
31732 s&@docdir@&$docdir&g
31733 s&@infodir@&$infodir&g
31734 s&@localedir@&$localedir&g
31735 s&@mandir@&$mandir&g
31736 s&\\\${datarootdir}&$datarootdir&g' ;;
31737 esac
31738 _ACEOF
31740 # Neutralize VPATH when `$srcdir' = `.'.
31741 # Shell code in configure.ac might set extrasub.
31742 # FIXME: do we really want to maintain this feature?
31743 cat >>$CONFIG_STATUS <<_ACEOF
31744 sed "$ac_vpsub
31745 $extrasub
31746 _ACEOF
31747 cat >>$CONFIG_STATUS <<\_ACEOF
31749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31750 s&@configure_input@&$configure_input&;t t
31751 s&@top_builddir@&$ac_top_builddir_sub&;t t
31752 s&@srcdir@&$ac_srcdir&;t t
31753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31754 s&@top_srcdir@&$ac_top_srcdir&;t t
31755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31756 s&@builddir@&$ac_builddir&;t t
31757 s&@abs_builddir@&$ac_abs_builddir&;t t
31758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31759 s&@INSTALL@&$ac_INSTALL&;t t
31760 $ac_datarootdir_hack
31761 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31763 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31764 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31766 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31767 which seems to be undefined. Please make sure it is defined." >&5
31768 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31769 which seems to be undefined. Please make sure it is defined." >&2;}
31771 rm -f "$tmp/stdin"
31772 case $ac_file in
31773 -) cat "$tmp/out"; rm -f "$tmp/out";;
31774 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31775 esac
31779 # CONFIG_HEADER
31781 _ACEOF
31783 # Transform confdefs.h into a sed script `conftest.defines', that
31784 # substitutes the proper values into config.h.in to produce config.h.
31785 rm -f conftest.defines conftest.tail
31786 # First, append a space to every undef/define line, to ease matching.
31787 echo 's/$/ /' >conftest.defines
31788 # Then, protect against being on the right side of a sed subst, or in
31789 # an unquoted here document, in config.status. If some macros were
31790 # called several times there might be several #defines for the same
31791 # symbol, which is useless. But do not sort them, since the last
31792 # AC_DEFINE must be honored.
31793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31794 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31795 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31796 # PARAMS is the parameter list in the macro definition--in most cases, it's
31797 # just an empty string.
31798 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31799 ac_dB='\\)[ (].*,\\1define\\2'
31800 ac_dC=' '
31801 ac_dD=' ,'
31803 uniq confdefs.h |
31804 sed -n '
31805 t rset
31806 :rset
31807 s/^[ ]*#[ ]*define[ ][ ]*//
31808 t ok
31811 s/[\\&,]/\\&/g
31812 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31813 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31814 ' >>conftest.defines
31816 # Remove the space that was appended to ease matching.
31817 # Then replace #undef with comments. This is necessary, for
31818 # example, in the case of _POSIX_SOURCE, which is predefined and required
31819 # on some systems where configure will not decide to define it.
31820 # (The regexp can be short, since the line contains either #define or #undef.)
31821 echo 's/ $//
31822 s,^[ #]*u.*,/* & */,' >>conftest.defines
31824 # Break up conftest.defines:
31825 ac_max_sed_lines=50
31827 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31828 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31829 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31830 # et cetera.
31831 ac_in='$ac_file_inputs'
31832 ac_out='"$tmp/out1"'
31833 ac_nxt='"$tmp/out2"'
31835 while :
31837 # Write a here document:
31838 cat >>$CONFIG_STATUS <<_ACEOF
31839 # First, check the format of the line:
31840 cat >"\$tmp/defines.sed" <<\\CEOF
31841 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31842 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31844 :def
31845 _ACEOF
31846 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31847 echo 'CEOF
31848 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31849 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31850 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31851 grep . conftest.tail >/dev/null || break
31852 rm -f conftest.defines
31853 mv conftest.tail conftest.defines
31854 done
31855 rm -f conftest.defines conftest.tail
31857 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31858 cat >>$CONFIG_STATUS <<\_ACEOF
31859 if test x"$ac_file" != x-; then
31860 echo "/* $configure_input */" >"$tmp/config.h"
31861 cat "$ac_result" >>"$tmp/config.h"
31862 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31863 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31864 echo "$as_me: $ac_file is unchanged" >&6;}
31865 else
31866 rm -f $ac_file
31867 mv "$tmp/config.h" $ac_file
31869 else
31870 echo "/* $configure_input */"
31871 cat "$ac_result"
31873 rm -f "$tmp/out12"
31877 esac
31879 done # for ac_tag
31882 { (exit 0); exit 0; }
31883 _ACEOF
31884 chmod +x $CONFIG_STATUS
31885 ac_clean_files=$ac_clean_files_save
31888 # configure is writing to config.log, and then calls config.status.
31889 # config.status does its own redirection, appending to config.log.
31890 # Unfortunately, on DOS this fails, as config.log is still kept open
31891 # by configure, so config.status won't be able to write to it; its
31892 # output is simply discarded. So we exec the FD to /dev/null,
31893 # effectively closing config.log, so it can be properly (re)opened and
31894 # appended to by config.status. When coming back to configure, we
31895 # need to make the FD available again.
31896 if test "$no_create" != yes; then
31897 ac_cs_success=:
31898 ac_config_status_args=
31899 test "$silent" = yes &&
31900 ac_config_status_args="$ac_config_status_args --quiet"
31901 exec 5>/dev/null
31902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31903 exec 5>>config.log
31904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31905 # would make configure fail if this is the last instruction.
31906 $ac_cs_success || { (exit 1); exit 1; }
31910 if test "x${silent}" != "xyes" ; then
31911 echo
31912 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
31913 echo " .\$7\$7.. .7\$\$7:. "
31914 echo " .\$\$:. ,\$7.7 "
31915 echo " .\$7. 7\$\$\$\$ .\$\$77 "
31916 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
31917 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
31918 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
31919 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
31920 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
31921 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
31922 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
31923 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
31924 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
31925 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
31926 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
31927 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
31928 echo " \$\$\$\$\$ \$\$\$ "
31929 echo " \$\$\$\$7. \$\$ (TM) "
31930 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
31931 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
31932 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
31933 echo
31936 { echo "$as_me:$LINENO: Package configured for: " >&5
31937 echo "$as_me: Package configured for: " >&6;}
31938 { echo "$as_me:$LINENO: OS type : $host_os" >&5
31939 echo "$as_me: OS type : $host_os" >&6;}
31940 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
31941 echo "$as_me: Host CPU : $host_cpu" >&6;}
31942 if test "${cross_compiling}" = "yes"; then
31943 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
31944 echo "$as_me: Cross Compilation = YES" >&6;}