simple commit to test CIA integration
[asterisk-bristuff.git] / configure
blobc93b02ebaa87d4542a8efec3838814085a7a768d
1 #! /bin/sh
2 # From configure.ac Revision: 48960 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # "Asterisk"
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME=
577 PACKAGE_TARNAME=
578 PACKAGE_VERSION=
579 PACKAGE_STRING=
580 PACKAGE_BUGREPORT=
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 # include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 # include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
620 ac_header_list=
621 ac_func_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 UNAME
687 PBX_OSREV
690 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 GNU_LD
703 FIND
704 COMPRESS
705 BASENAME
707 DIRNAME
710 STRIP
711 WGET
712 FETCH
713 DOWNLOAD
714 AST_DEVMODE
715 ALSA_LIB
716 ALSA_INCLUDE
717 PBX_ALSA
718 CURL_LIB
719 CURL_INCLUDE
720 PBX_CURL
721 CURSES_LIB
722 CURSES_INCLUDE
723 PBX_CURSES
724 GNUTLS_LIB
725 GNUTLS_INCLUDE
726 PBX_GNUTLS
727 GSM_LIB
728 GSM_INCLUDE
729 PBX_GSM
730 IKSEMEL_LIB
731 IKSEMEL_INCLUDE
732 PBX_IKSEMEL
733 IMAP_TK_LIB
734 IMAP_TK_INCLUDE
735 PBX_IMAP_TK
736 ISDNNET_LIB
737 ISDNNET_INCLUDE
738 PBX_ISDNNET
739 KDE_LIB
740 KDE_INCLUDE
741 PBX_KDE
742 MISDN_LIB
743 MISDN_INCLUDE
744 PBX_MISDN
745 NBS_LIB
746 NBS_INCLUDE
747 PBX_NBS
748 NCURSES_LIB
749 NCURSES_INCLUDE
750 PBX_NCURSES
751 NETSNMP_LIB
752 NETSNMP_INCLUDE
753 PBX_NETSNMP
754 NEWT_LIB
755 NEWT_INCLUDE
756 PBX_NEWT
757 UNIXODBC_LIB
758 UNIXODBC_INCLUDE
759 PBX_UNIXODBC
760 OGG_LIB
761 OGG_INCLUDE
762 PBX_OGG
763 OSPTK_LIB
764 OSPTK_INCLUDE
765 PBX_OSPTK
766 OSS_LIB
767 OSS_INCLUDE
768 PBX_OSS
769 POPT_LIB
770 POPT_INCLUDE
771 PBX_POPT
772 PGSQL_LIB
773 PGSQL_INCLUDE
774 PBX_PGSQL
775 PRI_LIB
776 PRI_INCLUDE
777 PBX_PRI
778 PWLIB_LIB
779 PWLIB_INCLUDE
780 PBX_PWLIB
781 OPENH323_LIB
782 OPENH323_INCLUDE
783 PBX_OPENH323
784 QT_LIB
785 QT_INCLUDE
786 PBX_QT
787 RADIUS_LIB
788 RADIUS_INCLUDE
789 PBX_RADIUS
790 SPEEX_LIB
791 SPEEX_INCLUDE
792 PBX_SPEEX
793 SQLITE_LIB
794 SQLITE_INCLUDE
795 PBX_SQLITE
796 SUPPSERV_LIB
797 SUPPSERV_INCLUDE
798 PBX_SUPPSERV
799 OPENSSL_LIB
800 OPENSSL_INCLUDE
801 PBX_OPENSSL
802 FREETDS_LIB
803 FREETDS_INCLUDE
804 PBX_FREETDS
805 TERMCAP_LIB
806 TERMCAP_INCLUDE
807 PBX_TERMCAP
808 TINFO_LIB
809 TINFO_INCLUDE
810 PBX_TINFO
811 TONEZONE_LIB
812 TONEZONE_INCLUDE
813 PBX_TONEZONE
814 VORBIS_LIB
815 VORBIS_INCLUDE
816 PBX_VORBIS
817 VPB_LIB
818 VPB_INCLUDE
819 PBX_VPB
820 ZLIB_LIB
821 ZLIB_INCLUDE
822 PBX_ZLIB
823 ZAPTEL_LIB
824 ZAPTEL_INCLUDE
825 PBX_ZAPTEL
826 ALLOCA
827 LIBOBJS
828 POW_LIB
829 GC_CFLAGS
830 GC_LDFLAGS
831 GSM_INTERNAL
832 KDEINIT
833 KDEDIR
834 NETSNMP_CONFIG
835 PG_CONFIG
836 PTLIB_CONFIG
837 PWLIBDIR
838 PWLIB_INCDIR
839 PWLIB_LIBDIR
840 PWLIB_PLATFORM
841 OPENH323DIR
842 OPENH323_INCDIR
843 OPENH323_LIBDIR
844 OPENH323_SUFFIX
845 OPENH323_BUILD
846 QTMOC
847 EDITLINE_LIB
848 PBX_H323
849 PBX_IXJUSER
850 GTKCONFIG
851 PBX_GTK
852 GTK_INCLUDE
853 GTK_LIB
854 CURL
855 LTLIBOBJS'
856 ac_subst_files=''
857 ac_precious_vars='build_alias
858 host_alias
859 target_alias
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
867 CXXFLAGS
869 CXXCPP'
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
918 ac_prev=
919 ac_dashdash=
920 for ac_option
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
929 case $ac_option in
930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *) ac_optarg=yes ;;
932 esac
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
938 ac_dashdash=yes ;;
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
957 --config-cache | -C)
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_$ac_feature=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1313 echo X"$0" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1322 /^X\(\/\/\)$/{
1323 s//\1/
1326 /^X\(\/\).*/{
1327 s//\1/
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1335 else
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1427 cat <<\_ACEOF
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-dev-mode Turn on developer mode
1443 --disable-largefile omit support for large files
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1450 --with-curl=PATH use cURL files in PATH
1451 --with-curses=PATH use curses files in PATH
1452 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1453 PATH
1454 --with-gsm=PATH use GSM files in PATH , or 'internal'
1455 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1456 --with-imap=PATH use UW IMAP Toolkit files in PATH
1457 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1458 --with-kde=PATH use KDE files in PATH
1459 --with-misdn=PATH use mISDN User Library files in PATH
1460 --with-nbs=PATH use Network Broadcast Sound files in PATH
1461 --with-ncurses=PATH use ncurses files in PATH
1462 --with-netsnmp=PATH use Net-SNMP files in PATH
1463 --with-newt=PATH use newt files in PATH
1464 --with-odbc=PATH use unixODBC files in PATH
1465 --with-ogg=PATH use OGG files in PATH
1466 --with-osptk=PATH use OSP Toolkit files in PATH
1467 --with-oss=PATH use Open Sound System files in PATH
1468 --with-popt=PATH use popt files in PATH
1469 --with-postgres=PATH use PostgreSQL files in PATH
1470 --with-pri=PATH use ISDN PRI files in PATH
1471 --with-pwlib=PATH use PWlib files in PATH
1472 --with-h323=PATH use OpenH323 files in PATH
1473 --with-qt=PATH use Qt files in PATH
1474 --with-radius=PATH use Radius Client files in PATH
1475 --with-speex=PATH use Speex files in PATH
1476 --with-sqlite=PATH use SQLite files in PATH
1477 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1478 --with-ssl=PATH use OpenSSL files in PATH
1479 --with-tds=PATH use FreeTDS files in PATH
1480 --with-termcap=PATH use Termcap files in PATH
1481 --with-tinfo=PATH use Term Info files in PATH
1482 --with-tonezone=PATH use tonezone files in PATH
1483 --with-vorbis=PATH use Vorbis files in PATH
1484 --with-vpb=PATH use Voicetronix API files in PATH
1485 --with-z=PATH use zlib files in PATH
1486 --with-zaptel=PATH use Zaptel files in PATH
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CPP C preprocessor
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 _ACEOF
1505 ac_status=$?
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1512 ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.61
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 "Asterisk"
1573 _ACEOF
1574 exit
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1583 $ $0 $@
1585 _ACEOF
1586 exec 5>>config.log
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 _ASUNAME
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1621 } >&5
1623 cat >&5 <<_ACEOF
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1630 _ACEOF
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1644 for ac_arg
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 esac
1676 done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1689 echo
1691 cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
1713 (set) 2>&1 |
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1716 sed -n \
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 esac |
1724 sort
1726 echo
1728 cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768 echo
1769 cat confdefs.h
1770 echo
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 exit $exit_status
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1825 shift
1826 for ac_site_file
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1834 done
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1845 esac
1847 else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1853 ac_header_list="$ac_header_list sys/time.h"
1854 ac_header_list="$ac_header_list unistd.h"
1855 ac_func_list="$ac_func_list alarm"
1856 ac_header_list="$ac_header_list utime.h"
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # cross-compile macros
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1946 done
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1993 esac
1994 build=$ac_cv_build
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_build
1997 shift
1998 build_cpu=$1
1999 build_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 build_os=$*
2004 IFS=$ac_save_IFS
2005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2015 else
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2025 case $ac_cv_host in
2026 *-*-*) ;;
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2030 esac
2031 host=$ac_cv_host
2032 ac_save_IFS=$IFS; IFS='-'
2033 set x $ac_cv_host
2034 shift
2035 host_cpu=$1
2036 host_vendor=$2
2037 shift; shift
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2040 host_os=$*
2041 IFS=$ac_save_IFS
2042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2046 # check existence of the package
2049 # specify output header file
2050 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2057 cat >>confdefs.h <<\_ACEOF
2058 #define _GNU_SOURCE 1
2059 _ACEOF
2062 ac_ext=c
2063 ac_cpp='$CPP $CPPFLAGS'
2064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2089 done
2090 done
2091 IFS=$as_save_IFS
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$ac_cv_prog_CC"; then
2107 ac_ct_CC=$CC
2108 # Extract the first word of "gcc", so it can be a program name with args.
2109 set dummy gcc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 if test -n "$ac_ct_CC"; then
2116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_ac_ct_CC="gcc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2131 IFS=$as_save_IFS
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6; }
2139 else
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2144 if test "x$ac_ct_CC" = x; then
2145 CC=""
2146 else
2147 case $cross_compiling:$ac_tool_warned in
2148 yes:)
2149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet. If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&5
2152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2155 ac_tool_warned=yes ;;
2156 esac
2157 CC=$ac_ct_CC
2159 else
2160 CC="$ac_cv_prog_CC"
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}cc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_CC="${ac_tool_prefix}cc"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2186 done
2187 done
2188 IFS=$as_save_IFS
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194 { echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6; }
2196 else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2204 if test -z "$CC"; then
2205 # Extract the first word of "cc", so it can be a program name with args.
2206 set dummy cc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 ac_prog_rejected=no
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2225 continue
2227 ac_cv_prog_CC="cc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2231 done
2232 done
2233 IFS=$as_save_IFS
2235 if test $ac_prog_rejected = yes; then
2236 # We found a bogon in the path, so make sure we never use it.
2237 set dummy $ac_cv_prog_CC
2238 shift
2239 if test $# != 0; then
2240 # We chose a different compiler from the bogus one.
2241 # However, it has the same basename, so the bogon will be chosen
2242 # first if we set CC to just the basename; use the full file name.
2243 shift
2244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2253 else
2254 { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2260 if test -z "$CC"; then
2261 if test -n "$ac_tool_prefix"; then
2262 for ac_prog in cl.exe
2264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 if test -n "$CC"; then
2272 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2285 done
2286 done
2287 IFS=$as_save_IFS
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293 { echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6; }
2295 else
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2301 test -n "$CC" && break
2302 done
2304 if test -z "$CC"; then
2305 ac_ct_CC=$CC
2306 for ac_prog in cl.exe
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6; }
2339 else
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2345 test -n "$ac_ct_CC" && break
2346 done
2348 if test "x$ac_ct_CC" = x; then
2349 CC=""
2350 else
2351 case $cross_compiling:$ac_tool_warned in
2352 yes:)
2353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&5
2356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2359 ac_tool_warned=yes ;;
2360 esac
2361 CC=$ac_ct_CC
2368 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2369 See \`config.log' for more details." >&5
2370 echo "$as_me: error: no acceptable C compiler found in \$PATH
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2374 # Provide some information about the compiler.
2375 echo "$as_me:$LINENO: checking for C compiler version" >&5
2376 ac_compiler=`set X $ac_compile; echo $2`
2377 { (ac_try="$ac_compiler --version >&5"
2378 case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compiler --version >&5") 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2387 { (ac_try="$ac_compiler -v >&5"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compiler -v >&5") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (ac_try="$ac_compiler -V >&5"
2398 case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compiler -V >&5") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2420 return 0;
2422 _ACEOF
2423 ac_clean_files_save=$ac_clean_files
2424 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2425 # Try to create an executable without -o first, disregard a.out.
2426 # It will help us diagnose broken compilers, and finding out an intuition
2427 # of exeext.
2428 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2429 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 # List of possible output files, starting from the most likely.
2433 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2434 # only as a last resort. b.out is created by i960 compilers.
2435 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2437 # The IRIX 6 linker writes into existing files which may not be
2438 # executable, retaining their permissions. Remove them first so a
2439 # subsequent execution test works.
2440 ac_rmfiles=
2441 for ac_file in $ac_files
2443 case $ac_file in
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2445 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2446 esac
2447 done
2448 rm -f $ac_rmfiles
2450 if { (ac_try="$ac_link_default"
2451 case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_link_default") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2463 # so that the user can short-circuit this test for compilers unknown to
2464 # Autoconf.
2465 for ac_file in $ac_files ''
2467 test -f "$ac_file" || continue
2468 case $ac_file in
2469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2471 [ab].out )
2472 # We found the default executable, but exeext='' is most
2473 # certainly right.
2474 break;;
2475 *.* )
2476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2477 then :; else
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480 # We set ac_cv_exeext here because the later test for it is not
2481 # safe: cross compilers may not add the suffix if given an `-o'
2482 # argument, so we may need to know it at that point already.
2483 # Even if this section looks crufty: it has the advantage of
2484 # actually working.
2485 break;;
2487 break;;
2488 esac
2489 done
2490 test "$ac_cv_exeext" = no && ac_cv_exeext=
2492 else
2493 ac_file=''
2496 { echo "$as_me:$LINENO: result: $ac_file" >&5
2497 echo "${ECHO_T}$ac_file" >&6; }
2498 if test -z "$ac_file"; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: C compiler cannot create executables
2505 See \`config.log' for more details." >&2;}
2506 { (exit 77); exit 77; }; }
2509 ac_exeext=$ac_cv_exeext
2511 # Check that the compiler produces executables we can run. If not, either
2512 # the compiler is broken, or we cross compile.
2513 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2514 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2515 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2516 # If not cross compiling, check that we can run a simple program.
2517 if test "$cross_compiling" != yes; then
2518 if { ac_try='./$ac_file'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 cross_compiling=no
2529 else
2530 if test "$cross_compiling" = maybe; then
2531 cross_compiling=yes
2532 else
2533 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: cannot run C compiled programs.
2537 If you meant to cross compile, use \`--host'.
2538 See \`config.log' for more details." >&2;}
2539 { (exit 1); exit 1; }; }
2543 { echo "$as_me:$LINENO: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6; }
2546 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2547 ac_clean_files=$ac_clean_files_save
2548 # Check that the compiler produces executables we can run. If not, either
2549 # the compiler is broken, or we cross compile.
2550 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2551 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2552 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2553 echo "${ECHO_T}$cross_compiling" >&6; }
2555 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2556 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2557 if { (ac_try="$ac_link"
2558 case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_link") 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2569 # work properly (i.e., refer to `conftest.exe'), while it won't with
2570 # `rm'.
2571 for ac_file in conftest.exe conftest conftest.*; do
2572 test -f "$ac_file" || continue
2573 case $ac_file in
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2576 break;;
2577 * ) break;;
2578 esac
2579 done
2580 else
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest$ac_cv_exeext
2589 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2594 ac_exeext=$EXEEXT
2595 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2597 if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2608 main ()
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.o conftest.obj
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 for ac_file in conftest.o conftest.obj conftest.*; do
2627 test -f "$ac_file" || continue;
2628 case $ac_file in
2629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2630 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2631 break;;
2632 esac
2633 done
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2647 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2648 echo "${ECHO_T}$ac_cv_objext" >&6; }
2649 OBJEXT=$ac_cv_objext
2650 ac_objext=$OBJEXT
2651 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2652 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2653 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h. */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 main ()
2666 #ifndef __GNUC__
2667 choke me
2668 #endif
2671 return 0;
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (ac_try="$ac_compile"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compile") 2>conftest.er1
2682 ac_status=$?
2683 grep -v '^ *+' conftest.er1 >conftest.err
2684 rm -f conftest.er1
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } && {
2688 test -z "$ac_c_werror_flag" ||
2689 test ! -s conftest.err
2690 } && test -s conftest.$ac_objext; then
2691 ac_compiler_gnu=yes
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2696 ac_compiler_gnu=no
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2703 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2704 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2705 GCC=`test $ac_compiler_gnu = yes && echo yes`
2706 ac_test_CFLAGS=${CFLAGS+set}
2707 ac_save_CFLAGS=$CFLAGS
2708 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2709 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_cc_g+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713 ac_save_c_werror_flag=$ac_c_werror_flag
2714 ac_c_werror_flag=yes
2715 ac_cv_prog_cc_g=no
2716 CFLAGS="-g"
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h. */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2725 main ()
2729 return 0;
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2749 ac_cv_prog_cc_g=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 CFLAGS=""
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 main ()
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 ac_c_werror_flag=$ac_save_c_werror_flag
2793 CFLAGS="-g"
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2802 main ()
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2826 ac_cv_prog_cc_g=yes
2827 else
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_c_werror_flag=$ac_save_c_werror_flag
2843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2845 if test "$ac_test_CFLAGS" = set; then
2846 CFLAGS=$ac_save_CFLAGS
2847 elif test $ac_cv_prog_cc_g = yes; then
2848 if test "$GCC" = yes; then
2849 CFLAGS="-g -O2"
2850 else
2851 CFLAGS="-g"
2853 else
2854 if test "$GCC" = yes; then
2855 CFLAGS="-O2"
2856 else
2857 CFLAGS=
2860 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2861 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_cc_c89+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 ac_cv_prog_cc_c89=no
2866 ac_save_CC=$CC
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2873 #include <stdarg.h>
2874 #include <stdio.h>
2875 #include <sys/types.h>
2876 #include <sys/stat.h>
2877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2878 struct buf { int x; };
2879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2880 static char *e (p, i)
2881 char **p;
2882 int i;
2884 return p[i];
2886 static char *f (char * (*g) (char **, int), char **p, ...)
2888 char *s;
2889 va_list v;
2890 va_start (v,p);
2891 s = g (p, va_arg (v,int));
2892 va_end (v);
2893 return s;
2896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2897 function prototypes and stuff, but not '\xHH' hex character constants.
2898 These don't provoke an error unfortunately, instead are silently treated
2899 as 'x'. The following induces an error, until -std is added to get
2900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2901 array size at least. It's necessary to write '\x00'==0 to get something
2902 that's true only with -std. */
2903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2906 inside strings and character constants. */
2907 #define FOO(x) 'x'
2908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2910 int test (int i, double x);
2911 struct s1 {int (*f) (int a);};
2912 struct s2 {int (*f) (double a);};
2913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2914 int argc;
2915 char **argv;
2917 main ()
2919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2921 return 0;
2923 _ACEOF
2924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2927 CC="$ac_save_CC $ac_arg"
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 ac_cv_prog_cc_c89=$ac_arg
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f core conftest.err conftest.$ac_objext
2954 test "x$ac_cv_prog_cc_c89" != "xno" && break
2955 done
2956 rm -f conftest.$ac_ext
2957 CC=$ac_save_CC
2960 # AC_CACHE_VAL
2961 case "x$ac_cv_prog_cc_c89" in
2963 { echo "$as_me:$LINENO: result: none needed" >&5
2964 echo "${ECHO_T}none needed" >&6; } ;;
2965 xno)
2966 { echo "$as_me:$LINENO: result: unsupported" >&5
2967 echo "${ECHO_T}unsupported" >&6; } ;;
2969 CC="$CC $ac_cv_prog_cc_c89"
2970 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2971 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2972 esac
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2991 CPP=
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3000 ac_preproc_ok=false
3001 for ac_c_preproc_warn_flag in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #ifdef __STDC__
3016 # include <limits.h>
3017 #else
3018 # include <assert.h>
3019 #endif
3020 Syntax error
3021 _ACEOF
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 }; then
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Broken: fails on valid input.
3044 continue
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether nonexistent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3058 _ACEOF
3059 if { (ac_try="$ac_cpp conftest.$ac_ext"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null && {
3072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 }; then
3075 # Broken: success on invalid input.
3076 continue
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 # Passes both tests.
3082 ac_preproc_ok=:
3083 break
3086 rm -f conftest.err conftest.$ac_ext
3088 done
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.$ac_ext
3091 if $ac_preproc_ok; then
3092 break
3095 done
3096 ac_cv_prog_CPP=$CPP
3099 CPP=$ac_cv_prog_CPP
3100 else
3101 ac_cv_prog_CPP=$CPP
3103 { echo "$as_me:$LINENO: result: $CPP" >&5
3104 echo "${ECHO_T}$CPP" >&6; }
3105 ac_preproc_ok=false
3106 for ac_c_preproc_warn_flag in '' yes
3108 # Use a header file that comes with gcc, so configuring glibc
3109 # with a fresh cross-compiler works.
3110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3111 # <limits.h> exists even on freestanding compilers.
3112 # On the NeXT, cc -E runs the code through the compiler's parser,
3113 # not just through cpp. "Syntax error" is here to catch this case.
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #ifdef __STDC__
3121 # include <limits.h>
3122 #else
3123 # include <assert.h>
3124 #endif
3125 Syntax error
3126 _ACEOF
3127 if { (ac_try="$ac_cpp conftest.$ac_ext"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 }; then
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Broken: fails on valid input.
3149 continue
3152 rm -f conftest.err conftest.$ac_ext
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <ac_nonexistent.h>
3163 _ACEOF
3164 if { (ac_try="$ac_cpp conftest.$ac_ext"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null && {
3177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 }; then
3180 # Broken: success on invalid input.
3181 continue
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3191 rm -f conftest.err conftest.$ac_ext
3193 done
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.err conftest.$ac_ext
3196 if $ac_preproc_ok; then
3198 else
3199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3214 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3215 if test "${ac_cv_path_GREP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 # Extract the first word of "grep ggrep" to use in msg output
3219 if test -z "$GREP"; then
3220 set dummy grep ggrep; ac_prog_name=$2
3221 if test "${ac_cv_path_GREP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 ac_path_GREP_found=false
3225 # Loop through the user's path and test for each of PROGNAME-LIST
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_prog in grep ggrep; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3235 # Check for GNU ac_path_GREP and select it if it is found.
3236 # Check for GNU $ac_path_GREP
3237 case `"$ac_path_GREP" --version 2>&1` in
3238 *GNU*)
3239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3241 ac_count=0
3242 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3243 while :
3245 cat "conftest.in" "conftest.in" >"conftest.tmp"
3246 mv "conftest.tmp" "conftest.in"
3247 cp "conftest.in" "conftest.nl"
3248 echo 'GREP' >> "conftest.nl"
3249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3251 ac_count=`expr $ac_count + 1`
3252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3253 # Best one so far, save it but keep looking for a better one
3254 ac_cv_path_GREP="$ac_path_GREP"
3255 ac_path_GREP_max=$ac_count
3257 # 10*(2^10) chars as input seems more than enough
3258 test $ac_count -gt 10 && break
3259 done
3260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3261 esac
3264 $ac_path_GREP_found && break 3
3265 done
3266 done
3268 done
3269 IFS=$as_save_IFS
3274 GREP="$ac_cv_path_GREP"
3275 if test -z "$GREP"; then
3276 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3277 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3278 { (exit 1); exit 1; }; }
3281 else
3282 ac_cv_path_GREP=$GREP
3287 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3289 GREP="$ac_cv_path_GREP"
3292 { echo "$as_me:$LINENO: checking for egrep" >&5
3293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_EGREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3298 then ac_cv_path_EGREP="$GREP -E"
3299 else
3300 # Extract the first word of "egrep" to use in msg output
3301 if test -z "$EGREP"; then
3302 set dummy egrep; ac_prog_name=$2
3303 if test "${ac_cv_path_EGREP+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 ac_path_EGREP_found=false
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_prog in egrep; do
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3317 # Check for GNU ac_path_EGREP and select it if it is found.
3318 # Check for GNU $ac_path_EGREP
3319 case `"$ac_path_EGREP" --version 2>&1` in
3320 *GNU*)
3321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3323 ac_count=0
3324 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3325 while :
3327 cat "conftest.in" "conftest.in" >"conftest.tmp"
3328 mv "conftest.tmp" "conftest.in"
3329 cp "conftest.in" "conftest.nl"
3330 echo 'EGREP' >> "conftest.nl"
3331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3333 ac_count=`expr $ac_count + 1`
3334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3335 # Best one so far, save it but keep looking for a better one
3336 ac_cv_path_EGREP="$ac_path_EGREP"
3337 ac_path_EGREP_max=$ac_count
3339 # 10*(2^10) chars as input seems more than enough
3340 test $ac_count -gt 10 && break
3341 done
3342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3343 esac
3346 $ac_path_EGREP_found && break 3
3347 done
3348 done
3350 done
3351 IFS=$as_save_IFS
3356 EGREP="$ac_cv_path_EGREP"
3357 if test -z "$EGREP"; then
3358 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3363 else
3364 ac_cv_path_EGREP=$EGREP
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3372 EGREP="$ac_cv_path_EGREP"
3376 { echo "$as_me:$LINENO: checking for AIX" >&5
3377 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #ifdef _AIX
3386 #endif
3388 _ACEOF
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390 $EGREP "yes" >/dev/null 2>&1; then
3391 { echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6; }
3393 cat >>confdefs.h <<\_ACEOF
3394 #define _ALL_SOURCE 1
3395 _ACEOF
3397 else
3398 { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3401 rm -f conftest*
3404 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3406 if test "${ac_cv_header_stdc+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <stdlib.h>
3416 #include <stdarg.h>
3417 #include <string.h>
3418 #include <float.h>
3421 main ()
3425 return 0;
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_header_stdc=yes
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_cv_header_stdc=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 if test $ac_cv_header_stdc = yes; then
3456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <string.h>
3465 _ACEOF
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 $EGREP "memchr" >/dev/null 2>&1; then
3469 else
3470 ac_cv_header_stdc=no
3472 rm -f conftest*
3476 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <stdlib.h>
3486 _ACEOF
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488 $EGREP "free" >/dev/null 2>&1; then
3490 else
3491 ac_cv_header_stdc=no
3493 rm -f conftest*
3497 if test $ac_cv_header_stdc = yes; then
3498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3499 if test "$cross_compiling" = yes; then
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ctype.h>
3509 #include <stdlib.h>
3510 #if ((' ' & 0x0FF) == 0x020)
3511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3513 #else
3514 # define ISLOWER(c) \
3515 (('a' <= (c) && (c) <= 'i') \
3516 || ('j' <= (c) && (c) <= 'r') \
3517 || ('s' <= (c) && (c) <= 'z'))
3518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3519 #endif
3521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3523 main ()
3525 int i;
3526 for (i = 0; i < 256; i++)
3527 if (XOR (islower (i), ISLOWER (i))
3528 || toupper (i) != TOUPPER (i))
3529 return 2;
3530 return 0;
3532 _ACEOF
3533 rm -f conftest$ac_exeext
3534 if { (ac_try="$ac_link"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_link") 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3544 { (case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_try") 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3554 else
3555 echo "$as_me: program exited with status $ac_status" >&5
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ( exit $ac_status )
3560 ac_cv_header_stdc=no
3562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3570 if test $ac_cv_header_stdc = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3574 _ACEOF
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 #include <$ac_header>
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 eval "$as_ac_Header=yes"
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 eval "$as_ac_Header=no"
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_res=`eval echo '${'$as_ac_Header'}'`
3635 { echo "$as_me:$LINENO: result: $ac_res" >&5
3636 echo "${ECHO_T}$ac_res" >&6; }
3637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3638 cat >>confdefs.h <<_ACEOF
3639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3640 _ACEOF
3644 done
3647 if test "${ac_cv_header_minix_config_h+set}" = set; then
3648 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3649 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3650 if test "${ac_cv_header_minix_config_h+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3654 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3655 else
3656 # Is the header compilable?
3657 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3658 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3666 #include <minix/config.h>
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_header_compiler=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_compiler=no
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3695 echo "${ECHO_T}$ac_header_compiler" >&6; }
3697 # Is the header present?
3698 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3699 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <minix/config.h>
3707 _ACEOF
3708 if { (ac_try="$ac_cpp conftest.$ac_ext"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null && {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 }; then
3724 ac_header_preproc=yes
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 ac_header_preproc=no
3732 rm -f conftest.err conftest.$ac_ext
3733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3734 echo "${ECHO_T}$ac_header_preproc" >&6; }
3736 # So? What about this header?
3737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3738 yes:no: )
3739 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3740 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3742 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3743 ac_header_preproc=yes
3745 no:yes:* )
3746 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3747 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3749 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3751 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3753 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3757 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3760 esac
3761 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3762 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3763 if test "${ac_cv_header_minix_config_h+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 ac_cv_header_minix_config_h=$ac_header_preproc
3768 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3769 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3772 if test $ac_cv_header_minix_config_h = yes; then
3773 MINIX=yes
3774 else
3775 MINIX=
3779 if test "$MINIX" = yes; then
3781 cat >>confdefs.h <<\_ACEOF
3782 #define _POSIX_SOURCE 1
3783 _ACEOF
3786 cat >>confdefs.h <<\_ACEOF
3787 #define _POSIX_1_SOURCE 2
3788 _ACEOF
3791 cat >>confdefs.h <<\_ACEOF
3792 #define _MINIX 1
3793 _ACEOF
3807 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3808 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 # define __EXTENSIONS__ 1
3820 $ac_includes_default
3822 main ()
3826 return 0;
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (ac_try="$ac_compile"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_compile") 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest.$ac_objext; then
3846 ac_cv_safe_to_define___extensions__=yes
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_safe_to_define___extensions__=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3857 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
3859 cat >>confdefs.h <<\_ACEOF
3860 #define __EXTENSIONS__ 1
3861 _ACEOF
3863 cat >>confdefs.h <<\_ACEOF
3864 #define _POSIX_PTHREAD_SEMANTICS 1
3865 _ACEOF
3867 cat >>confdefs.h <<\_ACEOF
3868 #define _TANDEM_SOURCE 1
3869 _ACEOF
3873 case "${host_os}" in
3874 freebsd*)
3875 ac_default_prefix=/usr/local
3876 CPPFLAGS=-I/usr/local/include
3877 LDFLAGS=-L/usr/local/lib
3880 ac_default_prefix=/usr
3881 if test ${sysconfdir} = '${prefix}/etc'; then
3882 sysconfdir=/etc
3884 if test ${mandir} = '${prefix}/man'; then
3885 mandir=/usr/share/man
3888 esac
3890 if test ${localstatedir} = '${prefix}/var'; then
3891 localstatedir=/var
3894 BUILD_PLATFORM=${build}
3895 BUILD_CPU=${build_cpu}
3896 BUILD_VENDOR=${build_vendor}
3897 BUILD_OS=${build_os}
3904 HOST_PLATFORM=${host}
3905 HOST_CPU=${host_cpu}
3906 HOST_VENDOR=${host_vendor}
3907 HOST_OS=${host_os}
3914 case "${host_os}" in
3915 freebsd*)
3916 OSARCH=FreeBSD
3918 netbsd*)
3919 OSARCH=NetBSD
3921 openbsd*)
3922 OSARCH=OpenBSD
3924 solaris*)
3925 OSARCH=SunOS
3928 OSARCH=${HOST_OS}
3930 esac
3934 # check for uname
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}uname; ac_word=$2
3938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_UNAME+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 case $UNAME in
3944 [\\/]* | ?:[\\/]*)
3945 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3964 esac
3966 UNAME=$ac_cv_path_UNAME
3967 if test -n "$UNAME"; then
3968 { echo "$as_me:$LINENO: result: $UNAME" >&5
3969 echo "${ECHO_T}$UNAME" >&6; }
3970 else
3971 { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3977 if test -z "$ac_cv_path_UNAME"; then
3978 ac_pt_UNAME=$UNAME
3979 # Extract the first word of "uname", so it can be a program name with args.
3980 set dummy uname; ac_word=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 case $ac_pt_UNAME in
3987 [\\/]* | ?:[\\/]*)
3988 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4002 done
4003 done
4004 IFS=$as_save_IFS
4007 esac
4009 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4010 if test -n "$ac_pt_UNAME"; then
4011 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4012 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4013 else
4014 { echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6; }
4018 if test "x$ac_pt_UNAME" = x; then
4019 UNAME="No"
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4024 whose name does not start with the host triplet. If you think this
4025 configuration is useful to you, please write to autoconf@gnu.org." >&5
4026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4027 whose name does not start with the host triplet. If you think this
4028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 UNAME=$ac_pt_UNAME
4033 else
4034 UNAME="$ac_cv_path_UNAME"
4037 if test ! x"${UNAME}" = xNo; then
4038 PBX_OSREV=$(${UNAME} -r)
4048 # cross-compile checks
4049 if test "${cross_compiling}" = "yes";
4050 then
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4073 done
4074 done
4075 IFS=$as_save_IFS
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081 { echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6; }
4083 else
4084 { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4090 if test -z "$ac_cv_prog_CC"; then
4091 ac_ct_CC=$CC
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4113 done
4114 done
4115 IFS=$as_save_IFS
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4122 echo "${ECHO_T}$ac_ct_CC" >&6; }
4123 else
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4128 if test "x$ac_ct_CC" = x; then
4129 CC=":"
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4134 whose name does not start with the host triplet. If you think this
4135 configuration is useful to you, please write to autoconf@gnu.org." >&5
4136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4137 whose name does not start with the host triplet. If you think this
4138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4139 ac_tool_warned=yes ;;
4140 esac
4141 CC=$ac_ct_CC
4143 else
4144 CC="$ac_cv_prog_CC"
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}g++; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_CXX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 if test -n "$CXX"; then
4156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4169 done
4170 done
4171 IFS=$as_save_IFS
4175 CXX=$ac_cv_prog_CXX
4176 if test -n "$CXX"; then
4177 { echo "$as_me:$LINENO: result: $CXX" >&5
4178 echo "${ECHO_T}$CXX" >&6; }
4179 else
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4186 if test -z "$ac_cv_prog_CXX"; then
4187 ac_ct_CXX=$CXX
4188 # Extract the first word of "g++", so it can be a program name with args.
4189 set dummy g++; ac_word=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 if test -n "$ac_ct_CXX"; then
4196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_ac_ct_CXX="g++"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4216 if test -n "$ac_ct_CXX"; then
4217 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4218 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4219 else
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4224 if test "x$ac_ct_CXX" = x; then
4225 CXX=":"
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4230 whose name does not start with the host triplet. If you think this
4231 configuration is useful to you, please write to autoconf@gnu.org." >&5
4232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4233 whose name does not start with the host triplet. If you think this
4234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4235 ac_tool_warned=yes ;;
4236 esac
4237 CXX=$ac_ct_CXX
4239 else
4240 CXX="$ac_cv_prog_CXX"
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}ld; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_LD+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$LD"; then
4252 ac_cv_prog_LD="$LD" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_LD="${ac_tool_prefix}ld"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 LD=$ac_cv_prog_LD
4272 if test -n "$LD"; then
4273 { echo "$as_me:$LINENO: result: $LD" >&5
4274 echo "${ECHO_T}$LD" >&6; }
4275 else
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4282 if test -z "$ac_cv_prog_LD"; then
4283 ac_ct_LD=$LD
4284 # Extract the first word of "ld", so it can be a program name with args.
4285 set dummy ld; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$ac_ct_LD"; then
4292 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_ac_ct_LD="ld"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4312 if test -n "$ac_ct_LD"; then
4313 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4314 echo "${ECHO_T}$ac_ct_LD" >&6; }
4315 else
4316 { echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6; }
4320 if test "x$ac_ct_LD" = x; then
4321 LD=":"
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324 yes:)
4325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet. If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&5
4328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4329 whose name does not start with the host triplet. If you think this
4330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4331 ac_tool_warned=yes ;;
4332 esac
4333 LD=$ac_ct_LD
4335 else
4336 LD="$ac_cv_prog_LD"
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_RANLIB+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 if test -n "$RANLIB"; then
4348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4361 done
4362 done
4363 IFS=$as_save_IFS
4367 RANLIB=$ac_cv_prog_RANLIB
4368 if test -n "$RANLIB"; then
4369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4370 echo "${ECHO_T}$RANLIB" >&6; }
4371 else
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4378 if test -z "$ac_cv_prog_RANLIB"; then
4379 ac_ct_RANLIB=$RANLIB
4380 # Extract the first word of "ranlib", so it can be a program name with args.
4381 set dummy ranlib; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 if test -n "$ac_ct_RANLIB"; then
4388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_RANLIB="ranlib"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 done
4403 IFS=$as_save_IFS
4407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4408 if test -n "$ac_ct_RANLIB"; then
4409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4411 else
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4416 if test "x$ac_ct_RANLIB" = x; then
4417 RANLIB=":"
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4422 whose name does not start with the host triplet. If you think this
4423 configuration is useful to you, please write to autoconf@gnu.org." >&5
4424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4425 whose name does not start with the host triplet. If you think this
4426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4427 ac_tool_warned=yes ;;
4428 esac
4429 RANLIB=$ac_ct_RANLIB
4431 else
4432 RANLIB="$ac_cv_prog_RANLIB"
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ar; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_AR+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 if test -n "$AR"; then
4444 ac_cv_prog_AR="$AR" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_AR="${ac_tool_prefix}ar"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4459 IFS=$as_save_IFS
4463 AR=$ac_cv_prog_AR
4464 if test -n "$AR"; then
4465 { echo "$as_me:$LINENO: result: $AR" >&5
4466 echo "${ECHO_T}$AR" >&6; }
4467 else
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4474 if test -z "$ac_cv_prog_AR"; then
4475 ac_ct_AR=$AR
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$ac_ct_AR"; then
4484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_AR="ar"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4504 if test -n "$ac_ct_AR"; then
4505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4506 echo "${ECHO_T}$ac_ct_AR" >&6; }
4507 else
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4512 if test "x$ac_ct_AR" = x; then
4513 AR=":"
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518 whose name does not start with the host triplet. If you think this
4519 configuration is useful to you, please write to autoconf@gnu.org." >&5
4520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 AR=$ac_ct_AR
4527 else
4528 AR="$ac_cv_prog_AR"
4533 # Checks for programs.
4534 ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4561 done
4562 done
4563 IFS=$as_save_IFS
4567 CC=$ac_cv_prog_CC
4568 if test -n "$CC"; then
4569 { echo "$as_me:$LINENO: result: $CC" >&5
4570 echo "${ECHO_T}$CC" >&6; }
4571 else
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4578 if test -z "$ac_cv_prog_CC"; then
4579 ac_ct_CC=$CC
4580 # Extract the first word of "gcc", so it can be a program name with args.
4581 set dummy gcc; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_CC="gcc"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608 if test -n "$ac_ct_CC"; then
4609 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4610 echo "${ECHO_T}$ac_ct_CC" >&6; }
4611 else
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4616 if test "x$ac_ct_CC" = x; then
4617 CC=""
4618 else
4619 case $cross_compiling:$ac_tool_warned in
4620 yes:)
4621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4622 whose name does not start with the host triplet. If you think this
4623 configuration is useful to you, please write to autoconf@gnu.org." >&5
4624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4625 whose name does not start with the host triplet. If you think this
4626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 CC=$ac_ct_CC
4631 else
4632 CC="$ac_cv_prog_CC"
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}cc; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_CC+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 CC=$ac_cv_prog_CC
4665 if test -n "$CC"; then
4666 { echo "$as_me:$LINENO: result: $CC" >&5
4667 echo "${ECHO_T}$CC" >&6; }
4668 else
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_CC+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 else
4687 ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4699 ac_cv_prog_CC="cc"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { echo "$as_me:$LINENO: result: $CC" >&5
4724 echo "${ECHO_T}$CC" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 CC=$ac_cv_prog_CC
4764 if test -n "$CC"; then
4765 { echo "$as_me:$LINENO: result: $CC" >&5
4766 echo "${ECHO_T}$CC" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 test -n "$CC" && break
4774 done
4776 if test -z "$CC"; then
4777 ac_ct_CC=$CC
4778 for ac_prog in cl.exe
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4810 echo "${ECHO_T}$ac_ct_CC" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 test -n "$ac_ct_CC" && break
4818 done
4820 if test "x$ac_ct_CC" = x; then
4821 CC=""
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4826 whose name does not start with the host triplet. If you think this
4827 configuration is useful to you, please write to autoconf@gnu.org." >&5
4828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4829 whose name does not start with the host triplet. If you think this
4830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833 CC=$ac_ct_CC
4840 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4841 See \`config.log' for more details." >&5
4842 echo "$as_me: error: no acceptable C compiler found in \$PATH
4843 See \`config.log' for more details." >&2;}
4844 { (exit 1); exit 1; }; }
4846 # Provide some information about the compiler.
4847 echo "$as_me:$LINENO: checking for C compiler version" >&5
4848 ac_compiler=`set X $ac_compile; echo $2`
4849 { (ac_try="$ac_compiler --version >&5"
4850 case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_compiler --version >&5") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }
4859 { (ac_try="$ac_compiler -v >&5"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_compiler -v >&5") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }
4869 { (ac_try="$ac_compiler -V >&5"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compiler -V >&5") 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }
4880 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4881 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4893 main ()
4895 #ifndef __GNUC__
4896 choke me
4897 #endif
4900 return 0;
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (ac_try="$ac_compile"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 ac_compiler_gnu=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 ac_compiler_gnu=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4932 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4934 GCC=`test $ac_compiler_gnu = yes && echo yes`
4935 ac_test_CFLAGS=${CFLAGS+set}
4936 ac_save_CFLAGS=$CFLAGS
4937 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 ac_save_c_werror_flag=$ac_c_werror_flag
4943 ac_c_werror_flag=yes
4944 ac_cv_prog_cc_g=no
4945 CFLAGS="-g"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4978 ac_cv_prog_cc_g=yes
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 CFLAGS=""
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4992 main ()
4996 return 0;
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 ac_c_werror_flag=$ac_save_c_werror_flag
5022 CFLAGS="-g"
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5031 main ()
5035 return 0;
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && {
5052 test -z "$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5054 } && test -s conftest.$ac_objext; then
5055 ac_cv_prog_cc_g=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_c_werror_flag=$ac_save_c_werror_flag
5072 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5073 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5074 if test "$ac_test_CFLAGS" = set; then
5075 CFLAGS=$ac_save_CFLAGS
5076 elif test $ac_cv_prog_cc_g = yes; then
5077 if test "$GCC" = yes; then
5078 CFLAGS="-g -O2"
5079 else
5080 CFLAGS="-g"
5082 else
5083 if test "$GCC" = yes; then
5084 CFLAGS="-O2"
5085 else
5086 CFLAGS=
5089 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5090 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_cc_c89+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 ac_cv_prog_cc_c89=no
5095 ac_save_CC=$CC
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <stdarg.h>
5103 #include <stdio.h>
5104 #include <sys/types.h>
5105 #include <sys/stat.h>
5106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5107 struct buf { int x; };
5108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5109 static char *e (p, i)
5110 char **p;
5111 int i;
5113 return p[i];
5115 static char *f (char * (*g) (char **, int), char **p, ...)
5117 char *s;
5118 va_list v;
5119 va_start (v,p);
5120 s = g (p, va_arg (v,int));
5121 va_end (v);
5122 return s;
5125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5126 function prototypes and stuff, but not '\xHH' hex character constants.
5127 These don't provoke an error unfortunately, instead are silently treated
5128 as 'x'. The following induces an error, until -std is added to get
5129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5130 array size at least. It's necessary to write '\x00'==0 to get something
5131 that's true only with -std. */
5132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5135 inside strings and character constants. */
5136 #define FOO(x) 'x'
5137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5139 int test (int i, double x);
5140 struct s1 {int (*f) (int a);};
5141 struct s2 {int (*f) (double a);};
5142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5143 int argc;
5144 char **argv;
5146 main ()
5148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5150 return 0;
5152 _ACEOF
5153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5156 CC="$ac_save_CC $ac_arg"
5157 rm -f conftest.$ac_objext
5158 if { (ac_try="$ac_compile"
5159 case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162 esac
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compile") 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.$ac_objext; then
5174 ac_cv_prog_cc_c89=$ac_arg
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5182 rm -f core conftest.err conftest.$ac_objext
5183 test "x$ac_cv_prog_cc_c89" != "xno" && break
5184 done
5185 rm -f conftest.$ac_ext
5186 CC=$ac_save_CC
5189 # AC_CACHE_VAL
5190 case "x$ac_cv_prog_cc_c89" in
5192 { echo "$as_me:$LINENO: result: none needed" >&5
5193 echo "${ECHO_T}none needed" >&6; } ;;
5194 xno)
5195 { echo "$as_me:$LINENO: result: unsupported" >&5
5196 echo "${ECHO_T}unsupported" >&6; } ;;
5198 CC="$CC $ac_cv_prog_cc_c89"
5199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5201 esac
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215 if test -z "$CXX"; then
5216 if test -n "$CCC"; then
5217 CXX=$CCC
5218 else
5219 if test -n "$ac_tool_prefix"; then
5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_CXX+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$CXX"; then
5230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 CXX=$ac_cv_prog_CXX
5250 if test -n "$CXX"; then
5251 { echo "$as_me:$LINENO: result: $CXX" >&5
5252 echo "${ECHO_T}$CXX" >&6; }
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5259 test -n "$CXX" && break
5260 done
5262 if test -z "$CXX"; then
5263 ac_ct_CXX=$CXX
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test -n "$ac_ct_CXX"; then
5274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_CXX="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5294 if test -n "$ac_ct_CXX"; then
5295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5297 else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 test -n "$ac_ct_CXX" && break
5304 done
5306 if test "x$ac_ct_CXX" = x; then
5307 CXX="g++"
5308 else
5309 case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5312 whose name does not start with the host triplet. If you think this
5313 configuration is useful to you, please write to autoconf@gnu.org." >&5
5314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5315 whose name does not start with the host triplet. If you think this
5316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 CXX=$ac_ct_CXX
5325 # Provide some information about the compiler.
5326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5327 ac_compiler=`set X $ac_compile; echo $2`
5328 { (ac_try="$ac_compiler --version >&5"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compiler --version >&5") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }
5338 { (ac_try="$ac_compiler -v >&5"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compiler -v >&5") 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }
5348 { (ac_try="$ac_compiler -V >&5"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compiler -V >&5") 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }
5359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5372 main ()
5374 #ifndef __GNUC__
5375 choke me
5376 #endif
5379 return 0;
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_compiler_gnu=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_compiler_gnu=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5412 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5413 GXX=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_test_CXXFLAGS=${CXXFLAGS+set}
5415 ac_save_CXXFLAGS=$CXXFLAGS
5416 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5417 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5418 if test "${ac_cv_prog_cxx_g+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5422 ac_cxx_werror_flag=yes
5423 ac_cv_prog_cxx_g=no
5424 CXXFLAGS="-g"
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5433 main ()
5437 return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 ac_cv_prog_cxx_g=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 CXXFLAGS=""
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5471 main ()
5475 return 0;
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5501 CXXFLAGS="-g"
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5510 main ()
5514 return 0;
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 ac_cv_prog_cxx_g=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5551 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5552 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5553 if test "$ac_test_CXXFLAGS" = set; then
5554 CXXFLAGS=$ac_save_CXXFLAGS
5555 elif test $ac_cv_prog_cxx_g = yes; then
5556 if test "$GXX" = yes; then
5557 CXXFLAGS="-g -O2"
5558 else
5559 CXXFLAGS="-g"
5561 else
5562 if test "$GXX" = yes; then
5563 CXXFLAGS="-O2"
5564 else
5565 CXXFLAGS=
5568 ac_ext=c
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574 ac_ext=c
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5581 # On Suns, sometimes $CPP names a directory.
5582 if test -n "$CPP" && test -d "$CPP"; then
5583 CPP=
5585 if test -z "$CPP"; then
5586 if test "${ac_cv_prog_CPP+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 # Double quotes because CPP needs to be expanded
5590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5592 ac_preproc_ok=false
5593 for ac_c_preproc_warn_flag in '' yes
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error" is here to catch this case.
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 #ifdef __STDC__
5608 # include <limits.h>
5609 #else
5610 # include <assert.h>
5611 #endif
5612 Syntax error
5613 _ACEOF
5614 if { (ac_try="$ac_cpp conftest.$ac_ext"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null && {
5627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 }; then
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 # Broken: fails on valid input.
5636 continue
5639 rm -f conftest.err conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <ac_nonexistent.h>
5650 _ACEOF
5651 if { (ac_try="$ac_cpp conftest.$ac_ext"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev/null && {
5664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 }; then
5667 # Broken: success on invalid input.
5668 continue
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Passes both tests.
5674 ac_preproc_ok=:
5675 break
5678 rm -f conftest.err conftest.$ac_ext
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5684 break
5687 done
5688 ac_cv_prog_CPP=$CPP
5691 CPP=$ac_cv_prog_CPP
5692 else
5693 ac_cv_prog_CPP=$CPP
5695 { echo "$as_me:$LINENO: result: $CPP" >&5
5696 echo "${ECHO_T}$CPP" >&6; }
5697 ac_preproc_ok=false
5698 for ac_c_preproc_warn_flag in '' yes
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #ifdef __STDC__
5713 # include <limits.h>
5714 #else
5715 # include <assert.h>
5716 #endif
5717 Syntax error
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 }; then
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 # Broken: fails on valid input.
5741 continue
5744 rm -f conftest.err conftest.$ac_ext
5746 # OK, works on sane cases. Now check whether nonexistent headers
5747 # can be detected and how.
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5755 _ACEOF
5756 if { (ac_try="$ac_cpp conftest.$ac_ext"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 }; then
5772 # Broken: success on invalid input.
5773 continue
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 # Passes both tests.
5779 ac_preproc_ok=:
5780 break
5783 rm -f conftest.err conftest.$ac_ext
5785 done
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then
5790 else
5791 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5798 ac_ext=c
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804 ac_ext=cpp
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5810 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5811 if test -z "$CXXCPP"; then
5812 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 # Double quotes because CXXCPP needs to be expanded
5816 for CXXCPP in "$CXX -E" "/lib/cpp"
5818 ac_preproc_ok=false
5819 for ac_cxx_preproc_warn_flag in '' yes
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #ifdef __STDC__
5834 # include <limits.h>
5835 #else
5836 # include <assert.h>
5837 #endif
5838 Syntax error
5839 _ACEOF
5840 if { (ac_try="$ac_cpp conftest.$ac_ext"
5841 case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null && {
5853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5854 test ! -s conftest.err
5855 }; then
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Broken: fails on valid input.
5862 continue
5865 rm -f conftest.err conftest.$ac_ext
5867 # OK, works on sane cases. Now check whether nonexistent headers
5868 # can be detected and how.
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <ac_nonexistent.h>
5876 _ACEOF
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null && {
5890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5891 test ! -s conftest.err
5892 }; then
5893 # Broken: success on invalid input.
5894 continue
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 # Passes both tests.
5900 ac_preproc_ok=:
5901 break
5904 rm -f conftest.err conftest.$ac_ext
5906 done
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.$ac_ext
5909 if $ac_preproc_ok; then
5910 break
5913 done
5914 ac_cv_prog_CXXCPP=$CXXCPP
5917 CXXCPP=$ac_cv_prog_CXXCPP
5918 else
5919 ac_cv_prog_CXXCPP=$CXXCPP
5921 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5922 echo "${ECHO_T}$CXXCPP" >&6; }
5923 ac_preproc_ok=false
5924 for ac_cxx_preproc_warn_flag in '' yes
5926 # Use a header file that comes with gcc, so configuring glibc
5927 # with a fresh cross-compiler works.
5928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5929 # <limits.h> exists even on freestanding compilers.
5930 # On the NeXT, cc -E runs the code through the compiler's parser,
5931 # not just through cpp. "Syntax error" is here to catch this case.
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #ifdef __STDC__
5939 # include <limits.h>
5940 #else
5941 # include <assert.h>
5942 #endif
5943 Syntax error
5944 _ACEOF
5945 if { (ac_try="$ac_cpp conftest.$ac_ext"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null && {
5958 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959 test ! -s conftest.err
5960 }; then
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 # Broken: fails on valid input.
5967 continue
5970 rm -f conftest.err conftest.$ac_ext
5972 # OK, works on sane cases. Now check whether nonexistent headers
5973 # can be detected and how.
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <ac_nonexistent.h>
5981 _ACEOF
5982 if { (ac_try="$ac_cpp conftest.$ac_ext"
5983 case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null && {
5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5997 }; then
5998 # Broken: success on invalid input.
5999 continue
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 # Passes both tests.
6005 ac_preproc_ok=:
6006 break
6009 rm -f conftest.err conftest.$ac_ext
6011 done
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.err conftest.$ac_ext
6014 if $ac_preproc_ok; then
6016 else
6017 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6018 See \`config.log' for more details." >&5
6019 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6020 See \`config.log' for more details." >&2;}
6021 { (exit 1); exit 1; }; }
6024 ac_ext=c
6025 ac_cpp='$CPP $CPPFLAGS'
6026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6031 # the developers regenerating the configure script don't have to install libtool.
6032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_SED+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6038 for ac_i in 1 2 3 4 5 6 7; do
6039 ac_script="$ac_script$as_nl$ac_script"
6040 done
6041 echo "$ac_script" | sed 99q >conftest.sed
6042 $as_unset ac_script || ac_script=
6043 # Extract the first word of "sed gsed" to use in msg output
6044 if test -z "$SED"; then
6045 set dummy sed gsed; ac_prog_name=$2
6046 if test "${ac_cv_path_SED+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 ac_path_SED_found=false
6050 # Loop through the user's path and test for each of PROGNAME-LIST
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_prog in sed gsed; do
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6059 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6060 # Check for GNU ac_path_SED and select it if it is found.
6061 # Check for GNU $ac_path_SED
6062 case `"$ac_path_SED" --version 2>&1` in
6063 *GNU*)
6064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6066 ac_count=0
6067 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6068 while :
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 echo '' >> "conftest.nl"
6074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6076 ac_count=`expr $ac_count + 1`
6077 if test $ac_count -gt ${ac_path_SED_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_SED="$ac_path_SED"
6080 ac_path_SED_max=$ac_count
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6084 done
6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 esac
6089 $ac_path_SED_found && break 3
6090 done
6091 done
6093 done
6094 IFS=$as_save_IFS
6099 SED="$ac_cv_path_SED"
6100 if test -z "$SED"; then
6101 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6102 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6103 { (exit 1); exit 1; }; }
6106 else
6107 ac_cv_path_SED=$SED
6111 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6112 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6113 SED="$ac_cv_path_SED"
6114 rm -f conftest.sed
6116 { echo "$as_me:$LINENO: checking for egrep" >&5
6117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_egrep+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6122 then ac_cv_prog_egrep='grep -E'
6123 else ac_cv_prog_egrep='egrep'
6126 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6128 EGREP=$ac_cv_prog_egrep
6132 # Check whether --with-gnu-ld was given.
6133 if test "${with_gnu_ld+set}" = set; then
6134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6135 else
6136 with_gnu_ld=no
6139 ac_prog=ld
6140 if test "$GCC" = yes; then
6141 # Check if gcc -print-prog-name=ld gives a path.
6142 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6143 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6144 case $host in
6145 *-*-mingw*)
6146 # gcc leaves a trailing carriage return which upsets mingw
6147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6150 esac
6151 case $ac_prog in
6152 # Accept absolute paths.
6153 [\\/]* | ?:[\\/]*)
6154 re_direlt='/[^/][^/]*/\.\./'
6155 # Canonicalize the pathname of ld
6156 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6157 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6158 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6159 done
6160 test -z "$LD" && LD="$ac_prog"
6163 # If it fails, then pretend we aren't using GCC.
6164 ac_prog=ld
6167 # If it is relative, then search for the first ld in PATH.
6168 with_gnu_ld=unknown
6170 esac
6171 elif test "$with_gnu_ld" = yes; then
6172 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6173 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6174 else
6175 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6176 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6178 if test "${lt_cv_path_LD+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 if test -z "$LD"; then
6182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6183 for ac_dir in $PATH; do
6184 IFS="$lt_save_ifs"
6185 test -z "$ac_dir" && ac_dir=.
6186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6187 lt_cv_path_LD="$ac_dir/$ac_prog"
6188 # Check to see if the program is GNU ld. I'd rather use --version,
6189 # but apparently some variants of GNU ld only accept -v.
6190 # Break only if it was the GNU/non-GNU ld that we prefer.
6191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6192 *GNU* | *'with BFD'*)
6193 test "$with_gnu_ld" != no && break
6196 test "$with_gnu_ld" != yes && break
6198 esac
6200 done
6201 IFS="$lt_save_ifs"
6202 else
6203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6207 LD="$lt_cv_path_LD"
6208 if test -n "$LD"; then
6209 { echo "$as_me:$LINENO: result: $LD" >&5
6210 echo "${ECHO_T}$LD" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6215 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6216 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6217 { (exit 1); exit 1; }; }
6218 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6219 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6224 case `$LD -v 2>&1 </dev/null` in
6225 *GNU* | *'with BFD'*)
6226 lt_cv_prog_gnu_ld=yes
6229 lt_cv_prog_gnu_ld=no
6231 esac
6233 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6234 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6235 with_gnu_ld=$lt_cv_prog_gnu_ld
6238 for ac_prog in gawk mawk nawk awk
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy $ac_prog; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_AWK+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 if test -n "$AWK"; then
6248 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_AWK="$ac_prog"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6261 done
6262 done
6263 IFS=$as_save_IFS
6267 AWK=$ac_cv_prog_AWK
6268 if test -n "$AWK"; then
6269 { echo "$as_me:$LINENO: result: $AWK" >&5
6270 echo "${ECHO_T}$AWK" >&6; }
6271 else
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6277 test -n "$AWK" && break
6278 done
6280 # Find a good install program. We prefer a C program (faster),
6281 # so one script is as good as another. But avoid the broken or
6282 # incompatible versions:
6283 # SysV /etc/install, /usr/sbin/install
6284 # SunOS /usr/etc/install
6285 # IRIX /sbin/install
6286 # AIX /bin/install
6287 # AmigaOS /C/install, which installs bootblocks on floppy discs
6288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6291 # OS/2's system install, which has a completely different semantic
6292 # ./install, which can be erroneously created by make from ./install.sh.
6293 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6295 if test -z "$INSTALL"; then
6296 if test "${ac_cv_path_install+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 # Account for people who put trailing slashes in PATH elements.
6305 case $as_dir/ in
6306 ./ | .// | /cC/* | \
6307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6309 /usr/ucb/* ) ;;
6311 # OSF1 and SCO ODT 3.0 have their own names for install.
6312 # Don't use installbsd from OSF since it installs stuff as root
6313 # by default.
6314 for ac_prog in ginstall scoinst install; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6317 if test $ac_prog = install &&
6318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6319 # AIX install. It has an incompatible calling convention.
6321 elif test $ac_prog = install &&
6322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6323 # program-specific install script used by HP pwplus--don't use.
6325 else
6326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6327 break 3
6330 done
6331 done
6333 esac
6334 done
6335 IFS=$as_save_IFS
6339 if test "${ac_cv_path_install+set}" = set; then
6340 INSTALL=$ac_cv_path_install
6341 else
6342 # As a last resort, use the slow shell script. Don't cache a
6343 # value for INSTALL within a source directory, because that will
6344 # break other packages using the cache if that directory is
6345 # removed, or if the value is a relative name.
6346 INSTALL=$ac_install_sh
6349 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6350 echo "${ECHO_T}$INSTALL" >&6; }
6352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6353 # It thinks the first close brace ends the variable substitution.
6354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6360 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6361 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6362 LN_S=$as_ln_s
6363 if test "$LN_S" = "ln -s"; then
6364 { echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6; }
6366 else
6367 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6368 echo "${ECHO_T}no, using $LN_S" >&6; }
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_RANLIB+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$RANLIB"; then
6380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6393 done
6394 done
6395 IFS=$as_save_IFS
6399 RANLIB=$ac_cv_prog_RANLIB
6400 if test -n "$RANLIB"; then
6401 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6402 echo "${ECHO_T}$RANLIB" >&6; }
6403 else
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6410 if test -z "$ac_cv_prog_RANLIB"; then
6411 ac_ct_RANLIB=$RANLIB
6412 # Extract the first word of "ranlib", so it can be a program name with args.
6413 set dummy ranlib; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 if test -n "$ac_ct_RANLIB"; then
6420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_ac_ct_RANLIB="ranlib"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6433 done
6434 done
6435 IFS=$as_save_IFS
6439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6440 if test -n "$ac_ct_RANLIB"; then
6441 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6443 else
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6448 if test "x$ac_ct_RANLIB" = x; then
6449 RANLIB=":"
6450 else
6451 case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet. If you think this
6455 configuration is useful to you, please write to autoconf@gnu.org." >&5
6456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 RANLIB=$ac_ct_RANLIB
6463 else
6464 RANLIB="$ac_cv_prog_RANLIB"
6467 { echo "$as_me:$LINENO: checking for GNU make" >&5
6468 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6469 if test "${GNU_MAKE+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 GNU_MAKE='Not Found' ;
6473 GNU_MAKE_VERSION_MAJOR=0 ;
6474 GNU_MAKE_VERSION_MINOR=0 ;
6475 for a in make gmake gnumake ; do
6476 if test -z "$a" ; then continue ; fi ;
6477 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6478 GNU_MAKE=$a ;
6479 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6480 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6481 break;
6483 done ;
6486 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6487 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6488 if test "x$GNU_MAKE" = "xNot Found" ; then
6489 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6490 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6491 { (exit 1); exit 1; }; }
6492 exit 1
6497 GNU_LD=0
6498 if test "x$with_gnu_ld" = "xyes" ; then
6499 GNU_LD=1
6503 # Extract the first word of "grep", so it can be a program name with args.
6504 set dummy grep; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GREP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 case $GREP in
6511 [\\/]* | ?:[\\/]*)
6512 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6530 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6532 esac
6534 GREP=$ac_cv_path_GREP
6535 if test -n "$GREP"; then
6536 { echo "$as_me:$LINENO: result: $GREP" >&5
6537 echo "${ECHO_T}$GREP" >&6; }
6538 else
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6544 # Extract the first word of "ar", so it can be a program name with args.
6545 set dummy ar; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_AR+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 case $AR in
6552 [\\/]* | ?:[\\/]*)
6553 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6567 done
6568 done
6569 IFS=$as_save_IFS
6571 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
6573 esac
6575 AR=$ac_cv_path_AR
6576 if test -n "$AR"; then
6577 { echo "$as_me:$LINENO: result: $AR" >&5
6578 echo "${ECHO_T}$AR" >&6; }
6579 else
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6585 # Extract the first word of "find", so it can be a program name with args.
6586 set dummy find; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_FIND+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592 case $FIND in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6608 done
6609 done
6610 IFS=$as_save_IFS
6612 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6614 esac
6616 FIND=$ac_cv_path_FIND
6617 if test -n "$FIND"; then
6618 { echo "$as_me:$LINENO: result: $FIND" >&5
6619 echo "${ECHO_T}$FIND" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 # Extract the first word of "compress", so it can be a program name with args.
6627 set dummy compress; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_COMPRESS+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 case $COMPRESS in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6653 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6655 esac
6657 COMPRESS=$ac_cv_path_COMPRESS
6658 if test -n "$COMPRESS"; then
6659 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6660 echo "${ECHO_T}$COMPRESS" >&6; }
6661 else
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "basename", so it can be a program name with args.
6668 set dummy basename; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_BASENAME+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 case $BASENAME in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6694 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6696 esac
6698 BASENAME=$ac_cv_path_BASENAME
6699 if test -n "$BASENAME"; then
6700 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6701 echo "${ECHO_T}$BASENAME" >&6; }
6702 else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "id", so it can be a program name with args.
6709 set dummy id; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_ID+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 case $ID in
6716 [\\/]* | ?:[\\/]*)
6717 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6735 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6737 esac
6739 ID=$ac_cv_path_ID
6740 if test -n "$ID"; then
6741 { echo "$as_me:$LINENO: result: $ID" >&5
6742 echo "${ECHO_T}$ID" >&6; }
6743 else
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 # Extract the first word of "dirname", so it can be a program name with args.
6750 set dummy dirname; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_DIRNAME+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 case $DIRNAME in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6776 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6778 esac
6780 DIRNAME=$ac_cv_path_DIRNAME
6781 if test -n "$DIRNAME"; then
6782 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6783 echo "${ECHO_T}$DIRNAME" >&6; }
6784 else
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6790 # Extract the first word of "sh", so it can be a program name with args.
6791 set dummy sh; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_SHELL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 case $SHELL in
6798 [\\/]* | ?:[\\/]*)
6799 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6817 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6819 esac
6821 SHELL=$ac_cv_path_SHELL
6822 if test -n "$SHELL"; then
6823 { echo "$as_me:$LINENO: result: $SHELL" >&5
6824 echo "${ECHO_T}$SHELL" >&6; }
6825 else
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 # Extract the first word of "ln", so it can be a program name with args.
6832 set dummy ln; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_LN+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 case $LN in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6854 done
6855 done
6856 IFS=$as_save_IFS
6858 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6860 esac
6862 LN=$ac_cv_path_LN
6863 if test -n "$LN"; then
6864 { echo "$as_me:$LINENO: result: $LN" >&5
6865 echo "${ECHO_T}$LN" >&6; }
6866 else
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "dot", so it can be a program name with args.
6873 set dummy dot; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_DOT+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 case $DOT in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6899 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
6901 esac
6903 DOT=$ac_cv_path_DOT
6904 if test -n "$DOT"; then
6905 { echo "$as_me:$LINENO: result: $DOT" >&5
6906 echo "${ECHO_T}$DOT" >&6; }
6907 else
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 case $STRIP in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6936 done
6937 done
6938 IFS=$as_save_IFS
6940 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
6942 esac
6944 STRIP=$ac_cv_path_STRIP
6945 if test -n "$STRIP"; then
6946 { echo "$as_me:$LINENO: result: $STRIP" >&5
6947 echo "${ECHO_T}$STRIP" >&6; }
6948 else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "wget", so it can be a program name with args.
6955 set dummy wget; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_WGET+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 case $WGET in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6981 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
6983 esac
6985 WGET=$ac_cv_path_WGET
6986 if test -n "$WGET"; then
6987 { echo "$as_me:$LINENO: result: $WGET" >&5
6988 echo "${ECHO_T}$WGET" >&6; }
6989 else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 if test "${WGET}" != ":" ; then
6996 DOWNLOAD=${WGET}
6997 else
6998 # Extract the first word of "fetch", so it can be a program name with args.
6999 set dummy fetch; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_FETCH+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 case $FETCH in
7006 [\\/]* | ?:[\\/]*)
7007 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7025 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7027 esac
7029 FETCH=$ac_cv_path_FETCH
7030 if test -n "$FETCH"; then
7031 { echo "$as_me:$LINENO: result: $FETCH" >&5
7032 echo "${ECHO_T}$FETCH" >&6; }
7033 else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7039 DOWNLOAD=${FETCH}
7043 ac_ext=c
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7050 # Check whether --enable-dev-mode was given.
7051 if test "${enable_dev_mode+set}" = set; then
7052 enableval=$enable_dev_mode; case "${enableval}" in
7053 y|ye|yes) AST_DEVMODE=yes ;;
7054 n|no) AST_DEVMODE=no ;;
7055 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7056 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7057 { (exit 1); exit 1; }; } ;;
7058 esac
7063 # package option names should be in alphabetical order
7064 # by the --with option name, to make things easier for the users :-)
7067 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7068 ALSA_OPTION="asound"
7070 # Check whether --with-asound was given.
7071 if test "${with_asound+set}" = set; then
7072 withval=$with_asound;
7073 case ${withval} in
7074 n|no)
7075 USE_ALSA=no
7077 y|ye|yes)
7078 ALSA_MANDATORY="yes"
7081 ALSA_DIR="${withval}"
7082 ALSA_MANDATORY="yes"
7084 esac
7088 PBX_ALSA=0
7094 CURL_DESCRIP="cURL"
7095 CURL_OPTION="curl"
7097 # Check whether --with-curl was given.
7098 if test "${with_curl+set}" = set; then
7099 withval=$with_curl;
7100 case ${withval} in
7101 n|no)
7102 USE_CURL=no
7104 y|ye|yes)
7105 CURL_MANDATORY="yes"
7108 CURL_DIR="${withval}"
7109 CURL_MANDATORY="yes"
7111 esac
7115 PBX_CURL=0
7121 CURSES_DESCRIP="curses"
7122 CURSES_OPTION="curses"
7124 # Check whether --with-curses was given.
7125 if test "${with_curses+set}" = set; then
7126 withval=$with_curses;
7127 case ${withval} in
7128 n|no)
7129 USE_CURSES=no
7131 y|ye|yes)
7132 CURSES_MANDATORY="yes"
7135 CURSES_DIR="${withval}"
7136 CURSES_MANDATORY="yes"
7138 esac
7142 PBX_CURSES=0
7148 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7149 GNUTLS_OPTION="gnutls"
7151 # Check whether --with-gnutls was given.
7152 if test "${with_gnutls+set}" = set; then
7153 withval=$with_gnutls;
7154 case ${withval} in
7155 n|no)
7156 USE_GNUTLS=no
7158 y|ye|yes)
7159 GNUTLS_MANDATORY="yes"
7162 GNUTLS_DIR="${withval}"
7163 GNUTLS_MANDATORY="yes"
7165 esac
7169 PBX_GNUTLS=0
7175 GSM_DESCRIP="GSM"
7176 GSM_OPTION="gsm"
7178 # Check whether --with-gsm was given.
7179 if test "${with_gsm+set}" = set; then
7180 withval=$with_gsm;
7181 case ${withval} in
7182 n|no)
7183 USE_GSM=no
7185 y|ye|yes)
7186 GSM_MANDATORY="yes"
7189 GSM_DIR="${withval}"
7190 GSM_MANDATORY="yes"
7192 esac
7196 PBX_GSM=0
7202 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7203 IKSEMEL_OPTION="iksemel"
7205 # Check whether --with-iksemel was given.
7206 if test "${with_iksemel+set}" = set; then
7207 withval=$with_iksemel;
7208 case ${withval} in
7209 n|no)
7210 USE_IKSEMEL=no
7212 y|ye|yes)
7213 IKSEMEL_MANDATORY="yes"
7216 IKSEMEL_DIR="${withval}"
7217 IKSEMEL_MANDATORY="yes"
7219 esac
7223 PBX_IKSEMEL=0
7229 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7230 IMAP_TK_OPTION="imap"
7232 # Check whether --with-imap was given.
7233 if test "${with_imap+set}" = set; then
7234 withval=$with_imap;
7235 case ${withval} in
7236 n|no)
7237 USE_IMAP_TK=no
7239 y|ye|yes)
7240 IMAP_TK_MANDATORY="yes"
7243 IMAP_TK_DIR="${withval}"
7244 IMAP_TK_MANDATORY="yes"
7246 esac
7250 PBX_IMAP_TK=0
7256 ISDNNET_DESCRIP="ISDN4Linux Library"
7257 ISDNNET_OPTION="isdnnet"
7259 # Check whether --with-isdnnet was given.
7260 if test "${with_isdnnet+set}" = set; then
7261 withval=$with_isdnnet;
7262 case ${withval} in
7263 n|no)
7264 USE_ISDNNET=no
7266 y|ye|yes)
7267 ISDNNET_MANDATORY="yes"
7270 ISDNNET_DIR="${withval}"
7271 ISDNNET_MANDATORY="yes"
7273 esac
7277 PBX_ISDNNET=0
7283 KDE_DESCRIP="KDE"
7284 KDE_OPTION="kde"
7286 # Check whether --with-kde was given.
7287 if test "${with_kde+set}" = set; then
7288 withval=$with_kde;
7289 case ${withval} in
7290 n|no)
7291 USE_KDE=no
7293 y|ye|yes)
7294 KDE_MANDATORY="yes"
7297 KDE_DIR="${withval}"
7298 KDE_MANDATORY="yes"
7300 esac
7304 PBX_KDE=0
7310 MISDN_DESCRIP="mISDN User Library"
7311 MISDN_OPTION="misdn"
7313 # Check whether --with-misdn was given.
7314 if test "${with_misdn+set}" = set; then
7315 withval=$with_misdn;
7316 case ${withval} in
7317 n|no)
7318 USE_MISDN=no
7320 y|ye|yes)
7321 MISDN_MANDATORY="yes"
7324 MISDN_DIR="${withval}"
7325 MISDN_MANDATORY="yes"
7327 esac
7331 PBX_MISDN=0
7337 NBS_DESCRIP="Network Broadcast Sound"
7338 NBS_OPTION="nbs"
7340 # Check whether --with-nbs was given.
7341 if test "${with_nbs+set}" = set; then
7342 withval=$with_nbs;
7343 case ${withval} in
7344 n|no)
7345 USE_NBS=no
7347 y|ye|yes)
7348 NBS_MANDATORY="yes"
7351 NBS_DIR="${withval}"
7352 NBS_MANDATORY="yes"
7354 esac
7358 PBX_NBS=0
7364 NCURSES_DESCRIP="ncurses"
7365 NCURSES_OPTION="ncurses"
7367 # Check whether --with-ncurses was given.
7368 if test "${with_ncurses+set}" = set; then
7369 withval=$with_ncurses;
7370 case ${withval} in
7371 n|no)
7372 USE_NCURSES=no
7374 y|ye|yes)
7375 NCURSES_MANDATORY="yes"
7378 NCURSES_DIR="${withval}"
7379 NCURSES_MANDATORY="yes"
7381 esac
7385 PBX_NCURSES=0
7391 NETSNMP_DESCRIP="Net-SNMP"
7392 NETSNMP_OPTION="netsnmp"
7394 # Check whether --with-netsnmp was given.
7395 if test "${with_netsnmp+set}" = set; then
7396 withval=$with_netsnmp;
7397 case ${withval} in
7398 n|no)
7399 USE_NETSNMP=no
7401 y|ye|yes)
7402 NETSNMP_MANDATORY="yes"
7405 NETSNMP_DIR="${withval}"
7406 NETSNMP_MANDATORY="yes"
7408 esac
7412 PBX_NETSNMP=0
7418 NEWT_DESCRIP="newt"
7419 NEWT_OPTION="newt"
7421 # Check whether --with-newt was given.
7422 if test "${with_newt+set}" = set; then
7423 withval=$with_newt;
7424 case ${withval} in
7425 n|no)
7426 USE_NEWT=no
7428 y|ye|yes)
7429 NEWT_MANDATORY="yes"
7432 NEWT_DIR="${withval}"
7433 NEWT_MANDATORY="yes"
7435 esac
7439 PBX_NEWT=0
7445 UNIXODBC_DESCRIP="unixODBC"
7446 UNIXODBC_OPTION="odbc"
7448 # Check whether --with-odbc was given.
7449 if test "${with_odbc+set}" = set; then
7450 withval=$with_odbc;
7451 case ${withval} in
7452 n|no)
7453 USE_UNIXODBC=no
7455 y|ye|yes)
7456 UNIXODBC_MANDATORY="yes"
7459 UNIXODBC_DIR="${withval}"
7460 UNIXODBC_MANDATORY="yes"
7462 esac
7466 PBX_UNIXODBC=0
7472 OGG_DESCRIP="OGG"
7473 OGG_OPTION="ogg"
7475 # Check whether --with-ogg was given.
7476 if test "${with_ogg+set}" = set; then
7477 withval=$with_ogg;
7478 case ${withval} in
7479 n|no)
7480 USE_OGG=no
7482 y|ye|yes)
7483 OGG_MANDATORY="yes"
7486 OGG_DIR="${withval}"
7487 OGG_MANDATORY="yes"
7489 esac
7493 PBX_OGG=0
7499 OSPTK_DESCRIP="OSP Toolkit"
7500 OSPTK_OPTION="osptk"
7502 # Check whether --with-osptk was given.
7503 if test "${with_osptk+set}" = set; then
7504 withval=$with_osptk;
7505 case ${withval} in
7506 n|no)
7507 USE_OSPTK=no
7509 y|ye|yes)
7510 OSPTK_MANDATORY="yes"
7513 OSPTK_DIR="${withval}"
7514 OSPTK_MANDATORY="yes"
7516 esac
7520 PBX_OSPTK=0
7526 OSS_DESCRIP="Open Sound System"
7527 OSS_OPTION="oss"
7529 # Check whether --with-oss was given.
7530 if test "${with_oss+set}" = set; then
7531 withval=$with_oss;
7532 case ${withval} in
7533 n|no)
7534 USE_OSS=no
7536 y|ye|yes)
7537 OSS_MANDATORY="yes"
7540 OSS_DIR="${withval}"
7541 OSS_MANDATORY="yes"
7543 esac
7547 PBX_OSS=0
7553 POPT_DESCRIP="popt"
7554 POPT_OPTION="popt"
7556 # Check whether --with-popt was given.
7557 if test "${with_popt+set}" = set; then
7558 withval=$with_popt;
7559 case ${withval} in
7560 n|no)
7561 USE_POPT=no
7563 y|ye|yes)
7564 POPT_MANDATORY="yes"
7567 POPT_DIR="${withval}"
7568 POPT_MANDATORY="yes"
7570 esac
7574 PBX_POPT=0
7580 PGSQL_DESCRIP="PostgreSQL"
7581 PGSQL_OPTION="postgres"
7583 # Check whether --with-postgres was given.
7584 if test "${with_postgres+set}" = set; then
7585 withval=$with_postgres;
7586 case ${withval} in
7587 n|no)
7588 USE_PGSQL=no
7590 y|ye|yes)
7591 PGSQL_MANDATORY="yes"
7594 PGSQL_DIR="${withval}"
7595 PGSQL_MANDATORY="yes"
7597 esac
7601 PBX_PGSQL=0
7607 PRI_DESCRIP="ISDN PRI"
7608 PRI_OPTION="pri"
7610 # Check whether --with-pri was given.
7611 if test "${with_pri+set}" = set; then
7612 withval=$with_pri;
7613 case ${withval} in
7614 n|no)
7615 USE_PRI=no
7617 y|ye|yes)
7618 PRI_MANDATORY="yes"
7621 PRI_DIR="${withval}"
7622 PRI_MANDATORY="yes"
7624 esac
7628 PBX_PRI=0
7634 PWLIB_DESCRIP="PWlib"
7635 PWLIB_OPTION="pwlib"
7637 # Check whether --with-pwlib was given.
7638 if test "${with_pwlib+set}" = set; then
7639 withval=$with_pwlib;
7640 case ${withval} in
7641 n|no)
7642 USE_PWLIB=no
7644 y|ye|yes)
7645 PWLIB_MANDATORY="yes"
7648 PWLIB_DIR="${withval}"
7649 PWLIB_MANDATORY="yes"
7651 esac
7655 PBX_PWLIB=0
7661 OPENH323_DESCRIP="OpenH323"
7662 OPENH323_OPTION="h323"
7664 # Check whether --with-h323 was given.
7665 if test "${with_h323+set}" = set; then
7666 withval=$with_h323;
7667 case ${withval} in
7668 n|no)
7669 USE_OPENH323=no
7671 y|ye|yes)
7672 OPENH323_MANDATORY="yes"
7675 OPENH323_DIR="${withval}"
7676 OPENH323_MANDATORY="yes"
7678 esac
7682 PBX_OPENH323=0
7688 QT_DESCRIP="Qt"
7689 QT_OPTION="qt"
7691 # Check whether --with-qt was given.
7692 if test "${with_qt+set}" = set; then
7693 withval=$with_qt;
7694 case ${withval} in
7695 n|no)
7696 USE_QT=no
7698 y|ye|yes)
7699 QT_MANDATORY="yes"
7702 QT_DIR="${withval}"
7703 QT_MANDATORY="yes"
7705 esac
7709 PBX_QT=0
7715 RADIUS_DESCRIP="Radius Client"
7716 RADIUS_OPTION="radius"
7718 # Check whether --with-radius was given.
7719 if test "${with_radius+set}" = set; then
7720 withval=$with_radius;
7721 case ${withval} in
7722 n|no)
7723 USE_RADIUS=no
7725 y|ye|yes)
7726 RADIUS_MANDATORY="yes"
7729 RADIUS_DIR="${withval}"
7730 RADIUS_MANDATORY="yes"
7732 esac
7736 PBX_RADIUS=0
7742 SPEEX_DESCRIP="Speex"
7743 SPEEX_OPTION="speex"
7745 # Check whether --with-speex was given.
7746 if test "${with_speex+set}" = set; then
7747 withval=$with_speex;
7748 case ${withval} in
7749 n|no)
7750 USE_SPEEX=no
7752 y|ye|yes)
7753 SPEEX_MANDATORY="yes"
7756 SPEEX_DIR="${withval}"
7757 SPEEX_MANDATORY="yes"
7759 esac
7763 PBX_SPEEX=0
7769 SQLITE_DESCRIP="SQLite"
7770 SQLITE_OPTION="sqlite"
7772 # Check whether --with-sqlite was given.
7773 if test "${with_sqlite+set}" = set; then
7774 withval=$with_sqlite;
7775 case ${withval} in
7776 n|no)
7777 USE_SQLITE=no
7779 y|ye|yes)
7780 SQLITE_MANDATORY="yes"
7783 SQLITE_DIR="${withval}"
7784 SQLITE_MANDATORY="yes"
7786 esac
7790 PBX_SQLITE=0
7796 SUPPSERV_DESCRIP="mISDN Supplemental Services"
7797 SUPPSERV_OPTION="suppserv"
7799 # Check whether --with-suppserv was given.
7800 if test "${with_suppserv+set}" = set; then
7801 withval=$with_suppserv;
7802 case ${withval} in
7803 n|no)
7804 USE_SUPPSERV=no
7806 y|ye|yes)
7807 SUPPSERV_MANDATORY="yes"
7810 SUPPSERV_DIR="${withval}"
7811 SUPPSERV_MANDATORY="yes"
7813 esac
7817 PBX_SUPPSERV=0
7823 OPENSSL_DESCRIP="OpenSSL"
7824 OPENSSL_OPTION="ssl"
7826 # Check whether --with-ssl was given.
7827 if test "${with_ssl+set}" = set; then
7828 withval=$with_ssl;
7829 case ${withval} in
7830 n|no)
7831 USE_OPENSSL=no
7833 y|ye|yes)
7834 OPENSSL_MANDATORY="yes"
7837 OPENSSL_DIR="${withval}"
7838 OPENSSL_MANDATORY="yes"
7840 esac
7844 PBX_OPENSSL=0
7850 FREETDS_DESCRIP="FreeTDS"
7851 FREETDS_OPTION="tds"
7853 # Check whether --with-tds was given.
7854 if test "${with_tds+set}" = set; then
7855 withval=$with_tds;
7856 case ${withval} in
7857 n|no)
7858 USE_FREETDS=no
7860 y|ye|yes)
7861 FREETDS_MANDATORY="yes"
7864 FREETDS_DIR="${withval}"
7865 FREETDS_MANDATORY="yes"
7867 esac
7871 PBX_FREETDS=0
7877 TERMCAP_DESCRIP="Termcap"
7878 TERMCAP_OPTION="termcap"
7880 # Check whether --with-termcap was given.
7881 if test "${with_termcap+set}" = set; then
7882 withval=$with_termcap;
7883 case ${withval} in
7884 n|no)
7885 USE_TERMCAP=no
7887 y|ye|yes)
7888 TERMCAP_MANDATORY="yes"
7891 TERMCAP_DIR="${withval}"
7892 TERMCAP_MANDATORY="yes"
7894 esac
7898 PBX_TERMCAP=0
7904 TINFO_DESCRIP="Term Info"
7905 TINFO_OPTION="tinfo"
7907 # Check whether --with-tinfo was given.
7908 if test "${with_tinfo+set}" = set; then
7909 withval=$with_tinfo;
7910 case ${withval} in
7911 n|no)
7912 USE_TINFO=no
7914 y|ye|yes)
7915 TINFO_MANDATORY="yes"
7918 TINFO_DIR="${withval}"
7919 TINFO_MANDATORY="yes"
7921 esac
7925 PBX_TINFO=0
7931 TONEZONE_DESCRIP="tonezone"
7932 TONEZONE_OPTION="tonezone"
7934 # Check whether --with-tonezone was given.
7935 if test "${with_tonezone+set}" = set; then
7936 withval=$with_tonezone;
7937 case ${withval} in
7938 n|no)
7939 USE_TONEZONE=no
7941 y|ye|yes)
7942 TONEZONE_MANDATORY="yes"
7945 TONEZONE_DIR="${withval}"
7946 TONEZONE_MANDATORY="yes"
7948 esac
7952 PBX_TONEZONE=0
7958 VORBIS_DESCRIP="Vorbis"
7959 VORBIS_OPTION="vorbis"
7961 # Check whether --with-vorbis was given.
7962 if test "${with_vorbis+set}" = set; then
7963 withval=$with_vorbis;
7964 case ${withval} in
7965 n|no)
7966 USE_VORBIS=no
7968 y|ye|yes)
7969 VORBIS_MANDATORY="yes"
7972 VORBIS_DIR="${withval}"
7973 VORBIS_MANDATORY="yes"
7975 esac
7979 PBX_VORBIS=0
7985 VPB_DESCRIP="Voicetronix API"
7986 VPB_OPTION="vpb"
7988 # Check whether --with-vpb was given.
7989 if test "${with_vpb+set}" = set; then
7990 withval=$with_vpb;
7991 case ${withval} in
7992 n|no)
7993 USE_VPB=no
7995 y|ye|yes)
7996 VPB_MANDATORY="yes"
7999 VPB_DIR="${withval}"
8000 VPB_MANDATORY="yes"
8002 esac
8006 PBX_VPB=0
8012 ZLIB_DESCRIP="zlib"
8013 ZLIB_OPTION="z"
8015 # Check whether --with-z was given.
8016 if test "${with_z+set}" = set; then
8017 withval=$with_z;
8018 case ${withval} in
8019 n|no)
8020 USE_ZLIB=no
8022 y|ye|yes)
8023 ZLIB_MANDATORY="yes"
8026 ZLIB_DIR="${withval}"
8027 ZLIB_MANDATORY="yes"
8029 esac
8033 PBX_ZLIB=0
8039 ZAPTEL_DESCRIP="Zaptel"
8040 ZAPTEL_OPTION="zaptel"
8042 # Check whether --with-zaptel was given.
8043 if test "${with_zaptel+set}" = set; then
8044 withval=$with_zaptel;
8045 case ${withval} in
8046 n|no)
8047 USE_ZAPTEL=no
8049 y|ye|yes)
8050 ZAPTEL_MANDATORY="yes"
8053 ZAPTEL_DIR="${withval}"
8054 ZAPTEL_MANDATORY="yes"
8056 esac
8060 PBX_ZAPTEL=0
8066 # check for basic system features and functionality before
8067 # checking for package libraries
8069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8070 # for constant arguments. Useless!
8071 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8072 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8073 if test "${ac_cv_working_alloca_h+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 #include <alloca.h>
8084 main ()
8086 char *p = (char *) alloca (2 * sizeof (int));
8087 if (p) return 0;
8089 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (ac_try="$ac_link"
8094 case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_link") 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest$ac_exeext &&
8109 $as_test_x conftest$ac_exeext; then
8110 ac_cv_working_alloca_h=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_working_alloca_h=no
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119 conftest$ac_exeext conftest.$ac_ext
8121 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8122 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8123 if test $ac_cv_working_alloca_h = yes; then
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_ALLOCA_H 1
8127 _ACEOF
8131 { echo "$as_me:$LINENO: checking for alloca" >&5
8132 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8133 if test "${ac_cv_func_alloca_works+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #ifdef __GNUC__
8143 # define alloca __builtin_alloca
8144 #else
8145 # ifdef _MSC_VER
8146 # include <malloc.h>
8147 # define alloca _alloca
8148 # else
8149 # ifdef HAVE_ALLOCA_H
8150 # include <alloca.h>
8151 # else
8152 # ifdef _AIX
8153 #pragma alloca
8154 # else
8155 # ifndef alloca /* predefined by HP cc +Olibcalls */
8156 char *alloca ();
8157 # endif
8158 # endif
8159 # endif
8160 # endif
8161 #endif
8164 main ()
8166 char *p = (char *) alloca (1);
8167 if (p) return 0;
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest$ac_exeext &&
8189 $as_test_x conftest$ac_exeext; then
8190 ac_cv_func_alloca_works=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_func_alloca_works=no
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199 conftest$ac_exeext conftest.$ac_ext
8201 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8202 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8204 if test $ac_cv_func_alloca_works = yes; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_ALLOCA 1
8208 _ACEOF
8210 else
8211 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8212 # that cause trouble. Some versions do not even contain alloca or
8213 # contain a buggy version. If you still want to use their alloca,
8214 # use ar to extract alloca.o from them instead of compiling alloca.c.
8216 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8218 cat >>confdefs.h <<\_ACEOF
8219 #define C_ALLOCA 1
8220 _ACEOF
8223 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8224 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8225 if test "${ac_cv_os_cray+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #if defined CRAY && ! defined CRAY2
8235 webecray
8236 #else
8237 wenotbecray
8238 #endif
8240 _ACEOF
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 $EGREP "webecray" >/dev/null 2>&1; then
8243 ac_cv_os_cray=yes
8244 else
8245 ac_cv_os_cray=no
8247 rm -f conftest*
8250 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8251 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8252 if test $ac_cv_os_cray = yes; then
8253 for ac_func in _getb67 GETB67 getb67; do
8254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8268 #define $ac_func innocuous_$ac_func
8270 /* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func (); below.
8272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273 <limits.h> exists even on freestanding compilers. */
8275 #ifdef __STDC__
8276 # include <limits.h>
8277 #else
8278 # include <assert.h>
8279 #endif
8281 #undef $ac_func
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 char $ac_func ();
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined __stub_$ac_func || defined __stub___$ac_func
8294 choke me
8295 #endif
8298 main ()
8300 return $ac_func ();
8302 return 0;
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (ac_try="$ac_link"
8307 case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_link") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext &&
8322 $as_test_x conftest$ac_exeext; then
8323 eval "$as_ac_var=yes"
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 eval "$as_ac_var=no"
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_var'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8339 cat >>confdefs.h <<_ACEOF
8340 #define CRAY_STACKSEG_END $ac_func
8341 _ACEOF
8343 break
8346 done
8349 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8350 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8351 if test "${ac_cv_c_stack_direction+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 if test "$cross_compiling" = yes; then
8355 ac_cv_c_stack_direction=0
8356 else
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8365 find_stack_direction ()
8367 static char *addr = 0;
8368 auto char dummy;
8369 if (addr == 0)
8371 addr = &dummy;
8372 return find_stack_direction ();
8374 else
8375 return (&dummy > addr) ? 1 : -1;
8379 main ()
8381 return find_stack_direction () < 0;
8383 _ACEOF
8384 rm -f conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8386 case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_link") 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_c_stack_direction=1
8405 else
8406 echo "$as_me: program exited with status $ac_status" >&5
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ( exit $ac_status )
8411 ac_cv_c_stack_direction=-1
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8418 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8419 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8421 cat >>confdefs.h <<_ACEOF
8422 #define STACK_DIRECTION $ac_cv_c_stack_direction
8423 _ACEOF
8433 ac_header_dirent=no
8434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8435 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8436 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8448 #include <$ac_hdr>
8451 main ()
8453 if ((DIR *) 0)
8454 return 0;
8456 return 0;
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8461 case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.$ac_objext; then
8476 eval "$as_ac_Header=yes"
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 eval "$as_ac_Header=no"
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 ac_res=`eval echo '${'$as_ac_Header'}'`
8487 { echo "$as_me:$LINENO: result: $ac_res" >&5
8488 echo "${ECHO_T}$ac_res" >&6; }
8489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490 cat >>confdefs.h <<_ACEOF
8491 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8492 _ACEOF
8494 ac_header_dirent=$ac_hdr; break
8497 done
8498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8499 if test $ac_header_dirent = dirent.h; then
8500 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8501 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8502 if test "${ac_cv_search_opendir+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505 ac_func_search_save_LIBS=$LIBS
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* Override any GCC internal prototype to avoid an error.
8514 Use char because int might match the return type of a GCC
8515 builtin and then its argument prototype would still apply. */
8516 #ifdef __cplusplus
8517 extern "C"
8518 #endif
8519 char opendir ();
8521 main ()
8523 return opendir ();
8525 return 0;
8527 _ACEOF
8528 for ac_lib in '' dir; do
8529 if test -z "$ac_lib"; then
8530 ac_res="none required"
8531 else
8532 ac_res=-l$ac_lib
8533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8537 case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } && {
8549 test -z "$ac_c_werror_flag" ||
8550 test ! -s conftest.err
8551 } && test -s conftest$ac_exeext &&
8552 $as_test_x conftest$ac_exeext; then
8553 ac_cv_search_opendir=$ac_res
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8562 conftest$ac_exeext
8563 if test "${ac_cv_search_opendir+set}" = set; then
8564 break
8566 done
8567 if test "${ac_cv_search_opendir+set}" = set; then
8569 else
8570 ac_cv_search_opendir=no
8572 rm conftest.$ac_ext
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8583 else
8584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586 if test "${ac_cv_search_opendir+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 ac_func_search_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8600 #ifdef __cplusplus
8601 extern "C"
8602 #endif
8603 char opendir ();
8605 main ()
8607 return opendir ();
8609 return 0;
8611 _ACEOF
8612 for ac_lib in '' x; do
8613 if test -z "$ac_lib"; then
8614 ac_res="none required"
8615 else
8616 ac_res=-l$ac_lib
8617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest$ac_exeext &&
8636 $as_test_x conftest$ac_exeext; then
8637 ac_cv_search_opendir=$ac_res
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8646 conftest$ac_exeext
8647 if test "${ac_cv_search_opendir+set}" = set; then
8648 break
8650 done
8651 if test "${ac_cv_search_opendir+set}" = set; then
8653 else
8654 ac_cv_search_opendir=no
8656 rm conftest.$ac_ext
8657 LIBS=$ac_func_search_save_LIBS
8659 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8660 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8661 ac_res=$ac_cv_search_opendir
8662 if test "$ac_res" != no; then
8663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8669 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8671 if test "${ac_cv_header_stdc+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <stdlib.h>
8681 #include <stdarg.h>
8682 #include <string.h>
8683 #include <float.h>
8686 main ()
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_header_stdc=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_header_stdc=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 #include <string.h>
8730 _ACEOF
8731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732 $EGREP "memchr" >/dev/null 2>&1; then
8734 else
8735 ac_cv_header_stdc=no
8737 rm -f conftest*
8741 if test $ac_cv_header_stdc = yes; then
8742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <stdlib.h>
8751 _ACEOF
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "free" >/dev/null 2>&1; then
8755 else
8756 ac_cv_header_stdc=no
8758 rm -f conftest*
8762 if test $ac_cv_header_stdc = yes; then
8763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8764 if test "$cross_compiling" = yes; then
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 #include <ctype.h>
8774 #include <stdlib.h>
8775 #if ((' ' & 0x0FF) == 0x020)
8776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8778 #else
8779 # define ISLOWER(c) \
8780 (('a' <= (c) && (c) <= 'i') \
8781 || ('j' <= (c) && (c) <= 'r') \
8782 || ('s' <= (c) && (c) <= 'z'))
8783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8784 #endif
8786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8788 main ()
8790 int i;
8791 for (i = 0; i < 256; i++)
8792 if (XOR (islower (i), ISLOWER (i))
8793 || toupper (i) != TOUPPER (i))
8794 return 2;
8795 return 0;
8797 _ACEOF
8798 rm -f conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8809 { (case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8819 else
8820 echo "$as_me: program exited with status $ac_status" >&5
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ( exit $ac_status )
8825 ac_cv_header_stdc=no
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8835 if test $ac_cv_header_stdc = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STDC_HEADERS 1
8839 _ACEOF
8843 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8844 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8845 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <sys/types.h>
8855 #include <sys/wait.h>
8856 #ifndef WEXITSTATUS
8857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8858 #endif
8859 #ifndef WIFEXITED
8860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8861 #endif
8864 main ()
8866 int s;
8867 wait (&s);
8868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8875 case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878 esac
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 ac_cv_header_sys_wait_h=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_header_sys_wait_h=no
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8901 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8902 if test $ac_cv_header_sys_wait_h = yes; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define HAVE_SYS_WAIT_H 1
8906 _ACEOF
8933 for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h
8935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 ac_res=`eval echo '${'$as_ac_Header'}'`
8943 { echo "$as_me:$LINENO: result: $ac_res" >&5
8944 echo "${ECHO_T}$ac_res" >&6; }
8945 else
8946 # Is the header compilable?
8947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 $ac_includes_default
8956 #include <$ac_header>
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (ac_try="$ac_compile"
8960 case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest.$ac_objext; then
8975 ac_header_compiler=yes
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_header_compiler=no
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985 echo "${ECHO_T}$ac_header_compiler" >&6; }
8987 # Is the header present?
8988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <$ac_header>
8997 _ACEOF
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
8999 case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null && {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 }; then
9014 ac_header_preproc=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_header_preproc=no
9022 rm -f conftest.err conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9024 echo "${ECHO_T}$ac_header_preproc" >&6; }
9026 # So? What about this header?
9027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9028 yes:no: )
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9033 ac_header_preproc=yes
9035 no:yes:* )
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9050 esac
9051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066 _ACEOF
9070 done
9073 # Check whether --enable-largefile was given.
9074 if test "${enable_largefile+set}" = set; then
9075 enableval=$enable_largefile;
9078 if test "$enable_largefile" != no; then
9080 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9081 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9082 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 ac_cv_sys_largefile_CC=no
9086 if test "$GCC" != yes; then
9087 ac_save_CC=$CC
9088 while :; do
9089 # IRIX 6.2 and later do not support large files by default,
9090 # so use the C compiler's -n32 option if that helps.
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <sys/types.h>
9098 /* Check that off_t can represent 2**63 - 1 correctly.
9099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9100 since some C++ compilers masquerading as C compilers
9101 incorrectly reject 9223372036854775807. */
9102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9104 && LARGE_OFF_T % 2147483647 == 1)
9105 ? 1 : -1];
9107 main ()
9111 return 0;
9113 _ACEOF
9114 rm -f conftest.$ac_objext
9115 if { (ac_try="$ac_compile"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9131 break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f core conftest.err conftest.$ac_objext
9140 CC="$CC -n32"
9141 rm -f conftest.$ac_objext
9142 if { (ac_try="$ac_compile"
9143 case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_compile") 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } && {
9155 test -z "$ac_c_werror_flag" ||
9156 test ! -s conftest.err
9157 } && test -s conftest.$ac_objext; then
9158 ac_cv_sys_largefile_CC=' -n32'; break
9159 else
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9166 rm -f core conftest.err conftest.$ac_objext
9167 break
9168 done
9169 CC=$ac_save_CC
9170 rm -f conftest.$ac_ext
9173 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9174 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9175 if test "$ac_cv_sys_largefile_CC" != no; then
9176 CC=$CC$ac_cv_sys_largefile_CC
9179 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9180 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9181 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 while :; do
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 /* Check that off_t can represent 2**63 - 1 correctly.
9193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194 since some C++ compilers masquerading as C compilers
9195 incorrectly reject 9223372036854775807. */
9196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198 && LARGE_OFF_T % 2147483647 == 1)
9199 ? 1 : -1];
9201 main ()
9205 return 0;
9207 _ACEOF
9208 rm -f conftest.$ac_objext
9209 if { (ac_try="$ac_compile"
9210 case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
9225 ac_cv_sys_file_offset_bits=no; break
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #define _FILE_OFFSET_BITS 64
9241 #include <sys/types.h>
9242 /* Check that off_t can represent 2**63 - 1 correctly.
9243 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9244 since some C++ compilers masquerading as C compilers
9245 incorrectly reject 9223372036854775807. */
9246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9247 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9248 && LARGE_OFF_T % 2147483647 == 1)
9249 ? 1 : -1];
9251 main ()
9255 return 0;
9257 _ACEOF
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_cv_sys_file_offset_bits=64; break
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 ac_cv_sys_file_offset_bits=unknown
9285 break
9286 done
9288 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9289 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9290 case $ac_cv_sys_file_offset_bits in #(
9291 no | unknown) ;;
9293 cat >>confdefs.h <<_ACEOF
9294 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9295 _ACEOF
9297 esac
9298 rm -f conftest*
9299 if test $ac_cv_sys_file_offset_bits = unknown; then
9300 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9301 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9302 if test "${ac_cv_sys_large_files+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 while :; do
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 /* Check that off_t can represent 2**63 - 1 correctly.
9314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9315 since some C++ compilers masquerading as C compilers
9316 incorrectly reject 9223372036854775807. */
9317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9319 && LARGE_OFF_T % 2147483647 == 1)
9320 ? 1 : -1];
9322 main ()
9326 return 0;
9328 _ACEOF
9329 rm -f conftest.$ac_objext
9330 if { (ac_try="$ac_compile"
9331 case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest.$ac_objext; then
9346 ac_cv_sys_large_files=no; break
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #define _LARGE_FILES 1
9362 #include <sys/types.h>
9363 /* Check that off_t can represent 2**63 - 1 correctly.
9364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9365 since some C++ compilers masquerading as C compilers
9366 incorrectly reject 9223372036854775807. */
9367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9369 && LARGE_OFF_T % 2147483647 == 1)
9370 ? 1 : -1];
9372 main ()
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 ac_cv_sys_large_files=1; break
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 ac_cv_sys_large_files=unknown
9406 break
9407 done
9409 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9410 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9411 case $ac_cv_sys_large_files in #(
9412 no | unknown) ;;
9414 cat >>confdefs.h <<_ACEOF
9415 #define _LARGE_FILES $ac_cv_sys_large_files
9416 _ACEOF
9418 esac
9419 rm -f conftest*
9424 # Checks for typedefs, structures, and compiler characteristics.
9425 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9426 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9427 if test "${ac_cv_header_stdbool_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 #include <stdbool.h>
9438 #ifndef bool
9439 "error: bool is not defined"
9440 #endif
9441 #ifndef false
9442 "error: false is not defined"
9443 #endif
9444 #if false
9445 "error: false is not 0"
9446 #endif
9447 #ifndef true
9448 "error: true is not defined"
9449 #endif
9450 #if true != 1
9451 "error: true is not 1"
9452 #endif
9453 #ifndef __bool_true_false_are_defined
9454 "error: __bool_true_false_are_defined is not defined"
9455 #endif
9457 struct s { _Bool s: 1; _Bool t; } s;
9459 char a[true == 1 ? 1 : -1];
9460 char b[false == 0 ? 1 : -1];
9461 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9462 char d[(bool) 0.5 == true ? 1 : -1];
9463 bool e = &s;
9464 char f[(_Bool) 0.0 == false ? 1 : -1];
9465 char g[true];
9466 char h[sizeof (_Bool)];
9467 char i[sizeof s.t];
9468 enum { j = false, k = true, l = false * true, m = true * 256 };
9469 _Bool n[m];
9470 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9471 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9472 # if defined __xlc__ || defined __GNUC__
9473 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9474 reported by James Lemley on 2005-10-05; see
9475 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9476 This test is not quite right, since xlc is allowed to
9477 reject this program, as the initializer for xlcbug is
9478 not one of the forms that C requires support for.
9479 However, doing the test right would require a runtime
9480 test, and that would make cross-compilation harder.
9481 Let us hope that IBM fixes the xlc bug, and also adds
9482 support for this kind of constant expression. In the
9483 meantime, this test will reject xlc, which is OK, since
9484 our stdbool.h substitute should suffice. We also test
9485 this with GCC, where it should work, to detect more
9486 quickly whether someone messes up the test in the
9487 future. */
9488 char digs[] = "0123456789";
9489 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9490 # endif
9491 /* Catch a bug in an HP-UX C compiler. See
9492 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9493 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9495 _Bool q = true;
9496 _Bool *pq = &q;
9499 main ()
9502 *pq |= q;
9503 *pq |= ! q;
9504 /* Refer to every declared value, to avoid compiler optimizations. */
9505 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9506 + !m + !n + !o + !p + !q + !pq);
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext
9513 if { (ac_try="$ac_compile"
9514 case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_compile") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest.$ac_objext; then
9529 ac_cv_header_stdbool_h=yes
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_header_stdbool_h=no
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9541 { echo "$as_me:$LINENO: checking for _Bool" >&5
9542 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9543 if test "${ac_cv_type__Bool+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef _Bool ac__type_new_;
9555 main ()
9557 if ((ac__type_new_ *) 0)
9558 return 0;
9559 if (sizeof (ac__type_new_))
9560 return 0;
9562 return 0;
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9567 case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest.$ac_objext; then
9582 ac_cv_type__Bool=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_type__Bool=no
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9593 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9594 if test $ac_cv_type__Bool = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE__BOOL 1
9598 _ACEOF
9603 if test $ac_cv_header_stdbool_h = yes; then
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_STDBOOL_H 1
9607 _ACEOF
9611 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9612 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9613 if test "${ac_cv_c_const+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9624 main ()
9626 /* FIXME: Include the comments suggested by Paul. */
9627 #ifndef __cplusplus
9628 /* Ultrix mips cc rejects this. */
9629 typedef int charset[2];
9630 const charset cs;
9631 /* SunOS 4.1.1 cc rejects this. */
9632 char const *const *pcpcc;
9633 char **ppc;
9634 /* NEC SVR4.0.2 mips cc rejects this. */
9635 struct point {int x, y;};
9636 static struct point const zero = {0,0};
9637 /* AIX XL C 1.02.0.0 rejects this.
9638 It does not let you subtract one const X* pointer from another in
9639 an arm of an if-expression whose if-part is not a constant
9640 expression */
9641 const char *g = "string";
9642 pcpcc = &g + (g ? g-g : 0);
9643 /* HPUX 7.0 cc rejects these. */
9644 ++pcpcc;
9645 ppc = (char**) pcpcc;
9646 pcpcc = (char const *const *) ppc;
9647 { /* SCO 3.2v4 cc rejects this. */
9648 char *t;
9649 char const *s = 0 ? (char *) 0 : (char const *) 0;
9651 *t++ = 0;
9652 if (s) return 0;
9654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9655 int x[] = {25, 17};
9656 const int *foo = &x[0];
9657 ++foo;
9659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9660 typedef const int *iptr;
9661 iptr p = 0;
9662 ++p;
9664 { /* AIX XL C 1.02.0.0 rejects this saying
9665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9666 struct s { int j; const int *ap[3]; };
9667 struct s *b; b->j = 5;
9669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9670 const int foo = 10;
9671 if (!foo) return 0;
9673 return !cs[0] && !zero.x;
9674 #endif
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (ac_try="$ac_compile"
9682 case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_compile") 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest.$ac_objext; then
9697 ac_cv_c_const=yes
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_cv_c_const=no
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9708 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9709 if test $ac_cv_c_const = no; then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define const
9713 _ACEOF
9717 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9718 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9719 if test "${ac_cv_type_uid_t+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9730 _ACEOF
9731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9732 $EGREP "uid_t" >/dev/null 2>&1; then
9733 ac_cv_type_uid_t=yes
9734 else
9735 ac_cv_type_uid_t=no
9737 rm -f conftest*
9740 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9741 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9742 if test $ac_cv_type_uid_t = no; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define uid_t int
9746 _ACEOF
9749 cat >>confdefs.h <<\_ACEOF
9750 #define gid_t int
9751 _ACEOF
9755 { echo "$as_me:$LINENO: checking for inline" >&5
9756 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9757 if test "${ac_cv_c_inline+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 ac_cv_c_inline=no
9761 for ac_kw in inline __inline__ __inline; do
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #ifndef __cplusplus
9769 typedef int foo_t;
9770 static $ac_kw foo_t static_foo () {return 0; }
9771 $ac_kw foo_t foo () {return 0; }
9772 #endif
9774 _ACEOF
9775 rm -f conftest.$ac_objext
9776 if { (ac_try="$ac_compile"
9777 case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_compile") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest.$ac_objext; then
9792 ac_cv_c_inline=$ac_kw
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 test "$ac_cv_c_inline" != no && break
9802 done
9805 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9806 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9809 case $ac_cv_c_inline in
9810 inline | yes) ;;
9812 case $ac_cv_c_inline in
9813 no) ac_val=;;
9814 *) ac_val=$ac_cv_c_inline;;
9815 esac
9816 cat >>confdefs.h <<_ACEOF
9817 #ifndef __cplusplus
9818 #define inline $ac_val
9819 #endif
9820 _ACEOF
9822 esac
9824 { echo "$as_me:$LINENO: checking for mode_t" >&5
9825 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9826 if test "${ac_cv_type_mode_t+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 typedef mode_t ac__type_new_;
9838 main ()
9840 if ((ac__type_new_ *) 0)
9841 return 0;
9842 if (sizeof (ac__type_new_))
9843 return 0;
9845 return 0;
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (ac_try="$ac_compile"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_compile") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest.$ac_objext; then
9865 ac_cv_type_mode_t=yes
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_type_mode_t=no
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9876 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9877 if test $ac_cv_type_mode_t = yes; then
9879 else
9881 cat >>confdefs.h <<_ACEOF
9882 #define mode_t int
9883 _ACEOF
9887 { echo "$as_me:$LINENO: checking for off_t" >&5
9888 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9889 if test "${ac_cv_type_off_t+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 typedef off_t ac__type_new_;
9901 main ()
9903 if ((ac__type_new_ *) 0)
9904 return 0;
9905 if (sizeof (ac__type_new_))
9906 return 0;
9908 return 0;
9910 _ACEOF
9911 rm -f conftest.$ac_objext
9912 if { (ac_try="$ac_compile"
9913 case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_compile") 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest.$ac_objext; then
9928 ac_cv_type_off_t=yes
9929 else
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_type_off_t=no
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9939 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9940 if test $ac_cv_type_off_t = yes; then
9942 else
9944 cat >>confdefs.h <<_ACEOF
9945 #define off_t long int
9946 _ACEOF
9950 { echo "$as_me:$LINENO: checking for pid_t" >&5
9951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9952 if test "${ac_cv_type_pid_t+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 typedef pid_t ac__type_new_;
9964 main ()
9966 if ((ac__type_new_ *) 0)
9967 return 0;
9968 if (sizeof (ac__type_new_))
9969 return 0;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext
9975 if { (ac_try="$ac_compile"
9976 case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_compile") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest.$ac_objext; then
9991 ac_cv_type_pid_t=yes
9992 else
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_cv_type_pid_t=no
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10003 if test $ac_cv_type_pid_t = yes; then
10005 else
10007 cat >>confdefs.h <<_ACEOF
10008 #define pid_t int
10009 _ACEOF
10013 { echo "$as_me:$LINENO: checking for size_t" >&5
10014 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10015 if test "${ac_cv_type_size_t+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 typedef size_t ac__type_new_;
10027 main ()
10029 if ((ac__type_new_ *) 0)
10030 return 0;
10031 if (sizeof (ac__type_new_))
10032 return 0;
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_cv_type_size_t=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_type_size_t=no
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10066 if test $ac_cv_type_size_t = yes; then
10068 else
10070 cat >>confdefs.h <<_ACEOF
10071 #define size_t unsigned int
10072 _ACEOF
10076 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10089 main ()
10091 static struct stat ac_aggr;
10092 if (ac_aggr.st_blksize)
10093 return 0;
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (ac_try="$ac_compile"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_compile") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest.$ac_objext; then
10115 ac_cv_member_struct_stat_st_blksize=yes
10116 else
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10128 main ()
10130 static struct stat ac_aggr;
10131 if (sizeof ac_aggr.st_blksize)
10132 return 0;
10134 return 0;
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 ac_cv_member_struct_stat_st_blksize=yes
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_member_struct_stat_st_blksize=no
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10168 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10169 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10173 _ACEOF
10178 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_time+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <sys/types.h>
10190 #include <sys/time.h>
10191 #include <time.h>
10194 main ()
10196 if ((struct tm *) 0)
10197 return 0;
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_cv_header_time=yes
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_header_time=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10230 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10231 if test $ac_cv_header_time = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define TIME_WITH_SYS_TIME 1
10235 _ACEOF
10239 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10240 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10241 if test "${ac_cv_struct_tm+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <sys/types.h>
10251 #include <time.h>
10254 main ()
10256 struct tm tm;
10257 int *p = &tm.tm_sec;
10258 return !p;
10260 return 0;
10262 _ACEOF
10263 rm -f conftest.$ac_objext
10264 if { (ac_try="$ac_compile"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_compile") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.$ac_objext; then
10280 ac_cv_struct_tm=time.h
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 ac_cv_struct_tm=sys/time.h
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10291 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10292 if test $ac_cv_struct_tm = sys/time.h; then
10294 cat >>confdefs.h <<\_ACEOF
10295 #define TM_IN_SYS_TIME 1
10296 _ACEOF
10300 { echo "$as_me:$LINENO: checking for working volatile" >&5
10301 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10302 if test "${ac_cv_c_volatile+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10313 main ()
10316 volatile int x;
10317 int * volatile y = (int *) 0;
10318 return !x && !y;
10320 return 0;
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_cv_c_volatile=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_c_volatile=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10351 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10352 if test $ac_cv_c_volatile = no; then
10354 cat >>confdefs.h <<\_ACEOF
10355 #define volatile
10356 _ACEOF
10360 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10361 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 typedef ptrdiff_t ac__type_new_;
10374 main ()
10376 if ((ac__type_new_ *) 0)
10377 return 0;
10378 if (sizeof (ac__type_new_))
10379 return 0;
10381 return 0;
10383 _ACEOF
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_compile") 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest.$ac_objext; then
10401 ac_cv_type_ptrdiff_t=yes
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_cv_type_ptrdiff_t=no
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10412 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10413 if test $ac_cv_type_ptrdiff_t = yes; then
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_PTRDIFF_T 1
10417 _ACEOF
10423 # Checks for library functions.
10425 for ac_header in unistd.h
10427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_res=`eval echo '${'$as_ac_Header'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10437 else
10438 # Is the header compilable?
10439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 $ac_includes_default
10448 #include <$ac_header>
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (ac_try="$ac_compile"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest.$ac_objext; then
10467 ac_header_compiler=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 ac_header_compiler=no
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10477 echo "${ECHO_T}$ac_header_compiler" >&6; }
10479 # Is the header present?
10480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 #include <$ac_header>
10489 _ACEOF
10490 if { (ac_try="$ac_cpp conftest.$ac_ext"
10491 case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494 esac
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } >/dev/null && {
10503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 }; then
10506 ac_header_preproc=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_header_preproc=no
10514 rm -f conftest.err conftest.$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10520 yes:no: )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10527 no:yes:* )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10542 esac
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 eval "$as_ac_Header=\$ac_header_preproc"
10550 ac_res=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10558 _ACEOF
10562 done
10564 { echo "$as_me:$LINENO: checking for working chown" >&5
10565 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
10566 if test "${ac_cv_func_chown_works+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 if test "$cross_compiling" = yes; then
10570 ac_cv_func_chown_works=no
10571 else
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <fcntl.h>
10582 main ()
10584 char *f = "conftest.chown";
10585 struct stat before, after;
10587 if (creat (f, 0600) < 0)
10588 return 1;
10589 if (stat (f, &before) < 0)
10590 return 1;
10591 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
10592 return 1;
10593 if (stat (f, &after) < 0)
10594 return 1;
10595 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
10598 return 0;
10600 _ACEOF
10601 rm -f conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_func_chown_works=yes
10622 else
10623 echo "$as_me: program exited with status $ac_status" >&5
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ( exit $ac_status )
10628 ac_cv_func_chown_works=no
10630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10634 rm -f conftest.chown
10637 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
10638 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
10639 if test $ac_cv_func_chown_works = yes; then
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_CHOWN 1
10643 _ACEOF
10647 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10648 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
10649 if test "${ac_cv_func_closedir_void+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 if test "$cross_compiling" = yes; then
10653 ac_cv_func_closedir_void=yes
10654 else
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 $ac_includes_default
10662 #include <$ac_header_dirent>
10663 #ifndef __cplusplus
10664 int closedir ();
10665 #endif
10668 main ()
10670 return closedir (opendir (".")) != 0;
10672 return 0;
10674 _ACEOF
10675 rm -f conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_func_closedir_void=no
10696 else
10697 echo "$as_me: program exited with status $ac_status" >&5
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ( exit $ac_status )
10702 ac_cv_func_closedir_void=yes
10704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10709 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10710 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
10711 if test $ac_cv_func_closedir_void = yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define CLOSEDIR_VOID 1
10715 _ACEOF
10719 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10720 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_error_at_line+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 cat >conftest.$ac_ext <<_ACEOF
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <error.h>
10732 main ()
10734 error_at_line (0, 0, "", 0, "an error occurred");
10736 return 0;
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (ac_try="$ac_link"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext &&
10756 $as_test_x conftest$ac_exeext; then
10757 ac_cv_lib_error_at_line=yes
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_lib_error_at_line=no
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766 conftest$ac_exeext conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10769 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10770 if test $ac_cv_lib_error_at_line = no; then
10771 case " $LIBOBJS " in
10772 *" error.$ac_objext "* ) ;;
10773 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10775 esac
10780 for ac_header in vfork.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 else
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
10822 ac_header_compiler=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_header_compiler=no
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <$ac_header>
10844 _ACEOF
10845 if { (ac_try="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 }; then
10861 ac_header_preproc=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_header_preproc=no
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873 # So? What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 yes:no: )
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10882 no:yes:* )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10897 esac
10898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903 eval "$as_ac_Header=\$ac_header_preproc"
10905 ac_res=`eval echo '${'$as_ac_Header'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 _ACEOF
10917 done
10921 for ac_func in fork vfork
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10944 #ifdef __STDC__
10945 # include <limits.h>
10946 #else
10947 # include <assert.h>
10948 #endif
10950 #undef $ac_func
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 char $ac_func ();
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10963 choke me
10964 #endif
10967 main ()
10969 return $ac_func ();
10971 return 0;
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest$ac_exeext &&
10991 $as_test_x conftest$ac_exeext; then
10992 eval "$as_ac_var=yes"
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 eval "$as_ac_var=no"
11000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001 conftest$ac_exeext conftest.$ac_ext
11003 ac_res=`eval echo '${'$as_ac_var'}'`
11004 { echo "$as_me:$LINENO: result: $ac_res" >&5
11005 echo "${ECHO_T}$ac_res" >&6; }
11006 if test `eval echo '${'$as_ac_var'}'` = yes; then
11007 cat >>confdefs.h <<_ACEOF
11008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11009 _ACEOF
11012 done
11014 if test "x$ac_cv_func_fork" = xyes; then
11015 { echo "$as_me:$LINENO: checking for working fork" >&5
11016 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11017 if test "${ac_cv_func_fork_works+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 if test "$cross_compiling" = yes; then
11021 ac_cv_func_fork_works=cross
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11031 main ()
11034 /* By Ruediger Kuhlmann. */
11035 return fork () < 0;
11038 return 0;
11040 _ACEOF
11041 rm -f conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_func_fork_works=yes
11062 else
11063 echo "$as_me: program exited with status $ac_status" >&5
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ( exit $ac_status )
11068 ac_cv_func_fork_works=no
11070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11075 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11076 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11078 else
11079 ac_cv_func_fork_works=$ac_cv_func_fork
11081 if test "x$ac_cv_func_fork_works" = xcross; then
11082 case $host in
11083 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
11084 # Override, as these systems have only a dummy fork() stub
11085 ac_cv_func_fork_works=no
11088 ac_cv_func_fork_works=yes
11090 esac
11091 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11092 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11094 ac_cv_func_vfork_works=$ac_cv_func_vfork
11095 if test "x$ac_cv_func_vfork" = xyes; then
11096 { echo "$as_me:$LINENO: checking for working vfork" >&5
11097 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11098 if test "${ac_cv_func_vfork_works+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101 if test "$cross_compiling" = yes; then
11102 ac_cv_func_vfork_works=cross
11103 else
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 /* Thanks to Paul Eggert for this test. */
11111 $ac_includes_default
11112 #include <sys/wait.h>
11113 #ifdef HAVE_VFORK_H
11114 # include <vfork.h>
11115 #endif
11116 /* On some sparc systems, changes by the child to local and incoming
11117 argument registers are propagated back to the parent. The compiler
11118 is told about this with #include <vfork.h>, but some compilers
11119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11120 static variable whose address is put into a register that is
11121 clobbered by the vfork. */
11122 static void
11123 #ifdef __cplusplus
11124 sparc_address_test (int arg)
11125 # else
11126 sparc_address_test (arg) int arg;
11127 #endif
11129 static pid_t child;
11130 if (!child) {
11131 child = vfork ();
11132 if (child < 0) {
11133 perror ("vfork");
11134 _exit(2);
11136 if (!child) {
11137 arg = getpid();
11138 write(-1, "", 0);
11139 _exit (arg);
11145 main ()
11147 pid_t parent = getpid ();
11148 pid_t child;
11150 sparc_address_test (0);
11152 child = vfork ();
11154 if (child == 0) {
11155 /* Here is another test for sparc vfork register problems. This
11156 test uses lots of local variables, at least as many local
11157 variables as main has allocated so far including compiler
11158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11160 reuse the register of parent for one of the local variables,
11161 since it will think that parent can't possibly be used any more
11162 in this routine. Assigning to the local variable will thus
11163 munge parent in the parent process. */
11164 pid_t
11165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11167 /* Convince the compiler that p..p7 are live; otherwise, it might
11168 use the same hardware register for all 8 local variables. */
11169 if (p != p1 || p != p2 || p != p3 || p != p4
11170 || p != p5 || p != p6 || p != p7)
11171 _exit(1);
11173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11174 from child file descriptors. If the child closes a descriptor
11175 before it execs or exits, this munges the parent's descriptor
11176 as well. Test for this by closing stdout in the child. */
11177 _exit(close(fileno(stdout)) != 0);
11178 } else {
11179 int status;
11180 struct stat st;
11182 while (wait(&status) != child)
11184 return (
11185 /* Was there some problem with vforking? */
11186 child < 0
11188 /* Did the child fail? (This shouldn't happen.) */
11189 || status
11191 /* Did the vfork/compiler bug occur? */
11192 || parent != getpid()
11194 /* Did the file descriptor bug occur? */
11195 || fstat(fileno(stdout), &st) != 0
11199 _ACEOF
11200 rm -f conftest$ac_exeext
11201 if { (ac_try="$ac_link"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_cv_func_vfork_works=yes
11221 else
11222 echo "$as_me: program exited with status $ac_status" >&5
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ( exit $ac_status )
11227 ac_cv_func_vfork_works=no
11229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11235 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11238 if test "x$ac_cv_func_fork_works" = xcross; then
11239 ac_cv_func_vfork_works=$ac_cv_func_vfork
11240 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11241 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11244 if test "x$ac_cv_func_vfork_works" = xyes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_WORKING_VFORK 1
11248 _ACEOF
11250 else
11252 cat >>confdefs.h <<\_ACEOF
11253 #define vfork fork
11254 _ACEOF
11257 if test "x$ac_cv_func_fork_works" = xyes; then
11259 cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_WORKING_FORK 1
11261 _ACEOF
11265 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11266 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11267 if test "${ac_cv_sys_largefile_source+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 while :; do
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <sys/types.h> /* for off_t */
11278 #include <stdio.h>
11280 main ()
11282 int (*fp) (FILE *, off_t, int) = fseeko;
11283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11285 return 0;
11287 _ACEOF
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (ac_try="$ac_link"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_link") 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } && {
11302 test -z "$ac_c_werror_flag" ||
11303 test ! -s conftest.err
11304 } && test -s conftest$ac_exeext &&
11305 $as_test_x conftest$ac_exeext; then
11306 ac_cv_sys_largefile_source=no; break
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11315 conftest$ac_exeext conftest.$ac_ext
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #define _LARGEFILE_SOURCE 1
11323 #include <sys/types.h> /* for off_t */
11324 #include <stdio.h>
11326 main ()
11328 int (*fp) (FILE *, off_t, int) = fseeko;
11329 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11331 return 0;
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest$ac_exeext &&
11351 $as_test_x conftest$ac_exeext; then
11352 ac_cv_sys_largefile_source=1; break
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11361 conftest$ac_exeext conftest.$ac_ext
11362 ac_cv_sys_largefile_source=unknown
11363 break
11364 done
11366 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11367 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11368 case $ac_cv_sys_largefile_source in #(
11369 no | unknown) ;;
11371 cat >>confdefs.h <<_ACEOF
11372 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11373 _ACEOF
11375 esac
11376 rm -f conftest*
11378 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11379 # in glibc 2.1.3, but that breaks too many other things.
11380 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11381 if test $ac_cv_sys_largefile_source != unknown; then
11383 cat >>confdefs.h <<\_ACEOF
11384 #define HAVE_FSEEKO 1
11385 _ACEOF
11389 if test $ac_cv_c_compiler_gnu = yes; then
11390 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11391 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11392 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395 ac_pattern="Autoconf.*'x'"
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <sgtty.h>
11403 Autoconf TIOCGETP
11404 _ACEOF
11405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11406 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11407 ac_cv_prog_gcc_traditional=yes
11408 else
11409 ac_cv_prog_gcc_traditional=no
11411 rm -f conftest*
11414 if test $ac_cv_prog_gcc_traditional = no; then
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <termio.h>
11422 Autoconf TCGETA
11423 _ACEOF
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11426 ac_cv_prog_gcc_traditional=yes
11428 rm -f conftest*
11432 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11433 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11434 if test $ac_cv_prog_gcc_traditional = yes; then
11435 CC="$CC -traditional"
11439 # XXX: these are commented out until we determine whether it matters if our malloc()
11440 # acts exactly like glibc's or not
11441 # AC_FUNC_MALLOC
11442 # AC_FUNC_REALLOC
11443 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11444 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11445 if test "${ac_cv_func_memcmp_working+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 if test "$cross_compiling" = yes; then
11449 ac_cv_func_memcmp_working=no
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11459 main ()
11462 /* Some versions of memcmp are not 8-bit clean. */
11463 char c0 = '\100', c1 = '\200', c2 = '\201';
11464 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11465 return 1;
11467 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11468 or more and with at least one buffer not starting on a 4-byte boundary.
11469 William Lewis provided this test program. */
11471 char foo[21];
11472 char bar[21];
11473 int i;
11474 for (i = 0; i < 4; i++)
11476 char *a = foo + i;
11477 char *b = bar + i;
11478 strcpy (a, "--------01111111");
11479 strcpy (b, "--------10000000");
11480 if (memcmp (a, b, 16) >= 0)
11481 return 1;
11483 return 0;
11487 return 0;
11489 _ACEOF
11490 rm -f conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_func_memcmp_working=yes
11511 else
11512 echo "$as_me: program exited with status $ac_status" >&5
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ( exit $ac_status )
11517 ac_cv_func_memcmp_working=no
11519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11524 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11525 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11526 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11527 *" memcmp.$ac_objext "* ) ;;
11528 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11530 esac
11537 for ac_header in $ac_header_list
11539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 ac_res=`eval echo '${'$as_ac_Header'}'`
11547 { echo "$as_me:$LINENO: result: $ac_res" >&5
11548 echo "${ECHO_T}$ac_res" >&6; }
11549 else
11550 # Is the header compilable?
11551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #include <$ac_header>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (ac_try="$ac_compile"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_compile") 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && {
11576 test -z "$ac_c_werror_flag" ||
11577 test ! -s conftest.err
11578 } && test -s conftest.$ac_objext; then
11579 ac_header_compiler=yes
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_compiler=no
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6; }
11591 # Is the header present?
11592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <$ac_header>
11601 _ACEOF
11602 if { (ac_try="$ac_cpp conftest.$ac_ext"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev/null && {
11615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 }; then
11618 ac_header_preproc=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 ac_header_preproc=no
11626 rm -f conftest.err conftest.$ac_ext
11627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6; }
11630 # So? What about this header?
11631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11632 yes:no: )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637 ac_header_preproc=yes
11639 no:yes:* )
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11654 esac
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 eval "$as_ac_Header=\$ac_header_preproc"
11662 ac_res=`eval echo '${'$as_ac_Header'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11670 _ACEOF
11674 done
11684 for ac_func in $ac_func_list
11686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11700 #define $ac_func innocuous_$ac_func
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below.
11704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 <limits.h> exists even on freestanding compilers. */
11707 #ifdef __STDC__
11708 # include <limits.h>
11709 #else
11710 # include <assert.h>
11711 #endif
11713 #undef $ac_func
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char $ac_func ();
11722 /* The GNU C library defines this for functions which it implements
11723 to always fail with ENOSYS. Some functions are actually named
11724 something starting with __ and the normal name is an alias. */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11726 choke me
11727 #endif
11730 main ()
11732 return $ac_func ();
11734 return 0;
11736 _ACEOF
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_link") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest$ac_exeext &&
11754 $as_test_x conftest$ac_exeext; then
11755 eval "$as_ac_var=yes"
11756 else
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 eval "$as_ac_var=no"
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764 conftest$ac_exeext conftest.$ac_ext
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772 _ACEOF
11775 done
11793 { echo "$as_me:$LINENO: checking for working mktime" >&5
11794 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11795 if test "${ac_cv_func_working_mktime+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 if test "$cross_compiling" = yes; then
11799 ac_cv_func_working_mktime=no
11800 else
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Test program from Paul Eggert and Tony Leneis. */
11808 #ifdef TIME_WITH_SYS_TIME
11809 # include <sys/time.h>
11810 # include <time.h>
11811 #else
11812 # ifdef HAVE_SYS_TIME_H
11813 # include <sys/time.h>
11814 # else
11815 # include <time.h>
11816 # endif
11817 #endif
11819 #include <stdlib.h>
11821 #ifdef HAVE_UNISTD_H
11822 # include <unistd.h>
11823 #endif
11825 #ifndef HAVE_ALARM
11826 # define alarm(X) /* empty */
11827 #endif
11829 /* Work around redefinition to rpl_putenv by other config tests. */
11830 #undef putenv
11832 static time_t time_t_max;
11833 static time_t time_t_min;
11835 /* Values we'll use to set the TZ environment variable. */
11836 static char *tz_strings[] = {
11837 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11838 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11840 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11842 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11843 Based on a problem report from Andreas Jaeger. */
11844 static int
11845 spring_forward_gap ()
11847 /* glibc (up to about 1998-10-07) failed this test. */
11848 struct tm tm;
11850 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11851 instead of "TZ=America/Vancouver" in order to detect the bug even
11852 on systems that don't support the Olson extension, or don't have the
11853 full zoneinfo tables installed. */
11854 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11856 tm.tm_year = 98;
11857 tm.tm_mon = 3;
11858 tm.tm_mday = 5;
11859 tm.tm_hour = 2;
11860 tm.tm_min = 0;
11861 tm.tm_sec = 0;
11862 tm.tm_isdst = -1;
11863 return mktime (&tm) != (time_t) -1;
11866 static int
11867 mktime_test1 (now)
11868 time_t now;
11870 struct tm *lt;
11871 return ! (lt = localtime (&now)) || mktime (lt) == now;
11874 static int
11875 mktime_test (now)
11876 time_t now;
11878 return (mktime_test1 (now)
11879 && mktime_test1 ((time_t) (time_t_max - now))
11880 && mktime_test1 ((time_t) (time_t_min + now)));
11883 static int
11884 irix_6_4_bug ()
11886 /* Based on code from Ariel Faigon. */
11887 struct tm tm;
11888 tm.tm_year = 96;
11889 tm.tm_mon = 3;
11890 tm.tm_mday = 0;
11891 tm.tm_hour = 0;
11892 tm.tm_min = 0;
11893 tm.tm_sec = 0;
11894 tm.tm_isdst = -1;
11895 mktime (&tm);
11896 return tm.tm_mon == 2 && tm.tm_mday == 31;
11899 static int
11900 bigtime_test (j)
11901 int j;
11903 struct tm tm;
11904 time_t now;
11905 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11906 now = mktime (&tm);
11907 if (now != (time_t) -1)
11909 struct tm *lt = localtime (&now);
11910 if (! (lt
11911 && lt->tm_year == tm.tm_year
11912 && lt->tm_mon == tm.tm_mon
11913 && lt->tm_mday == tm.tm_mday
11914 && lt->tm_hour == tm.tm_hour
11915 && lt->tm_min == tm.tm_min
11916 && lt->tm_sec == tm.tm_sec
11917 && lt->tm_yday == tm.tm_yday
11918 && lt->tm_wday == tm.tm_wday
11919 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11920 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11921 return 0;
11923 return 1;
11926 static int
11927 year_2050_test ()
11929 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11930 ignoring leap seconds. */
11931 unsigned long int answer = 2527315200UL;
11933 struct tm tm;
11934 time_t t;
11935 tm.tm_year = 2050 - 1900;
11936 tm.tm_mon = 2 - 1;
11937 tm.tm_mday = 1;
11938 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11939 tm.tm_isdst = -1;
11941 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11942 instead of "TZ=America/Vancouver" in order to detect the bug even
11943 on systems that don't support the Olson extension, or don't have the
11944 full zoneinfo tables installed. */
11945 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11947 t = mktime (&tm);
11949 /* Check that the result is either a failure, or close enough
11950 to the correct answer that we can assume the discrepancy is
11951 due to leap seconds. */
11952 return (t == (time_t) -1
11953 || (0 < t && answer - 120 <= t && t <= answer + 120));
11957 main ()
11959 time_t t, delta;
11960 int i, j;
11962 /* This test makes some buggy mktime implementations loop.
11963 Give up after 60 seconds; a mktime slower than that
11964 isn't worth using anyway. */
11965 alarm (60);
11967 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11968 continue;
11969 time_t_max--;
11970 if ((time_t) -1 < 0)
11971 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11972 continue;
11973 delta = time_t_max / 997; /* a suitable prime number */
11974 for (i = 0; i < N_STRINGS; i++)
11976 if (tz_strings[i])
11977 putenv (tz_strings[i]);
11979 for (t = 0; t <= time_t_max - delta; t += delta)
11980 if (! mktime_test (t))
11981 return 1;
11982 if (! (mktime_test ((time_t) 1)
11983 && mktime_test ((time_t) (60 * 60))
11984 && mktime_test ((time_t) (60 * 60 * 24))))
11985 return 1;
11987 for (j = 1; 0 < j; j *= 2)
11988 if (! bigtime_test (j))
11989 return 1;
11990 if (! bigtime_test (j - 1))
11991 return 1;
11993 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11995 _ACEOF
11996 rm -f conftest$ac_exeext
11997 if { (ac_try="$ac_link"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_link") 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func_working_mktime=yes
12017 else
12018 echo "$as_me: program exited with status $ac_status" >&5
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ( exit $ac_status )
12023 ac_cv_func_working_mktime=no
12025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12031 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12032 if test $ac_cv_func_working_mktime = no; then
12033 case " $LIBOBJS " in
12034 *" mktime.$ac_objext "* ) ;;
12035 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12037 esac
12043 for ac_header in stdlib.h unistd.h
12045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 ac_res=`eval echo '${'$as_ac_Header'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12055 else
12056 # Is the header compilable?
12057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 #include <$ac_header>
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.$ac_objext; then
12085 ac_header_compiler=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_header_compiler=no
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12095 echo "${ECHO_T}$ac_header_compiler" >&6; }
12097 # Is the header present?
12098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <$ac_header>
12107 _ACEOF
12108 if { (ac_try="$ac_cpp conftest.$ac_ext"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } >/dev/null && {
12121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 }; then
12124 ac_header_preproc=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_header_preproc=no
12132 rm -f conftest.err conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134 echo "${ECHO_T}$ac_header_preproc" >&6; }
12136 # So? What about this header?
12137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12138 yes:no: )
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143 ac_header_preproc=yes
12145 no:yes:* )
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12160 esac
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166 eval "$as_ac_Header=\$ac_header_preproc"
12168 ac_res=`eval echo '${'$as_ac_Header'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12176 _ACEOF
12180 done
12183 for ac_func in getpagesize
12185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12206 #ifdef __STDC__
12207 # include <limits.h>
12208 #else
12209 # include <assert.h>
12210 #endif
12212 #undef $ac_func
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char $ac_func ();
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined __stub_$ac_func || defined __stub___$ac_func
12225 choke me
12226 #endif
12229 main ()
12231 return $ac_func ();
12233 return 0;
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest$ac_exeext &&
12253 $as_test_x conftest$ac_exeext; then
12254 eval "$as_ac_var=yes"
12255 else
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 eval "$as_ac_var=no"
12262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12263 conftest$ac_exeext conftest.$ac_ext
12265 ac_res=`eval echo '${'$as_ac_var'}'`
12266 { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269 cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271 _ACEOF
12274 done
12276 { echo "$as_me:$LINENO: checking for working mmap" >&5
12277 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12278 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281 if test "$cross_compiling" = yes; then
12282 ac_cv_func_mmap_fixed_mapped=no
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 /* malloc might have been renamed as rpl_malloc. */
12292 #undef malloc
12294 /* Thanks to Mike Haertel and Jim Avera for this test.
12295 Here is a matrix of mmap possibilities:
12296 mmap private not fixed
12297 mmap private fixed at somewhere currently unmapped
12298 mmap private fixed at somewhere already mapped
12299 mmap shared not fixed
12300 mmap shared fixed at somewhere currently unmapped
12301 mmap shared fixed at somewhere already mapped
12302 For private mappings, we should verify that changes cannot be read()
12303 back from the file, nor mmap's back from the file at a different
12304 address. (There have been systems where private was not correctly
12305 implemented like the infamous i386 svr4.0, and systems where the
12306 VM page cache was not coherent with the file system buffer cache
12307 like early versions of FreeBSD and possibly contemporary NetBSD.)
12308 For shared mappings, we should conversely verify that changes get
12309 propagated back to all the places they're supposed to be.
12311 Grep wants private fixed already mapped.
12312 The main things grep needs to know about mmap are:
12313 * does it exist and is it safe to write into the mmap'd area
12314 * how to use it (BSD variants) */
12316 #include <fcntl.h>
12317 #include <sys/mman.h>
12319 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12320 char *malloc ();
12321 #endif
12323 /* This mess was copied from the GNU getpagesize.h. */
12324 #ifndef HAVE_GETPAGESIZE
12325 /* Assume that all systems that can run configure have sys/param.h. */
12326 # ifndef HAVE_SYS_PARAM_H
12327 # define HAVE_SYS_PARAM_H 1
12328 # endif
12330 # ifdef _SC_PAGESIZE
12331 # define getpagesize() sysconf(_SC_PAGESIZE)
12332 # else /* no _SC_PAGESIZE */
12333 # ifdef HAVE_SYS_PARAM_H
12334 # include <sys/param.h>
12335 # ifdef EXEC_PAGESIZE
12336 # define getpagesize() EXEC_PAGESIZE
12337 # else /* no EXEC_PAGESIZE */
12338 # ifdef NBPG
12339 # define getpagesize() NBPG * CLSIZE
12340 # ifndef CLSIZE
12341 # define CLSIZE 1
12342 # endif /* no CLSIZE */
12343 # else /* no NBPG */
12344 # ifdef NBPC
12345 # define getpagesize() NBPC
12346 # else /* no NBPC */
12347 # ifdef PAGESIZE
12348 # define getpagesize() PAGESIZE
12349 # endif /* PAGESIZE */
12350 # endif /* no NBPC */
12351 # endif /* no NBPG */
12352 # endif /* no EXEC_PAGESIZE */
12353 # else /* no HAVE_SYS_PARAM_H */
12354 # define getpagesize() 8192 /* punt totally */
12355 # endif /* no HAVE_SYS_PARAM_H */
12356 # endif /* no _SC_PAGESIZE */
12358 #endif /* no HAVE_GETPAGESIZE */
12361 main ()
12363 char *data, *data2, *data3;
12364 int i, pagesize;
12365 int fd;
12367 pagesize = getpagesize ();
12369 /* First, make a file with some known garbage in it. */
12370 data = (char *) malloc (pagesize);
12371 if (!data)
12372 return 1;
12373 for (i = 0; i < pagesize; ++i)
12374 *(data + i) = rand ();
12375 umask (0);
12376 fd = creat ("conftest.mmap", 0600);
12377 if (fd < 0)
12378 return 1;
12379 if (write (fd, data, pagesize) != pagesize)
12380 return 1;
12381 close (fd);
12383 /* Next, try to mmap the file at a fixed address which already has
12384 something else allocated at it. If we can, also make sure that
12385 we see the same garbage. */
12386 fd = open ("conftest.mmap", O_RDWR);
12387 if (fd < 0)
12388 return 1;
12389 data2 = (char *) malloc (2 * pagesize);
12390 if (!data2)
12391 return 1;
12392 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12393 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12394 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12395 return 1;
12396 for (i = 0; i < pagesize; ++i)
12397 if (*(data + i) != *(data2 + i))
12398 return 1;
12400 /* Finally, make sure that changes to the mapped area do not
12401 percolate back to the file as seen by read(). (This is a bug on
12402 some variants of i386 svr4.0.) */
12403 for (i = 0; i < pagesize; ++i)
12404 *(data2 + i) = *(data2 + i) + 1;
12405 data3 = (char *) malloc (pagesize);
12406 if (!data3)
12407 return 1;
12408 if (read (fd, data3, pagesize) != pagesize)
12409 return 1;
12410 for (i = 0; i < pagesize; ++i)
12411 if (*(data + i) != *(data3 + i))
12412 return 1;
12413 close (fd);
12414 return 0;
12416 _ACEOF
12417 rm -f conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_func_mmap_fixed_mapped=yes
12438 else
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ( exit $ac_status )
12444 ac_cv_func_mmap_fixed_mapped=no
12446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_MMAP 1
12457 _ACEOF
12460 rm -f conftest.mmap
12464 for ac_header in sys/select.h sys/socket.h
12466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_res=`eval echo '${'$as_ac_Header'}'`
12474 { echo "$as_me:$LINENO: result: $ac_res" >&5
12475 echo "${ECHO_T}$ac_res" >&6; }
12476 else
12477 # Is the header compilable?
12478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h. */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 $ac_includes_default
12487 #include <$ac_header>
12488 _ACEOF
12489 rm -f conftest.$ac_objext
12490 if { (ac_try="$ac_compile"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_compile") 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest.$ac_objext; then
12506 ac_header_compiler=yes
12507 else
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_compiler=no
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12516 echo "${ECHO_T}$ac_header_compiler" >&6; }
12518 # Is the header present?
12519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <$ac_header>
12528 _ACEOF
12529 if { (ac_try="$ac_cpp conftest.$ac_ext"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev/null && {
12542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 }; then
12545 ac_header_preproc=yes
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_header_preproc=no
12553 rm -f conftest.err conftest.$ac_ext
12554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12555 echo "${ECHO_T}$ac_header_preproc" >&6; }
12557 # So? What about this header?
12558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12559 yes:no: )
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12564 ac_header_preproc=yes
12566 no:yes:* )
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12581 esac
12582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 eval "$as_ac_Header=\$ac_header_preproc"
12589 ac_res=`eval echo '${'$as_ac_Header'}'`
12590 { echo "$as_me:$LINENO: result: $ac_res" >&5
12591 echo "${ECHO_T}$ac_res" >&6; }
12594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12597 _ACEOF
12601 done
12603 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12604 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12605 if test "${ac_cv_func_select_args+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12609 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12610 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 $ac_includes_default
12618 #ifdef HAVE_SYS_SELECT_H
12619 # include <sys/select.h>
12620 #endif
12621 #ifdef HAVE_SYS_SOCKET_H
12622 # include <sys/socket.h>
12623 #endif
12626 main ()
12628 extern int select ($ac_arg1,
12629 $ac_arg234, $ac_arg234, $ac_arg234,
12630 $ac_arg5);
12632 return 0;
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (ac_try="$ac_compile"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
12652 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 done
12662 done
12663 done
12664 # Provide a safe default value.
12665 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12668 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12669 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12670 ac_save_IFS=$IFS; IFS=','
12671 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12672 IFS=$ac_save_IFS
12673 shift
12675 cat >>confdefs.h <<_ACEOF
12676 #define SELECT_TYPE_ARG1 $1
12677 _ACEOF
12680 cat >>confdefs.h <<_ACEOF
12681 #define SELECT_TYPE_ARG234 ($2)
12682 _ACEOF
12685 cat >>confdefs.h <<_ACEOF
12686 #define SELECT_TYPE_ARG5 ($3)
12687 _ACEOF
12689 rm -f conftest*
12691 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12692 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12693 if test "$ac_cv_prog_cc_c89" != no; then
12694 { echo "$as_me:$LINENO: result: yes" >&5
12695 echo "${ECHO_T}yes" >&6; }
12697 cat >>confdefs.h <<\_ACEOF
12698 #define PROTOTYPES 1
12699 _ACEOF
12702 cat >>confdefs.h <<\_ACEOF
12703 #define __PROTOTYPES 1
12704 _ACEOF
12706 else
12707 { echo "$as_me:$LINENO: result: no" >&5
12708 echo "${ECHO_T}no" >&6; }
12711 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12712 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12713 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 ac_cv_func_setvbuf_reversed=no
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <stdio.h>
12724 # ifdef PROTOTYPES
12725 int (setvbuf) (FILE *, int, char *, size_t);
12726 # endif
12728 main ()
12730 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12732 return 0;
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <stdio.h>
12760 # ifdef PROTOTYPES
12761 int (setvbuf) (FILE *, int, char *, size_t);
12762 # endif
12764 main ()
12766 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest$ac_exeext &&
12788 $as_test_x conftest$ac_exeext; then
12789 # It compiles and links either way, so it must not be declared
12790 # with a prototype and most likely this is a K&R C compiler.
12791 # Try running it.
12792 if test "$cross_compiling" = yes; then
12793 : # Assume setvbuf is not reversed when cross-compiling.
12794 else
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12803 main ()
12805 /* This call has the arguments reversed.
12806 A reversed system may check and see that the address of buf
12807 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12808 char buf;
12809 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12810 return 1;
12811 putchar ('\r');
12812 return 0; /* Non-reversed systems SEGV here. */
12814 return 0;
12816 _ACEOF
12817 rm -f conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_func_setvbuf_reversed=yes
12838 else
12839 echo "$as_me: program exited with status $ac_status" >&5
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12848 ac_cv_func_setvbuf_reversed=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12869 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12870 if test $ac_cv_func_setvbuf_reversed = yes; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define SETVBUF_REVERSED 1
12874 _ACEOF
12878 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12880 if test "${ac_cv_type_signal+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <sys/types.h>
12890 #include <signal.h>
12893 main ()
12895 return *(signal (0, 0)) (0) == 1;
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.$ac_objext; then
12917 ac_cv_type_signal=int
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_cv_type_signal=void
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12928 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12930 cat >>confdefs.h <<_ACEOF
12931 #define RETSIGTYPE $ac_cv_type_signal
12932 _ACEOF
12935 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12936 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12937 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940 rm -f conftest.sym conftest.file
12941 echo >conftest.file
12942 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12943 if test "$cross_compiling" = yes; then
12944 ac_cv_func_lstat_dereferences_slashed_symlink=no
12945 else
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12954 main ()
12956 struct stat sbuf;
12957 /* Linux will dereference the symlink and fail.
12958 That is better in the sense that it means we will not
12959 have to compile and use the lstat wrapper. */
12960 return lstat ("conftest.sym/", &sbuf) == 0;
12962 return 0;
12964 _ACEOF
12965 rm -f conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970 esac
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_func_lstat_dereferences_slashed_symlink=yes
12986 else
12987 echo "$as_me: program exited with status $ac_status" >&5
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 ( exit $ac_status )
12992 ac_cv_func_lstat_dereferences_slashed_symlink=no
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12998 else
12999 # If the `ln -s' command failed, then we probably don't even
13000 # have an lstat function.
13001 ac_cv_func_lstat_dereferences_slashed_symlink=no
13003 rm -f conftest.sym conftest.file
13006 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13007 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13009 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13011 cat >>confdefs.h <<_ACEOF
13012 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13013 _ACEOF
13016 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13017 case " $LIBOBJS " in
13018 *" lstat.$ac_objext "* ) ;;
13019 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13021 esac
13025 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13026 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13027 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 if test "$cross_compiling" = yes; then
13031 ac_cv_func_stat_empty_string_bug=yes
13032 else
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 $ac_includes_default
13041 main ()
13043 struct stat sbuf;
13044 return stat ("", &sbuf) == 0;
13046 return 0;
13048 _ACEOF
13049 rm -f conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_func_stat_empty_string_bug=no
13070 else
13071 echo "$as_me: program exited with status $ac_status" >&5
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ( exit $ac_status )
13076 ac_cv_func_stat_empty_string_bug=yes
13078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13084 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13085 if test $ac_cv_func_stat_empty_string_bug = yes; then
13086 case " $LIBOBJS " in
13087 *" stat.$ac_objext "* ) ;;
13088 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13090 esac
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_STAT_EMPTY_STRING_BUG 1
13095 _ACEOF
13099 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13100 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13101 if test "${ac_cv_func_strcoll_works+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104 if test "$cross_compiling" = yes; then
13105 ac_cv_func_strcoll_works=no
13106 else
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13115 main ()
13117 return (strcoll ("abc", "def") >= 0 ||
13118 strcoll ("ABC", "DEF") >= 0 ||
13119 strcoll ("123", "456") >= 0)
13121 return 0;
13123 _ACEOF
13124 rm -f conftest$ac_exeext
13125 if { (ac_try="$ac_link"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_link") 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_func_strcoll_works=yes
13145 else
13146 echo "$as_me: program exited with status $ac_status" >&5
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ( exit $ac_status )
13151 ac_cv_func_strcoll_works=no
13153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13159 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13160 if test $ac_cv_func_strcoll_works = yes; then
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_STRCOLL 1
13164 _ACEOF
13169 for ac_func in strftime
13171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13185 #define $ac_func innocuous_$ac_func
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func (); below.
13189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 <limits.h> exists even on freestanding compilers. */
13192 #ifdef __STDC__
13193 # include <limits.h>
13194 #else
13195 # include <assert.h>
13196 #endif
13198 #undef $ac_func
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char $ac_func ();
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined __stub_$ac_func || defined __stub___$ac_func
13211 choke me
13212 #endif
13215 main ()
13217 return $ac_func ();
13219 return 0;
13221 _ACEOF
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (ac_try="$ac_link"
13224 case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest$ac_exeext &&
13239 $as_test_x conftest$ac_exeext; then
13240 eval "$as_ac_var=yes"
13241 else
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 eval "$as_ac_var=no"
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249 conftest$ac_exeext conftest.$ac_ext
13251 ac_res=`eval echo '${'$as_ac_var'}'`
13252 { echo "$as_me:$LINENO: result: $ac_res" >&5
13253 echo "${ECHO_T}$ac_res" >&6; }
13254 if test `eval echo '${'$as_ac_var'}'` = yes; then
13255 cat >>confdefs.h <<_ACEOF
13256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13257 _ACEOF
13259 else
13260 # strftime is in -lintl on SCO UNIX.
13261 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-lintl $LIBS"
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13275 /* Override any GCC internal prototype to avoid an error.
13276 Use char because int might match the return type of a GCC
13277 builtin and then its argument prototype would still apply. */
13278 #ifdef __cplusplus
13279 extern "C"
13280 #endif
13281 char strftime ();
13283 main ()
13285 return strftime ();
13287 return 0;
13289 _ACEOF
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_link") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest$ac_exeext &&
13307 $as_test_x conftest$ac_exeext; then
13308 ac_cv_lib_intl_strftime=yes
13309 else
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_cv_lib_intl_strftime=no
13316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13320 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13322 if test $ac_cv_lib_intl_strftime = yes; then
13323 cat >>confdefs.h <<\_ACEOF
13324 #define HAVE_STRFTIME 1
13325 _ACEOF
13327 LIBS="-lintl $LIBS"
13331 done
13333 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13334 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13335 if test "${ac_cv_func_strnlen_working+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 if test "$cross_compiling" = yes; then
13339 ac_cv_func_strnlen_working=no
13340 else
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h. */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13349 main ()
13352 #define S "foobar"
13353 #define S_LEN (sizeof S - 1)
13355 /* At least one implementation is buggy: that of AIX 4.3 would
13356 give strnlen (S, 1) == 3. */
13358 int i;
13359 for (i = 0; i < S_LEN + 1; ++i)
13361 int expected = i <= S_LEN ? i : S_LEN;
13362 if (strnlen (S, i) != expected)
13363 return 1;
13365 return 0;
13368 return 0;
13370 _ACEOF
13371 rm -f conftest$ac_exeext
13372 if { (ac_try="$ac_link"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_func_strnlen_working=yes
13392 else
13393 echo "$as_me: program exited with status $ac_status" >&5
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ( exit $ac_status )
13398 ac_cv_func_strnlen_working=no
13400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13406 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13407 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13408 *" strnlen.$ac_objext "* ) ;;
13409 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13411 esac
13414 { echo "$as_me:$LINENO: checking for working strtod" >&5
13415 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13416 if test "${ac_cv_func_strtod+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419 if test "$cross_compiling" = yes; then
13420 ac_cv_func_strtod=no
13421 else
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13429 $ac_includes_default
13430 #ifndef strtod
13431 double strtod ();
13432 #endif
13434 main()
13437 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13438 char *string = " +69";
13439 char *term;
13440 double value;
13441 value = strtod (string, &term);
13442 if (value != 69 || term != (string + 4))
13443 return 1;
13447 /* Under Solaris 2.4, strtod returns the wrong value for the
13448 terminating character under some conditions. */
13449 char *string = "NaN";
13450 char *term;
13451 strtod (string, &term);
13452 if (term != string && *(term - 1) == 0)
13453 return 1;
13455 return 0;
13458 _ACEOF
13459 rm -f conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_cv_func_strtod=yes
13480 else
13481 echo "$as_me: program exited with status $ac_status" >&5
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ( exit $ac_status )
13486 ac_cv_func_strtod=no
13488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13493 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13494 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13495 if test $ac_cv_func_strtod = no; then
13496 case " $LIBOBJS " in
13497 *" strtod.$ac_objext "* ) ;;
13498 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13500 esac
13502 { echo "$as_me:$LINENO: checking for pow" >&5
13503 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13504 if test "${ac_cv_func_pow+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13515 #define pow innocuous_pow
13517 /* System header to define __stub macros and hopefully few prototypes,
13518 which can conflict with char pow (); below.
13519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13520 <limits.h> exists even on freestanding compilers. */
13522 #ifdef __STDC__
13523 # include <limits.h>
13524 #else
13525 # include <assert.h>
13526 #endif
13528 #undef pow
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 char pow ();
13537 /* The GNU C library defines this for functions which it implements
13538 to always fail with ENOSYS. Some functions are actually named
13539 something starting with __ and the normal name is an alias. */
13540 #if defined __stub_pow || defined __stub___pow
13541 choke me
13542 #endif
13545 main ()
13547 return pow ();
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (ac_try="$ac_link"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_link") 2>conftest.er1
13560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest$ac_exeext &&
13569 $as_test_x conftest$ac_exeext; then
13570 ac_cv_func_pow=yes
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_cv_func_pow=no
13578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13579 conftest$ac_exeext conftest.$ac_ext
13581 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13582 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13584 if test $ac_cv_func_pow = no; then
13585 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13586 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_m_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-lm $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h. */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13602 #ifdef __cplusplus
13603 extern "C"
13604 #endif
13605 char pow ();
13607 main ()
13609 return pow ();
13611 return 0;
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest$ac_exeext &&
13631 $as_test_x conftest$ac_exeext; then
13632 ac_cv_lib_m_pow=yes
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_cv_lib_m_pow=no
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13642 LIBS=$ac_check_lib_save_LIBS
13644 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13645 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13646 if test $ac_cv_lib_m_pow = yes; then
13647 POW_LIB=-lm
13648 else
13649 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13650 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13665 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13666 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13667 if test "${ac_cv_func_utime_null+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 rm -f conftest.data; >conftest.data
13671 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13672 if test "$cross_compiling" = yes; then
13673 ac_cv_func_utime_null=no
13674 else
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13682 #ifdef HAVE_UTIME_H
13683 # include <utime.h>
13684 #endif
13686 main ()
13688 struct stat s, t;
13689 return ! (stat ("conftest.data", &s) == 0
13690 && utime ("conftest.data", 0) == 0
13691 && stat ("conftest.data", &t) == 0
13692 && t.st_mtime >= s.st_mtime
13693 && t.st_mtime - s.st_mtime < 120);
13695 return 0;
13697 _ACEOF
13698 rm -f conftest$ac_exeext
13699 if { (ac_try="$ac_link"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_link") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_func_utime_null=yes
13719 else
13720 echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_func_utime_null=no
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13733 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13734 if test $ac_cv_func_utime_null = yes; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_UTIME_NULL 1
13738 _ACEOF
13741 rm -f conftest.data
13744 for ac_func in vprintf
13746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13760 #define $ac_func innocuous_$ac_func
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func (); below.
13764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13765 <limits.h> exists even on freestanding compilers. */
13767 #ifdef __STDC__
13768 # include <limits.h>
13769 #else
13770 # include <assert.h>
13771 #endif
13773 #undef $ac_func
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 char $ac_func ();
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined __stub_$ac_func || defined __stub___$ac_func
13786 choke me
13787 #endif
13790 main ()
13792 return $ac_func ();
13794 return 0;
13796 _ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (ac_try="$ac_link"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 eval "$as_ac_var=yes"
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 eval "$as_ac_var=no"
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13826 ac_res=`eval echo '${'$as_ac_var'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_var'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13832 _ACEOF
13834 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13835 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13836 if test "${ac_cv_func__doprnt+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13847 #define _doprnt innocuous__doprnt
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char _doprnt (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13854 #ifdef __STDC__
13855 # include <limits.h>
13856 #else
13857 # include <assert.h>
13858 #endif
13860 #undef _doprnt
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char _doprnt ();
13869 /* The GNU C library defines this for functions which it implements
13870 to always fail with ENOSYS. Some functions are actually named
13871 something starting with __ and the normal name is an alias. */
13872 #if defined __stub__doprnt || defined __stub____doprnt
13873 choke me
13874 #endif
13877 main ()
13879 return _doprnt ();
13881 return 0;
13883 _ACEOF
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest$ac_exeext &&
13901 $as_test_x conftest$ac_exeext; then
13902 ac_cv_func__doprnt=yes
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_func__doprnt=no
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13913 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13914 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
13915 if test $ac_cv_func__doprnt = yes; then
13917 cat >>confdefs.h <<\_ACEOF
13918 #define HAVE_DOPRNT 1
13919 _ACEOF
13924 done
13974 for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
13976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13990 #define $ac_func innocuous_$ac_func
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func (); below.
13994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13995 <limits.h> exists even on freestanding compilers. */
13997 #ifdef __STDC__
13998 # include <limits.h>
13999 #else
14000 # include <assert.h>
14001 #endif
14003 #undef $ac_func
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 char $ac_func ();
14012 /* The GNU C library defines this for functions which it implements
14013 to always fail with ENOSYS. Some functions are actually named
14014 something starting with __ and the normal name is an alias. */
14015 #if defined __stub_$ac_func || defined __stub___$ac_func
14016 choke me
14017 #endif
14020 main ()
14022 return $ac_func ();
14024 return 0;
14026 _ACEOF
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (ac_try="$ac_link"
14029 case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext &&
14044 $as_test_x conftest$ac_exeext; then
14045 eval "$as_ac_var=yes"
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 eval "$as_ac_var=no"
14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14054 conftest$ac_exeext conftest.$ac_ext
14056 ac_res=`eval echo '${'$as_ac_var'}'`
14057 { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14059 if test `eval echo '${'$as_ac_var'}'` = yes; then
14060 cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14062 _ACEOF
14065 done
14068 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14069 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h. */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <pthread.h>
14078 main ()
14080 int foo = PTHREAD_RWLOCK_INITIALIZER;
14082 return 0;
14084 _ACEOF
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (ac_try="$ac_link"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_link") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest$ac_exeext &&
14102 $as_test_x conftest$ac_exeext; then
14103 { echo "$as_me:$LINENO: result: yes" >&5
14104 echo "${ECHO_T}yes" >&6; }
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14108 _ACEOF
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 { echo "$as_me:$LINENO: result: no" >&5
14115 echo "${ECHO_T}no" >&6; }
14119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14120 conftest$ac_exeext conftest.$ac_ext
14122 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14123 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h. */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 #include <pthread.h>
14132 main ()
14134 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14136 return 0;
14138 _ACEOF
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (ac_try="$ac_link"
14141 case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_link") 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } && {
14153 test -z "$ac_c_werror_flag" ||
14154 test ! -s conftest.err
14155 } && test -s conftest$ac_exeext &&
14156 $as_test_x conftest$ac_exeext; then
14157 { echo "$as_me:$LINENO: result: yes" >&5
14158 echo "${ECHO_T}yes" >&6; }
14160 cat >>confdefs.h <<\_ACEOF
14161 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14162 _ACEOF
14164 else
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14174 conftest$ac_exeext conftest.$ac_ext
14176 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14177 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14186 main ()
14188 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14190 return 0;
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest$ac_exeext &&
14210 $as_test_x conftest$ac_exeext; then
14211 { echo "$as_me:$LINENO: result: yes" >&5
14212 echo "${ECHO_T}yes" >&6; }
14214 cat >>confdefs.h <<\_ACEOF
14215 #define HAVE_GCC_ATOMICS 1
14216 _ACEOF
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 { echo "$as_me:$LINENO: result: no" >&5
14223 echo "${ECHO_T}no" >&6; }
14227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14228 conftest$ac_exeext conftest.$ac_ext
14231 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14232 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 static int __attribute__((pure)) test(void) {}
14241 main ()
14245 return 0;
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (ac_try="$ac_compile"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_compile") 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest.$ac_objext; then
14265 { echo "$as_me:$LINENO: result: yes" >&5
14266 echo "${ECHO_T}yes" >&6; }
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_ATTRIBUTE_pure 1
14270 _ACEOF
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 { echo "$as_me:$LINENO: result: no" >&5
14277 echo "${ECHO_T}no" >&6; }
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14284 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14285 cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h. */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14291 static int __attribute__((malloc)) test(void) {}
14293 main ()
14297 return 0;
14299 _ACEOF
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest.$ac_objext; then
14317 { echo "$as_me:$LINENO: result: yes" >&5
14318 echo "${ECHO_T}yes" >&6; }
14320 cat >>confdefs.h <<_ACEOF
14321 #define HAVE_ATTRIBUTE_malloc 1
14322 _ACEOF
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14336 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 static int __attribute__((const)) test(void) {}
14345 main ()
14349 return 0;
14351 _ACEOF
14352 rm -f conftest.$ac_objext
14353 if { (ac_try="$ac_compile"
14354 case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_compile") 2>conftest.er1
14360 ac_status=$?
14361 grep -v '^ *+' conftest.er1 >conftest.err
14362 rm -f conftest.er1
14363 cat conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } && {
14366 test -z "$ac_c_werror_flag" ||
14367 test ! -s conftest.err
14368 } && test -s conftest.$ac_objext; then
14369 { echo "$as_me:$LINENO: result: yes" >&5
14370 echo "${ECHO_T}yes" >&6; }
14372 cat >>confdefs.h <<_ACEOF
14373 #define HAVE_ATTRIBUTE_const 1
14374 _ACEOF
14376 else
14377 echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 { echo "$as_me:$LINENO: result: no" >&5
14381 echo "${ECHO_T}no" >&6; }
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14388 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h. */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 static int __attribute__((unused)) test(void) {}
14397 main ()
14401 return 0;
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_compile") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest.$ac_objext; then
14421 { echo "$as_me:$LINENO: result: yes" >&5
14422 echo "${ECHO_T}yes" >&6; }
14424 cat >>confdefs.h <<_ACEOF
14425 #define HAVE_ATTRIBUTE_unused 1
14426 _ACEOF
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 { echo "$as_me:$LINENO: result: no" >&5
14433 echo "${ECHO_T}no" >&6; }
14436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14440 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14441 cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 static int __attribute__((always_inline)) test(void) {}
14449 main ()
14453 return 0;
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_compile") 2>conftest.er1
14464 ac_status=$?
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest.$ac_objext; then
14473 { echo "$as_me:$LINENO: result: yes" >&5
14474 echo "${ECHO_T}yes" >&6; }
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_ATTRIBUTE_always_inline 1
14478 _ACEOF
14480 else
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 { echo "$as_me:$LINENO: result: no" >&5
14485 echo "${ECHO_T}no" >&6; }
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14492 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14493 saved_CFLAGS="${CFLAGS}"
14494 CFLAGS="${CFLAGS} -ffunction-sections"
14495 cat >conftest.$ac_ext <<_ACEOF
14496 /* confdefs.h. */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14503 main ()
14505 int x = 1;
14507 return 0;
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.$ac_objext; then
14527 { echo "$as_me:$LINENO: result: yes" >&5
14528 echo "${ECHO_T}yes" >&6; }
14529 saved_LDFLAGS="${LDFLAGS}"
14530 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14531 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14532 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14533 cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14541 main ()
14543 int x = 1;
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 { echo "$as_me:$LINENO: result: yes" >&5
14567 echo "${ECHO_T}yes" >&6; }
14568 GC_CFLAGS="-ffunction-sections"
14569 GC_LDFLAGS="-Wl,--gc-sections"
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 { echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6; }
14579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LDFLAGS="${saved_LDFLAGS}"
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 { echo "$as_me:$LINENO: result: no" >&5
14587 echo "${ECHO_T}no" >&6; }
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 CFLAGS="${saved_CFLAGS}"
14596 { echo "$as_me:$LINENO: checking for res_ninit" >&5
14597 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h. */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 #include <resolv.h>
14606 main ()
14608 int foo = res_ninit(NULL);
14610 return 0;
14612 _ACEOF
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest$ac_exeext &&
14630 $as_test_x conftest$ac_exeext; then
14631 { echo "$as_me:$LINENO: result: yes" >&5
14632 echo "${ECHO_T}yes" >&6; }
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_RES_NINIT 1
14636 _ACEOF
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14648 conftest$ac_exeext conftest.$ac_ext
14650 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
14651 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h. */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 #include <dlfcn.h>
14660 main ()
14662 int foo = RTLD_NOLOAD;
14664 return 0;
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest$ac_exeext &&
14684 $as_test_x conftest$ac_exeext; then
14685 { echo "$as_me:$LINENO: result: yes" >&5
14686 echo "${ECHO_T}yes" >&6; }
14688 cat >>confdefs.h <<\_ACEOF
14689 #define HAVE_RTLD_NOLOAD 1
14690 _ACEOF
14692 else
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 { echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6; }
14701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14702 conftest$ac_exeext conftest.$ac_ext
14704 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
14705 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <netinet/in.h>
14714 main ()
14716 int foo = IP_MTU_DISCOVER;
14718 return 0;
14720 _ACEOF
14721 rm -f conftest.$ac_objext conftest$ac_exeext
14722 if { (ac_try="$ac_link"
14723 case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726 esac
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_link") 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } && {
14735 test -z "$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 } && test -s conftest$ac_exeext &&
14738 $as_test_x conftest$ac_exeext; then
14739 { echo "$as_me:$LINENO: result: yes" >&5
14740 echo "${ECHO_T}yes" >&6; }
14742 cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_IP_MTU_DISCOVER 1
14744 _ACEOF
14746 else
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 { echo "$as_me:$LINENO: result: no" >&5
14751 echo "${ECHO_T}no" >&6; }
14755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14756 conftest$ac_exeext conftest.$ac_ext
14758 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14759 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14760 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14761 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14765 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14766 else
14767 # Is the header compilable?
14768 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14769 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14770 cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h. */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14777 #include <libkern/OSAtomic.h>
14778 _ACEOF
14779 rm -f conftest.$ac_objext
14780 if { (ac_try="$ac_compile"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_compile") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest.$ac_objext; then
14796 ac_header_compiler=yes
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_header_compiler=no
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806 echo "${ECHO_T}$ac_header_compiler" >&6; }
14808 # Is the header present?
14809 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14810 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <libkern/OSAtomic.h>
14818 _ACEOF
14819 if { (ac_try="$ac_cpp conftest.$ac_ext"
14820 case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14823 esac
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } >/dev/null && {
14832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14833 test ! -s conftest.err
14834 }; then
14835 ac_header_preproc=yes
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_header_preproc=no
14843 rm -f conftest.err conftest.$ac_ext
14844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14845 echo "${ECHO_T}$ac_header_preproc" >&6; }
14847 # So? What about this header?
14848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14849 yes:no: )
14850 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14851 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14853 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14854 ac_header_preproc=yes
14856 no:yes:* )
14857 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14858 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14860 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14862 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14864 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14866 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14868 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14871 esac
14872 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14873 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14874 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
14879 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14880 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14883 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_OSX_ATOMICS 1
14887 _ACEOF
14893 { echo "$as_me:$LINENO: checking for int" >&5
14894 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14895 if test "${ac_cv_type_int+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 $ac_includes_default
14905 typedef int ac__type_new_;
14907 main ()
14909 if ((ac__type_new_ *) 0)
14910 return 0;
14911 if (sizeof (ac__type_new_))
14912 return 0;
14914 return 0;
14916 _ACEOF
14917 rm -f conftest.$ac_objext
14918 if { (ac_try="$ac_compile"
14919 case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_compile") 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest.$ac_objext; then
14934 ac_cv_type_int=yes
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_type_int=no
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14945 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14947 # The cast to long int works around a bug in the HP C Compiler
14948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14950 # This bug is HP SR number 8606223364.
14951 { echo "$as_me:$LINENO: checking size of int" >&5
14952 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14953 if test "${ac_cv_sizeof_int+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956 if test "$cross_compiling" = yes; then
14957 # Depending upon the size, compute the lo and hi bounds.
14958 cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14965 typedef int ac__type_sizeof_;
14967 main ()
14969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14970 test_array [0] = 0
14973 return 0;
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest.$ac_objext; then
14993 ac_lo=0 ac_mid=0
14994 while :; do
14995 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h. */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15001 $ac_includes_default
15002 typedef int ac__type_sizeof_;
15004 main ()
15006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15007 test_array [0] = 0
15010 return 0;
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest.$ac_objext; then
15030 ac_hi=$ac_mid; break
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 ac_lo=`expr $ac_mid + 1`
15036 if test $ac_lo -le $ac_mid; then
15037 ac_lo= ac_hi=
15038 break
15040 ac_mid=`expr 2 '*' $ac_mid + 1`
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 done
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 $ac_includes_default
15056 typedef int ac__type_sizeof_;
15058 main ()
15060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15061 test_array [0] = 0
15064 return 0;
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest.$ac_objext; then
15084 ac_hi=-1 ac_mid=-1
15085 while :; do
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 $ac_includes_default
15093 typedef int ac__type_sizeof_;
15095 main ()
15097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15098 test_array [0] = 0
15101 return 0;
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest.$ac_objext; then
15121 ac_lo=$ac_mid; break
15122 else
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_hi=`expr '(' $ac_mid ')' - 1`
15127 if test $ac_mid -le $ac_hi; then
15128 ac_lo= ac_hi=
15129 break
15131 ac_mid=`expr 2 '*' $ac_mid`
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135 done
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_lo= ac_hi=
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 # Binary search between lo and hi bounds.
15148 while test "x$ac_lo" != "x$ac_hi"; do
15149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h. */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15157 typedef int ac__type_sizeof_;
15159 main ()
15161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15162 test_array [0] = 0
15165 return 0;
15167 _ACEOF
15168 rm -f conftest.$ac_objext
15169 if { (ac_try="$ac_compile"
15170 case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_compile") 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } && {
15182 test -z "$ac_c_werror_flag" ||
15183 test ! -s conftest.err
15184 } && test -s conftest.$ac_objext; then
15185 ac_hi=$ac_mid
15186 else
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 ac_lo=`expr '(' $ac_mid ')' + 1`
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194 done
15195 case $ac_lo in
15196 ?*) ac_cv_sizeof_int=$ac_lo;;
15197 '') if test "$ac_cv_type_int" = yes; then
15198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15199 See \`config.log' for more details." >&5
15200 echo "$as_me: error: cannot compute sizeof (int)
15201 See \`config.log' for more details." >&2;}
15202 { (exit 77); exit 77; }; }
15203 else
15204 ac_cv_sizeof_int=0
15205 fi ;;
15206 esac
15207 else
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 $ac_includes_default
15215 typedef int ac__type_sizeof_;
15216 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15217 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15218 #include <stdio.h>
15219 #include <stdlib.h>
15221 main ()
15224 FILE *f = fopen ("conftest.val", "w");
15225 if (! f)
15226 return 1;
15227 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15229 long int i = longval ();
15230 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15231 return 1;
15232 fprintf (f, "%ld\n", i);
15234 else
15236 unsigned long int i = ulongval ();
15237 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15238 return 1;
15239 fprintf (f, "%lu\n", i);
15241 return ferror (f) || fclose (f) != 0;
15244 return 0;
15246 _ACEOF
15247 rm -f conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261 esac
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_sizeof_int=`cat conftest.val`
15268 else
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ( exit $ac_status )
15274 if test "$ac_cv_type_int" = yes; then
15275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15276 See \`config.log' for more details." >&5
15277 echo "$as_me: error: cannot compute sizeof (int)
15278 See \`config.log' for more details." >&2;}
15279 { (exit 77); exit 77; }; }
15280 else
15281 ac_cv_sizeof_int=0
15284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15286 rm -f conftest.val
15288 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15289 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15293 cat >>confdefs.h <<_ACEOF
15294 #define SIZEOF_INT $ac_cv_sizeof_int
15295 _ACEOF
15299 # do the package library checks now
15302 if test "${USE_ALSA}" != "no"; then
15303 pbxlibdir=""
15304 if test "x${ALSA_DIR}" != "x"; then
15305 if test -d ${ALSA_DIR}/lib; then
15306 pbxlibdir="-L${ALSA_DIR}/lib"
15307 else
15308 pbxlibdir="-L${ALSA_DIR}"
15311 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15312 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15313 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15328 #ifdef __cplusplus
15329 extern "C"
15330 #endif
15331 char snd_spcm_init ();
15333 main ()
15335 return snd_spcm_init ();
15337 return 0;
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest$ac_exeext &&
15357 $as_test_x conftest$ac_exeext; then
15358 ac_cv_lib_asound_snd_spcm_init=yes
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_lib_asound_snd_spcm_init=no
15366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS
15370 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15371 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15372 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15373 AST_ALSA_FOUND=yes
15374 else
15375 AST_ALSA_FOUND=no
15379 if test "${AST_ALSA_FOUND}" = "yes"; then
15380 ALSA_LIB="-lasound -lm -ldl"
15381 ALSA_HEADER_FOUND="1"
15382 if test "x${ALSA_DIR}" != "x"; then
15383 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15384 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15385 if test "xalsa/asoundlib.h" != "x" ; then
15386 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15389 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 else
15397 # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15399 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 $ac_includes_default
15407 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest.$ac_objext; then
15426 ac_header_compiler=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_compiler=no
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15440 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15448 _ACEOF
15449 if { (ac_try="$ac_cpp conftest.$ac_ext"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null && {
15462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 }; then
15465 ac_header_preproc=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_header_preproc=no
15473 rm -f conftest.err conftest.$ac_ext
15474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15475 echo "${ECHO_T}$ac_header_preproc" >&6; }
15477 # So? What about this header?
15478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15479 yes:no: )
15480 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15481 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15483 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15484 ac_header_preproc=yes
15486 no:yes:* )
15487 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15488 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15490 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15492 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15494 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15496 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15498 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15501 esac
15502 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15503 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 eval "$as_ac_Header=\$ac_header_preproc"
15509 ac_res=`eval echo '${'$as_ac_Header'}'`
15510 { echo "$as_me:$LINENO: result: $ac_res" >&5
15511 echo "${ECHO_T}$ac_res" >&6; }
15514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15515 ALSA_HEADER_FOUND=1
15516 else
15517 ALSA_HEADER_FOUND=0
15522 else
15523 if test "xalsa/asoundlib.h" != "x" ; then
15524 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15525 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15526 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15527 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15531 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15532 else
15533 # Is the header compilable?
15534 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15535 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15543 #include <alsa/asoundlib.h>
15544 _ACEOF
15545 rm -f conftest.$ac_objext
15546 if { (ac_try="$ac_compile"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest.$ac_objext; then
15562 ac_header_compiler=yes
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_header_compiler=no
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15572 echo "${ECHO_T}$ac_header_compiler" >&6; }
15574 # Is the header present?
15575 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
15576 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <alsa/asoundlib.h>
15584 _ACEOF
15585 if { (ac_try="$ac_cpp conftest.$ac_ext"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } >/dev/null && {
15598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 }; then
15601 ac_header_preproc=yes
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_header_preproc=no
15609 rm -f conftest.err conftest.$ac_ext
15610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15611 echo "${ECHO_T}$ac_header_preproc" >&6; }
15613 # So? What about this header?
15614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15615 yes:no: )
15616 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15617 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
15619 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15620 ac_header_preproc=yes
15622 no:yes:* )
15623 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
15624 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15626 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
15628 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15630 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15632 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15634 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15637 esac
15638 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15639 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15640 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 else
15643 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15645 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15646 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15649 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15650 ALSA_HEADER_FOUND=1
15651 else
15652 ALSA_HEADER_FOUND=0
15658 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
15659 if test ! -z "${ALSA_MANDATORY}" ;
15660 then
15661 { echo "$as_me:$LINENO: ***" >&5
15662 echo "$as_me: ***" >&6;}
15663 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
15664 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
15665 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
15666 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
15667 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15668 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15669 exit 1
15671 ALSA_LIB=""
15672 ALSA_INCLUDE=""
15673 PBX_ALSA=0
15674 else
15675 PBX_ALSA=1
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_ALSA 1
15679 _ACEOF
15682 elif test ! -z "${ALSA_MANDATORY}";
15683 then
15684 { echo "$as_me:$LINENO: ***" >&5
15685 echo "$as_me: ***" >&6;}
15686 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
15687 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
15688 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
15689 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
15690 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
15691 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
15692 exit 1
15698 if test "${USE_CURSES}" != "no"; then
15699 pbxlibdir=""
15700 if test "x${CURSES_DIR}" != "x"; then
15701 if test -d ${CURSES_DIR}/lib; then
15702 pbxlibdir="-L${CURSES_DIR}/lib"
15703 else
15704 pbxlibdir="-L${CURSES_DIR}"
15707 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15708 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
15709 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712 ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lcurses ${pbxlibdir} $LIBS"
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15724 #ifdef __cplusplus
15725 extern "C"
15726 #endif
15727 char initscr ();
15729 main ()
15731 return initscr ();
15733 return 0;
15735 _ACEOF
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (ac_try="$ac_link"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_link") 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } && {
15750 test -z "$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 } && test -s conftest$ac_exeext &&
15753 $as_test_x conftest$ac_exeext; then
15754 ac_cv_lib_curses_initscr=yes
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_cv_lib_curses_initscr=no
15762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15763 conftest$ac_exeext conftest.$ac_ext
15764 LIBS=$ac_check_lib_save_LIBS
15766 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15767 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15768 if test $ac_cv_lib_curses_initscr = yes; then
15769 AST_CURSES_FOUND=yes
15770 else
15771 AST_CURSES_FOUND=no
15775 if test "${AST_CURSES_FOUND}" = "yes"; then
15776 CURSES_LIB="-lcurses "
15777 CURSES_HEADER_FOUND="1"
15778 if test "x${CURSES_DIR}" != "x"; then
15779 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15780 CURSES_INCLUDE="-I${CURSES_DIR}/include"
15781 if test "xcurses.h" != "x" ; then
15782 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
15783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15784 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15785 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 ac_res=`eval echo '${'$as_ac_Header'}'`
15790 { echo "$as_me:$LINENO: result: $ac_res" >&5
15791 echo "${ECHO_T}$ac_res" >&6; }
15792 else
15793 # Is the header compilable?
15794 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
15795 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 $ac_includes_default
15803 #include <${CURSES_DIR}/include/curses.h>
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (ac_try="$ac_compile"
15807 case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810 esac
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_compile") 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && {
15819 test -z "$ac_c_werror_flag" ||
15820 test ! -s conftest.err
15821 } && test -s conftest.$ac_objext; then
15822 ac_header_compiler=yes
15823 else
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_header_compiler=no
15830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15832 echo "${ECHO_T}$ac_header_compiler" >&6; }
15834 # Is the header present?
15835 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
15836 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h. */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 #include <${CURSES_DIR}/include/curses.h>
15844 _ACEOF
15845 if { (ac_try="$ac_cpp conftest.$ac_ext"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } >/dev/null && {
15858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 }; then
15861 ac_header_preproc=yes
15862 else
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875 yes:no: )
15876 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15882 no:yes:* )
15883 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
15897 esac
15898 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
15899 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903 eval "$as_ac_Header=\$ac_header_preproc"
15905 ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911 CURSES_HEADER_FOUND=1
15912 else
15913 CURSES_HEADER_FOUND=0
15918 else
15919 if test "xcurses.h" != "x" ; then
15920 if test "${ac_cv_header_curses_h+set}" = set; then
15921 { echo "$as_me:$LINENO: checking for curses.h" >&5
15922 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
15923 if test "${ac_cv_header_curses_h+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
15927 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15928 else
15929 # Is the header compilable?
15930 { echo "$as_me:$LINENO: checking curses.h usability" >&5
15931 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 #include <curses.h>
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest.$ac_objext; then
15958 ac_header_compiler=yes
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_header_compiler=no
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15968 echo "${ECHO_T}$ac_header_compiler" >&6; }
15970 # Is the header present?
15971 { echo "$as_me:$LINENO: checking curses.h presence" >&5
15972 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 #include <curses.h>
15980 _ACEOF
15981 if { (ac_try="$ac_cpp conftest.$ac_ext"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null && {
15994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 }; then
15997 ac_header_preproc=yes
15998 else
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_preproc=no
16005 rm -f conftest.err conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16007 echo "${ECHO_T}$ac_header_preproc" >&6; }
16009 # So? What about this header?
16010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16011 yes:no: )
16012 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16013 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16015 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16016 ac_header_preproc=yes
16018 no:yes:* )
16019 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16020 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16022 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16024 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16026 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16030 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16033 esac
16034 { echo "$as_me:$LINENO: checking for curses.h" >&5
16035 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16036 if test "${ac_cv_header_curses_h+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 ac_cv_header_curses_h=$ac_header_preproc
16041 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16042 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16045 if test $ac_cv_header_curses_h = yes; then
16046 CURSES_HEADER_FOUND=1
16047 else
16048 CURSES_HEADER_FOUND=0
16054 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16055 if test ! -z "${CURSES_MANDATORY}" ;
16056 then
16057 { echo "$as_me:$LINENO: ***" >&5
16058 echo "$as_me: ***" >&6;}
16059 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16060 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16061 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16062 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16063 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16064 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16065 exit 1
16067 CURSES_LIB=""
16068 CURSES_INCLUDE=""
16069 PBX_CURSES=0
16070 else
16071 PBX_CURSES=1
16073 cat >>confdefs.h <<_ACEOF
16074 #define HAVE_CURSES 1
16075 _ACEOF
16078 elif test ! -z "${CURSES_MANDATORY}";
16079 then
16080 { echo "$as_me:$LINENO: ***" >&5
16081 echo "$as_me: ***" >&6;}
16082 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16083 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16084 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16085 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16086 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16087 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16088 exit 1
16093 GSM_INTERNAL="yes"
16095 GSM_SYSTEM="yes"
16096 if test "${USE_GSM}" != "no"; then
16097 if test "${GSM_DIR}" = "internal"; then
16098 GSM_SYSTEM="no"
16099 elif test "${GSM_DIR}" != ""; then
16100 GSM_INTERNAL="no"
16102 if test "${GSM_SYSTEM}" = "yes"; then
16103 gsmlibdir=""
16104 if test "x${GSM_DIR}" != "x"; then
16105 if test -d ${GSM_DIR}/lib; then
16106 gsmlibdir="-L${GSM_DIR}/lib"
16107 else
16108 gsmlibdir="-L${GSM_DIR}"
16111 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16112 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16113 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116 ac_check_lib_save_LIBS=$LIBS
16117 LIBS="-lgsm ${gsmlibdir} $LIBS"
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h. */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16125 /* Override any GCC internal prototype to avoid an error.
16126 Use char because int might match the return type of a GCC
16127 builtin and then its argument prototype would still apply. */
16128 #ifdef __cplusplus
16129 extern "C"
16130 #endif
16131 char gsm_create ();
16133 main ()
16135 return gsm_create ();
16137 return 0;
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest$ac_exeext &&
16157 $as_test_x conftest$ac_exeext; then
16158 ac_cv_lib_gsm_gsm_create=yes
16159 else
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_cv_lib_gsm_gsm_create=no
16166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16167 conftest$ac_exeext conftest.$ac_ext
16168 LIBS=$ac_check_lib_save_LIBS
16170 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16171 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16172 if test $ac_cv_lib_gsm_gsm_create = yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE_GSM 1
16176 _ACEOF
16180 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16181 GSM_LIB="-lgsm"
16182 if test "x${GSM_DIR}" != "x"; then
16183 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16184 GSM_INCLUDE="-I${GSM_DIR}/include"
16186 PBX_GSM=1
16187 GSM_INTERNAL="no"
16190 if test "${GSM_INTERNAL}" = "yes"; then
16191 PBX_GSM=1
16196 if test "${USE_IKSEMEL}" != "no"; then
16197 pbxlibdir=""
16198 if test "x${IKSEMEL_DIR}" != "x"; then
16199 if test -d ${IKSEMEL_DIR}/lib; then
16200 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16201 else
16202 pbxlibdir="-L${IKSEMEL_DIR}"
16205 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16206 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16207 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 ac_check_lib_save_LIBS=$LIBS
16211 LIBS="-liksemel ${pbxlibdir} $LIBS"
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16222 #ifdef __cplusplus
16223 extern "C"
16224 #endif
16225 char iks_start_sasl ();
16227 main ()
16229 return iks_start_sasl ();
16231 return 0;
16233 _ACEOF
16234 rm -f conftest.$ac_objext conftest$ac_exeext
16235 if { (ac_try="$ac_link"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_link") 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest$ac_exeext &&
16251 $as_test_x conftest$ac_exeext; then
16252 ac_cv_lib_iksemel_iks_start_sasl=yes
16253 else
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_cv_lib_iksemel_iks_start_sasl=no
16260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16264 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16265 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16266 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16267 AST_IKSEMEL_FOUND=yes
16268 else
16269 AST_IKSEMEL_FOUND=no
16273 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16274 IKSEMEL_LIB="-liksemel "
16275 IKSEMEL_HEADER_FOUND="1"
16276 if test "x${IKSEMEL_DIR}" != "x"; then
16277 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16278 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16279 if test "xiksemel.h" != "x" ; then
16280 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16282 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16283 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 ac_res=`eval echo '${'$as_ac_Header'}'`
16288 { echo "$as_me:$LINENO: result: $ac_res" >&5
16289 echo "${ECHO_T}$ac_res" >&6; }
16290 else
16291 # Is the header compilable?
16292 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16293 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 $ac_includes_default
16301 #include <${IKSEMEL_DIR}/include/iksemel.h>
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320 ac_header_compiler=yes
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_compiler=no
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16330 echo "${ECHO_T}$ac_header_compiler" >&6; }
16332 # Is the header present?
16333 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16334 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <${IKSEMEL_DIR}/include/iksemel.h>
16342 _ACEOF
16343 if { (ac_try="$ac_cpp conftest.$ac_ext"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } >/dev/null && {
16356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16357 test ! -s conftest.err
16358 }; then
16359 ac_header_preproc=yes
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_preproc=no
16367 rm -f conftest.err conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6; }
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 yes:no: )
16374 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16375 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16377 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16378 ac_header_preproc=yes
16380 no:yes:* )
16381 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16382 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16384 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16386 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16388 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16390 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16392 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16395 esac
16396 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16397 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401 eval "$as_ac_Header=\$ac_header_preproc"
16403 ac_res=`eval echo '${'$as_ac_Header'}'`
16404 { echo "$as_me:$LINENO: result: $ac_res" >&5
16405 echo "${ECHO_T}$ac_res" >&6; }
16408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16409 IKSEMEL_HEADER_FOUND=1
16410 else
16411 IKSEMEL_HEADER_FOUND=0
16416 else
16417 if test "xiksemel.h" != "x" ; then
16418 if test "${ac_cv_header_iksemel_h+set}" = set; then
16419 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16420 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16421 if test "${ac_cv_header_iksemel_h+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16425 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16426 else
16427 # Is the header compilable?
16428 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16429 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16430 cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h. */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 $ac_includes_default
16437 #include <iksemel.h>
16438 _ACEOF
16439 rm -f conftest.$ac_objext
16440 if { (ac_try="$ac_compile"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_compile") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest.$ac_objext; then
16456 ac_header_compiler=yes
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_header_compiler=no
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16466 echo "${ECHO_T}$ac_header_compiler" >&6; }
16468 # Is the header present?
16469 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16470 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h. */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 #include <iksemel.h>
16478 _ACEOF
16479 if { (ac_try="$ac_cpp conftest.$ac_ext"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } >/dev/null && {
16492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 }; then
16495 ac_header_preproc=yes
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 ac_header_preproc=no
16503 rm -f conftest.err conftest.$ac_ext
16504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16505 echo "${ECHO_T}$ac_header_preproc" >&6; }
16507 # So? What about this header?
16508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16509 yes:no: )
16510 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16511 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16513 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16514 ac_header_preproc=yes
16516 no:yes:* )
16517 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16518 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16520 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16521 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16522 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16524 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16526 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16528 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16531 esac
16532 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16533 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16534 if test "${ac_cv_header_iksemel_h+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537 ac_cv_header_iksemel_h=$ac_header_preproc
16539 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16540 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16543 if test $ac_cv_header_iksemel_h = yes; then
16544 IKSEMEL_HEADER_FOUND=1
16545 else
16546 IKSEMEL_HEADER_FOUND=0
16552 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16553 if test ! -z "${IKSEMEL_MANDATORY}" ;
16554 then
16555 { echo "$as_me:$LINENO: ***" >&5
16556 echo "$as_me: ***" >&6;}
16557 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
16558 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
16559 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
16560 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
16561 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16562 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16563 exit 1
16565 IKSEMEL_LIB=""
16566 IKSEMEL_INCLUDE=""
16567 PBX_IKSEMEL=0
16568 else
16569 PBX_IKSEMEL=1
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_IKSEMEL 1
16573 _ACEOF
16576 elif test ! -z "${IKSEMEL_MANDATORY}";
16577 then
16578 { echo "$as_me:$LINENO: ***" >&5
16579 echo "$as_me: ***" >&6;}
16580 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
16581 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
16582 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16583 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16584 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
16585 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
16586 exit 1
16591 if test "${PBX_IKSEMEL}" = 1; then
16593 if test "${USE_GNUTLS}" != "no"; then
16594 pbxlibdir=""
16595 if test "x${GNUTLS_DIR}" != "x"; then
16596 if test -d ${GNUTLS_DIR}/lib; then
16597 pbxlibdir="-L${GNUTLS_DIR}/lib"
16598 else
16599 pbxlibdir="-L${GNUTLS_DIR}"
16602 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
16603 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
16604 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607 ac_check_lib_save_LIBS=$LIBS
16608 LIBS="-lgnutls ${pbxlibdir} $LIBS"
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h. */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16616 /* Override any GCC internal prototype to avoid an error.
16617 Use char because int might match the return type of a GCC
16618 builtin and then its argument prototype would still apply. */
16619 #ifdef __cplusplus
16620 extern "C"
16621 #endif
16622 char gnutls_bye ();
16624 main ()
16626 return gnutls_bye ();
16628 return 0;
16630 _ACEOF
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest$ac_exeext &&
16648 $as_test_x conftest$ac_exeext; then
16649 ac_cv_lib_gnutls_gnutls_bye=yes
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_cv_lib_gnutls_gnutls_bye=no
16657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16658 conftest$ac_exeext conftest.$ac_ext
16659 LIBS=$ac_check_lib_save_LIBS
16661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
16662 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
16663 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
16664 AST_GNUTLS_FOUND=yes
16665 else
16666 AST_GNUTLS_FOUND=no
16670 if test "${AST_GNUTLS_FOUND}" = "yes"; then
16671 GNUTLS_LIB="-lgnutls "
16672 GNUTLS_HEADER_FOUND="1"
16673 if test "x${GNUTLS_DIR}" != "x"; then
16674 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
16675 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
16676 if test "x" != "x" ; then
16677 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
16678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16679 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16680 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 ac_res=`eval echo '${'$as_ac_Header'}'`
16685 { echo "$as_me:$LINENO: result: $ac_res" >&5
16686 echo "${ECHO_T}$ac_res" >&6; }
16687 else
16688 # Is the header compilable?
16689 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
16690 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 $ac_includes_default
16698 #include <${GNUTLS_DIR}/include/>
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (ac_try="$ac_compile"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_compile") 2>conftest.er1
16708 ac_status=$?
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && {
16714 test -z "$ac_c_werror_flag" ||
16715 test ! -s conftest.err
16716 } && test -s conftest.$ac_objext; then
16717 ac_header_compiler=yes
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ac_header_compiler=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16727 echo "${ECHO_T}$ac_header_compiler" >&6; }
16729 # Is the header present?
16730 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
16731 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
16732 cat >conftest.$ac_ext <<_ACEOF
16733 /* confdefs.h. */
16734 _ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 #include <${GNUTLS_DIR}/include/>
16739 _ACEOF
16740 if { (ac_try="$ac_cpp conftest.$ac_ext"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } >/dev/null && {
16753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 }; then
16756 ac_header_preproc=yes
16757 else
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_header_preproc=no
16764 rm -f conftest.err conftest.$ac_ext
16765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16766 echo "${ECHO_T}$ac_header_preproc" >&6; }
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16770 yes:no: )
16771 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
16772 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
16774 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
16775 ac_header_preproc=yes
16777 no:yes:* )
16778 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
16779 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
16781 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
16783 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
16785 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
16787 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
16789 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
16792 esac
16793 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
16794 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
16795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798 eval "$as_ac_Header=\$ac_header_preproc"
16800 ac_res=`eval echo '${'$as_ac_Header'}'`
16801 { echo "$as_me:$LINENO: result: $ac_res" >&5
16802 echo "${ECHO_T}$ac_res" >&6; }
16805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16806 GNUTLS_HEADER_FOUND=1
16807 else
16808 GNUTLS_HEADER_FOUND=0
16813 else
16814 if test "x" != "x" ; then
16815 if test "${ac_cv_header_+set}" = set; then
16816 { echo "$as_me:$LINENO: checking for " >&5
16817 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16818 if test "${ac_cv_header_+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16822 echo "${ECHO_T}$ac_cv_header_" >&6; }
16823 else
16824 # Is the header compilable?
16825 { echo "$as_me:$LINENO: checking usability" >&5
16826 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16834 #include <>
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest.$ac_objext; then
16853 ac_header_compiler=yes
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_header_compiler=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16863 echo "${ECHO_T}$ac_header_compiler" >&6; }
16865 # Is the header present?
16866 { echo "$as_me:$LINENO: checking presence" >&5
16867 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
16868 cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h. */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16874 #include <>
16875 _ACEOF
16876 if { (ac_try="$ac_cpp conftest.$ac_ext"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16883 ac_status=$?
16884 grep -v '^ *+' conftest.er1 >conftest.err
16885 rm -f conftest.er1
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } >/dev/null && {
16889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 }; then
16892 ac_header_preproc=yes
16893 else
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_header_preproc=no
16900 rm -f conftest.err conftest.$ac_ext
16901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16902 echo "${ECHO_T}$ac_header_preproc" >&6; }
16904 # So? What about this header?
16905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16906 yes:no: )
16907 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
16908 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
16910 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
16911 ac_header_preproc=yes
16913 no:yes:* )
16914 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
16915 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
16917 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
16919 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
16921 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
16923 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
16925 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
16928 esac
16929 { echo "$as_me:$LINENO: checking for " >&5
16930 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
16931 if test "${ac_cv_header_+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934 ac_cv_header_=$ac_header_preproc
16936 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
16937 echo "${ECHO_T}$ac_cv_header_" >&6; }
16940 if test $ac_cv_header_ = yes; then
16941 GNUTLS_HEADER_FOUND=1
16942 else
16943 GNUTLS_HEADER_FOUND=0
16949 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
16950 if test ! -z "${GNUTLS_MANDATORY}" ;
16951 then
16952 { echo "$as_me:$LINENO: ***" >&5
16953 echo "$as_me: ***" >&6;}
16954 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
16955 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
16956 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
16957 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
16958 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16959 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16960 exit 1
16962 GNUTLS_LIB=""
16963 GNUTLS_INCLUDE=""
16964 PBX_GNUTLS=0
16965 else
16966 PBX_GNUTLS=1
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_GNUTLS 1
16970 _ACEOF
16973 elif test ! -z "${GNUTLS_MANDATORY}";
16974 then
16975 { echo "$as_me:$LINENO: ***" >&5
16976 echo "$as_me: ***" >&6;}
16977 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
16978 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
16979 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16980 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16981 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
16982 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
16983 exit 1
16987 if test "${PBX_GNUTLS}" = 1; then
16988 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
16992 if test "${USE_IMAP_TK}" != "no"; then
16993 if test "${IMAP_TK_DIR}" = ""; then
16994 IMAP_TK_DIR=`pwd`"/../imap-2004g"
16996 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
16997 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
16998 saved_cppflags="${CPPFLAGS}"
16999 saved_libs="${LIBS}"
17000 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17001 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17003 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17004 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17005 cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 #include "c-client.h"
17012 void mm_searched (MAILSTREAM *stream,unsigned long number)
17015 void mm_exists (MAILSTREAM *stream,unsigned long number)
17018 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17021 void mm_flags (MAILSTREAM *stream,unsigned long number)
17024 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17027 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17030 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17033 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17036 void mm_log (char *string,long errflg)
17039 void mm_dlog (char *string)
17042 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17045 void mm_critical (MAILSTREAM *stream)
17048 void mm_nocritical (MAILSTREAM *stream)
17051 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17054 void mm_fatal (char *string)
17058 main ()
17061 MAILSTREAM *foo = mail_open(NULL, "", 0);
17065 return 0;
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (ac_try="$ac_link"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_link") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } && {
17082 test -z "$ac_c_werror_flag" ||
17083 test ! -s conftest.err
17084 } && test -s conftest$ac_exeext &&
17085 $as_test_x conftest$ac_exeext; then
17086 ac_cv_imap_tk="yes"
17087 else
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 ac_cv_imap_tk="no"
17095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17096 conftest$ac_exeext conftest.$ac_ext
17097 if test "${ac_cv_imap_tk}" = "yes"; then
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 #include "c-client.h"
17105 void mm_searched (MAILSTREAM *stream,unsigned long number)
17108 void mm_exists (MAILSTREAM *stream,unsigned long number)
17111 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17114 void mm_flags (MAILSTREAM *stream,unsigned long number)
17117 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17120 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17123 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17126 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17129 void mm_log (char *string,long errflg)
17132 void mm_dlog (char *string)
17135 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17138 void mm_critical (MAILSTREAM *stream)
17141 void mm_nocritical (MAILSTREAM *stream)
17144 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17147 void mm_fatal (char *string)
17151 main ()
17154 long check = mail_expunge_full(NULL, "", 0);
17158 return 0;
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext &&
17178 $as_test_x conftest$ac_exeext; then
17179 ac_cv_imap_tk2006="yes"
17180 else
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_cv_imap_tk2006="no"
17188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189 conftest$ac_exeext conftest.$ac_ext
17191 CPPFLAGS="${saved_cppflags}"
17192 LIBS="${saved_libs}"
17193 if test "${ac_cv_imap_tk}" = "yes"; then
17194 { echo "$as_me:$LINENO: result: yes" >&5
17195 echo "${ECHO_T}yes" >&6; }
17196 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17197 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17198 PBX_IMAP_TK=1
17200 cat >>confdefs.h <<\_ACEOF
17201 #define HAVE_IMAP_TK 1
17202 _ACEOF
17204 if test "${ac_cv_imap_tk2006}" = "yes"; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_IMAP_TK2006 1
17208 _ACEOF
17211 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17212 { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17214 { echo "$as_me:$LINENO: ***" >&5
17215 echo "$as_me: ***" >&6;}
17216 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17217 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17218 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17219 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17220 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17221 echo "$as_me: *** including --without-imap." >&6;}
17222 exit 1
17223 else
17224 { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17229 ac_ext=cpp
17230 ac_cpp='$CXXCPP $CPPFLAGS'
17231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17236 if test "${USE_KDE}" != "no"; then
17237 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17238 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17239 saved_libs="${LIBS}"
17240 saved_cppflags="${CPPFLAGS}"
17241 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17242 if test -d ${KDE_DIR}/lib; then
17243 kdelibdir="${KDE_DIR}/lib"
17244 else
17245 kdelibdir="${KDE_DIR}"
17247 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include "kcrash.h"
17258 main ()
17260 KCrash::defaultCrashHandler(1);
17262 return 0;
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_cxx_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 ac_cv_lib_kde_crash="yes"
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_cv_lib_kde_crash="no"
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17295 LIBS="${saved_libs}"
17296 CPPFLAGS="${saved_cppflags}"
17298 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17299 { echo "$as_me:$LINENO: result: yes" >&5
17300 echo "${ECHO_T}yes" >&6; }
17301 KDE_LIB="-lkdecore -lkdeui"
17302 if test "${KDE_DIR}" != ""; then
17303 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17304 KDE_INCLUDE="-I${KDE_DIR}/include"
17306 PBX_KDE=1
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_LIBKDE 1
17310 _ACEOF
17312 elif test ! -z "${KDE_MANDATORY}"; then
17313 { echo "$as_me:$LINENO: result: no" >&5
17314 echo "${ECHO_T}no" >&6; }
17315 { echo "$as_me:$LINENO: ***" >&5
17316 echo "$as_me: ***" >&6;}
17317 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17318 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17319 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17320 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17321 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17322 echo "$as_me: *** including --without-kde." >&6;}
17323 exit 1
17324 else
17325 { echo "$as_me:$LINENO: result: no" >&5
17326 echo "${ECHO_T}no" >&6; }
17329 if test "${PBX_KDE}" = 1; then
17330 if test -n "$ac_tool_prefix"; then
17331 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17332 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17335 if test "${ac_cv_path_KDEINIT+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 case $KDEINIT in
17339 [\\/]* | ?:[\\/]*)
17340 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17344 for as_dir in $PATH
17346 IFS=$as_save_IFS
17347 test -z "$as_dir" && as_dir=.
17348 for ac_exec_ext in '' $ac_executable_extensions; do
17349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17350 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17352 break 2
17354 done
17355 done
17356 IFS=$as_save_IFS
17359 esac
17361 KDEINIT=$ac_cv_path_KDEINIT
17362 if test -n "$KDEINIT"; then
17363 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17364 echo "${ECHO_T}$KDEINIT" >&6; }
17365 else
17366 { echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6; }
17372 if test -z "$ac_cv_path_KDEINIT"; then
17373 ac_pt_KDEINIT=$KDEINIT
17374 # Extract the first word of "kdeinit", so it can be a program name with args.
17375 set dummy kdeinit; ac_word=$2
17376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17378 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381 case $ac_pt_KDEINIT in
17382 [\\/]* | ?:[\\/]*)
17383 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17387 for as_dir in $PATH
17389 IFS=$as_save_IFS
17390 test -z "$as_dir" && as_dir=.
17391 for ac_exec_ext in '' $ac_executable_extensions; do
17392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17393 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17395 break 2
17397 done
17398 done
17399 IFS=$as_save_IFS
17402 esac
17404 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17405 if test -n "$ac_pt_KDEINIT"; then
17406 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17407 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17408 else
17409 { echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6; }
17413 if test "x$ac_pt_KDEINIT" = x; then
17414 KDEINIT="No"
17415 else
17416 case $cross_compiling:$ac_tool_warned in
17417 yes:)
17418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17419 whose name does not start with the host triplet. If you think this
17420 configuration is useful to you, please write to autoconf@gnu.org." >&5
17421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17422 whose name does not start with the host triplet. If you think this
17423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17424 ac_tool_warned=yes ;;
17425 esac
17426 KDEINIT=$ac_pt_KDEINIT
17428 else
17429 KDEINIT="$ac_cv_path_KDEINIT"
17432 if test ! x"${KDEINIT}" = xNo; then
17433 KDEDIR=$(${DIRNAME} ${KDEINIT})
17434 KDEDIR=$(${DIRNAME} ${KDEDIR})
17439 ac_ext=c
17440 ac_cpp='$CPP $CPPFLAGS'
17441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17447 if test "${USE_MISDN}" != "no"; then
17448 pbxlibdir=""
17449 if test "x${MISDN_DIR}" != "x"; then
17450 if test -d ${MISDN_DIR}/lib; then
17451 pbxlibdir="-L${MISDN_DIR}/lib"
17452 else
17453 pbxlibdir="-L${MISDN_DIR}"
17456 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17457 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17458 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461 ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply. */
17473 #ifdef __cplusplus
17474 extern "C"
17475 #endif
17476 char mISDN_open ();
17478 main ()
17480 return mISDN_open ();
17482 return 0;
17484 _ACEOF
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest$ac_exeext &&
17502 $as_test_x conftest$ac_exeext; then
17503 ac_cv_lib_mISDN_mISDN_open=yes
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ac_cv_lib_mISDN_mISDN_open=no
17511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17515 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17516 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17517 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17518 AST_MISDN_FOUND=yes
17519 else
17520 AST_MISDN_FOUND=no
17524 if test "${AST_MISDN_FOUND}" = "yes"; then
17525 MISDN_LIB="-lmISDN "
17526 MISDN_HEADER_FOUND="1"
17527 if test "x${MISDN_DIR}" != "x"; then
17528 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17529 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17530 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17531 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17533 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17534 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 ac_res=`eval echo '${'$as_ac_Header'}'`
17539 { echo "$as_me:$LINENO: result: $ac_res" >&5
17540 echo "${ECHO_T}$ac_res" >&6; }
17541 else
17542 # Is the header compilable?
17543 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17544 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17545 cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h. */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 $ac_includes_default
17552 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (ac_try="$ac_compile"
17556 case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } && {
17568 test -z "$ac_c_werror_flag" ||
17569 test ! -s conftest.err
17570 } && test -s conftest.$ac_objext; then
17571 ac_header_compiler=yes
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_header_compiler=no
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17581 echo "${ECHO_T}$ac_header_compiler" >&6; }
17583 # Is the header present?
17584 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
17585 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
17593 _ACEOF
17594 if { (ac_try="$ac_cpp conftest.$ac_ext"
17595 case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17601 ac_status=$?
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } >/dev/null && {
17607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17608 test ! -s conftest.err
17609 }; then
17610 ac_header_preproc=yes
17611 else
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 ac_header_preproc=no
17618 rm -f conftest.err conftest.$ac_ext
17619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17620 echo "${ECHO_T}$ac_header_preproc" >&6; }
17622 # So? What about this header?
17623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17624 yes:no: )
17625 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17626 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17627 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17628 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17629 ac_header_preproc=yes
17631 no:yes:* )
17632 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17633 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17635 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17637 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17639 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17641 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17643 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17646 esac
17647 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17648 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 eval "$as_ac_Header=\$ac_header_preproc"
17654 ac_res=`eval echo '${'$as_ac_Header'}'`
17655 { echo "$as_me:$LINENO: result: $ac_res" >&5
17656 echo "${ECHO_T}$ac_res" >&6; }
17659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17660 MISDN_HEADER_FOUND=1
17661 else
17662 MISDN_HEADER_FOUND=0
17667 else
17668 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17669 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17670 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17671 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17672 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17676 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17677 else
17678 # Is the header compilable?
17679 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
17680 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17688 #include <mISDNuser/mISDNlib.h>
17689 _ACEOF
17690 rm -f conftest.$ac_objext
17691 if { (ac_try="$ac_compile"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695 esac
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_compile") 2>conftest.er1
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && {
17704 test -z "$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 } && test -s conftest.$ac_objext; then
17707 ac_header_compiler=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_header_compiler=no
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17717 echo "${ECHO_T}$ac_header_compiler" >&6; }
17719 # Is the header present?
17720 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
17721 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
17722 cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h. */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 #include <mISDNuser/mISDNlib.h>
17729 _ACEOF
17730 if { (ac_try="$ac_cpp conftest.$ac_ext"
17731 case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17734 esac
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17737 ac_status=$?
17738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } >/dev/null && {
17743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17744 test ! -s conftest.err
17745 }; then
17746 ac_header_preproc=yes
17747 else
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_header_preproc=no
17754 rm -f conftest.err conftest.$ac_ext
17755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17756 echo "${ECHO_T}$ac_header_preproc" >&6; }
17758 # So? What about this header?
17759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17760 yes:no: )
17761 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17762 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
17764 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
17765 ac_header_preproc=yes
17767 no:yes:* )
17768 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
17769 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
17770 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
17771 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
17773 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
17775 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
17777 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
17778 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
17779 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
17782 esac
17783 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
17784 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17785 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
17790 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
17791 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
17794 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
17795 MISDN_HEADER_FOUND=1
17796 else
17797 MISDN_HEADER_FOUND=0
17803 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
17804 if test ! -z "${MISDN_MANDATORY}" ;
17805 then
17806 { echo "$as_me:$LINENO: ***" >&5
17807 echo "$as_me: ***" >&6;}
17808 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
17809 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
17810 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
17811 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
17812 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17813 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17814 exit 1
17816 MISDN_LIB=""
17817 MISDN_INCLUDE=""
17818 PBX_MISDN=0
17819 else
17820 PBX_MISDN=1
17822 cat >>confdefs.h <<_ACEOF
17823 #define HAVE_MISDN 1
17824 _ACEOF
17827 elif test ! -z "${MISDN_MANDATORY}";
17828 then
17829 { echo "$as_me:$LINENO: ***" >&5
17830 echo "$as_me: ***" >&6;}
17831 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
17832 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
17833 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17834 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17835 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
17836 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
17837 exit 1
17842 if test "${PBX_MISDN}" = 1; then
17844 if test "${USE_ISDNNET}" != "no"; then
17845 pbxlibdir=""
17846 if test "x${ISDNNET_DIR}" != "x"; then
17847 if test -d ${ISDNNET_DIR}/lib; then
17848 pbxlibdir="-L${ISDNNET_DIR}/lib"
17849 else
17850 pbxlibdir="-L${ISDNNET_DIR}"
17853 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
17854 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
17855 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 else
17858 ac_check_lib_save_LIBS=$LIBS
17859 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17867 /* Override any GCC internal prototype to avoid an error.
17868 Use char because int might match the return type of a GCC
17869 builtin and then its argument prototype would still apply. */
17870 #ifdef __cplusplus
17871 extern "C"
17872 #endif
17873 char init_manager ();
17875 main ()
17877 return init_manager ();
17879 return 0;
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 ac_cv_lib_isdnnet_init_manager=yes
17901 else
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_cv_lib_isdnnet_init_manager=no
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17912 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
17913 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
17914 if test $ac_cv_lib_isdnnet_init_manager = yes; then
17915 AST_ISDNNET_FOUND=yes
17916 else
17917 AST_ISDNNET_FOUND=no
17921 if test "${AST_ISDNNET_FOUND}" = "yes"; then
17922 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
17923 ISDNNET_HEADER_FOUND="1"
17924 if test "x${ISDNNET_DIR}" != "x"; then
17925 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
17926 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
17927 if test "xmISDNuser/isdn_net.h" != "x" ; then
17928 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
17929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17930 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
17931 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
17932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ac_res=`eval echo '${'$as_ac_Header'}'`
17936 { echo "$as_me:$LINENO: result: $ac_res" >&5
17937 echo "${ECHO_T}$ac_res" >&6; }
17938 else
17939 # Is the header compilable?
17940 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
17941 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17959 ac_status=$?
17960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest.$ac_objext; then
17968 ac_header_compiler=yes
17969 else
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_header_compiler=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17978 echo "${ECHO_T}$ac_header_compiler" >&6; }
17980 # Is the header present?
17981 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
17982 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
17990 _ACEOF
17991 if { (ac_try="$ac_cpp conftest.$ac_ext"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } >/dev/null && {
18004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 }; then
18007 ac_header_preproc=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_header_preproc=no
18015 rm -f conftest.err conftest.$ac_ext
18016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18017 echo "${ECHO_T}$ac_header_preproc" >&6; }
18019 # So? What about this header?
18020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18021 yes:no: )
18022 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18023 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18025 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18026 ac_header_preproc=yes
18028 no:yes:* )
18029 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18030 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18032 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18034 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18036 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18038 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18040 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18043 esac
18044 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18045 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049 eval "$as_ac_Header=\$ac_header_preproc"
18051 ac_res=`eval echo '${'$as_ac_Header'}'`
18052 { echo "$as_me:$LINENO: result: $ac_res" >&5
18053 echo "${ECHO_T}$ac_res" >&6; }
18056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18057 ISDNNET_HEADER_FOUND=1
18058 else
18059 ISDNNET_HEADER_FOUND=0
18064 else
18065 if test "xmISDNuser/isdn_net.h" != "x" ; then
18066 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18067 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18068 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18069 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18073 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18074 else
18075 # Is the header compilable?
18076 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18077 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18085 #include <mISDNuser/isdn_net.h>
18086 _ACEOF
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18092 esac
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } && {
18101 test -z "$ac_c_werror_flag" ||
18102 test ! -s conftest.err
18103 } && test -s conftest.$ac_objext; then
18104 ac_header_compiler=yes
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_header_compiler=no
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18114 echo "${ECHO_T}$ac_header_compiler" >&6; }
18116 # Is the header present?
18117 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18118 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18119 cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h. */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 #include <mISDNuser/isdn_net.h>
18126 _ACEOF
18127 if { (ac_try="$ac_cpp conftest.$ac_ext"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } >/dev/null && {
18140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18142 }; then
18143 ac_header_preproc=yes
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_header_preproc=no
18151 rm -f conftest.err conftest.$ac_ext
18152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18153 echo "${ECHO_T}$ac_header_preproc" >&6; }
18155 # So? What about this header?
18156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18157 yes:no: )
18158 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18159 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18161 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18162 ac_header_preproc=yes
18164 no:yes:* )
18165 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18166 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18168 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18170 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18172 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18174 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18176 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18179 esac
18180 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18181 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18182 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 else
18185 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18187 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18188 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18191 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18192 ISDNNET_HEADER_FOUND=1
18193 else
18194 ISDNNET_HEADER_FOUND=0
18200 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18201 if test ! -z "${ISDNNET_MANDATORY}" ;
18202 then
18203 { echo "$as_me:$LINENO: ***" >&5
18204 echo "$as_me: ***" >&6;}
18205 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18206 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18207 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18208 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18209 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18210 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18211 exit 1
18213 ISDNNET_LIB=""
18214 ISDNNET_INCLUDE=""
18215 PBX_ISDNNET=0
18216 else
18217 PBX_ISDNNET=1
18219 cat >>confdefs.h <<_ACEOF
18220 #define HAVE_ISDNNET 1
18221 _ACEOF
18224 elif test ! -z "${ISDNNET_MANDATORY}";
18225 then
18226 { echo "$as_me:$LINENO: ***" >&5
18227 echo "$as_me: ***" >&6;}
18228 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18229 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18230 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18231 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18232 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18233 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18234 exit 1
18239 if test "${USE_SUPPSERV}" != "no"; then
18240 pbxlibdir=""
18241 if test "x${SUPPSERV_DIR}" != "x"; then
18242 if test -d ${SUPPSERV_DIR}/lib; then
18243 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18244 else
18245 pbxlibdir="-L${SUPPSERV_DIR}"
18248 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18249 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18250 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253 ac_check_lib_save_LIBS=$LIBS
18254 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18255 cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h. */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18265 #ifdef __cplusplus
18266 extern "C"
18267 #endif
18268 char encodeFac ();
18270 main ()
18272 return encodeFac ();
18274 return 0;
18276 _ACEOF
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (ac_try="$ac_link"
18279 case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18282 esac
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_link") 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } && {
18291 test -z "$ac_c_werror_flag" ||
18292 test ! -s conftest.err
18293 } && test -s conftest$ac_exeext &&
18294 $as_test_x conftest$ac_exeext; then
18295 ac_cv_lib_suppserv_encodeFac=yes
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_cv_lib_suppserv_encodeFac=no
18303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18304 conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18307 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18308 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18309 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18310 AST_SUPPSERV_FOUND=yes
18311 else
18312 AST_SUPPSERV_FOUND=no
18316 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18317 SUPPSERV_LIB="-lsuppserv "
18318 SUPPSERV_HEADER_FOUND="1"
18319 if test "x${SUPPSERV_DIR}" != "x"; then
18320 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18321 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18322 if test "xmISDNuser/suppserv.h" != "x" ; then
18323 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18325 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18326 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_res=`eval echo '${'$as_ac_Header'}'`
18331 { echo "$as_me:$LINENO: result: $ac_res" >&5
18332 echo "${ECHO_T}$ac_res" >&6; }
18333 else
18334 # Is the header compilable?
18335 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18336 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h. */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 $ac_includes_default
18344 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18345 _ACEOF
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_compile") 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest.$ac_objext; then
18363 ac_header_compiler=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_header_compiler=no
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18373 echo "${ECHO_T}$ac_header_compiler" >&6; }
18375 # Is the header present?
18376 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18377 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h. */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18385 _ACEOF
18386 if { (ac_try="$ac_cpp conftest.$ac_ext"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } >/dev/null && {
18399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18400 test ! -s conftest.err
18401 }; then
18402 ac_header_preproc=yes
18403 else
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_header_preproc=no
18410 rm -f conftest.err conftest.$ac_ext
18411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6; }
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18416 yes:no: )
18417 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc=yes
18423 no:yes:* )
18424 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18438 esac
18439 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18440 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18443 else
18444 eval "$as_ac_Header=\$ac_header_preproc"
18446 ac_res=`eval echo '${'$as_ac_Header'}'`
18447 { echo "$as_me:$LINENO: result: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18452 SUPPSERV_HEADER_FOUND=1
18453 else
18454 SUPPSERV_HEADER_FOUND=0
18459 else
18460 if test "xmISDNuser/suppserv.h" != "x" ; then
18461 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18462 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18463 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18464 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18468 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18469 else
18470 # Is the header compilable?
18471 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18472 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 $ac_includes_default
18480 #include <mISDNuser/suppserv.h>
18481 _ACEOF
18482 rm -f conftest.$ac_objext
18483 if { (ac_try="$ac_compile"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_compile") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_c_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest.$ac_objext; then
18499 ac_header_compiler=yes
18500 else
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18504 ac_header_compiler=no
18507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18509 echo "${ECHO_T}$ac_header_compiler" >&6; }
18511 # Is the header present?
18512 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18513 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 #include <mISDNuser/suppserv.h>
18521 _ACEOF
18522 if { (ac_try="$ac_cpp conftest.$ac_ext"
18523 case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } >/dev/null && {
18535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 }; then
18538 ac_header_preproc=yes
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_header_preproc=no
18546 rm -f conftest.err conftest.$ac_ext
18547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18548 echo "${ECHO_T}$ac_header_preproc" >&6; }
18550 # So? What about this header?
18551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18552 yes:no: )
18553 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18554 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18555 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18556 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18557 ac_header_preproc=yes
18559 no:yes:* )
18560 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
18561 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18563 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18565 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18567 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18569 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18571 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18574 esac
18575 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18576 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18577 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
18582 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18583 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18586 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
18587 SUPPSERV_HEADER_FOUND=1
18588 else
18589 SUPPSERV_HEADER_FOUND=0
18595 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
18596 if test ! -z "${SUPPSERV_MANDATORY}" ;
18597 then
18598 { echo "$as_me:$LINENO: ***" >&5
18599 echo "$as_me: ***" >&6;}
18600 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
18601 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
18602 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
18603 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
18604 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18605 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18606 exit 1
18608 SUPPSERV_LIB=""
18609 SUPPSERV_INCLUDE=""
18610 PBX_SUPPSERV=0
18611 else
18612 PBX_SUPPSERV=1
18614 cat >>confdefs.h <<_ACEOF
18615 #define HAVE_SUPPSERV 1
18616 _ACEOF
18619 elif test ! -z "${SUPPSERV_MANDATORY}";
18620 then
18621 { echo "$as_me:$LINENO: ***" >&5
18622 echo "$as_me: ***" >&6;}
18623 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
18624 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
18625 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18626 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18627 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
18628 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
18629 exit 1
18636 if test "${USE_NBS}" != "no"; then
18637 pbxlibdir=""
18638 if test "x${NBS_DIR}" != "x"; then
18639 if test -d ${NBS_DIR}/lib; then
18640 pbxlibdir="-L${NBS_DIR}/lib"
18641 else
18642 pbxlibdir="-L${NBS_DIR}"
18645 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
18646 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
18647 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650 ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lnbs ${pbxlibdir} $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h. */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any GCC internal prototype to avoid an error.
18660 Use char because int might match the return type of a GCC
18661 builtin and then its argument prototype would still apply. */
18662 #ifdef __cplusplus
18663 extern "C"
18664 #endif
18665 char nbs_connect ();
18667 main ()
18669 return nbs_connect ();
18671 return 0;
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest$ac_exeext &&
18691 $as_test_x conftest$ac_exeext; then
18692 ac_cv_lib_nbs_nbs_connect=yes
18693 else
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_cv_lib_nbs_nbs_connect=no
18700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18701 conftest$ac_exeext conftest.$ac_ext
18702 LIBS=$ac_check_lib_save_LIBS
18704 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
18705 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
18706 if test $ac_cv_lib_nbs_nbs_connect = yes; then
18707 AST_NBS_FOUND=yes
18708 else
18709 AST_NBS_FOUND=no
18713 if test "${AST_NBS_FOUND}" = "yes"; then
18714 NBS_LIB="-lnbs "
18715 NBS_HEADER_FOUND="1"
18716 if test "x${NBS_DIR}" != "x"; then
18717 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
18718 NBS_INCLUDE="-I${NBS_DIR}/include"
18719 if test "xnbs.h" != "x" ; then
18720 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
18721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18722 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18723 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 ac_res=`eval echo '${'$as_ac_Header'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 else
18731 # Is the header compilable?
18732 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
18733 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 $ac_includes_default
18741 #include <${NBS_DIR}/include/nbs.h>
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_compile") 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest.$ac_objext; then
18760 ac_header_compiler=yes
18761 else
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_header_compiler=no
18768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18770 echo "${ECHO_T}$ac_header_compiler" >&6; }
18772 # Is the header present?
18773 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
18774 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <${NBS_DIR}/include/nbs.h>
18782 _ACEOF
18783 if { (ac_try="$ac_cpp conftest.$ac_ext"
18784 case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18787 esac
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } >/dev/null && {
18796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18797 test ! -s conftest.err
18798 }; then
18799 ac_header_preproc=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_header_preproc=no
18807 rm -f conftest.err conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18809 echo "${ECHO_T}$ac_header_preproc" >&6; }
18811 # So? What about this header?
18812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18813 yes:no: )
18814 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18815 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
18817 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
18818 ac_header_preproc=yes
18820 no:yes:* )
18821 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
18822 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
18823 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
18824 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
18825 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
18826 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
18827 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18828 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
18830 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
18832 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
18835 esac
18836 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
18837 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
18838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841 eval "$as_ac_Header=\$ac_header_preproc"
18843 ac_res=`eval echo '${'$as_ac_Header'}'`
18844 { echo "$as_me:$LINENO: result: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18849 NBS_HEADER_FOUND=1
18850 else
18851 NBS_HEADER_FOUND=0
18856 else
18857 if test "xnbs.h" != "x" ; then
18858 if test "${ac_cv_header_nbs_h+set}" = set; then
18859 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18860 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18861 if test "${ac_cv_header_nbs_h+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18865 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18866 else
18867 # Is the header compilable?
18868 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
18869 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h. */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 $ac_includes_default
18877 #include <nbs.h>
18878 _ACEOF
18879 rm -f conftest.$ac_objext
18880 if { (ac_try="$ac_compile"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_compile") 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } && {
18893 test -z "$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18895 } && test -s conftest.$ac_objext; then
18896 ac_header_compiler=yes
18897 else
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_compiler=no
18904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18906 echo "${ECHO_T}$ac_header_compiler" >&6; }
18908 # Is the header present?
18909 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
18910 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h. */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 #include <nbs.h>
18918 _ACEOF
18919 if { (ac_try="$ac_cpp conftest.$ac_ext"
18920 case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } >/dev/null && {
18932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18933 test ! -s conftest.err
18934 }; then
18935 ac_header_preproc=yes
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 ac_header_preproc=no
18943 rm -f conftest.err conftest.$ac_ext
18944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18945 echo "${ECHO_T}$ac_header_preproc" >&6; }
18947 # So? What about this header?
18948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18949 yes:no: )
18950 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
18951 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18952 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
18953 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
18954 ac_header_preproc=yes
18956 no:yes:* )
18957 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
18958 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
18960 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
18962 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
18964 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
18966 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
18968 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
18971 esac
18972 { echo "$as_me:$LINENO: checking for nbs.h" >&5
18973 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
18974 if test "${ac_cv_header_nbs_h+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977 ac_cv_header_nbs_h=$ac_header_preproc
18979 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
18980 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
18983 if test $ac_cv_header_nbs_h = yes; then
18984 NBS_HEADER_FOUND=1
18985 else
18986 NBS_HEADER_FOUND=0
18992 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
18993 if test ! -z "${NBS_MANDATORY}" ;
18994 then
18995 { echo "$as_me:$LINENO: ***" >&5
18996 echo "$as_me: ***" >&6;}
18997 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
18998 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
18999 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
19000 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
19001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19002 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19003 exit 1
19005 NBS_LIB=""
19006 NBS_INCLUDE=""
19007 PBX_NBS=0
19008 else
19009 PBX_NBS=1
19011 cat >>confdefs.h <<_ACEOF
19012 #define HAVE_NBS 1
19013 _ACEOF
19016 elif test ! -z "${NBS_MANDATORY}";
19017 then
19018 { echo "$as_me:$LINENO: ***" >&5
19019 echo "$as_me: ***" >&6;}
19020 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19021 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19022 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19023 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19024 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19025 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19026 exit 1
19032 if test "${USE_NCURSES}" != "no"; then
19033 pbxlibdir=""
19034 if test "x${NCURSES_DIR}" != "x"; then
19035 if test -d ${NCURSES_DIR}/lib; then
19036 pbxlibdir="-L${NCURSES_DIR}/lib"
19037 else
19038 pbxlibdir="-L${NCURSES_DIR}"
19041 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19042 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19043 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046 ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lncurses ${pbxlibdir} $LIBS"
19048 cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h. */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char initscr ();
19063 main ()
19065 return initscr ();
19067 return 0;
19069 _ACEOF
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (ac_try="$ac_link"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_link") 2>conftest.er1
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest$ac_exeext &&
19087 $as_test_x conftest$ac_exeext; then
19088 ac_cv_lib_ncurses_initscr=yes
19089 else
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_lib_ncurses_initscr=no
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19100 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19101 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19102 if test $ac_cv_lib_ncurses_initscr = yes; then
19103 AST_NCURSES_FOUND=yes
19104 else
19105 AST_NCURSES_FOUND=no
19109 if test "${AST_NCURSES_FOUND}" = "yes"; then
19110 NCURSES_LIB="-lncurses "
19111 NCURSES_HEADER_FOUND="1"
19112 if test "x${NCURSES_DIR}" != "x"; then
19113 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19114 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19115 if test "xcurses.h" != "x" ; then
19116 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19118 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19119 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 ac_res=`eval echo '${'$as_ac_Header'}'`
19124 { echo "$as_me:$LINENO: result: $ac_res" >&5
19125 echo "${ECHO_T}$ac_res" >&6; }
19126 else
19127 # Is the header compilable?
19128 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19129 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 $ac_includes_default
19137 #include <${NCURSES_DIR}/include/curses.h>
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.$ac_objext; then
19156 ac_header_compiler=yes
19157 else
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_header_compiler=no
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19166 echo "${ECHO_T}$ac_header_compiler" >&6; }
19168 # Is the header present?
19169 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19170 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h. */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 #include <${NCURSES_DIR}/include/curses.h>
19178 _ACEOF
19179 if { (ac_try="$ac_cpp conftest.$ac_ext"
19180 case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183 esac
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } >/dev/null && {
19192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19193 test ! -s conftest.err
19194 }; then
19195 ac_header_preproc=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_header_preproc=no
19203 rm -f conftest.err conftest.$ac_ext
19204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19205 echo "${ECHO_T}$ac_header_preproc" >&6; }
19207 # So? What about this header?
19208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19209 yes:no: )
19210 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19211 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19213 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19214 ac_header_preproc=yes
19216 no:yes:* )
19217 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19218 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19220 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19222 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19224 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19225 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19226 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19228 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19231 esac
19232 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19233 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 eval "$as_ac_Header=\$ac_header_preproc"
19239 ac_res=`eval echo '${'$as_ac_Header'}'`
19240 { echo "$as_me:$LINENO: result: $ac_res" >&5
19241 echo "${ECHO_T}$ac_res" >&6; }
19244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19245 NCURSES_HEADER_FOUND=1
19246 else
19247 NCURSES_HEADER_FOUND=0
19252 else
19253 if test "xcurses.h" != "x" ; then
19254 if test "${ac_cv_header_curses_h+set}" = set; then
19255 { echo "$as_me:$LINENO: checking for curses.h" >&5
19256 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19257 if test "${ac_cv_header_curses_h+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19261 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19262 else
19263 # Is the header compilable?
19264 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19265 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 $ac_includes_default
19273 #include <curses.h>
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.$ac_objext; then
19292 ac_header_compiler=yes
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ac_header_compiler=no
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19302 echo "${ECHO_T}$ac_header_compiler" >&6; }
19304 # Is the header present?
19305 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19306 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h. */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <curses.h>
19314 _ACEOF
19315 if { (ac_try="$ac_cpp conftest.$ac_ext"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19322 ac_status=$?
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } >/dev/null && {
19328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19329 test ! -s conftest.err
19330 }; then
19331 ac_header_preproc=yes
19332 else
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_header_preproc=no
19339 rm -f conftest.err conftest.$ac_ext
19340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19341 echo "${ECHO_T}$ac_header_preproc" >&6; }
19343 # So? What about this header?
19344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19345 yes:no: )
19346 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19347 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19349 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19350 ac_header_preproc=yes
19352 no:yes:* )
19353 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19354 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19356 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19358 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19360 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19362 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19364 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19367 esac
19368 { echo "$as_me:$LINENO: checking for curses.h" >&5
19369 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19370 if test "${ac_cv_header_curses_h+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373 ac_cv_header_curses_h=$ac_header_preproc
19375 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19376 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19379 if test $ac_cv_header_curses_h = yes; then
19380 NCURSES_HEADER_FOUND=1
19381 else
19382 NCURSES_HEADER_FOUND=0
19388 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19389 if test ! -z "${NCURSES_MANDATORY}" ;
19390 then
19391 { echo "$as_me:$LINENO: ***" >&5
19392 echo "$as_me: ***" >&6;}
19393 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19394 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19395 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19396 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19397 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19398 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19399 exit 1
19401 NCURSES_LIB=""
19402 NCURSES_INCLUDE=""
19403 PBX_NCURSES=0
19404 else
19405 PBX_NCURSES=1
19407 cat >>confdefs.h <<_ACEOF
19408 #define HAVE_NCURSES 1
19409 _ACEOF
19412 elif test ! -z "${NCURSES_MANDATORY}";
19413 then
19414 { echo "$as_me:$LINENO: ***" >&5
19415 echo "$as_me: ***" >&6;}
19416 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19417 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19418 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19419 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19420 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19421 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19422 exit 1
19427 NETSNMP_CONFIG=No
19428 if test "${USE_NETSNMP}" != "no"; then
19429 if test "x${NETSNMP_DIR}" != "x"; then
19430 if test -n "$ac_tool_prefix"; then
19431 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19432 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19435 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438 case $NETSNMP_CONFIG in
19439 [\\/]* | ?:[\\/]*)
19440 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19444 for as_dir in ${NETSNMP_DIR}/bin
19446 IFS=$as_save_IFS
19447 test -z "$as_dir" && as_dir=.
19448 for ac_exec_ext in '' $ac_executable_extensions; do
19449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19450 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19452 break 2
19454 done
19455 done
19456 IFS=$as_save_IFS
19459 esac
19461 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19462 if test -n "$NETSNMP_CONFIG"; then
19463 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19464 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19465 else
19466 { echo "$as_me:$LINENO: result: no" >&5
19467 echo "${ECHO_T}no" >&6; }
19472 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19473 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19474 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19475 set dummy net-snmp-config; ac_word=$2
19476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19478 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481 case $ac_pt_NETSNMP_CONFIG in
19482 [\\/]* | ?:[\\/]*)
19483 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19487 for as_dir in ${NETSNMP_DIR}/bin
19489 IFS=$as_save_IFS
19490 test -z "$as_dir" && as_dir=.
19491 for ac_exec_ext in '' $ac_executable_extensions; do
19492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19493 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19495 break 2
19497 done
19498 done
19499 IFS=$as_save_IFS
19502 esac
19504 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19505 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19506 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19507 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19508 else
19509 { echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6; }
19513 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19514 NETSNMP_CONFIG="No"
19515 else
19516 case $cross_compiling:$ac_tool_warned in
19517 yes:)
19518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19519 whose name does not start with the host triplet. If you think this
19520 configuration is useful to you, please write to autoconf@gnu.org." >&5
19521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19522 whose name does not start with the host triplet. If you think this
19523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19524 ac_tool_warned=yes ;;
19525 esac
19526 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19528 else
19529 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19532 if test x"${NETSNMP_CONFIG}" = xNo; then
19533 { echo "$as_me:$LINENO: ***" >&5
19534 echo "$as_me: ***" >&6;}
19535 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19536 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
19537 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
19538 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
19539 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19540 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19541 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19542 echo "$as_me: *** including --without-netsnmp" >&6;}
19543 exit 1
19545 else
19546 if test -n "$ac_tool_prefix"; then
19547 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19548 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19551 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554 case $NETSNMP_CONFIG in
19555 [\\/]* | ?:[\\/]*)
19556 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19560 for as_dir in $PATH
19562 IFS=$as_save_IFS
19563 test -z "$as_dir" && as_dir=.
19564 for ac_exec_ext in '' $ac_executable_extensions; do
19565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19566 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19568 break 2
19570 done
19571 done
19572 IFS=$as_save_IFS
19575 esac
19577 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19578 if test -n "$NETSNMP_CONFIG"; then
19579 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19580 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19581 else
19582 { echo "$as_me:$LINENO: result: no" >&5
19583 echo "${ECHO_T}no" >&6; }
19588 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19589 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19590 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19591 set dummy net-snmp-config; ac_word=$2
19592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19594 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 case $ac_pt_NETSNMP_CONFIG in
19598 [\\/]* | ?:[\\/]*)
19599 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19603 for as_dir in $PATH
19605 IFS=$as_save_IFS
19606 test -z "$as_dir" && as_dir=.
19607 for ac_exec_ext in '' $ac_executable_extensions; do
19608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19609 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19611 break 2
19613 done
19614 done
19615 IFS=$as_save_IFS
19618 esac
19620 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19621 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19622 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19623 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19624 else
19625 { echo "$as_me:$LINENO: result: no" >&5
19626 echo "${ECHO_T}no" >&6; }
19629 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19630 NETSNMP_CONFIG="No"
19631 else
19632 case $cross_compiling:$ac_tool_warned in
19633 yes:)
19634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19635 whose name does not start with the host triplet. If you think this
19636 configuration is useful to you, please write to autoconf@gnu.org." >&5
19637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19638 whose name does not start with the host triplet. If you think this
19639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19640 ac_tool_warned=yes ;;
19641 esac
19642 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19644 else
19645 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19650 if test x"${NETSNMP_CONFIG}" != xNo; then
19651 NETSNMP_libs=`net-snmp-config --agent-libs`
19653 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
19654 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 char snmp_register_callback ();
19675 main ()
19677 return snmp_register_callback ();
19679 return 0;
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19700 ac_cv_lib_netsnmp_snmp_register_callback=yes
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_lib_netsnmp_snmp_register_callback=no
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19712 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
19713 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
19714 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
19716 cat >>confdefs.h <<_ACEOF
19717 #define HAVE_NETSNMP 1
19718 _ACEOF
19723 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
19724 NETSNMP_LIB="${NETSNMP_libs}"
19725 PBX_NETSNMP=1
19726 elif test ! -z "${NETSNMP_MANDATORY}";
19727 then
19728 { echo "$as_me:$LINENO: ***" >&5
19729 echo "$as_me: ***" >&6;}
19730 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19731 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19732 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19733 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19734 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19735 echo "$as_me: *** including --without-netsnmp" >&6;}
19736 exit 1
19738 elif test ! -z "${NETSNMP_MANDATORY}";
19739 then
19740 { echo "$as_me:$LINENO: ***" >&5
19741 echo "$as_me: ***" >&6;}
19742 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
19743 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
19744 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19745 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19746 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
19747 echo "$as_me: *** including --without-netsnmp" >&6;}
19748 exit 1
19752 if test "${USE_NEWT}" != "no"; then
19753 pbxlibdir=""
19754 if test "x${NEWT_DIR}" != "x"; then
19755 if test -d ${NEWT_DIR}/lib; then
19756 pbxlibdir="-L${NEWT_DIR}/lib"
19757 else
19758 pbxlibdir="-L${NEWT_DIR}"
19761 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
19762 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
19763 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766 ac_check_lib_save_LIBS=$LIBS
19767 LIBS="-lnewt ${pbxlibdir} $LIBS"
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 /* Override any GCC internal prototype to avoid an error.
19776 Use char because int might match the return type of a GCC
19777 builtin and then its argument prototype would still apply. */
19778 #ifdef __cplusplus
19779 extern "C"
19780 #endif
19781 char newtBell ();
19783 main ()
19785 return newtBell ();
19787 return 0;
19789 _ACEOF
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest$ac_exeext &&
19807 $as_test_x conftest$ac_exeext; then
19808 ac_cv_lib_newt_newtBell=yes
19809 else
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_cv_lib_newt_newtBell=no
19816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19817 conftest$ac_exeext conftest.$ac_ext
19818 LIBS=$ac_check_lib_save_LIBS
19820 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
19821 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
19822 if test $ac_cv_lib_newt_newtBell = yes; then
19823 AST_NEWT_FOUND=yes
19824 else
19825 AST_NEWT_FOUND=no
19829 if test "${AST_NEWT_FOUND}" = "yes"; then
19830 NEWT_LIB="-lnewt "
19831 NEWT_HEADER_FOUND="1"
19832 if test "x${NEWT_DIR}" != "x"; then
19833 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
19834 NEWT_INCLUDE="-I${NEWT_DIR}/include"
19835 if test "xnewt.h" != "x" ; then
19836 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
19837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19838 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19839 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 ac_res=`eval echo '${'$as_ac_Header'}'`
19844 { echo "$as_me:$LINENO: result: $ac_res" >&5
19845 echo "${ECHO_T}$ac_res" >&6; }
19846 else
19847 # Is the header compilable?
19848 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
19849 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h. */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19857 #include <${NEWT_DIR}/include/newt.h>
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19867 ac_status=$?
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest.$ac_objext; then
19876 ac_header_compiler=yes
19877 else
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 ac_header_compiler=no
19884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19886 echo "${ECHO_T}$ac_header_compiler" >&6; }
19888 # Is the header present?
19889 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
19890 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
19891 cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h. */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <${NEWT_DIR}/include/newt.h>
19898 _ACEOF
19899 if { (ac_try="$ac_cpp conftest.$ac_ext"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null && {
19912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 }; then
19915 ac_header_preproc=yes
19916 else
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_header_preproc=no
19923 rm -f conftest.err conftest.$ac_ext
19924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925 echo "${ECHO_T}$ac_header_preproc" >&6; }
19927 # So? What about this header?
19928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19929 yes:no: )
19930 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
19931 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
19933 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
19934 ac_header_preproc=yes
19936 no:yes:* )
19937 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
19938 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
19940 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
19942 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
19944 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
19946 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
19948 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
19951 esac
19952 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
19953 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957 eval "$as_ac_Header=\$ac_header_preproc"
19959 ac_res=`eval echo '${'$as_ac_Header'}'`
19960 { echo "$as_me:$LINENO: result: $ac_res" >&5
19961 echo "${ECHO_T}$ac_res" >&6; }
19964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19965 NEWT_HEADER_FOUND=1
19966 else
19967 NEWT_HEADER_FOUND=0
19972 else
19973 if test "xnewt.h" != "x" ; then
19974 if test "${ac_cv_header_newt_h+set}" = set; then
19975 { echo "$as_me:$LINENO: checking for newt.h" >&5
19976 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
19977 if test "${ac_cv_header_newt_h+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
19981 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
19982 else
19983 # Is the header compilable?
19984 { echo "$as_me:$LINENO: checking newt.h usability" >&5
19985 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 $ac_includes_default
19993 #include <newt.h>
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_compile") 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest.$ac_objext; then
20012 ac_header_compiler=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_header_compiler=no
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022 echo "${ECHO_T}$ac_header_compiler" >&6; }
20024 # Is the header present?
20025 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20026 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h. */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 #include <newt.h>
20034 _ACEOF
20035 if { (ac_try="$ac_cpp conftest.$ac_ext"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } >/dev/null && {
20048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 }; then
20051 ac_header_preproc=yes
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_header_preproc=no
20059 rm -f conftest.err conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6; }
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 yes:no: )
20066 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20072 no:yes:* )
20073 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20087 esac
20088 { echo "$as_me:$LINENO: checking for newt.h" >&5
20089 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20090 if test "${ac_cv_header_newt_h+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 ac_cv_header_newt_h=$ac_header_preproc
20095 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20096 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20099 if test $ac_cv_header_newt_h = yes; then
20100 NEWT_HEADER_FOUND=1
20101 else
20102 NEWT_HEADER_FOUND=0
20108 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20109 if test ! -z "${NEWT_MANDATORY}" ;
20110 then
20111 { echo "$as_me:$LINENO: ***" >&5
20112 echo "$as_me: ***" >&6;}
20113 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20114 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20115 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20116 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20117 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20118 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20119 exit 1
20121 NEWT_LIB=""
20122 NEWT_INCLUDE=""
20123 PBX_NEWT=0
20124 else
20125 PBX_NEWT=1
20127 cat >>confdefs.h <<_ACEOF
20128 #define HAVE_NEWT 1
20129 _ACEOF
20132 elif test ! -z "${NEWT_MANDATORY}";
20133 then
20134 { echo "$as_me:$LINENO: ***" >&5
20135 echo "$as_me: ***" >&6;}
20136 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20137 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20138 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20139 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20140 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20141 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20142 exit 1
20148 if test "${USE_UNIXODBC}" != "no"; then
20149 pbxlibdir=""
20150 if test "x${UNIXODBC_DIR}" != "x"; then
20151 if test -d ${UNIXODBC_DIR}/lib; then
20152 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20153 else
20154 pbxlibdir="-L${UNIXODBC_DIR}"
20157 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20158 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20159 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162 ac_check_lib_save_LIBS=$LIBS
20163 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h. */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 char SQLConnect ();
20179 main ()
20181 return SQLConnect ();
20183 return 0;
20185 _ACEOF
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_link") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest$ac_exeext &&
20203 $as_test_x conftest$ac_exeext; then
20204 ac_cv_lib_odbc_SQLConnect=yes
20205 else
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 ac_cv_lib_odbc_SQLConnect=no
20212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20213 conftest$ac_exeext conftest.$ac_ext
20214 LIBS=$ac_check_lib_save_LIBS
20216 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20217 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20218 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20219 AST_UNIXODBC_FOUND=yes
20220 else
20221 AST_UNIXODBC_FOUND=no
20225 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20226 UNIXODBC_LIB="-lodbc -lltdl"
20227 UNIXODBC_HEADER_FOUND="1"
20228 if test "x${UNIXODBC_DIR}" != "x"; then
20229 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20230 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20231 if test "xsql.h" != "x" ; then
20232 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20234 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20235 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 ac_res=`eval echo '${'$as_ac_Header'}'`
20240 { echo "$as_me:$LINENO: result: $ac_res" >&5
20241 echo "${ECHO_T}$ac_res" >&6; }
20242 else
20243 # Is the header compilable?
20244 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20245 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <${UNIXODBC_DIR}/include/sql.h>
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (ac_try="$ac_compile"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_compile") 2>conftest.er1
20263 ac_status=$?
20264 grep -v '^ *+' conftest.er1 >conftest.err
20265 rm -f conftest.er1
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest.$ac_objext; then
20272 ac_header_compiler=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_header_compiler=no
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6; }
20284 # Is the header present?
20285 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20286 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h. */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <${UNIXODBC_DIR}/include/sql.h>
20294 _ACEOF
20295 if { (ac_try="$ac_cpp conftest.$ac_ext"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20302 ac_status=$?
20303 grep -v '^ *+' conftest.er1 >conftest.err
20304 rm -f conftest.er1
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } >/dev/null && {
20308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 }; then
20311 ac_header_preproc=yes
20312 else
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_header_preproc=no
20319 rm -f conftest.err conftest.$ac_ext
20320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20321 echo "${ECHO_T}$ac_header_preproc" >&6; }
20323 # So? What about this header?
20324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20325 yes:no: )
20326 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20327 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20329 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20330 ac_header_preproc=yes
20332 no:yes:* )
20333 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20334 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20336 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20338 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20340 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20342 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20344 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20347 esac
20348 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20349 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353 eval "$as_ac_Header=\$ac_header_preproc"
20355 ac_res=`eval echo '${'$as_ac_Header'}'`
20356 { echo "$as_me:$LINENO: result: $ac_res" >&5
20357 echo "${ECHO_T}$ac_res" >&6; }
20360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20361 UNIXODBC_HEADER_FOUND=1
20362 else
20363 UNIXODBC_HEADER_FOUND=0
20368 else
20369 if test "xsql.h" != "x" ; then
20370 if test "${ac_cv_header_sql_h+set}" = set; then
20371 { echo "$as_me:$LINENO: checking for sql.h" >&5
20372 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20373 if test "${ac_cv_header_sql_h+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20377 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20378 else
20379 # Is the header compilable?
20380 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20381 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h. */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 $ac_includes_default
20389 #include <sql.h>
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (ac_try="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest.$ac_objext; then
20408 ac_header_compiler=yes
20409 else
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_header_compiler=no
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20418 echo "${ECHO_T}$ac_header_compiler" >&6; }
20420 # Is the header present?
20421 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20422 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <sql.h>
20430 _ACEOF
20431 if { (ac_try="$ac_cpp conftest.$ac_ext"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } >/dev/null && {
20444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20446 }; then
20447 ac_header_preproc=yes
20448 else
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ac_header_preproc=no
20455 rm -f conftest.err conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20457 echo "${ECHO_T}$ac_header_preproc" >&6; }
20459 # So? What about this header?
20460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20461 yes:no: )
20462 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20463 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20465 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20466 ac_header_preproc=yes
20468 no:yes:* )
20469 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20470 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20472 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20474 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20476 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20478 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20480 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20483 esac
20484 { echo "$as_me:$LINENO: checking for sql.h" >&5
20485 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20486 if test "${ac_cv_header_sql_h+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489 ac_cv_header_sql_h=$ac_header_preproc
20491 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20492 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20495 if test $ac_cv_header_sql_h = yes; then
20496 UNIXODBC_HEADER_FOUND=1
20497 else
20498 UNIXODBC_HEADER_FOUND=0
20504 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20505 if test ! -z "${UNIXODBC_MANDATORY}" ;
20506 then
20507 { echo "$as_me:$LINENO: ***" >&5
20508 echo "$as_me: ***" >&6;}
20509 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20510 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20511 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20512 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20513 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20514 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20515 exit 1
20517 UNIXODBC_LIB=""
20518 UNIXODBC_INCLUDE=""
20519 PBX_UNIXODBC=0
20520 else
20521 PBX_UNIXODBC=1
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_UNIXODBC 1
20525 _ACEOF
20528 elif test ! -z "${UNIXODBC_MANDATORY}";
20529 then
20530 { echo "$as_me:$LINENO: ***" >&5
20531 echo "$as_me: ***" >&6;}
20532 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
20533 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
20534 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20535 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20536 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20537 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20538 exit 1
20544 if test "${USE_OGG}" != "no"; then
20545 pbxlibdir=""
20546 if test "x${OGG_DIR}" != "x"; then
20547 if test -d ${OGG_DIR}/lib; then
20548 pbxlibdir="-L${OGG_DIR}/lib"
20549 else
20550 pbxlibdir="-L${OGG_DIR}"
20553 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
20554 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
20555 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 ac_check_lib_save_LIBS=$LIBS
20559 LIBS="-logg ${pbxlibdir} $LIBS"
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h. */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20567 /* Override any GCC internal prototype to avoid an error.
20568 Use char because int might match the return type of a GCC
20569 builtin and then its argument prototype would still apply. */
20570 #ifdef __cplusplus
20571 extern "C"
20572 #endif
20573 char ogg_sync_init ();
20575 main ()
20577 return ogg_sync_init ();
20579 return 0;
20581 _ACEOF
20582 rm -f conftest.$ac_objext conftest$ac_exeext
20583 if { (ac_try="$ac_link"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587 esac
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_link") 2>conftest.er1
20590 ac_status=$?
20591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest$ac_exeext &&
20599 $as_test_x conftest$ac_exeext; then
20600 ac_cv_lib_ogg_ogg_sync_init=yes
20601 else
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_cv_lib_ogg_ogg_sync_init=no
20608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20609 conftest$ac_exeext conftest.$ac_ext
20610 LIBS=$ac_check_lib_save_LIBS
20612 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
20613 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
20614 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
20615 AST_OGG_FOUND=yes
20616 else
20617 AST_OGG_FOUND=no
20621 if test "${AST_OGG_FOUND}" = "yes"; then
20622 OGG_LIB="-logg "
20623 OGG_HEADER_FOUND="1"
20624 if test "x${OGG_DIR}" != "x"; then
20625 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
20626 OGG_INCLUDE="-I${OGG_DIR}/include"
20627 if test "x" != "x" ; then
20628 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
20629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20630 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20631 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 ac_res=`eval echo '${'$as_ac_Header'}'`
20636 { echo "$as_me:$LINENO: result: $ac_res" >&5
20637 echo "${ECHO_T}$ac_res" >&6; }
20638 else
20639 # Is the header compilable?
20640 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
20641 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
20642 cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h. */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 $ac_includes_default
20649 #include <${OGG_DIR}/include/>
20650 _ACEOF
20651 rm -f conftest.$ac_objext
20652 if { (ac_try="$ac_compile"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_compile") 2>conftest.er1
20659 ac_status=$?
20660 grep -v '^ *+' conftest.er1 >conftest.err
20661 rm -f conftest.er1
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } && {
20665 test -z "$ac_c_werror_flag" ||
20666 test ! -s conftest.err
20667 } && test -s conftest.$ac_objext; then
20668 ac_header_compiler=yes
20669 else
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20673 ac_header_compiler=no
20676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20678 echo "${ECHO_T}$ac_header_compiler" >&6; }
20680 # Is the header present?
20681 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
20682 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 #include <${OGG_DIR}/include/>
20690 _ACEOF
20691 if { (ac_try="$ac_cpp conftest.$ac_ext"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20698 ac_status=$?
20699 grep -v '^ *+' conftest.er1 >conftest.err
20700 rm -f conftest.er1
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } >/dev/null && {
20704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20705 test ! -s conftest.err
20706 }; then
20707 ac_header_preproc=yes
20708 else
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ac_header_preproc=no
20715 rm -f conftest.err conftest.$ac_ext
20716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20717 echo "${ECHO_T}$ac_header_preproc" >&6; }
20719 # So? What about this header?
20720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20721 yes:no: )
20722 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
20723 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
20725 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
20726 ac_header_preproc=yes
20728 no:yes:* )
20729 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
20730 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
20732 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
20733 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
20734 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
20735 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
20736 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
20738 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
20740 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
20743 esac
20744 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
20745 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
20746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749 eval "$as_ac_Header=\$ac_header_preproc"
20751 ac_res=`eval echo '${'$as_ac_Header'}'`
20752 { echo "$as_me:$LINENO: result: $ac_res" >&5
20753 echo "${ECHO_T}$ac_res" >&6; }
20756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20757 OGG_HEADER_FOUND=1
20758 else
20759 OGG_HEADER_FOUND=0
20764 else
20765 if test "x" != "x" ; then
20766 if test "${ac_cv_header_+set}" = set; then
20767 { echo "$as_me:$LINENO: checking for " >&5
20768 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20769 if test "${ac_cv_header_+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20773 echo "${ECHO_T}$ac_cv_header_" >&6; }
20774 else
20775 # Is the header compilable?
20776 { echo "$as_me:$LINENO: checking usability" >&5
20777 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20785 #include <>
20786 _ACEOF
20787 rm -f conftest.$ac_objext
20788 if { (ac_try="$ac_compile"
20789 case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_compile") 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest.$ac_objext; then
20804 ac_header_compiler=yes
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 ac_header_compiler=no
20812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20814 echo "${ECHO_T}$ac_header_compiler" >&6; }
20816 # Is the header present?
20817 { echo "$as_me:$LINENO: checking presence" >&5
20818 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 #include <>
20826 _ACEOF
20827 if { (ac_try="$ac_cpp conftest.$ac_ext"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } >/dev/null && {
20840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 }; then
20843 ac_header_preproc=yes
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_header_preproc=no
20851 rm -f conftest.err conftest.$ac_ext
20852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20853 echo "${ECHO_T}$ac_header_preproc" >&6; }
20855 # So? What about this header?
20856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20857 yes:no: )
20858 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20859 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20861 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20862 ac_header_preproc=yes
20864 no:yes:* )
20865 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20866 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20868 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20870 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20872 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20874 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20876 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20879 esac
20880 { echo "$as_me:$LINENO: checking for " >&5
20881 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20882 if test "${ac_cv_header_+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884 else
20885 ac_cv_header_=$ac_header_preproc
20887 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20888 echo "${ECHO_T}$ac_cv_header_" >&6; }
20891 if test $ac_cv_header_ = yes; then
20892 OGG_HEADER_FOUND=1
20893 else
20894 OGG_HEADER_FOUND=0
20900 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
20901 if test ! -z "${OGG_MANDATORY}" ;
20902 then
20903 { echo "$as_me:$LINENO: ***" >&5
20904 echo "$as_me: ***" >&6;}
20905 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
20906 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
20907 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
20908 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
20909 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20910 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20911 exit 1
20913 OGG_LIB=""
20914 OGG_INCLUDE=""
20915 PBX_OGG=0
20916 else
20917 PBX_OGG=1
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_OGG 1
20921 _ACEOF
20924 elif test ! -z "${OGG_MANDATORY}";
20925 then
20926 { echo "$as_me:$LINENO: ***" >&5
20927 echo "$as_me: ***" >&6;}
20928 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
20929 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
20930 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20931 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20932 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
20933 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
20934 exit 1
20940 if test "${USE_OSPTK}" != "no"; then
20941 pbxlibdir=""
20942 if test "x${OSPTK_DIR}" != "x"; then
20943 if test -d ${OSPTK_DIR}/lib; then
20944 pbxlibdir="-L${OSPTK_DIR}/lib"
20945 else
20946 pbxlibdir="-L${OSPTK_DIR}"
20949 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
20950 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
20951 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954 ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h. */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20963 /* Override any GCC internal prototype to avoid an error.
20964 Use char because int might match the return type of a GCC
20965 builtin and then its argument prototype would still apply. */
20966 #ifdef __cplusplus
20967 extern "C"
20968 #endif
20969 char OSPPCryptoDecrypt ();
20971 main ()
20973 return OSPPCryptoDecrypt ();
20975 return 0;
20977 _ACEOF
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_link") 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest$ac_exeext &&
20995 $as_test_x conftest$ac_exeext; then
20996 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21005 conftest$ac_exeext conftest.$ac_ext
21006 LIBS=$ac_check_lib_save_LIBS
21008 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21009 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21010 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21011 AST_OSPTK_FOUND=yes
21012 else
21013 AST_OSPTK_FOUND=no
21017 if test "${AST_OSPTK_FOUND}" = "yes"; then
21018 OSPTK_LIB="-losptk -lcrypto -lssl"
21019 OSPTK_HEADER_FOUND="1"
21020 if test "x${OSPTK_DIR}" != "x"; then
21021 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21022 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21023 if test "xosp/osp.h" != "x" ; then
21024 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21026 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21027 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 ac_res=`eval echo '${'$as_ac_Header'}'`
21032 { echo "$as_me:$LINENO: result: $ac_res" >&5
21033 echo "${ECHO_T}$ac_res" >&6; }
21034 else
21035 # Is the header compilable?
21036 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21037 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 $ac_includes_default
21045 #include <${OSPTK_DIR}/include/osp/osp.h>
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21064 ac_header_compiler=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_compiler=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21074 echo "${ECHO_T}$ac_header_compiler" >&6; }
21076 # Is the header present?
21077 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21078 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 #include <${OSPTK_DIR}/include/osp/osp.h>
21086 _ACEOF
21087 if { (ac_try="$ac_cpp conftest.$ac_ext"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21094 ac_status=$?
21095 grep -v '^ *+' conftest.er1 >conftest.err
21096 rm -f conftest.er1
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } >/dev/null && {
21100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 }; then
21103 ac_header_preproc=yes
21104 else
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ac_header_preproc=no
21111 rm -f conftest.err conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21113 echo "${ECHO_T}$ac_header_preproc" >&6; }
21115 # So? What about this header?
21116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21117 yes:no: )
21118 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21119 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21121 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21122 ac_header_preproc=yes
21124 no:yes:* )
21125 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21126 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21128 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21130 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21132 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21134 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21136 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21139 esac
21140 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21141 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145 eval "$as_ac_Header=\$ac_header_preproc"
21147 ac_res=`eval echo '${'$as_ac_Header'}'`
21148 { echo "$as_me:$LINENO: result: $ac_res" >&5
21149 echo "${ECHO_T}$ac_res" >&6; }
21152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21153 OSPTK_HEADER_FOUND=1
21154 else
21155 OSPTK_HEADER_FOUND=0
21160 else
21161 if test "xosp/osp.h" != "x" ; then
21162 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21163 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21164 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21165 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21168 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21169 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21170 else
21171 # Is the header compilable?
21172 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21173 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21174 cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21181 #include <osp/osp.h>
21182 _ACEOF
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_header_compiler=yes
21201 else
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_header_compiler=no
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21210 echo "${ECHO_T}$ac_header_compiler" >&6; }
21212 # Is the header present?
21213 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21214 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h. */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 #include <osp/osp.h>
21222 _ACEOF
21223 if { (ac_try="$ac_cpp conftest.$ac_ext"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } >/dev/null && {
21236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 }; then
21239 ac_header_preproc=yes
21240 else
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_header_preproc=no
21247 rm -f conftest.err conftest.$ac_ext
21248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21249 echo "${ECHO_T}$ac_header_preproc" >&6; }
21251 # So? What about this header?
21252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21253 yes:no: )
21254 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21255 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21257 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21258 ac_header_preproc=yes
21260 no:yes:* )
21261 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21262 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21264 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21266 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21268 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21270 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21272 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21275 esac
21276 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21277 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21278 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281 ac_cv_header_osp_osp_h=$ac_header_preproc
21283 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21284 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21287 if test $ac_cv_header_osp_osp_h = yes; then
21288 OSPTK_HEADER_FOUND=1
21289 else
21290 OSPTK_HEADER_FOUND=0
21296 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21297 if test ! -z "${OSPTK_MANDATORY}" ;
21298 then
21299 { echo "$as_me:$LINENO: ***" >&5
21300 echo "$as_me: ***" >&6;}
21301 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21302 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21303 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21304 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21305 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21306 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21307 exit 1
21309 OSPTK_LIB=""
21310 OSPTK_INCLUDE=""
21311 PBX_OSPTK=0
21312 else
21313 PBX_OSPTK=1
21315 cat >>confdefs.h <<_ACEOF
21316 #define HAVE_OSPTK 1
21317 _ACEOF
21320 elif test ! -z "${OSPTK_MANDATORY}";
21321 then
21322 { echo "$as_me:$LINENO: ***" >&5
21323 echo "$as_me: ***" >&6;}
21324 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21325 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21326 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21327 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21328 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21329 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21330 exit 1
21335 PBX_OSS=0
21336 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21337 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21338 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21339 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21343 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21344 else
21345 # Is the header compilable?
21346 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21347 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21355 #include <linux/soundcard.h>
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (ac_try="$ac_compile"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_compile") 2>conftest.er1
21365 ac_status=$?
21366 grep -v '^ *+' conftest.er1 >conftest.err
21367 rm -f conftest.er1
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } && {
21371 test -z "$ac_c_werror_flag" ||
21372 test ! -s conftest.err
21373 } && test -s conftest.$ac_objext; then
21374 ac_header_compiler=yes
21375 else
21376 echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21379 ac_header_compiler=no
21382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21384 echo "${ECHO_T}$ac_header_compiler" >&6; }
21386 # Is the header present?
21387 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21388 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 #include <linux/soundcard.h>
21396 _ACEOF
21397 if { (ac_try="$ac_cpp conftest.$ac_ext"
21398 case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21404 ac_status=$?
21405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } >/dev/null && {
21410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21411 test ! -s conftest.err
21412 }; then
21413 ac_header_preproc=yes
21414 else
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_header_preproc=no
21421 rm -f conftest.err conftest.$ac_ext
21422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21423 echo "${ECHO_T}$ac_header_preproc" >&6; }
21425 # So? What about this header?
21426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21427 yes:no: )
21428 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21429 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21431 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21432 ac_header_preproc=yes
21434 no:yes:* )
21435 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21436 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21438 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21440 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21442 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21444 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21446 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21449 esac
21450 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21451 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21452 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455 ac_cv_header_linux_soundcard_h=$ac_header_preproc
21457 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21458 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21461 if test $ac_cv_header_linux_soundcard_h = yes; then
21463 PBX_OSS=1
21465 cat >>confdefs.h <<_ACEOF
21466 #define HAVE_OSS 1
21467 _ACEOF
21473 if test "$PBX_OSS" = "0"; then
21474 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21475 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21476 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21477 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21481 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21482 else
21483 # Is the header compilable?
21484 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21485 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 $ac_includes_default
21493 #include <sys/soundcard.h>
21494 _ACEOF
21495 rm -f conftest.$ac_objext
21496 if { (ac_try="$ac_compile"
21497 case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21500 esac
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_compile") 2>conftest.er1
21503 ac_status=$?
21504 grep -v '^ *+' conftest.er1 >conftest.err
21505 rm -f conftest.er1
21506 cat conftest.err >&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest.$ac_objext; then
21512 ac_header_compiler=yes
21513 else
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ac_header_compiler=no
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21522 echo "${ECHO_T}$ac_header_compiler" >&6; }
21524 # Is the header present?
21525 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
21526 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
21527 cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h. */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <sys/soundcard.h>
21534 _ACEOF
21535 if { (ac_try="$ac_cpp conftest.$ac_ext"
21536 case "(($ac_try" in
21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21539 esac
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21542 ac_status=$?
21543 grep -v '^ *+' conftest.er1 >conftest.err
21544 rm -f conftest.er1
21545 cat conftest.err >&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } >/dev/null && {
21548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21549 test ! -s conftest.err
21550 }; then
21551 ac_header_preproc=yes
21552 else
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 ac_header_preproc=no
21559 rm -f conftest.err conftest.$ac_ext
21560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21561 echo "${ECHO_T}$ac_header_preproc" >&6; }
21563 # So? What about this header?
21564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21565 yes:no: )
21566 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21567 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21569 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21570 ac_header_preproc=yes
21572 no:yes:* )
21573 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21574 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21575 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
21576 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21578 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21580 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21582 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21584 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21587 esac
21588 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21589 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21590 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593 ac_cv_header_sys_soundcard_h=$ac_header_preproc
21595 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21596 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21599 if test $ac_cv_header_sys_soundcard_h = yes; then
21601 PBX_OSS=1
21603 cat >>confdefs.h <<_ACEOF
21604 #define HAVE_OSS 1
21605 _ACEOF
21612 if test "$PBX_OSS" = "0"; then
21614 if test "${USE_OSS}" != "no"; then
21615 pbxlibdir=""
21616 if test "x${OSS_DIR}" != "x"; then
21617 if test -d ${OSS_DIR}/lib; then
21618 pbxlibdir="-L${OSS_DIR}/lib"
21619 else
21620 pbxlibdir="-L${OSS_DIR}"
21623 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
21624 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
21625 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21628 ac_check_lib_save_LIBS=$LIBS
21629 LIBS="-lossaudio ${pbxlibdir} $LIBS"
21630 cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h. */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21637 /* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
21640 #ifdef __cplusplus
21641 extern "C"
21642 #endif
21643 char oss_ioctl_mixer ();
21645 main ()
21647 return oss_ioctl_mixer ();
21649 return 0;
21651 _ACEOF
21652 rm -f conftest.$ac_objext conftest$ac_exeext
21653 if { (ac_try="$ac_link"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_link") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest$ac_exeext &&
21669 $as_test_x conftest$ac_exeext; then
21670 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
21671 else
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
21678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21679 conftest$ac_exeext conftest.$ac_ext
21680 LIBS=$ac_check_lib_save_LIBS
21682 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
21683 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
21684 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
21685 AST_OSS_FOUND=yes
21686 else
21687 AST_OSS_FOUND=no
21691 if test "${AST_OSS_FOUND}" = "yes"; then
21692 OSS_LIB="-lossaudio "
21693 OSS_HEADER_FOUND="1"
21694 if test "x${OSS_DIR}" != "x"; then
21695 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
21696 OSS_INCLUDE="-I${OSS_DIR}/include"
21697 if test "xsoundcard.h" != "x" ; then
21698 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
21699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21700 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21701 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 ac_res=`eval echo '${'$as_ac_Header'}'`
21706 { echo "$as_me:$LINENO: result: $ac_res" >&5
21707 echo "${ECHO_T}$ac_res" >&6; }
21708 else
21709 # Is the header compilable?
21710 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
21711 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21719 #include <${OSS_DIR}/include/soundcard.h>
21720 _ACEOF
21721 rm -f conftest.$ac_objext
21722 if { (ac_try="$ac_compile"
21723 case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726 esac
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_header_compiler=yes
21739 else
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21743 ac_header_compiler=no
21746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21748 echo "${ECHO_T}$ac_header_compiler" >&6; }
21750 # Is the header present?
21751 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
21752 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
21753 cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h. */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 #include <${OSS_DIR}/include/soundcard.h>
21760 _ACEOF
21761 if { (ac_try="$ac_cpp conftest.$ac_ext"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } >/dev/null && {
21774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 }; then
21777 ac_header_preproc=yes
21778 else
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_header_preproc=no
21785 rm -f conftest.err conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21787 echo "${ECHO_T}$ac_header_preproc" >&6; }
21789 # So? What about this header?
21790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21791 yes:no: )
21792 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21793 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
21795 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
21796 ac_header_preproc=yes
21798 no:yes:* )
21799 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
21800 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
21802 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
21804 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21806 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
21808 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
21810 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
21813 esac
21814 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
21815 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
21816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819 eval "$as_ac_Header=\$ac_header_preproc"
21821 ac_res=`eval echo '${'$as_ac_Header'}'`
21822 { echo "$as_me:$LINENO: result: $ac_res" >&5
21823 echo "${ECHO_T}$ac_res" >&6; }
21826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21827 OSS_HEADER_FOUND=1
21828 else
21829 OSS_HEADER_FOUND=0
21834 else
21835 if test "xsoundcard.h" != "x" ; then
21836 if test "${ac_cv_header_soundcard_h+set}" = set; then
21837 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21838 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21839 if test "${ac_cv_header_soundcard_h+set}" = set; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21843 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21844 else
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
21847 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h. */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <soundcard.h>
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_header_compiler=yes
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
21888 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <soundcard.h>
21896 _ACEOF
21897 if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 }; then
21913 ac_header_preproc=yes
21914 else
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927 yes:no: )
21928 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21929 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
21931 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
21932 ac_header_preproc=yes
21934 no:yes:* )
21935 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
21936 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
21938 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
21940 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21942 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
21944 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
21946 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
21949 esac
21950 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
21951 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
21952 if test "${ac_cv_header_soundcard_h+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955 ac_cv_header_soundcard_h=$ac_header_preproc
21957 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
21958 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
21961 if test $ac_cv_header_soundcard_h = yes; then
21962 OSS_HEADER_FOUND=1
21963 else
21964 OSS_HEADER_FOUND=0
21970 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
21971 if test ! -z "${OSS_MANDATORY}" ;
21972 then
21973 { echo "$as_me:$LINENO: ***" >&5
21974 echo "$as_me: ***" >&6;}
21975 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
21976 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
21977 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
21978 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
21979 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
21980 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
21981 exit 1
21983 OSS_LIB=""
21984 OSS_INCLUDE=""
21985 PBX_OSS=0
21986 else
21987 PBX_OSS=1
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_OSS 1
21991 _ACEOF
21994 elif test ! -z "${OSS_MANDATORY}";
21995 then
21996 { echo "$as_me:$LINENO: ***" >&5
21997 echo "$as_me: ***" >&6;}
21998 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
21999 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22000 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22001 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22002 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22003 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22004 exit 1
22010 PG_CONFIG=No
22011 if test "${USE_PGSQL}" != "no"; then
22012 if test "x${PGSQL_DIR}" != "x"; then
22013 if test -n "$ac_tool_prefix"; then
22014 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22015 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22018 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021 case $PG_CONFIG in
22022 [\\/]* | ?:[\\/]*)
22023 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22027 for as_dir in ${PGSQL_DIR}/bin
22029 IFS=$as_save_IFS
22030 test -z "$as_dir" && as_dir=.
22031 for ac_exec_ext in '' $ac_executable_extensions; do
22032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22033 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22035 break 2
22037 done
22038 done
22039 IFS=$as_save_IFS
22042 esac
22044 PG_CONFIG=$ac_cv_path_PG_CONFIG
22045 if test -n "$PG_CONFIG"; then
22046 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22047 echo "${ECHO_T}$PG_CONFIG" >&6; }
22048 else
22049 { echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6; }
22055 if test -z "$ac_cv_path_PG_CONFIG"; then
22056 ac_pt_PG_CONFIG=$PG_CONFIG
22057 # Extract the first word of "pg_config", so it can be a program name with args.
22058 set dummy pg_config; ac_word=$2
22059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22061 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064 case $ac_pt_PG_CONFIG in
22065 [\\/]* | ?:[\\/]*)
22066 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22070 for as_dir in ${PGSQL_DIR}/bin
22072 IFS=$as_save_IFS
22073 test -z "$as_dir" && as_dir=.
22074 for ac_exec_ext in '' $ac_executable_extensions; do
22075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22076 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22078 break 2
22080 done
22081 done
22082 IFS=$as_save_IFS
22085 esac
22087 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22088 if test -n "$ac_pt_PG_CONFIG"; then
22089 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22090 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22091 else
22092 { echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6; }
22096 if test "x$ac_pt_PG_CONFIG" = x; then
22097 PG_CONFIG="No"
22098 else
22099 case $cross_compiling:$ac_tool_warned in
22100 yes:)
22101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22102 whose name does not start with the host triplet. If you think this
22103 configuration is useful to you, please write to autoconf@gnu.org." >&5
22104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22105 whose name does not start with the host triplet. If you think this
22106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22107 ac_tool_warned=yes ;;
22108 esac
22109 PG_CONFIG=$ac_pt_PG_CONFIG
22111 else
22112 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22115 if test x"${PG_CONFIG}" = xNo; then
22116 { echo "$as_me:$LINENO: ***" >&5
22117 echo "$as_me: ***" >&6;}
22118 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22119 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22120 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22121 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22122 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22123 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22124 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22125 echo "$as_me: *** including --without-postgres" >&6;}
22126 exit 1
22128 else
22129 if test -n "$ac_tool_prefix"; then
22130 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22131 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22134 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137 case $PG_CONFIG in
22138 [\\/]* | ?:[\\/]*)
22139 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22143 for as_dir in $PATH
22145 IFS=$as_save_IFS
22146 test -z "$as_dir" && as_dir=.
22147 for ac_exec_ext in '' $ac_executable_extensions; do
22148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22149 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22151 break 2
22153 done
22154 done
22155 IFS=$as_save_IFS
22158 esac
22160 PG_CONFIG=$ac_cv_path_PG_CONFIG
22161 if test -n "$PG_CONFIG"; then
22162 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22163 echo "${ECHO_T}$PG_CONFIG" >&6; }
22164 else
22165 { echo "$as_me:$LINENO: result: no" >&5
22166 echo "${ECHO_T}no" >&6; }
22171 if test -z "$ac_cv_path_PG_CONFIG"; then
22172 ac_pt_PG_CONFIG=$PG_CONFIG
22173 # Extract the first word of "pg_config", so it can be a program name with args.
22174 set dummy pg_config; ac_word=$2
22175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22177 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180 case $ac_pt_PG_CONFIG in
22181 [\\/]* | ?:[\\/]*)
22182 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22186 for as_dir in $PATH
22188 IFS=$as_save_IFS
22189 test -z "$as_dir" && as_dir=.
22190 for ac_exec_ext in '' $ac_executable_extensions; do
22191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22192 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22194 break 2
22196 done
22197 done
22198 IFS=$as_save_IFS
22201 esac
22203 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22204 if test -n "$ac_pt_PG_CONFIG"; then
22205 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22206 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22207 else
22208 { echo "$as_me:$LINENO: result: no" >&5
22209 echo "${ECHO_T}no" >&6; }
22212 if test "x$ac_pt_PG_CONFIG" = x; then
22213 PG_CONFIG="No"
22214 else
22215 case $cross_compiling:$ac_tool_warned in
22216 yes:)
22217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22218 whose name does not start with the host triplet. If you think this
22219 configuration is useful to you, please write to autoconf@gnu.org." >&5
22220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22221 whose name does not start with the host triplet. If you think this
22222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22223 ac_tool_warned=yes ;;
22224 esac
22225 PG_CONFIG=$ac_pt_PG_CONFIG
22227 else
22228 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22233 if test "${PG_CONFIG}" != No; then
22234 PGSQL_libdir=`pg_config --libdir`
22235 PGSQL_includedir=`pg_config --includedir`
22237 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22238 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22239 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242 ac_check_lib_save_LIBS=$LIBS
22243 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22244 cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h. */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22251 /* Override any GCC internal prototype to avoid an error.
22252 Use char because int might match the return type of a GCC
22253 builtin and then its argument prototype would still apply. */
22254 #ifdef __cplusplus
22255 extern "C"
22256 #endif
22257 char PQexec ();
22259 main ()
22261 return PQexec ();
22263 return 0;
22265 _ACEOF
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (ac_try="$ac_link"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_link") 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest$ac_exeext &&
22283 $as_test_x conftest$ac_exeext; then
22284 ac_cv_lib_pq_PQexec=yes
22285 else
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 ac_cv_lib_pq_PQexec=no
22292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22293 conftest$ac_exeext conftest.$ac_ext
22294 LIBS=$ac_check_lib_save_LIBS
22296 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22297 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22298 if test $ac_cv_lib_pq_PQexec = yes; then
22300 cat >>confdefs.h <<_ACEOF
22301 #define HAVE_PGSQL 1
22302 _ACEOF
22307 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22308 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
22309 PGSQL_INCLUDE="-I${PGSQL_includedir}"
22310 PBX_PGSQL=1
22311 elif test ! -z "${PGSQL_MANDATORY}";
22312 then
22313 { echo "$as_me:$LINENO: ***" >&5
22314 echo "$as_me: ***" >&6;}
22315 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22316 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22317 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22318 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22319 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22320 echo "$as_me: *** including --without-postgres" >&6;}
22321 exit 1
22323 elif test ! -z "${PGSQL_MANDATORY}";
22324 then
22325 { echo "$as_me:$LINENO: ***" >&5
22326 echo "$as_me: ***" >&6;}
22327 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22328 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22329 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22330 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22331 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22332 echo "$as_me: *** including --without-postgres" >&6;}
22333 exit 1
22337 if test "${USE_POPT}" != "no"; then
22338 pbxlibdir=""
22339 if test "x${POPT_DIR}" != "x"; then
22340 if test -d ${POPT_DIR}/lib; then
22341 pbxlibdir="-L${POPT_DIR}/lib"
22342 else
22343 pbxlibdir="-L${POPT_DIR}"
22346 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22347 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22348 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351 ac_check_lib_save_LIBS=$LIBS
22352 LIBS="-lpopt ${pbxlibdir} $LIBS"
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22360 /* Override any GCC internal prototype to avoid an error.
22361 Use char because int might match the return type of a GCC
22362 builtin and then its argument prototype would still apply. */
22363 #ifdef __cplusplus
22364 extern "C"
22365 #endif
22366 char poptStrerror ();
22368 main ()
22370 return poptStrerror ();
22372 return 0;
22374 _ACEOF
22375 rm -f conftest.$ac_objext conftest$ac_exeext
22376 if { (ac_try="$ac_link"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22380 esac
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_link") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest$ac_exeext &&
22392 $as_test_x conftest$ac_exeext; then
22393 ac_cv_lib_popt_poptStrerror=yes
22394 else
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_lib_popt_poptStrerror=no
22401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22402 conftest$ac_exeext conftest.$ac_ext
22403 LIBS=$ac_check_lib_save_LIBS
22405 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22406 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22407 if test $ac_cv_lib_popt_poptStrerror = yes; then
22408 AST_POPT_FOUND=yes
22409 else
22410 AST_POPT_FOUND=no
22414 if test "${AST_POPT_FOUND}" = "yes"; then
22415 POPT_LIB="-lpopt "
22416 POPT_HEADER_FOUND="1"
22417 if test "x${POPT_DIR}" != "x"; then
22418 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22419 POPT_INCLUDE="-I${POPT_DIR}/include"
22420 if test "xpopt.h" != "x" ; then
22421 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
22422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22423 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22424 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 ac_res=`eval echo '${'$as_ac_Header'}'`
22429 { echo "$as_me:$LINENO: result: $ac_res" >&5
22430 echo "${ECHO_T}$ac_res" >&6; }
22431 else
22432 # Is the header compilable?
22433 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22434 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22435 cat >conftest.$ac_ext <<_ACEOF
22436 /* confdefs.h. */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 $ac_includes_default
22442 #include <${POPT_DIR}/include/popt.h>
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 if { (ac_try="$ac_compile"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_compile") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest.$ac_objext; then
22461 ac_header_compiler=yes
22462 else
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_header_compiler=no
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22471 echo "${ECHO_T}$ac_header_compiler" >&6; }
22473 # Is the header present?
22474 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22475 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22476 cat >conftest.$ac_ext <<_ACEOF
22477 /* confdefs.h. */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 #include <${POPT_DIR}/include/popt.h>
22483 _ACEOF
22484 if { (ac_try="$ac_cpp conftest.$ac_ext"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22491 ac_status=$?
22492 grep -v '^ *+' conftest.er1 >conftest.err
22493 rm -f conftest.er1
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } >/dev/null && {
22497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 }; then
22500 ac_header_preproc=yes
22501 else
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ac_header_preproc=no
22508 rm -f conftest.err conftest.$ac_ext
22509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22510 echo "${ECHO_T}$ac_header_preproc" >&6; }
22512 # So? What about this header?
22513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22514 yes:no: )
22515 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22516 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22518 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22519 ac_header_preproc=yes
22521 no:yes:* )
22522 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
22523 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
22524 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
22525 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
22527 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
22529 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
22531 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
22533 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
22536 esac
22537 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22538 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542 eval "$as_ac_Header=\$ac_header_preproc"
22544 ac_res=`eval echo '${'$as_ac_Header'}'`
22545 { echo "$as_me:$LINENO: result: $ac_res" >&5
22546 echo "${ECHO_T}$ac_res" >&6; }
22549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22550 POPT_HEADER_FOUND=1
22551 else
22552 POPT_HEADER_FOUND=0
22557 else
22558 if test "xpopt.h" != "x" ; then
22559 if test "${ac_cv_header_popt_h+set}" = set; then
22560 { echo "$as_me:$LINENO: checking for popt.h" >&5
22561 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22562 if test "${ac_cv_header_popt_h+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22566 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22567 else
22568 # Is the header compilable?
22569 { echo "$as_me:$LINENO: checking popt.h usability" >&5
22570 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 $ac_includes_default
22578 #include <popt.h>
22579 _ACEOF
22580 rm -f conftest.$ac_objext
22581 if { (ac_try="$ac_compile"
22582 case "(($ac_try" in
22583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584 *) ac_try_echo=$ac_try;;
22585 esac
22586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587 (eval "$ac_compile") 2>conftest.er1
22588 ac_status=$?
22589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } && {
22594 test -z "$ac_c_werror_flag" ||
22595 test ! -s conftest.err
22596 } && test -s conftest.$ac_objext; then
22597 ac_header_compiler=yes
22598 else
22599 echo "$as_me: failed program was:" >&5
22600 sed 's/^/| /' conftest.$ac_ext >&5
22602 ac_header_compiler=no
22605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22607 echo "${ECHO_T}$ac_header_compiler" >&6; }
22609 # Is the header present?
22610 { echo "$as_me:$LINENO: checking popt.h presence" >&5
22611 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
22612 cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h. */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 #include <popt.h>
22619 _ACEOF
22620 if { (ac_try="$ac_cpp conftest.$ac_ext"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22627 ac_status=$?
22628 grep -v '^ *+' conftest.er1 >conftest.err
22629 rm -f conftest.er1
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } >/dev/null && {
22633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 }; then
22636 ac_header_preproc=yes
22637 else
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_header_preproc=no
22644 rm -f conftest.err conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22646 echo "${ECHO_T}$ac_header_preproc" >&6; }
22648 # So? What about this header?
22649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22650 yes:no: )
22651 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22652 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
22654 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
22655 ac_header_preproc=yes
22657 no:yes:* )
22658 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
22659 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
22660 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
22661 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
22662 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
22663 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
22665 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
22667 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
22669 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
22672 esac
22673 { echo "$as_me:$LINENO: checking for popt.h" >&5
22674 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
22675 if test "${ac_cv_header_popt_h+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678 ac_cv_header_popt_h=$ac_header_preproc
22680 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
22681 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
22684 if test $ac_cv_header_popt_h = yes; then
22685 POPT_HEADER_FOUND=1
22686 else
22687 POPT_HEADER_FOUND=0
22693 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
22694 if test ! -z "${POPT_MANDATORY}" ;
22695 then
22696 { echo "$as_me:$LINENO: ***" >&5
22697 echo "$as_me: ***" >&6;}
22698 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
22699 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
22700 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
22701 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
22702 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22703 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22704 exit 1
22706 POPT_LIB=""
22707 POPT_INCLUDE=""
22708 PBX_POPT=0
22709 else
22710 PBX_POPT=1
22712 cat >>confdefs.h <<_ACEOF
22713 #define HAVE_POPT 1
22714 _ACEOF
22717 elif test ! -z "${POPT_MANDATORY}";
22718 then
22719 { echo "$as_me:$LINENO: ***" >&5
22720 echo "$as_me: ***" >&6;}
22721 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
22722 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
22723 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22724 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22725 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
22726 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
22727 exit 1
22733 if test "${USE_PRI}" != "no"; then
22734 pbxlibdir=""
22735 if test "x${PRI_DIR}" != "x"; then
22736 if test -d ${PRI_DIR}/lib; then
22737 pbxlibdir="-L${PRI_DIR}/lib"
22738 else
22739 pbxlibdir="-L${PRI_DIR}"
22742 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
22743 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
22744 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22746 else
22747 ac_check_lib_save_LIBS=$LIBS
22748 LIBS="-lpri ${pbxlibdir} $LIBS"
22749 cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22756 /* Override any GCC internal prototype to avoid an error.
22757 Use char because int might match the return type of a GCC
22758 builtin and then its argument prototype would still apply. */
22759 #ifdef __cplusplus
22760 extern "C"
22761 #endif
22762 char pri_call ();
22764 main ()
22766 return pri_call ();
22768 return 0;
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (ac_try="$ac_link"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_link") 2>conftest.er1
22779 ac_status=$?
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest$ac_exeext &&
22788 $as_test_x conftest$ac_exeext; then
22789 ac_cv_lib_pri_pri_call=yes
22790 else
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ac_cv_lib_pri_pri_call=no
22797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22798 conftest$ac_exeext conftest.$ac_ext
22799 LIBS=$ac_check_lib_save_LIBS
22801 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
22802 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
22803 if test $ac_cv_lib_pri_pri_call = yes; then
22804 AST_PRI_FOUND=yes
22805 else
22806 AST_PRI_FOUND=no
22810 if test "${AST_PRI_FOUND}" = "yes"; then
22811 PRI_LIB="-lpri "
22812 PRI_HEADER_FOUND="1"
22813 if test "x${PRI_DIR}" != "x"; then
22814 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
22815 PRI_INCLUDE="-I${PRI_DIR}/include"
22816 if test "xlibpri.h" != "x" ; then
22817 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
22818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22819 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22820 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 ac_res=`eval echo '${'$as_ac_Header'}'`
22825 { echo "$as_me:$LINENO: result: $ac_res" >&5
22826 echo "${ECHO_T}$ac_res" >&6; }
22827 else
22828 # Is the header compilable?
22829 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
22830 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 #include <${PRI_DIR}/include/libpri.h>
22839 _ACEOF
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22845 esac
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847 (eval "$ac_compile") 2>conftest.er1
22848 ac_status=$?
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } && {
22854 test -z "$ac_c_werror_flag" ||
22855 test ! -s conftest.err
22856 } && test -s conftest.$ac_objext; then
22857 ac_header_compiler=yes
22858 else
22859 echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22862 ac_header_compiler=no
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22867 echo "${ECHO_T}$ac_header_compiler" >&6; }
22869 # Is the header present?
22870 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
22871 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
22872 cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h. */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 #include <${PRI_DIR}/include/libpri.h>
22879 _ACEOF
22880 if { (ac_try="$ac_cpp conftest.$ac_ext"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22884 esac
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22887 ac_status=$?
22888 grep -v '^ *+' conftest.er1 >conftest.err
22889 rm -f conftest.er1
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } >/dev/null && {
22893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 }; then
22896 ac_header_preproc=yes
22897 else
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_header_preproc=no
22904 rm -f conftest.err conftest.$ac_ext
22905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22906 echo "${ECHO_T}$ac_header_preproc" >&6; }
22908 # So? What about this header?
22909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22910 yes:no: )
22911 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
22912 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22913 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
22914 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
22915 ac_header_preproc=yes
22917 no:yes:* )
22918 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
22919 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
22920 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
22921 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
22923 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
22924 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
22925 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
22926 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
22927 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
22929 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
22932 esac
22933 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
22934 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
22935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938 eval "$as_ac_Header=\$ac_header_preproc"
22940 ac_res=`eval echo '${'$as_ac_Header'}'`
22941 { echo "$as_me:$LINENO: result: $ac_res" >&5
22942 echo "${ECHO_T}$ac_res" >&6; }
22945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22946 PRI_HEADER_FOUND=1
22947 else
22948 PRI_HEADER_FOUND=0
22953 else
22954 if test "xlibpri.h" != "x" ; then
22955 if test "${ac_cv_header_libpri_h+set}" = set; then
22956 { echo "$as_me:$LINENO: checking for libpri.h" >&5
22957 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
22958 if test "${ac_cv_header_libpri_h+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
22963 else
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
22966 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h. */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 #include <libpri.h>
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22994 else
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23007 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h. */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <libpri.h>
23015 _ACEOF
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 }; then
23032 ac_header_preproc=yes
23033 else
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_header_preproc=no
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23046 yes:no: )
23047 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23051 ac_header_preproc=yes
23053 no:yes:* )
23054 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23068 esac
23069 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23070 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23071 if test "${ac_cv_header_libpri_h+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 else
23074 ac_cv_header_libpri_h=$ac_header_preproc
23076 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23077 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23080 if test $ac_cv_header_libpri_h = yes; then
23081 PRI_HEADER_FOUND=1
23082 else
23083 PRI_HEADER_FOUND=0
23089 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23090 if test ! -z "${PRI_MANDATORY}" ;
23091 then
23092 { echo "$as_me:$LINENO: ***" >&5
23093 echo "$as_me: ***" >&6;}
23094 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23095 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23096 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23097 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23098 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23099 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23100 exit 1
23102 PRI_LIB=""
23103 PRI_INCLUDE=""
23104 PBX_PRI=0
23105 else
23106 PBX_PRI=1
23108 cat >>confdefs.h <<_ACEOF
23109 #define HAVE_PRI 1
23110 _ACEOF
23113 elif test ! -z "${PRI_MANDATORY}";
23114 then
23115 { echo "$as_me:$LINENO: ***" >&5
23116 echo "$as_me: ***" >&6;}
23117 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23118 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23119 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23120 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23121 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23122 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23123 exit 1
23128 if test "${USE_PWLIB}" != "no"; then
23129 if test ! -z "${PWLIB_DIR}"; then
23130 PWLIBDIR="${PWLIB_DIR}"
23133 PWLIB_INCDIR=
23134 PWLIB_LIBDIR=
23135 if test "${PWLIBDIR:-unset}" != "unset" ; then
23136 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23137 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23138 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23139 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142 test "$cross_compiling" = yes &&
23143 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23144 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23145 { (exit 1); exit 1; }; }
23146 if test -r "${PWLIBDIR}/version.h"; then
23147 eval "$as_ac_File=yes"
23148 else
23149 eval "$as_ac_File=no"
23152 ac_res=`eval echo '${'$as_ac_File'}'`
23153 { echo "$as_me:$LINENO: result: $ac_res" >&5
23154 echo "${ECHO_T}$ac_res" >&6; }
23155 if test `eval echo '${'$as_ac_File'}'` = yes; then
23156 HAS_PWLIB=1
23160 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23161 if test "${OPENH323DIR:-unset}" != "unset"; then
23162 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23163 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23164 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23165 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 else
23168 test "$cross_compiling" = yes &&
23169 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23170 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23171 { (exit 1); exit 1; }; }
23172 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23173 eval "$as_ac_File=yes"
23174 else
23175 eval "$as_ac_File=no"
23178 ac_res=`eval echo '${'$as_ac_File'}'`
23179 { echo "$as_me:$LINENO: result: $ac_res" >&5
23180 echo "${ECHO_T}$ac_res" >&6; }
23181 if test `eval echo '${'$as_ac_File'}'` = yes; then
23182 HAS_PWLIB=1
23186 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23187 PWLIBDIR="${OPENH323DIR}/../pwlib"
23188 else
23189 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23190 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23191 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23192 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23194 else
23195 test "$cross_compiling" = yes &&
23196 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23197 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23198 { (exit 1); exit 1; }; }
23199 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23200 eval "$as_ac_File=yes"
23201 else
23202 eval "$as_ac_File=no"
23205 ac_res=`eval echo '${'$as_ac_File'}'`
23206 { echo "$as_me:$LINENO: result: $ac_res" >&5
23207 echo "${ECHO_T}$ac_res" >&6; }
23208 if test `eval echo '${'$as_ac_File'}'` = yes; then
23209 HAS_PWLIB=1
23212 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23213 PWLIBDIR="${HOME}/pwlib"
23214 else
23215 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23216 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23217 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
23219 else
23220 test "$cross_compiling" = yes &&
23221 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23222 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23223 { (exit 1); exit 1; }; }
23224 if test -r "/usr/local/include/ptlib.h"; then
23225 ac_cv_file__usr_local_include_ptlib_h=yes
23226 else
23227 ac_cv_file__usr_local_include_ptlib_h=no
23230 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23231 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23232 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23233 HAS_PWLIB=1
23236 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23237 # Extract the first word of "ptlib-config", so it can be a program name with args.
23238 set dummy ptlib-config; ac_word=$2
23239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23241 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244 case $PTLIB_CONFIG in
23245 [\\/]* | ?:[\\/]*)
23246 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23250 for as_dir in /usr/local/bin
23252 IFS=$as_save_IFS
23253 test -z "$as_dir" && as_dir=.
23254 for ac_exec_ext in '' $ac_executable_extensions; do
23255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23256 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23258 break 2
23260 done
23261 done
23262 IFS=$as_save_IFS
23265 esac
23267 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23268 if test -n "$PTLIB_CONFIG"; then
23269 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23270 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23271 else
23272 { echo "$as_me:$LINENO: result: no" >&5
23273 echo "${ECHO_T}no" >&6; }
23277 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23278 # Extract the first word of "ptlib-config", so it can be a program name with args.
23279 set dummy ptlib-config; ac_word=$2
23280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23282 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23284 else
23285 case $PTLIB_CONFIG in
23286 [\\/]* | ?:[\\/]*)
23287 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23291 for as_dir in /usr/local/share/pwlib/make
23293 IFS=$as_save_IFS
23294 test -z "$as_dir" && as_dir=.
23295 for ac_exec_ext in '' $ac_executable_extensions; do
23296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23297 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23299 break 2
23301 done
23302 done
23303 IFS=$as_save_IFS
23306 esac
23308 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23309 if test -n "$PTLIB_CONFIG"; then
23310 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23311 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23312 else
23313 { echo "$as_me:$LINENO: result: no" >&5
23314 echo "${ECHO_T}no" >&6; }
23319 PWLIB_INCDIR="/usr/local/include"
23320 PWLIB_LIBDIR="/usr/local/lib"
23321 else
23322 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23323 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23324 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23326 else
23327 test "$cross_compiling" = yes &&
23328 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23329 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23330 { (exit 1); exit 1; }; }
23331 if test -r "/usr/include/ptlib.h"; then
23332 ac_cv_file__usr_include_ptlib_h=yes
23333 else
23334 ac_cv_file__usr_include_ptlib_h=no
23337 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23338 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23339 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23340 HAS_PWLIB=1
23343 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23344 # Extract the first word of "ptlib-config", so it can be a program name with args.
23345 set dummy ptlib-config; ac_word=$2
23346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23348 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351 case $PTLIB_CONFIG in
23352 [\\/]* | ?:[\\/]*)
23353 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23357 for as_dir in /usr/share/pwlib/make
23359 IFS=$as_save_IFS
23360 test -z "$as_dir" && as_dir=.
23361 for ac_exec_ext in '' $ac_executable_extensions; do
23362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23363 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23365 break 2
23367 done
23368 done
23369 IFS=$as_save_IFS
23372 esac
23374 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23375 if test -n "$PTLIB_CONFIG"; then
23376 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23377 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23378 else
23379 { echo "$as_me:$LINENO: result: no" >&5
23380 echo "${ECHO_T}no" >&6; }
23384 PWLIB_INCDIR="/usr/include"
23385 PWLIB_LIBDIR="/usr/lib"
23392 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23393 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23394 # exit
23397 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23398 if test "${PWLIBDIR:-unset}" = "unset" ; then
23399 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23400 PWLIBDIR=`$PTLIB_CONFIG --prefix`
23401 else
23402 echo "Cannot find ptlib-config - please install and try again"
23403 exit
23407 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23408 PWLIBDIR="/usr/share/pwlib"
23409 PWLIB_INCDIR="/usr/include"
23410 PWLIB_LIBDIR="/usr/lib"
23412 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23413 PWLIBDIR="/usr/local/share/pwlib"
23414 PWLIB_INCDIR="/usr/local/include"
23415 PWLIB_LIBDIR="/usr/local/lib"
23418 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23419 PWLIB_INCDIR="${PWLIBDIR}/include"
23421 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23422 PWLIB_LIBDIR="${PWLIBDIR}/lib"
23431 if test "${HAS_PWLIB:-unset}" != "unset"; then
23432 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23433 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23434 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23435 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23436 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23437 let PWLIB_REQ=1*10000+9*100+2
23439 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23440 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23441 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23442 { echo "$as_me:$LINENO: result: no" >&5
23443 echo "${ECHO_T}no" >&6; }
23444 unset HAS_PWLIB
23445 else
23446 { echo "$as_me:$LINENO: result: yes" >&5
23447 echo "${ECHO_T}yes" >&6; }
23452 if test "${HAS_PWLIB:-unset}" != "unset"; then
23454 PWLIB_OSTYPE=
23455 case "$host_os" in
23456 linux*) PWLIB_OSTYPE=linux ;
23458 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
23460 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
23461 ENDLDLIBS="-lossaudio" ;
23463 netbsd* ) PWLIB_OSTYPE=NetBSD ;
23464 ENDLDLIBS="-lossaudio" ;
23466 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
23468 darwin* ) PWLIB_OSTYPE=Darwin ;
23470 beos*) PWLIB_OSTYPE=beos ;
23471 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
23473 cygwin*) PWLIB_OSTYPE=cygwin ;
23475 mingw*) PWLIB_OSTYPE=mingw ;
23476 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
23477 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23479 * ) PWLIB_OSTYPE="$host_os" ;
23480 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23481 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23483 esac
23485 PWLIB_MACHTYPE=
23486 case "$host_cpu" in
23487 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
23490 x86_64) PWLIB_MACHTYPE=x86_64 ;
23491 P_64BIT=1 ;
23492 LIB64=1 ;
23495 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
23496 P_64BIT=1 ;
23499 sparc ) PWLIB_MACHTYPE=sparc ;
23502 powerpc ) PWLIB_MACHTYPE=ppc ;
23505 ppc ) PWLIB_MACHTYPE=ppc ;
23508 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
23509 P_64BIT=1 ;
23510 LIB64=1 ;
23513 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
23514 P_64BIT=1 ;
23515 LIB64=1 ;
23518 ia64) PWLIB_MACHTYPE=ia64 ;
23519 P_64BIT=1 ;
23522 s390x) PWLIB_MACHTYPE=s390x ;
23523 P_64BIT=1 ;
23524 LIB64=1 ;
23527 s390) PWLIB_MACHTYPE=s390 ;
23530 * ) PWLIB_MACHTYPE="$host_cpu";
23531 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
23532 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
23533 esac
23535 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
23540 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
23543 if test "${HAS_PWLIB:-unset}" != "unset"; then
23544 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
23545 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
23547 saved_cppflags="${CPPFLAGS}"
23548 saved_libs="${LIBS}"
23549 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
23550 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
23552 ac_ext=cpp
23553 ac_cpp='$CXXCPP $CPPFLAGS'
23554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23559 cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h. */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 #include "ptlib.h"
23567 main ()
23569 BOOL q = PTime::IsDaylightSavings();
23571 return 0;
23573 _ACEOF
23574 rm -f conftest.$ac_objext conftest$ac_exeext
23575 if { (ac_try="$ac_link"
23576 case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23579 esac
23580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23581 (eval "$ac_link") 2>conftest.er1
23582 ac_status=$?
23583 grep -v '^ *+' conftest.er1 >conftest.err
23584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } && {
23588 test -z "$ac_cxx_werror_flag" ||
23589 test ! -s conftest.err
23590 } && test -s conftest$ac_exeext &&
23591 $as_test_x conftest$ac_exeext; then
23592 { echo "$as_me:$LINENO: result: yes" >&5
23593 echo "${ECHO_T}yes" >&6; }
23594 ac_cv_lib_PWLIB="yes"
23596 else
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 { echo "$as_me:$LINENO: result: no" >&5
23601 echo "${ECHO_T}no" >&6; }
23602 ac_cv_lib_PWLIB="no"
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608 conftest$ac_exeext conftest.$ac_ext
23610 ac_ext=c
23611 ac_cpp='$CPP $CPPFLAGS'
23612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23617 LIBS="${saved_libs}"
23618 CPPFLAGS="${saved_cppflags}"
23620 if test "${ac_cv_lib_PWLIB}" = "yes"; then
23621 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
23622 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
23623 else
23624 PWLIB_LIB="-l${PLATFORM_PWLIB}"
23626 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
23627 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
23629 PBX_PWLIB=1
23631 cat >>confdefs.h <<\_ACEOF
23632 #define HAVE_PWLIB 1
23633 _ACEOF
23641 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
23642 { echo "$as_me:$LINENO: ***" >&5
23643 echo "$as_me: ***" >&6;}
23644 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
23645 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
23646 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23647 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23648 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
23649 echo "$as_me: *** including --without-pwlib" >&6;}
23650 exit 1
23653 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
23654 if test ! -z "${OPENH323_DIR}"; then
23655 OPENH323DIR="${OPENH323_DIR}"
23658 OPENH323_INCDIR=
23659 OPENH323_LIBDIR=
23660 if test "${OPENH323DIR:-unset}" != "unset" ; then
23661 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
23662 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
23663 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
23664 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23665 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 else
23667 test "$cross_compiling" = yes &&
23668 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23669 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23670 { (exit 1); exit 1; }; }
23671 if test -r "${OPENH323DIR}/version.h"; then
23672 eval "$as_ac_File=yes"
23673 else
23674 eval "$as_ac_File=no"
23677 ac_res=`eval echo '${'$as_ac_File'}'`
23678 { echo "$as_me:$LINENO: result: $ac_res" >&5
23679 echo "${ECHO_T}$ac_res" >&6; }
23680 if test `eval echo '${'$as_ac_File'}'` = yes; then
23681 HAS_OPENH323=1
23685 if test "${HAS_OPENH323:-unset}" = "unset" ; then
23686 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
23687 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
23688 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
23689 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 else
23692 test "$cross_compiling" = yes &&
23693 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23694 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23695 { (exit 1); exit 1; }; }
23696 if test -r "${PWLIBDIR}/../openh323/version.h"; then
23697 eval "$as_ac_File=yes"
23698 else
23699 eval "$as_ac_File=no"
23702 ac_res=`eval echo '${'$as_ac_File'}'`
23703 { echo "$as_me:$LINENO: result: $ac_res" >&5
23704 echo "${ECHO_T}$ac_res" >&6; }
23705 if test `eval echo '${'$as_ac_File'}'` = yes; then
23706 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
23709 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23710 OPENH323DIR="${PWLIBDIR}/../openh323"
23711 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
23712 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
23713 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
23714 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717 test "$cross_compiling" = yes &&
23718 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23719 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23720 { (exit 1); exit 1; }; }
23721 if test -r "${OPENH323DIR}/include/h323.h"; then
23722 eval "$as_ac_File=yes"
23723 else
23724 eval "$as_ac_File=no"
23727 ac_res=`eval echo '${'$as_ac_File'}'`
23728 { echo "$as_me:$LINENO: result: $ac_res" >&5
23729 echo "${ECHO_T}$ac_res" >&6; }
23730 if test `eval echo '${'$as_ac_File'}'` = yes; then
23732 else
23733 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
23736 else
23737 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
23738 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
23739 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
23740 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23742 else
23743 test "$cross_compiling" = yes &&
23744 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23745 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23746 { (exit 1); exit 1; }; }
23747 if test -r "${HOME}/openh323/include/h323.h"; then
23748 eval "$as_ac_File=yes"
23749 else
23750 eval "$as_ac_File=no"
23753 ac_res=`eval echo '${'$as_ac_File'}'`
23754 { echo "$as_me:$LINENO: result: $ac_res" >&5
23755 echo "${ECHO_T}$ac_res" >&6; }
23756 if test `eval echo '${'$as_ac_File'}'` = yes; then
23757 HAS_OPENH323=1
23760 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23761 OPENH323DIR="${HOME}/openh323"
23762 else
23763 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
23764 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
23765 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23767 else
23768 test "$cross_compiling" = yes &&
23769 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23770 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23771 { (exit 1); exit 1; }; }
23772 if test -r "/usr/local/include/openh323/h323.h"; then
23773 ac_cv_file__usr_local_include_openh323_h323_h=yes
23774 else
23775 ac_cv_file__usr_local_include_openh323_h323_h=no
23778 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
23779 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
23780 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
23781 HAS_OPENH323=1
23784 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23785 OPENH323DIR="/usr/local/share/openh323"
23786 OPENH323_INCDIR="/usr/local/include/openh323"
23787 OPENH323_LIBDIR="/usr/local/lib"
23788 else
23789 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
23790 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
23791 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794 test "$cross_compiling" = yes &&
23795 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23796 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23797 { (exit 1); exit 1; }; }
23798 if test -r "/usr/include/openh323/h323.h"; then
23799 ac_cv_file__usr_include_openh323_h323_h=yes
23800 else
23801 ac_cv_file__usr_include_openh323_h323_h=no
23804 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
23805 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
23806 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
23807 HAS_OPENH323=1
23810 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23811 OPENH323DIR="/usr/share/openh323"
23812 OPENH323_INCDIR="/usr/include/openh323"
23813 OPENH323_LIBDIR="/usr/lib"
23820 if test "${HAS_OPENH323:-unset}" != "unset" ; then
23821 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
23822 OPENH323_INCDIR="${OPENH323DIR}/include"
23824 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
23825 OPENH323_LIBDIR="${OPENH323DIR}/lib"
23834 if test "${HAS_OPENH323:-unset}" != "unset"; then
23835 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23836 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
23837 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
23838 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
23839 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
23840 let OPENH323_REQ=1*10000+17*100+3
23842 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
23843 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23844 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
23845 { echo "$as_me:$LINENO: result: no" >&5
23846 echo "${ECHO_T}no" >&6; }
23847 unset HAS_OPENH323
23848 else
23849 { echo "$as_me:$LINENO: result: yes" >&5
23850 echo "${ECHO_T}yes" >&6; }
23855 if test "${HAS_OPENH323:-unset}" != "unset"; then
23856 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
23857 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
23858 OPENH323_SUFFIX=
23859 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
23860 libfile=
23861 if test -n "$files"; then
23862 for f in $files; do
23863 if test -f $f -a ! -L $f; then
23864 libfile=`basename $f`
23865 break;
23867 done
23869 if test "${libfile:-unset}" != "unset"; then
23870 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
23872 case "${OPENH323_SUFFIX}" in
23874 OPENH323_BUILD="notrace";;
23876 OPENH323_BUILD="opt";;
23878 OPENH323_BUILD="debug";;
23880 OPENH323_BUILD="notrace";;
23881 esac
23882 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
23883 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
23889 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
23891 if test "${HAS_OPENH323:-unset}" != "unset"; then
23892 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
23893 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
23895 saved_cppflags="${CPPFLAGS}"
23896 saved_libs="${LIBS}"
23897 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
23898 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
23900 ac_ext=cpp
23901 ac_cpp='$CXXCPP $CPPFLAGS'
23902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h. */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 #include "ptlib.h"
23914 #include "h323.h"
23915 #include "h323ep.h"
23917 main ()
23919 H323EndPoint ep = H323EndPoint();
23921 return 0;
23923 _ACEOF
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (ac_try="$ac_link"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929 esac
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_link") 2>conftest.er1
23932 ac_status=$?
23933 grep -v '^ *+' conftest.er1 >conftest.err
23934 rm -f conftest.er1
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_cxx_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest$ac_exeext &&
23941 $as_test_x conftest$ac_exeext; then
23942 { echo "$as_me:$LINENO: result: yes" >&5
23943 echo "${ECHO_T}yes" >&6; }
23944 ac_cv_lib_OPENH323="yes"
23946 else
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 { echo "$as_me:$LINENO: result: no" >&5
23951 echo "${ECHO_T}no" >&6; }
23952 ac_cv_lib_OPENH323="no"
23957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23958 conftest$ac_exeext conftest.$ac_ext
23960 ac_ext=c
23961 ac_cpp='$CPP $CPPFLAGS'
23962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23967 LIBS="${saved_libs}"
23968 CPPFLAGS="${saved_cppflags}"
23970 if test "${ac_cv_lib_OPENH323}" = "yes"; then
23971 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
23972 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
23973 else
23974 OPENH323_LIB="-l${PLATFORM_OPENH323}"
23976 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
23977 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
23979 PBX_OPENH323=1
23981 cat >>confdefs.h <<\_ACEOF
23982 #define HAVE_OPENH323 1
23983 _ACEOF
23989 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
23990 { echo "$as_me:$LINENO: ***" >&5
23991 echo "$as_me: ***" >&6;}
23992 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
23993 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
23994 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23995 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23996 { echo "$as_me:$LINENO: *** including --without-h323" >&5
23997 echo "$as_me: *** including --without-h323" >&6;}
23998 exit 1
24002 ac_ext=cpp
24003 ac_cpp='$CXXCPP $CPPFLAGS'
24004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24009 if test "${USE_QT}" != "no"; then
24010 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24011 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24012 saved_libs="${LIBS}"
24013 saved_cppflags="${CPPFLAGS}"
24014 if test "x${QT_DIR}" != "x"; then
24015 LIBS="${LIBS} -L${QT_DIR}/lib"
24016 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24018 LIBS="${LIBS} -lqt"
24019 qtlib="qt"
24020 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 #include <qt3/qdatetime.h>
24029 main ()
24031 QDate date();
24033 return 0;
24036 _ACEOF
24037 rm -f conftest.$ac_objext conftest$ac_exeext
24038 if { (ac_try="$ac_link"
24039 case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24042 esac
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_link") 2>conftest.er1
24045 ac_status=$?
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } && {
24051 test -z "$ac_cxx_werror_flag" ||
24052 test ! -s conftest.err
24053 } && test -s conftest$ac_exeext &&
24054 $as_test_x conftest$ac_exeext; then
24055 ac_cv_lib_qt_qt_date="yes"
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 ac_cv_lib_qt_qt_date="no"
24063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24064 conftest$ac_exeext conftest.$ac_ext
24065 LIBS="${saved_libs}"
24066 CPPFLAGS="${saved_cppflags}"
24068 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24069 saved_libs="${LIBS}"
24070 saved_cppflags="${CPPFLAGS}"
24071 if test "x${QT_DIR}" != "x"; then
24072 LIBS="${LIBS} -L${QT_DIR}/lib"
24073 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24075 LIBS="${LIBS} -lqt-mt"
24076 qtlib="qt-mt"
24077 cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h. */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 #include <qt3/qdatetime.h>
24086 main ()
24088 QDate date();
24090 return 0;
24093 _ACEOF
24094 rm -f conftest.$ac_objext conftest$ac_exeext
24095 if { (ac_try="$ac_link"
24096 case "(($ac_try" in
24097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24098 *) ac_try_echo=$ac_try;;
24099 esac
24100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24101 (eval "$ac_link") 2>conftest.er1
24102 ac_status=$?
24103 grep -v '^ *+' conftest.er1 >conftest.err
24104 rm -f conftest.er1
24105 cat conftest.err >&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); } && {
24108 test -z "$ac_cxx_werror_flag" ||
24109 test ! -s conftest.err
24110 } && test -s conftest$ac_exeext &&
24111 $as_test_x conftest$ac_exeext; then
24112 ac_cv_lib_qt_qt_date="yes"
24113 else
24114 echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24117 ac_cv_lib_qt_qt_date="no"
24120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24121 conftest$ac_exeext conftest.$ac_ext
24122 LIBS="${saved_libs}"
24123 CPPFLAGS="${saved_cppflags}"
24126 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24127 { echo "$as_me:$LINENO: result: yes" >&5
24128 echo "${ECHO_T}yes" >&6; }
24129 else
24130 { echo "$as_me:$LINENO: result: no" >&5
24131 echo "${ECHO_T}no" >&6; }
24134 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24135 QT_LIB="-l${qtlib}"
24136 if test "${QT_DIR}" != ""; then
24137 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
24138 QT_INCLUDE="-I${QT_DIR}/include"
24140 PBX_QT=1
24142 cat >>confdefs.h <<\_ACEOF
24143 #define HAVE_QT 1
24144 _ACEOF
24146 if test -n "$ac_tool_prefix"; then
24147 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24148 set dummy ${ac_tool_prefix}moc; ac_word=$2
24149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24151 if test "${ac_cv_path_QTMOC+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 else
24154 case $QTMOC in
24155 [\\/]* | ?:[\\/]*)
24156 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
24159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24160 for as_dir in $PATH
24162 IFS=$as_save_IFS
24163 test -z "$as_dir" && as_dir=.
24164 for ac_exec_ext in '' $ac_executable_extensions; do
24165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24166 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24168 break 2
24170 done
24171 done
24172 IFS=$as_save_IFS
24175 esac
24177 QTMOC=$ac_cv_path_QTMOC
24178 if test -n "$QTMOC"; then
24179 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24180 echo "${ECHO_T}$QTMOC" >&6; }
24181 else
24182 { echo "$as_me:$LINENO: result: no" >&5
24183 echo "${ECHO_T}no" >&6; }
24188 if test -z "$ac_cv_path_QTMOC"; then
24189 ac_pt_QTMOC=$QTMOC
24190 # Extract the first word of "moc", so it can be a program name with args.
24191 set dummy moc; ac_word=$2
24192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24194 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24196 else
24197 case $ac_pt_QTMOC in
24198 [\\/]* | ?:[\\/]*)
24199 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
24202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24203 for as_dir in $PATH
24205 IFS=$as_save_IFS
24206 test -z "$as_dir" && as_dir=.
24207 for ac_exec_ext in '' $ac_executable_extensions; do
24208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24209 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24211 break 2
24213 done
24214 done
24215 IFS=$as_save_IFS
24218 esac
24220 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
24221 if test -n "$ac_pt_QTMOC"; then
24222 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24223 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24224 else
24225 { echo "$as_me:$LINENO: result: no" >&5
24226 echo "${ECHO_T}no" >&6; }
24229 if test "x$ac_pt_QTMOC" = x; then
24230 QTMOC="No"
24231 else
24232 case $cross_compiling:$ac_tool_warned in
24233 yes:)
24234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24235 whose name does not start with the host triplet. If you think this
24236 configuration is useful to you, please write to autoconf@gnu.org." >&5
24237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24238 whose name does not start with the host triplet. If you think this
24239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24240 ac_tool_warned=yes ;;
24241 esac
24242 QTMOC=$ac_pt_QTMOC
24244 else
24245 QTMOC="$ac_cv_path_QTMOC"
24248 elif test ! -z "${QT_MANDATORY}";
24249 then
24250 { echo "$as_me:$LINENO: ***" >&5
24251 echo "$as_me: ***" >&6;}
24252 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24253 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24254 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24255 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24256 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24257 echo "$as_me: *** including --without-qt." >&6;}
24258 exit 1
24262 ac_ext=c
24263 ac_cpp='$CPP $CPPFLAGS'
24264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24270 if test "${USE_RADIUS}" != "no"; then
24271 pbxlibdir=""
24272 if test "x${RADIUS_DIR}" != "x"; then
24273 if test -d ${RADIUS_DIR}/lib; then
24274 pbxlibdir="-L${RADIUS_DIR}/lib"
24275 else
24276 pbxlibdir="-L${RADIUS_DIR}"
24279 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24280 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24281 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24282 echo $ECHO_N "(cached) $ECHO_C" >&6
24283 else
24284 ac_check_lib_save_LIBS=$LIBS
24285 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
24286 cat >conftest.$ac_ext <<_ACEOF
24287 /* confdefs.h. */
24288 _ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24293 /* Override any GCC internal prototype to avoid an error.
24294 Use char because int might match the return type of a GCC
24295 builtin and then its argument prototype would still apply. */
24296 #ifdef __cplusplus
24297 extern "C"
24298 #endif
24299 char rc_read_config ();
24301 main ()
24303 return rc_read_config ();
24305 return 0;
24307 _ACEOF
24308 rm -f conftest.$ac_objext conftest$ac_exeext
24309 if { (ac_try="$ac_link"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313 esac
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_link") 2>conftest.er1
24316 ac_status=$?
24317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && {
24322 test -z "$ac_c_werror_flag" ||
24323 test ! -s conftest.err
24324 } && test -s conftest$ac_exeext &&
24325 $as_test_x conftest$ac_exeext; then
24326 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24327 else
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_cv_lib_radiusclient_ng_rc_read_config=no
24334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24335 conftest$ac_exeext conftest.$ac_ext
24336 LIBS=$ac_check_lib_save_LIBS
24338 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24339 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24340 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24341 AST_RADIUS_FOUND=yes
24342 else
24343 AST_RADIUS_FOUND=no
24347 if test "${AST_RADIUS_FOUND}" = "yes"; then
24348 RADIUS_LIB="-lradiusclient-ng "
24349 RADIUS_HEADER_FOUND="1"
24350 if test "x${RADIUS_DIR}" != "x"; then
24351 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24352 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24353 if test "xradiusclient-ng.h" != "x" ; then
24354 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24357 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24361 ac_res=`eval echo '${'$as_ac_Header'}'`
24362 { echo "$as_me:$LINENO: result: $ac_res" >&5
24363 echo "${ECHO_T}$ac_res" >&6; }
24364 else
24365 # Is the header compilable?
24366 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24367 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24368 cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h. */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24374 $ac_includes_default
24375 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24382 esac
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24385 ac_status=$?
24386 grep -v '^ *+' conftest.er1 >conftest.err
24387 rm -f conftest.er1
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_c_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.$ac_objext; then
24394 ac_header_compiler=yes
24395 else
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 ac_header_compiler=no
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24404 echo "${ECHO_T}$ac_header_compiler" >&6; }
24406 # Is the header present?
24407 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24408 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24409 cat >conftest.$ac_ext <<_ACEOF
24410 /* confdefs.h. */
24411 _ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24415 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24416 _ACEOF
24417 if { (ac_try="$ac_cpp conftest.$ac_ext"
24418 case "(($ac_try" in
24419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24421 esac
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24424 ac_status=$?
24425 grep -v '^ *+' conftest.er1 >conftest.err
24426 rm -f conftest.er1
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } >/dev/null && {
24430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24432 }; then
24433 ac_header_preproc=yes
24434 else
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ac_header_preproc=no
24441 rm -f conftest.err conftest.$ac_ext
24442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24443 echo "${ECHO_T}$ac_header_preproc" >&6; }
24445 # So? What about this header?
24446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24447 yes:no: )
24448 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24449 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24450 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24451 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24452 ac_header_preproc=yes
24454 no:yes:* )
24455 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24456 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24458 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24460 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24462 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24464 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24466 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24469 esac
24470 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24471 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24473 echo $ECHO_N "(cached) $ECHO_C" >&6
24474 else
24475 eval "$as_ac_Header=\$ac_header_preproc"
24477 ac_res=`eval echo '${'$as_ac_Header'}'`
24478 { echo "$as_me:$LINENO: result: $ac_res" >&5
24479 echo "${ECHO_T}$ac_res" >&6; }
24482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24483 RADIUS_HEADER_FOUND=1
24484 else
24485 RADIUS_HEADER_FOUND=0
24490 else
24491 if test "xradiusclient-ng.h" != "x" ; then
24492 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24493 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24494 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24495 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24499 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24500 else
24501 # Is the header compilable?
24502 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24503 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24504 cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h. */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 $ac_includes_default
24511 #include <radiusclient-ng.h>
24512 _ACEOF
24513 rm -f conftest.$ac_objext
24514 if { (ac_try="$ac_compile"
24515 case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24518 esac
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24521 ac_status=$?
24522 grep -v '^ *+' conftest.er1 >conftest.err
24523 rm -f conftest.er1
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.$ac_objext; then
24530 ac_header_compiler=yes
24531 else
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24535 ac_header_compiler=no
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24540 echo "${ECHO_T}$ac_header_compiler" >&6; }
24542 # Is the header present?
24543 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
24544 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
24545 cat >conftest.$ac_ext <<_ACEOF
24546 /* confdefs.h. */
24547 _ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 #include <radiusclient-ng.h>
24552 _ACEOF
24553 if { (ac_try="$ac_cpp conftest.$ac_ext"
24554 case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24560 ac_status=$?
24561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } >/dev/null && {
24566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 }; then
24569 ac_header_preproc=yes
24570 else
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ac_header_preproc=no
24577 rm -f conftest.err conftest.$ac_ext
24578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24579 echo "${ECHO_T}$ac_header_preproc" >&6; }
24581 # So? What about this header?
24582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24583 yes:no: )
24584 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24585 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
24587 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24588 ac_header_preproc=yes
24590 no:yes:* )
24591 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
24592 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
24594 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
24596 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24598 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24600 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24601 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24602 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24605 esac
24606 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24607 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24608 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24609 echo $ECHO_N "(cached) $ECHO_C" >&6
24610 else
24611 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
24613 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24614 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24617 if test $ac_cv_header_radiusclient_ng_h = yes; then
24618 RADIUS_HEADER_FOUND=1
24619 else
24620 RADIUS_HEADER_FOUND=0
24626 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
24627 if test ! -z "${RADIUS_MANDATORY}" ;
24628 then
24629 { echo "$as_me:$LINENO: ***" >&5
24630 echo "$as_me: ***" >&6;}
24631 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
24632 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
24633 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
24634 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
24635 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24636 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24637 exit 1
24639 RADIUS_LIB=""
24640 RADIUS_INCLUDE=""
24641 PBX_RADIUS=0
24642 else
24643 PBX_RADIUS=1
24645 cat >>confdefs.h <<_ACEOF
24646 #define HAVE_RADIUS 1
24647 _ACEOF
24650 elif test ! -z "${RADIUS_MANDATORY}";
24651 then
24652 { echo "$as_me:$LINENO: ***" >&5
24653 echo "$as_me: ***" >&6;}
24654 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
24655 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
24656 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24657 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24658 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
24659 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
24660 exit 1
24666 if test "${USE_SPEEX}" != "no"; then
24667 pbxlibdir=""
24668 if test "x${SPEEX_DIR}" != "x"; then
24669 if test -d ${SPEEX_DIR}/lib; then
24670 pbxlibdir="-L${SPEEX_DIR}/lib"
24671 else
24672 pbxlibdir="-L${SPEEX_DIR}"
24675 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
24676 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
24677 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679 else
24680 ac_check_lib_save_LIBS=$LIBS
24681 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
24682 cat >conftest.$ac_ext <<_ACEOF
24683 /* confdefs.h. */
24684 _ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24689 /* Override any GCC internal prototype to avoid an error.
24690 Use char because int might match the return type of a GCC
24691 builtin and then its argument prototype would still apply. */
24692 #ifdef __cplusplus
24693 extern "C"
24694 #endif
24695 char speex_encode ();
24697 main ()
24699 return speex_encode ();
24701 return 0;
24703 _ACEOF
24704 rm -f conftest.$ac_objext conftest$ac_exeext
24705 if { (ac_try="$ac_link"
24706 case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_link") 2>conftest.er1
24712 ac_status=$?
24713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && {
24718 test -z "$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 } && test -s conftest$ac_exeext &&
24721 $as_test_x conftest$ac_exeext; then
24722 ac_cv_lib_speex_speex_encode=yes
24723 else
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ac_cv_lib_speex_speex_encode=no
24730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24731 conftest$ac_exeext conftest.$ac_ext
24732 LIBS=$ac_check_lib_save_LIBS
24734 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
24735 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
24736 if test $ac_cv_lib_speex_speex_encode = yes; then
24737 AST_SPEEX_FOUND=yes
24738 else
24739 AST_SPEEX_FOUND=no
24743 if test "${AST_SPEEX_FOUND}" = "yes"; then
24744 SPEEX_LIB="-lspeex -lm"
24745 SPEEX_HEADER_FOUND="1"
24746 if test "x${SPEEX_DIR}" != "x"; then
24747 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
24748 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
24749 if test "xspeex/speex.h" != "x" ; then
24750 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
24751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24752 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24753 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 ac_res=`eval echo '${'$as_ac_Header'}'`
24758 { echo "$as_me:$LINENO: result: $ac_res" >&5
24759 echo "${ECHO_T}$ac_res" >&6; }
24760 else
24761 # Is the header compilable?
24762 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
24763 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
24764 cat >conftest.$ac_ext <<_ACEOF
24765 /* confdefs.h. */
24766 _ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h. */
24770 $ac_includes_default
24771 #include <${SPEEX_DIR}/include/speex/speex.h>
24772 _ACEOF
24773 rm -f conftest.$ac_objext
24774 if { (ac_try="$ac_compile"
24775 case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24778 esac
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780 (eval "$ac_compile") 2>conftest.er1
24781 ac_status=$?
24782 grep -v '^ *+' conftest.er1 >conftest.err
24783 rm -f conftest.er1
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } && {
24787 test -z "$ac_c_werror_flag" ||
24788 test ! -s conftest.err
24789 } && test -s conftest.$ac_objext; then
24790 ac_header_compiler=yes
24791 else
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ac_header_compiler=no
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24800 echo "${ECHO_T}$ac_header_compiler" >&6; }
24802 # Is the header present?
24803 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
24804 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
24805 cat >conftest.$ac_ext <<_ACEOF
24806 /* confdefs.h. */
24807 _ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24811 #include <${SPEEX_DIR}/include/speex/speex.h>
24812 _ACEOF
24813 if { (ac_try="$ac_cpp conftest.$ac_ext"
24814 case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24820 ac_status=$?
24821 grep -v '^ *+' conftest.er1 >conftest.err
24822 rm -f conftest.er1
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev/null && {
24826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24828 }; then
24829 ac_header_preproc=yes
24830 else
24831 echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24834 ac_header_preproc=no
24837 rm -f conftest.err conftest.$ac_ext
24838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24839 echo "${ECHO_T}$ac_header_preproc" >&6; }
24841 # So? What about this header?
24842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24843 yes:no: )
24844 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24845 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
24847 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
24848 ac_header_preproc=yes
24850 no:yes:* )
24851 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
24852 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
24853 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
24854 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
24856 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24858 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24859 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
24860 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
24862 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
24865 esac
24866 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
24867 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
24868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 else
24871 eval "$as_ac_Header=\$ac_header_preproc"
24873 ac_res=`eval echo '${'$as_ac_Header'}'`
24874 { echo "$as_me:$LINENO: result: $ac_res" >&5
24875 echo "${ECHO_T}$ac_res" >&6; }
24878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24879 SPEEX_HEADER_FOUND=1
24880 else
24881 SPEEX_HEADER_FOUND=0
24886 else
24887 if test "xspeex/speex.h" != "x" ; then
24888 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24889 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
24890 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
24891 if test "${ac_cv_header_speex_speex_h+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
24895 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
24896 else
24897 # Is the header compilable?
24898 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
24899 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
24900 cat >conftest.$ac_ext <<_ACEOF
24901 /* confdefs.h. */
24902 _ACEOF
24903 cat confdefs.h >>conftest.$ac_ext
24904 cat >>conftest.$ac_ext <<_ACEOF
24905 /* end confdefs.h. */
24906 $ac_includes_default
24907 #include <speex/speex.h>
24908 _ACEOF
24909 rm -f conftest.$ac_objext
24910 if { (ac_try="$ac_compile"
24911 case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24914 esac
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_compile") 2>conftest.er1
24917 ac_status=$?
24918 grep -v '^ *+' conftest.er1 >conftest.err
24919 rm -f conftest.er1
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } && {
24923 test -z "$ac_c_werror_flag" ||
24924 test ! -s conftest.err
24925 } && test -s conftest.$ac_objext; then
24926 ac_header_compiler=yes
24927 else
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_header_compiler=no
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24936 echo "${ECHO_T}$ac_header_compiler" >&6; }
24938 # Is the header present?
24939 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
24940 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
24941 cat >conftest.$ac_ext <<_ACEOF
24942 /* confdefs.h. */
24943 _ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24947 #include <speex/speex.h>
24948 _ACEOF
24949 if { (ac_try="$ac_cpp conftest.$ac_ext"
24950 case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953 esac
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } >/dev/null && {
24962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 }; then
24965 ac_header_preproc=yes
24966 else
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_header_preproc=no
24973 rm -f conftest.err conftest.$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24975 echo "${ECHO_T}$ac_header_preproc" >&6; }
24977 # So? What about this header?
24978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24979 yes:no: )
24980 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24981 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
24983 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
24984 ac_header_preproc=yes
24986 no:yes:* )
24987 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
24988 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
24989 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
24990 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
24992 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
24994 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
24996 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
24998 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25001 esac
25002 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25003 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25004 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 else
25007 ac_cv_header_speex_speex_h=$ac_header_preproc
25009 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25010 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25013 if test $ac_cv_header_speex_speex_h = yes; then
25014 SPEEX_HEADER_FOUND=1
25015 else
25016 SPEEX_HEADER_FOUND=0
25022 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25023 if test ! -z "${SPEEX_MANDATORY}" ;
25024 then
25025 { echo "$as_me:$LINENO: ***" >&5
25026 echo "$as_me: ***" >&6;}
25027 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25028 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25029 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25030 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25031 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25032 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25033 exit 1
25035 SPEEX_LIB=""
25036 SPEEX_INCLUDE=""
25037 PBX_SPEEX=0
25038 else
25039 PBX_SPEEX=1
25041 cat >>confdefs.h <<_ACEOF
25042 #define HAVE_SPEEX 1
25043 _ACEOF
25046 elif test ! -z "${SPEEX_MANDATORY}";
25047 then
25048 { echo "$as_me:$LINENO: ***" >&5
25049 echo "$as_me: ***" >&6;}
25050 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25051 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25052 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25053 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25054 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25055 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25056 exit 1
25062 if test "${USE_SQLITE}" != "no"; then
25063 pbxlibdir=""
25064 if test "x${SQLITE_DIR}" != "x"; then
25065 if test -d ${SQLITE_DIR}/lib; then
25066 pbxlibdir="-L${SQLITE_DIR}/lib"
25067 else
25068 pbxlibdir="-L${SQLITE_DIR}"
25071 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25072 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25073 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25075 else
25076 ac_check_lib_save_LIBS=$LIBS
25077 LIBS="-lsqlite ${pbxlibdir} $LIBS"
25078 cat >conftest.$ac_ext <<_ACEOF
25079 /* confdefs.h. */
25080 _ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25085 /* Override any GCC internal prototype to avoid an error.
25086 Use char because int might match the return type of a GCC
25087 builtin and then its argument prototype would still apply. */
25088 #ifdef __cplusplus
25089 extern "C"
25090 #endif
25091 char sqlite_exec ();
25093 main ()
25095 return sqlite_exec ();
25097 return 0;
25099 _ACEOF
25100 rm -f conftest.$ac_objext conftest$ac_exeext
25101 if { (ac_try="$ac_link"
25102 case "(($ac_try" in
25103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25105 esac
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_link") 2>conftest.er1
25108 ac_status=$?
25109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && {
25114 test -z "$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25116 } && test -s conftest$ac_exeext &&
25117 $as_test_x conftest$ac_exeext; then
25118 ac_cv_lib_sqlite_sqlite_exec=yes
25119 else
25120 echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.$ac_ext >&5
25123 ac_cv_lib_sqlite_sqlite_exec=no
25126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25127 conftest$ac_exeext conftest.$ac_ext
25128 LIBS=$ac_check_lib_save_LIBS
25130 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25131 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25132 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25133 AST_SQLITE_FOUND=yes
25134 else
25135 AST_SQLITE_FOUND=no
25139 if test "${AST_SQLITE_FOUND}" = "yes"; then
25140 SQLITE_LIB="-lsqlite "
25141 SQLITE_HEADER_FOUND="1"
25142 if test "x${SQLITE_DIR}" != "x"; then
25143 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25144 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25145 if test "xsqlite.h" != "x" ; then
25146 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
25147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25148 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25149 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ac_res=`eval echo '${'$as_ac_Header'}'`
25154 { echo "$as_me:$LINENO: result: $ac_res" >&5
25155 echo "${ECHO_T}$ac_res" >&6; }
25156 else
25157 # Is the header compilable?
25158 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25159 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h. */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 $ac_includes_default
25167 #include <${SQLITE_DIR}/include/sqlite.h>
25168 _ACEOF
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_compile") 2>conftest.er1
25177 ac_status=$?
25178 grep -v '^ *+' conftest.er1 >conftest.err
25179 rm -f conftest.er1
25180 cat conftest.err >&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && {
25183 test -z "$ac_c_werror_flag" ||
25184 test ! -s conftest.err
25185 } && test -s conftest.$ac_objext; then
25186 ac_header_compiler=yes
25187 else
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_header_compiler=no
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196 echo "${ECHO_T}$ac_header_compiler" >&6; }
25198 # Is the header present?
25199 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25200 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h. */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 #include <${SQLITE_DIR}/include/sqlite.h>
25208 _ACEOF
25209 if { (ac_try="$ac_cpp conftest.$ac_ext"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25216 ac_status=$?
25217 grep -v '^ *+' conftest.er1 >conftest.err
25218 rm -f conftest.er1
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } >/dev/null && {
25222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25224 }; then
25225 ac_header_preproc=yes
25226 else
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_header_preproc=no
25233 rm -f conftest.err conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25235 echo "${ECHO_T}$ac_header_preproc" >&6; }
25237 # So? What about this header?
25238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25239 yes:no: )
25240 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25241 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25243 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25244 ac_header_preproc=yes
25246 no:yes:* )
25247 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25248 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25249 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25250 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25252 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25254 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25256 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25258 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25261 esac
25262 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25263 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 else
25267 eval "$as_ac_Header=\$ac_header_preproc"
25269 ac_res=`eval echo '${'$as_ac_Header'}'`
25270 { echo "$as_me:$LINENO: result: $ac_res" >&5
25271 echo "${ECHO_T}$ac_res" >&6; }
25274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25275 SQLITE_HEADER_FOUND=1
25276 else
25277 SQLITE_HEADER_FOUND=0
25282 else
25283 if test "xsqlite.h" != "x" ; then
25284 if test "${ac_cv_header_sqlite_h+set}" = set; then
25285 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25286 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25287 if test "${ac_cv_header_sqlite_h+set}" = set; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25291 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25292 else
25293 # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25295 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h. */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25303 #include <sqlite.h>
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_compile") 2>conftest.er1
25313 ac_status=$?
25314 grep -v '^ *+' conftest.er1 >conftest.err
25315 rm -f conftest.er1
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } && {
25319 test -z "$ac_c_werror_flag" ||
25320 test ! -s conftest.err
25321 } && test -s conftest.$ac_objext; then
25322 ac_header_compiler=yes
25323 else
25324 echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25327 ac_header_compiler=no
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25336 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h. */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 #include <sqlite.h>
25344 _ACEOF
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348 *) ac_try_echo=$ac_try;;
25349 esac
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25352 ac_status=$?
25353 grep -v '^ *+' conftest.er1 >conftest.err
25354 rm -f conftest.er1
25355 cat conftest.err >&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } >/dev/null && {
25358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359 test ! -s conftest.err
25360 }; then
25361 ac_header_preproc=yes
25362 else
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_header_preproc=no
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373 # So? What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25375 yes:no: )
25376 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25380 ac_header_preproc=yes
25382 no:yes:* )
25383 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25397 esac
25398 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25399 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25400 if test "${ac_cv_header_sqlite_h+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403 ac_cv_header_sqlite_h=$ac_header_preproc
25405 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25406 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25409 if test $ac_cv_header_sqlite_h = yes; then
25410 SQLITE_HEADER_FOUND=1
25411 else
25412 SQLITE_HEADER_FOUND=0
25418 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25419 if test ! -z "${SQLITE_MANDATORY}" ;
25420 then
25421 { echo "$as_me:$LINENO: ***" >&5
25422 echo "$as_me: ***" >&6;}
25423 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25424 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25425 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25426 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25427 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25428 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25429 exit 1
25431 SQLITE_LIB=""
25432 SQLITE_INCLUDE=""
25433 PBX_SQLITE=0
25434 else
25435 PBX_SQLITE=1
25437 cat >>confdefs.h <<_ACEOF
25438 #define HAVE_SQLITE 1
25439 _ACEOF
25442 elif test ! -z "${SQLITE_MANDATORY}";
25443 then
25444 { echo "$as_me:$LINENO: ***" >&5
25445 echo "$as_me: ***" >&6;}
25446 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25447 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25448 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25449 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25450 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25451 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25452 exit 1
25458 if test "${USE_OPENSSL}" != "no"; then
25459 pbxlibdir=""
25460 if test "x${OPENSSL_DIR}" != "x"; then
25461 if test -d ${OPENSSL_DIR}/lib; then
25462 pbxlibdir="-L${OPENSSL_DIR}/lib"
25463 else
25464 pbxlibdir="-L${OPENSSL_DIR}"
25467 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25468 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25469 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 else
25472 ac_check_lib_save_LIBS=$LIBS
25473 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h. */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25481 /* Override any GCC internal prototype to avoid an error.
25482 Use char because int might match the return type of a GCC
25483 builtin and then its argument prototype would still apply. */
25484 #ifdef __cplusplus
25485 extern "C"
25486 #endif
25487 char ssl2_connect ();
25489 main ()
25491 return ssl2_connect ();
25493 return 0;
25495 _ACEOF
25496 rm -f conftest.$ac_objext conftest$ac_exeext
25497 if { (ac_try="$ac_link"
25498 case "(($ac_try" in
25499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500 *) ac_try_echo=$ac_try;;
25501 esac
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_link") 2>conftest.er1
25504 ac_status=$?
25505 grep -v '^ *+' conftest.er1 >conftest.err
25506 rm -f conftest.er1
25507 cat conftest.err >&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } && {
25510 test -z "$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 } && test -s conftest$ac_exeext &&
25513 $as_test_x conftest$ac_exeext; then
25514 ac_cv_lib_ssl_ssl2_connect=yes
25515 else
25516 echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25519 ac_cv_lib_ssl_ssl2_connect=no
25522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25523 conftest$ac_exeext conftest.$ac_ext
25524 LIBS=$ac_check_lib_save_LIBS
25526 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
25527 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
25528 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
25529 AST_OPENSSL_FOUND=yes
25530 else
25531 AST_OPENSSL_FOUND=no
25535 if test "${AST_OPENSSL_FOUND}" = "yes"; then
25536 OPENSSL_LIB="-lssl -lcrypto"
25537 OPENSSL_HEADER_FOUND="1"
25538 if test "x${OPENSSL_DIR}" != "x"; then
25539 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
25540 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
25541 if test "xopenssl/ssl.h" != "x" ; then
25542 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
25543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25544 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25545 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25549 ac_res=`eval echo '${'$as_ac_Header'}'`
25550 { echo "$as_me:$LINENO: result: $ac_res" >&5
25551 echo "${ECHO_T}$ac_res" >&6; }
25552 else
25553 # Is the header compilable?
25554 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
25555 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h. */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25563 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25564 _ACEOF
25565 rm -f conftest.$ac_objext
25566 if { (ac_try="$ac_compile"
25567 case "(($ac_try" in
25568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25570 esac
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572 (eval "$ac_compile") 2>conftest.er1
25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } && {
25579 test -z "$ac_c_werror_flag" ||
25580 test ! -s conftest.err
25581 } && test -s conftest.$ac_objext; then
25582 ac_header_compiler=yes
25583 else
25584 echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25587 ac_header_compiler=no
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25592 echo "${ECHO_T}$ac_header_compiler" >&6; }
25594 # Is the header present?
25595 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
25596 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
25597 cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h. */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
25604 _ACEOF
25605 if { (ac_try="$ac_cpp conftest.$ac_ext"
25606 case "(($ac_try" in
25607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25608 *) ac_try_echo=$ac_try;;
25609 esac
25610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25612 ac_status=$?
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } >/dev/null && {
25618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25619 test ! -s conftest.err
25620 }; then
25621 ac_header_preproc=yes
25622 else
25623 echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25626 ac_header_preproc=no
25629 rm -f conftest.err conftest.$ac_ext
25630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25631 echo "${ECHO_T}$ac_header_preproc" >&6; }
25633 # So? What about this header?
25634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25635 yes:no: )
25636 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25637 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25638 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
25639 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
25640 ac_header_preproc=yes
25642 no:yes:* )
25643 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
25644 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
25645 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
25646 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25647 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
25648 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
25649 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25650 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
25652 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25653 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
25654 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25657 esac
25658 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
25659 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
25660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25662 else
25663 eval "$as_ac_Header=\$ac_header_preproc"
25665 ac_res=`eval echo '${'$as_ac_Header'}'`
25666 { echo "$as_me:$LINENO: result: $ac_res" >&5
25667 echo "${ECHO_T}$ac_res" >&6; }
25670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25671 OPENSSL_HEADER_FOUND=1
25672 else
25673 OPENSSL_HEADER_FOUND=0
25678 else
25679 if test "xopenssl/ssl.h" != "x" ; then
25680 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25681 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25682 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25683 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25687 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25688 else
25689 # Is the header compilable?
25690 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
25691 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
25692 cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h. */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25698 $ac_includes_default
25699 #include <openssl/ssl.h>
25700 _ACEOF
25701 rm -f conftest.$ac_objext
25702 if { (ac_try="$ac_compile"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25706 esac
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708 (eval "$ac_compile") 2>conftest.er1
25709 ac_status=$?
25710 grep -v '^ *+' conftest.er1 >conftest.err
25711 rm -f conftest.er1
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && {
25715 test -z "$ac_c_werror_flag" ||
25716 test ! -s conftest.err
25717 } && test -s conftest.$ac_objext; then
25718 ac_header_compiler=yes
25719 else
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25723 ac_header_compiler=no
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25728 echo "${ECHO_T}$ac_header_compiler" >&6; }
25730 # Is the header present?
25731 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
25732 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
25733 cat >conftest.$ac_ext <<_ACEOF
25734 /* confdefs.h. */
25735 _ACEOF
25736 cat confdefs.h >>conftest.$ac_ext
25737 cat >>conftest.$ac_ext <<_ACEOF
25738 /* end confdefs.h. */
25739 #include <openssl/ssl.h>
25740 _ACEOF
25741 if { (ac_try="$ac_cpp conftest.$ac_ext"
25742 case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25745 esac
25746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25748 ac_status=$?
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } >/dev/null && {
25754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25755 test ! -s conftest.err
25756 }; then
25757 ac_header_preproc=yes
25758 else
25759 echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25762 ac_header_preproc=no
25765 rm -f conftest.err conftest.$ac_ext
25766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25767 echo "${ECHO_T}$ac_header_preproc" >&6; }
25769 # So? What about this header?
25770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25771 yes:no: )
25772 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25773 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
25775 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
25776 ac_header_preproc=yes
25778 no:yes:* )
25779 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
25780 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
25781 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
25782 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
25784 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
25786 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
25788 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
25790 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
25793 esac
25794 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
25795 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
25796 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25798 else
25799 ac_cv_header_openssl_ssl_h=$ac_header_preproc
25801 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
25802 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
25805 if test $ac_cv_header_openssl_ssl_h = yes; then
25806 OPENSSL_HEADER_FOUND=1
25807 else
25808 OPENSSL_HEADER_FOUND=0
25814 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
25815 if test ! -z "${OPENSSL_MANDATORY}" ;
25816 then
25817 { echo "$as_me:$LINENO: ***" >&5
25818 echo "$as_me: ***" >&6;}
25819 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
25820 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
25821 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
25822 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
25823 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25824 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25825 exit 1
25827 OPENSSL_LIB=""
25828 OPENSSL_INCLUDE=""
25829 PBX_OPENSSL=0
25830 else
25831 PBX_OPENSSL=1
25833 cat >>confdefs.h <<_ACEOF
25834 #define HAVE_OPENSSL 1
25835 _ACEOF
25838 elif test ! -z "${OPENSSL_MANDATORY}";
25839 then
25840 { echo "$as_me:$LINENO: ***" >&5
25841 echo "$as_me: ***" >&6;}
25842 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
25843 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
25844 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25845 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25846 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
25847 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
25848 exit 1
25854 if test "${USE_FREETDS}" != "no"; then
25855 pbxlibdir=""
25856 if test "x${FREETDS_DIR}" != "x"; then
25857 if test -d ${FREETDS_DIR}/lib; then
25858 pbxlibdir="-L${FREETDS_DIR}/lib"
25859 else
25860 pbxlibdir="-L${FREETDS_DIR}"
25863 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
25864 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
25865 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25867 else
25868 ac_check_lib_save_LIBS=$LIBS
25869 LIBS="-ltds ${pbxlibdir} $LIBS"
25870 cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h. */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h. */
25877 /* Override any GCC internal prototype to avoid an error.
25878 Use char because int might match the return type of a GCC
25879 builtin and then its argument prototype would still apply. */
25880 #ifdef __cplusplus
25881 extern "C"
25882 #endif
25883 char tds_version ();
25885 main ()
25887 return tds_version ();
25889 return 0;
25891 _ACEOF
25892 rm -f conftest.$ac_objext conftest$ac_exeext
25893 if { (ac_try="$ac_link"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25897 esac
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899 (eval "$ac_link") 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } && {
25906 test -z "$ac_c_werror_flag" ||
25907 test ! -s conftest.err
25908 } && test -s conftest$ac_exeext &&
25909 $as_test_x conftest$ac_exeext; then
25910 ac_cv_lib_tds_tds_version=yes
25911 else
25912 echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25915 ac_cv_lib_tds_tds_version=no
25918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25919 conftest$ac_exeext conftest.$ac_ext
25920 LIBS=$ac_check_lib_save_LIBS
25922 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
25923 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
25924 if test $ac_cv_lib_tds_tds_version = yes; then
25925 AST_FREETDS_FOUND=yes
25926 else
25927 AST_FREETDS_FOUND=no
25931 if test "${AST_FREETDS_FOUND}" = "yes"; then
25932 FREETDS_LIB="-ltds "
25933 FREETDS_HEADER_FOUND="1"
25934 if test "x${FREETDS_DIR}" != "x"; then
25935 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
25936 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
25937 if test "xtds.h" != "x" ; then
25938 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
25939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25940 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
25941 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
25942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 ac_res=`eval echo '${'$as_ac_Header'}'`
25946 { echo "$as_me:$LINENO: result: $ac_res" >&5
25947 echo "${ECHO_T}$ac_res" >&6; }
25948 else
25949 # Is the header compilable?
25950 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
25951 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
25952 cat >conftest.$ac_ext <<_ACEOF
25953 /* confdefs.h. */
25954 _ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h. */
25958 $ac_includes_default
25959 #include <${FREETDS_DIR}/include/tds.h>
25960 _ACEOF
25961 rm -f conftest.$ac_objext
25962 if { (ac_try="$ac_compile"
25963 case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_compile") 2>conftest.er1
25969 ac_status=$?
25970 grep -v '^ *+' conftest.er1 >conftest.err
25971 rm -f conftest.er1
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && {
25975 test -z "$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 } && test -s conftest.$ac_objext; then
25978 ac_header_compiler=yes
25979 else
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 ac_header_compiler=no
25986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25988 echo "${ECHO_T}$ac_header_compiler" >&6; }
25990 # Is the header present?
25991 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
25992 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
25993 cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h. */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
25999 #include <${FREETDS_DIR}/include/tds.h>
26000 _ACEOF
26001 if { (ac_try="$ac_cpp conftest.$ac_ext"
26002 case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26005 esac
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26008 ac_status=$?
26009 grep -v '^ *+' conftest.er1 >conftest.err
26010 rm -f conftest.er1
26011 cat conftest.err >&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } >/dev/null && {
26014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26016 }; then
26017 ac_header_preproc=yes
26018 else
26019 echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26022 ac_header_preproc=no
26025 rm -f conftest.err conftest.$ac_ext
26026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26027 echo "${ECHO_T}$ac_header_preproc" >&6; }
26029 # So? What about this header?
26030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26031 yes:no: )
26032 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26033 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26034 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26035 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26036 ac_header_preproc=yes
26038 no:yes:* )
26039 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26040 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26042 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26044 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26046 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26048 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26050 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26053 esac
26054 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26055 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26057 echo $ECHO_N "(cached) $ECHO_C" >&6
26058 else
26059 eval "$as_ac_Header=\$ac_header_preproc"
26061 ac_res=`eval echo '${'$as_ac_Header'}'`
26062 { echo "$as_me:$LINENO: result: $ac_res" >&5
26063 echo "${ECHO_T}$ac_res" >&6; }
26066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26067 FREETDS_HEADER_FOUND=1
26068 else
26069 FREETDS_HEADER_FOUND=0
26074 else
26075 if test "xtds.h" != "x" ; then
26076 if test "${ac_cv_header_tds_h+set}" = set; then
26077 { echo "$as_me:$LINENO: checking for tds.h" >&5
26078 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26079 if test "${ac_cv_header_tds_h+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26082 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26083 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26084 else
26085 # Is the header compilable?
26086 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26087 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26088 cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h. */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 $ac_includes_default
26095 #include <tds.h>
26096 _ACEOF
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26102 esac
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104 (eval "$ac_compile") 2>conftest.er1
26105 ac_status=$?
26106 grep -v '^ *+' conftest.er1 >conftest.err
26107 rm -f conftest.er1
26108 cat conftest.err >&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } && {
26111 test -z "$ac_c_werror_flag" ||
26112 test ! -s conftest.err
26113 } && test -s conftest.$ac_objext; then
26114 ac_header_compiler=yes
26115 else
26116 echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26119 ac_header_compiler=no
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26124 echo "${ECHO_T}$ac_header_compiler" >&6; }
26126 # Is the header present?
26127 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26128 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26129 cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h. */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26135 #include <tds.h>
26136 _ACEOF
26137 if { (ac_try="$ac_cpp conftest.$ac_ext"
26138 case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26141 esac
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26144 ac_status=$?
26145 grep -v '^ *+' conftest.er1 >conftest.err
26146 rm -f conftest.er1
26147 cat conftest.err >&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } >/dev/null && {
26150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26151 test ! -s conftest.err
26152 }; then
26153 ac_header_preproc=yes
26154 else
26155 echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_header_preproc=no
26161 rm -f conftest.err conftest.$ac_ext
26162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26163 echo "${ECHO_T}$ac_header_preproc" >&6; }
26165 # So? What about this header?
26166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26167 yes:no: )
26168 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26169 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26170 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26171 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26172 ac_header_preproc=yes
26174 no:yes:* )
26175 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26176 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26177 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26178 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26180 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26182 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26184 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26186 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26189 esac
26190 { echo "$as_me:$LINENO: checking for tds.h" >&5
26191 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26192 if test "${ac_cv_header_tds_h+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26194 else
26195 ac_cv_header_tds_h=$ac_header_preproc
26197 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26198 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26201 if test $ac_cv_header_tds_h = yes; then
26202 FREETDS_HEADER_FOUND=1
26203 else
26204 FREETDS_HEADER_FOUND=0
26210 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26211 if test ! -z "${FREETDS_MANDATORY}" ;
26212 then
26213 { echo "$as_me:$LINENO: ***" >&5
26214 echo "$as_me: ***" >&6;}
26215 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26216 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26217 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26218 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26219 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26220 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26221 exit 1
26223 FREETDS_LIB=""
26224 FREETDS_INCLUDE=""
26225 PBX_FREETDS=0
26226 else
26227 PBX_FREETDS=1
26229 cat >>confdefs.h <<_ACEOF
26230 #define HAVE_FREETDS 1
26231 _ACEOF
26234 elif test ! -z "${FREETDS_MANDATORY}";
26235 then
26236 { echo "$as_me:$LINENO: ***" >&5
26237 echo "$as_me: ***" >&6;}
26238 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26239 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26240 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26241 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26242 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26243 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26244 exit 1
26248 if test "${PBX_FREETDS}" != "0";
26249 then
26250 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
26251 *0.64*)
26252 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26254 *0.63*)
26255 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26257 *0.62*)
26258 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26261 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26263 esac
26267 if test "${USE_TERMCAP}" != "no"; then
26268 pbxlibdir=""
26269 if test "x${TERMCAP_DIR}" != "x"; then
26270 if test -d ${TERMCAP_DIR}/lib; then
26271 pbxlibdir="-L${TERMCAP_DIR}/lib"
26272 else
26273 pbxlibdir="-L${TERMCAP_DIR}"
26276 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26277 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26278 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26280 else
26281 ac_check_lib_save_LIBS=$LIBS
26282 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26283 cat >conftest.$ac_ext <<_ACEOF
26284 /* confdefs.h. */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26290 /* Override any GCC internal prototype to avoid an error.
26291 Use char because int might match the return type of a GCC
26292 builtin and then its argument prototype would still apply. */
26293 #ifdef __cplusplus
26294 extern "C"
26295 #endif
26296 char tgetent ();
26298 main ()
26300 return tgetent ();
26302 return 0;
26304 _ACEOF
26305 rm -f conftest.$ac_objext conftest$ac_exeext
26306 if { (ac_try="$ac_link"
26307 case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_link") 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } && {
26319 test -z "$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 } && test -s conftest$ac_exeext &&
26322 $as_test_x conftest$ac_exeext; then
26323 ac_cv_lib_termcap_tgetent=yes
26324 else
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26328 ac_cv_lib_termcap_tgetent=no
26331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26332 conftest$ac_exeext conftest.$ac_ext
26333 LIBS=$ac_check_lib_save_LIBS
26335 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26336 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26337 if test $ac_cv_lib_termcap_tgetent = yes; then
26338 AST_TERMCAP_FOUND=yes
26339 else
26340 AST_TERMCAP_FOUND=no
26344 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26345 TERMCAP_LIB="-ltermcap "
26346 TERMCAP_HEADER_FOUND="1"
26347 if test "x${TERMCAP_DIR}" != "x"; then
26348 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
26349 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
26350 if test "x" != "x" ; then
26351 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26353 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26354 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26356 echo $ECHO_N "(cached) $ECHO_C" >&6
26358 ac_res=`eval echo '${'$as_ac_Header'}'`
26359 { echo "$as_me:$LINENO: result: $ac_res" >&5
26360 echo "${ECHO_T}$ac_res" >&6; }
26361 else
26362 # Is the header compilable?
26363 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26364 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h. */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 $ac_includes_default
26372 #include <${TERMCAP_DIR}/include/>
26373 _ACEOF
26374 rm -f conftest.$ac_objext
26375 if { (ac_try="$ac_compile"
26376 case "(($ac_try" in
26377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378 *) ac_try_echo=$ac_try;;
26379 esac
26380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381 (eval "$ac_compile") 2>conftest.er1
26382 ac_status=$?
26383 grep -v '^ *+' conftest.er1 >conftest.err
26384 rm -f conftest.er1
26385 cat conftest.err >&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); } && {
26388 test -z "$ac_c_werror_flag" ||
26389 test ! -s conftest.err
26390 } && test -s conftest.$ac_objext; then
26391 ac_header_compiler=yes
26392 else
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ac_header_compiler=no
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6; }
26403 # Is the header present?
26404 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26405 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26406 cat >conftest.$ac_ext <<_ACEOF
26407 /* confdefs.h. */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 #include <${TERMCAP_DIR}/include/>
26413 _ACEOF
26414 if { (ac_try="$ac_cpp conftest.$ac_ext"
26415 case "(($ac_try" in
26416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417 *) ac_try_echo=$ac_try;;
26418 esac
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26421 ac_status=$?
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null && {
26427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26428 test ! -s conftest.err
26429 }; then
26430 ac_header_preproc=yes
26431 else
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26435 ac_header_preproc=no
26438 rm -f conftest.err conftest.$ac_ext
26439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26440 echo "${ECHO_T}$ac_header_preproc" >&6; }
26442 # So? What about this header?
26443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26444 yes:no: )
26445 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26446 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26447 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26448 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26449 ac_header_preproc=yes
26451 no:yes:* )
26452 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26453 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26454 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26455 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26456 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26457 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26458 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26459 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26460 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26461 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26462 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26463 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26466 esac
26467 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26468 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26471 else
26472 eval "$as_ac_Header=\$ac_header_preproc"
26474 ac_res=`eval echo '${'$as_ac_Header'}'`
26475 { echo "$as_me:$LINENO: result: $ac_res" >&5
26476 echo "${ECHO_T}$ac_res" >&6; }
26479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26480 TERMCAP_HEADER_FOUND=1
26481 else
26482 TERMCAP_HEADER_FOUND=0
26487 else
26488 if test "x" != "x" ; then
26489 if test "${ac_cv_header_+set}" = set; then
26490 { echo "$as_me:$LINENO: checking for " >&5
26491 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26492 if test "${ac_cv_header_+set}" = set; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
26495 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26496 echo "${ECHO_T}$ac_cv_header_" >&6; }
26497 else
26498 # Is the header compilable?
26499 { echo "$as_me:$LINENO: checking usability" >&5
26500 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26501 cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h. */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h. */
26507 $ac_includes_default
26508 #include <>
26509 _ACEOF
26510 rm -f conftest.$ac_objext
26511 if { (ac_try="$ac_compile"
26512 case "(($ac_try" in
26513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26515 esac
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_compile") 2>conftest.er1
26518 ac_status=$?
26519 grep -v '^ *+' conftest.er1 >conftest.err
26520 rm -f conftest.er1
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } && {
26524 test -z "$ac_c_werror_flag" ||
26525 test ! -s conftest.err
26526 } && test -s conftest.$ac_objext; then
26527 ac_header_compiler=yes
26528 else
26529 echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26532 ac_header_compiler=no
26535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26537 echo "${ECHO_T}$ac_header_compiler" >&6; }
26539 # Is the header present?
26540 { echo "$as_me:$LINENO: checking presence" >&5
26541 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26542 cat >conftest.$ac_ext <<_ACEOF
26543 /* confdefs.h. */
26544 _ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h. */
26548 #include <>
26549 _ACEOF
26550 if { (ac_try="$ac_cpp conftest.$ac_ext"
26551 case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26554 esac
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26557 ac_status=$?
26558 grep -v '^ *+' conftest.er1 >conftest.err
26559 rm -f conftest.er1
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } >/dev/null && {
26563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26564 test ! -s conftest.err
26565 }; then
26566 ac_header_preproc=yes
26567 else
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26571 ac_header_preproc=no
26574 rm -f conftest.err conftest.$ac_ext
26575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26576 echo "${ECHO_T}$ac_header_preproc" >&6; }
26578 # So? What about this header?
26579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26580 yes:no: )
26581 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26582 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26584 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26585 ac_header_preproc=yes
26587 no:yes:* )
26588 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26589 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26590 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26591 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26593 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26595 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26596 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26597 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26598 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26599 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26602 esac
26603 { echo "$as_me:$LINENO: checking for " >&5
26604 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26605 if test "${ac_cv_header_+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26607 else
26608 ac_cv_header_=$ac_header_preproc
26610 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26611 echo "${ECHO_T}$ac_cv_header_" >&6; }
26614 if test $ac_cv_header_ = yes; then
26615 TERMCAP_HEADER_FOUND=1
26616 else
26617 TERMCAP_HEADER_FOUND=0
26623 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
26624 if test ! -z "${TERMCAP_MANDATORY}" ;
26625 then
26626 { echo "$as_me:$LINENO: ***" >&5
26627 echo "$as_me: ***" >&6;}
26628 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
26629 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
26630 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
26631 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
26632 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26633 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26634 exit 1
26636 TERMCAP_LIB=""
26637 TERMCAP_INCLUDE=""
26638 PBX_TERMCAP=0
26639 else
26640 PBX_TERMCAP=1
26642 cat >>confdefs.h <<_ACEOF
26643 #define HAVE_TERMCAP 1
26644 _ACEOF
26647 elif test ! -z "${TERMCAP_MANDATORY}";
26648 then
26649 { echo "$as_me:$LINENO: ***" >&5
26650 echo "$as_me: ***" >&6;}
26651 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
26652 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
26653 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26654 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26655 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
26656 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
26657 exit 1
26663 if test "${USE_TINFO}" != "no"; then
26664 pbxlibdir=""
26665 if test "x${TINFO_DIR}" != "x"; then
26666 if test -d ${TINFO_DIR}/lib; then
26667 pbxlibdir="-L${TINFO_DIR}/lib"
26668 else
26669 pbxlibdir="-L${TINFO_DIR}"
26672 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26673 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
26674 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677 ac_check_lib_save_LIBS=$LIBS
26678 LIBS="-ltinfo ${pbxlibdir} $LIBS"
26679 cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h. */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26686 /* Override any GCC internal prototype to avoid an error.
26687 Use char because int might match the return type of a GCC
26688 builtin and then its argument prototype would still apply. */
26689 #ifdef __cplusplus
26690 extern "C"
26691 #endif
26692 char tgetent ();
26694 main ()
26696 return tgetent ();
26698 return 0;
26700 _ACEOF
26701 rm -f conftest.$ac_objext conftest$ac_exeext
26702 if { (ac_try="$ac_link"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_link") 2>conftest.er1
26709 ac_status=$?
26710 grep -v '^ *+' conftest.er1 >conftest.err
26711 rm -f conftest.er1
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } && {
26715 test -z "$ac_c_werror_flag" ||
26716 test ! -s conftest.err
26717 } && test -s conftest$ac_exeext &&
26718 $as_test_x conftest$ac_exeext; then
26719 ac_cv_lib_tinfo_tgetent=yes
26720 else
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 ac_cv_lib_tinfo_tgetent=no
26727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26728 conftest$ac_exeext conftest.$ac_ext
26729 LIBS=$ac_check_lib_save_LIBS
26731 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26732 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
26733 if test $ac_cv_lib_tinfo_tgetent = yes; then
26734 AST_TINFO_FOUND=yes
26735 else
26736 AST_TINFO_FOUND=no
26740 if test "${AST_TINFO_FOUND}" = "yes"; then
26741 TINFO_LIB="-ltinfo "
26742 TINFO_HEADER_FOUND="1"
26743 if test "x${TINFO_DIR}" != "x"; then
26744 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
26745 TINFO_INCLUDE="-I${TINFO_DIR}/include"
26746 if test "x" != "x" ; then
26747 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
26748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26749 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26750 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26754 ac_res=`eval echo '${'$as_ac_Header'}'`
26755 { echo "$as_me:$LINENO: result: $ac_res" >&5
26756 echo "${ECHO_T}$ac_res" >&6; }
26757 else
26758 # Is the header compilable?
26759 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
26760 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
26761 cat >conftest.$ac_ext <<_ACEOF
26762 /* confdefs.h. */
26763 _ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26767 $ac_includes_default
26768 #include <${TINFO_DIR}/include/>
26769 _ACEOF
26770 rm -f conftest.$ac_objext
26771 if { (ac_try="$ac_compile"
26772 case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26775 esac
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_compile") 2>conftest.er1
26778 ac_status=$?
26779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } && {
26784 test -z "$ac_c_werror_flag" ||
26785 test ! -s conftest.err
26786 } && test -s conftest.$ac_objext; then
26787 ac_header_compiler=yes
26788 else
26789 echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26792 ac_header_compiler=no
26795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26797 echo "${ECHO_T}$ac_header_compiler" >&6; }
26799 # Is the header present?
26800 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
26801 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
26802 cat >conftest.$ac_ext <<_ACEOF
26803 /* confdefs.h. */
26804 _ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h. */
26808 #include <${TINFO_DIR}/include/>
26809 _ACEOF
26810 if { (ac_try="$ac_cpp conftest.$ac_ext"
26811 case "(($ac_try" in
26812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813 *) ac_try_echo=$ac_try;;
26814 esac
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26817 ac_status=$?
26818 grep -v '^ *+' conftest.er1 >conftest.err
26819 rm -f conftest.er1
26820 cat conftest.err >&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } >/dev/null && {
26823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26824 test ! -s conftest.err
26825 }; then
26826 ac_header_preproc=yes
26827 else
26828 echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26831 ac_header_preproc=no
26834 rm -f conftest.err conftest.$ac_ext
26835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26836 echo "${ECHO_T}$ac_header_preproc" >&6; }
26838 # So? What about this header?
26839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26840 yes:no: )
26841 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26842 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26843 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
26844 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
26845 ac_header_preproc=yes
26847 no:yes:* )
26848 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
26849 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
26851 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
26852 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
26853 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
26854 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26855 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
26857 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
26859 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26862 esac
26863 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
26864 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
26865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868 eval "$as_ac_Header=\$ac_header_preproc"
26870 ac_res=`eval echo '${'$as_ac_Header'}'`
26871 { echo "$as_me:$LINENO: result: $ac_res" >&5
26872 echo "${ECHO_T}$ac_res" >&6; }
26875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26876 TINFO_HEADER_FOUND=1
26877 else
26878 TINFO_HEADER_FOUND=0
26883 else
26884 if test "x" != "x" ; then
26885 if test "${ac_cv_header_+set}" = set; then
26886 { echo "$as_me:$LINENO: checking for " >&5
26887 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26888 if test "${ac_cv_header_+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26891 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26892 echo "${ECHO_T}$ac_cv_header_" >&6; }
26893 else
26894 # Is the header compilable?
26895 { echo "$as_me:$LINENO: checking usability" >&5
26896 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h. */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h. */
26903 $ac_includes_default
26904 #include <>
26905 _ACEOF
26906 rm -f conftest.$ac_objext
26907 if { (ac_try="$ac_compile"
26908 case "(($ac_try" in
26909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910 *) ac_try_echo=$ac_try;;
26911 esac
26912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26913 (eval "$ac_compile") 2>conftest.er1
26914 ac_status=$?
26915 grep -v '^ *+' conftest.er1 >conftest.err
26916 rm -f conftest.er1
26917 cat conftest.err >&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } && {
26920 test -z "$ac_c_werror_flag" ||
26921 test ! -s conftest.err
26922 } && test -s conftest.$ac_objext; then
26923 ac_header_compiler=yes
26924 else
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_header_compiler=no
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26933 echo "${ECHO_T}$ac_header_compiler" >&6; }
26935 # Is the header present?
26936 { echo "$as_me:$LINENO: checking presence" >&5
26937 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26938 cat >conftest.$ac_ext <<_ACEOF
26939 /* confdefs.h. */
26940 _ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h. */
26944 #include <>
26945 _ACEOF
26946 if { (ac_try="$ac_cpp conftest.$ac_ext"
26947 case "(($ac_try" in
26948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949 *) ac_try_echo=$ac_try;;
26950 esac
26951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26953 ac_status=$?
26954 grep -v '^ *+' conftest.er1 >conftest.err
26955 rm -f conftest.er1
26956 cat conftest.err >&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } >/dev/null && {
26959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26960 test ! -s conftest.err
26961 }; then
26962 ac_header_preproc=yes
26963 else
26964 echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26967 ac_header_preproc=no
26970 rm -f conftest.err conftest.$ac_ext
26971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26972 echo "${ECHO_T}$ac_header_preproc" >&6; }
26974 # So? What about this header?
26975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26976 yes:no: )
26977 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26978 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26980 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26981 ac_header_preproc=yes
26983 no:yes:* )
26984 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26985 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26986 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26987 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26989 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26991 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26993 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26995 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26998 esac
26999 { echo "$as_me:$LINENO: checking for " >&5
27000 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27001 if test "${ac_cv_header_+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003 else
27004 ac_cv_header_=$ac_header_preproc
27006 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27007 echo "${ECHO_T}$ac_cv_header_" >&6; }
27010 if test $ac_cv_header_ = yes; then
27011 TINFO_HEADER_FOUND=1
27012 else
27013 TINFO_HEADER_FOUND=0
27019 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27020 if test ! -z "${TINFO_MANDATORY}" ;
27021 then
27022 { echo "$as_me:$LINENO: ***" >&5
27023 echo "$as_me: ***" >&6;}
27024 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27025 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27026 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27027 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27028 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27029 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27030 exit 1
27032 TINFO_LIB=""
27033 TINFO_INCLUDE=""
27034 PBX_TINFO=0
27035 else
27036 PBX_TINFO=1
27038 cat >>confdefs.h <<_ACEOF
27039 #define HAVE_TINFO 1
27040 _ACEOF
27043 elif test ! -z "${TINFO_MANDATORY}";
27044 then
27045 { echo "$as_me:$LINENO: ***" >&5
27046 echo "$as_me: ***" >&6;}
27047 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27048 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27049 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27050 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27051 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27052 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27053 exit 1
27058 if test "${host_os}" != "linux-gnu" ; then
27059 tonezone_extra="-lm"
27063 if test "${USE_TONEZONE}" != "no"; then
27064 pbxlibdir=""
27065 if test "x${TONEZONE_DIR}" != "x"; then
27066 if test -d ${TONEZONE_DIR}/lib; then
27067 pbxlibdir="-L${TONEZONE_DIR}/lib"
27068 else
27069 pbxlibdir="-L${TONEZONE_DIR}"
27072 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27073 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27074 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077 ac_check_lib_save_LIBS=$LIBS
27078 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27079 cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h. */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27089 #ifdef __cplusplus
27090 extern "C"
27091 #endif
27092 char tone_zone_find ();
27094 main ()
27096 return tone_zone_find ();
27098 return 0;
27100 _ACEOF
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
27109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } && {
27115 test -z "$ac_c_werror_flag" ||
27116 test ! -s conftest.err
27117 } && test -s conftest$ac_exeext &&
27118 $as_test_x conftest$ac_exeext; then
27119 ac_cv_lib_tonezone_tone_zone_find=yes
27120 else
27121 echo "$as_me: failed program was:" >&5
27122 sed 's/^/| /' conftest.$ac_ext >&5
27124 ac_cv_lib_tonezone_tone_zone_find=no
27127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27128 conftest$ac_exeext conftest.$ac_ext
27129 LIBS=$ac_check_lib_save_LIBS
27131 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27132 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27133 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27134 AST_TONEZONE_FOUND=yes
27135 else
27136 AST_TONEZONE_FOUND=no
27140 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27141 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
27142 TONEZONE_HEADER_FOUND="1"
27143 if test "x${TONEZONE_DIR}" != "x"; then
27144 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
27145 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
27146 if test "xzaptel/tonezone.h" != "x" ; then
27147 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27149 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27150 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27154 ac_res=`eval echo '${'$as_ac_Header'}'`
27155 { echo "$as_me:$LINENO: result: $ac_res" >&5
27156 echo "${ECHO_T}$ac_res" >&6; }
27157 else
27158 # Is the header compilable?
27159 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27160 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27161 cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h. */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 $ac_includes_default
27168 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (ac_try="$ac_compile"
27172 case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175 esac
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27178 ac_status=$?
27179 grep -v '^ *+' conftest.er1 >conftest.err
27180 rm -f conftest.er1
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27187 ac_header_compiler=yes
27188 else
27189 echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27192 ac_header_compiler=no
27195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27197 echo "${ECHO_T}$ac_header_compiler" >&6; }
27199 # Is the header present?
27200 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27201 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27202 cat >conftest.$ac_ext <<_ACEOF
27203 /* confdefs.h. */
27204 _ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h. */
27208 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27209 _ACEOF
27210 if { (ac_try="$ac_cpp conftest.$ac_ext"
27211 case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27214 esac
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27217 ac_status=$?
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } >/dev/null && {
27223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27224 test ! -s conftest.err
27225 }; then
27226 ac_header_preproc=yes
27227 else
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.$ac_ext >&5
27231 ac_header_preproc=no
27234 rm -f conftest.err conftest.$ac_ext
27235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27236 echo "${ECHO_T}$ac_header_preproc" >&6; }
27238 # So? What about this header?
27239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27240 yes:no: )
27241 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27242 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27244 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27245 ac_header_preproc=yes
27247 no:yes:* )
27248 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27249 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27250 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27251 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27252 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27253 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27254 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27255 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27257 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27259 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27262 esac
27263 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27264 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 else
27268 eval "$as_ac_Header=\$ac_header_preproc"
27270 ac_res=`eval echo '${'$as_ac_Header'}'`
27271 { echo "$as_me:$LINENO: result: $ac_res" >&5
27272 echo "${ECHO_T}$ac_res" >&6; }
27275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27276 TONEZONE_HEADER_FOUND=1
27277 else
27278 TONEZONE_HEADER_FOUND=0
27283 else
27284 if test "xzaptel/tonezone.h" != "x" ; then
27285 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27286 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27287 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27288 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27291 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27292 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27293 else
27294 # Is the header compilable?
27295 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27296 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27297 cat >conftest.$ac_ext <<_ACEOF
27298 /* confdefs.h. */
27299 _ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h. */
27303 $ac_includes_default
27304 #include <zaptel/tonezone.h>
27305 _ACEOF
27306 rm -f conftest.$ac_objext
27307 if { (ac_try="$ac_compile"
27308 case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27311 esac
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_compile") 2>conftest.er1
27314 ac_status=$?
27315 grep -v '^ *+' conftest.er1 >conftest.err
27316 rm -f conftest.er1
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } && {
27320 test -z "$ac_c_werror_flag" ||
27321 test ! -s conftest.err
27322 } && test -s conftest.$ac_objext; then
27323 ac_header_compiler=yes
27324 else
27325 echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27328 ac_header_compiler=no
27331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27333 echo "${ECHO_T}$ac_header_compiler" >&6; }
27335 # Is the header present?
27336 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27337 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27338 cat >conftest.$ac_ext <<_ACEOF
27339 /* confdefs.h. */
27340 _ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27344 #include <zaptel/tonezone.h>
27345 _ACEOF
27346 if { (ac_try="$ac_cpp conftest.$ac_ext"
27347 case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27350 esac
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27353 ac_status=$?
27354 grep -v '^ *+' conftest.er1 >conftest.err
27355 rm -f conftest.er1
27356 cat conftest.err >&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } >/dev/null && {
27359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27360 test ! -s conftest.err
27361 }; then
27362 ac_header_preproc=yes
27363 else
27364 echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27367 ac_header_preproc=no
27370 rm -f conftest.err conftest.$ac_ext
27371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27372 echo "${ECHO_T}$ac_header_preproc" >&6; }
27374 # So? What about this header?
27375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27376 yes:no: )
27377 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27378 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27379 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27380 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27381 ac_header_preproc=yes
27383 no:yes:* )
27384 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27385 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27386 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27387 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27389 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27390 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27391 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27393 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27395 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27398 esac
27399 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27400 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27401 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27403 else
27404 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
27406 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27407 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27410 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27411 TONEZONE_HEADER_FOUND=1
27412 else
27413 TONEZONE_HEADER_FOUND=0
27419 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27420 if test ! -z "${TONEZONE_MANDATORY}" ;
27421 then
27422 { echo "$as_me:$LINENO: ***" >&5
27423 echo "$as_me: ***" >&6;}
27424 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27425 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27426 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27427 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27428 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27429 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27430 exit 1
27432 TONEZONE_LIB=""
27433 TONEZONE_INCLUDE=""
27434 PBX_TONEZONE=0
27435 else
27436 PBX_TONEZONE=1
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_TONEZONE 1
27440 _ACEOF
27443 elif test ! -z "${TONEZONE_MANDATORY}";
27444 then
27445 { echo "$as_me:$LINENO: ***" >&5
27446 echo "$as_me: ***" >&6;}
27447 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27448 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27449 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27450 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27451 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27452 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27453 exit 1
27459 if test "${USE_VORBIS}" != "no"; then
27460 pbxlibdir=""
27461 if test "x${VORBIS_DIR}" != "x"; then
27462 if test -d ${VORBIS_DIR}/lib; then
27463 pbxlibdir="-L${VORBIS_DIR}/lib"
27464 else
27465 pbxlibdir="-L${VORBIS_DIR}"
27468 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27469 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27470 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 else
27473 ac_check_lib_save_LIBS=$LIBS
27474 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27475 cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h. */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27482 /* Override any GCC internal prototype to avoid an error.
27483 Use char because int might match the return type of a GCC
27484 builtin and then its argument prototype would still apply. */
27485 #ifdef __cplusplus
27486 extern "C"
27487 #endif
27488 char vorbis_info_init ();
27490 main ()
27492 return vorbis_info_init ();
27494 return 0;
27496 _ACEOF
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (ac_try="$ac_link"
27499 case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_link") 2>conftest.er1
27505 ac_status=$?
27506 grep -v '^ *+' conftest.er1 >conftest.err
27507 rm -f conftest.er1
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } && {
27511 test -z "$ac_c_werror_flag" ||
27512 test ! -s conftest.err
27513 } && test -s conftest$ac_exeext &&
27514 $as_test_x conftest$ac_exeext; then
27515 ac_cv_lib_vorbis_vorbis_info_init=yes
27516 else
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27520 ac_cv_lib_vorbis_vorbis_info_init=no
27523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27524 conftest$ac_exeext conftest.$ac_ext
27525 LIBS=$ac_check_lib_save_LIBS
27527 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
27528 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
27529 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
27530 AST_VORBIS_FOUND=yes
27531 else
27532 AST_VORBIS_FOUND=no
27536 if test "${AST_VORBIS_FOUND}" = "yes"; then
27537 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
27538 VORBIS_HEADER_FOUND="1"
27539 if test "x${VORBIS_DIR}" != "x"; then
27540 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
27541 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
27542 if test "xvorbis/codec.h" != "x" ; then
27543 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
27544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27545 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27546 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27548 echo $ECHO_N "(cached) $ECHO_C" >&6
27550 ac_res=`eval echo '${'$as_ac_Header'}'`
27551 { echo "$as_me:$LINENO: result: $ac_res" >&5
27552 echo "${ECHO_T}$ac_res" >&6; }
27553 else
27554 # Is the header compilable?
27555 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
27556 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
27557 cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h. */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27563 $ac_includes_default
27564 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_compile") 2>conftest.er1
27574 ac_status=$?
27575 grep -v '^ *+' conftest.er1 >conftest.err
27576 rm -f conftest.er1
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } && {
27580 test -z "$ac_c_werror_flag" ||
27581 test ! -s conftest.err
27582 } && test -s conftest.$ac_objext; then
27583 ac_header_compiler=yes
27584 else
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27588 ac_header_compiler=no
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27593 echo "${ECHO_T}$ac_header_compiler" >&6; }
27595 # Is the header present?
27596 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
27597 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
27598 cat >conftest.$ac_ext <<_ACEOF
27599 /* confdefs.h. */
27600 _ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27604 #include <${VORBIS_DIR}/include/vorbis/codec.h>
27605 _ACEOF
27606 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
27613 ac_status=$?
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } >/dev/null && {
27619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27620 test ! -s conftest.err
27621 }; then
27622 ac_header_preproc=yes
27623 else
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ac_header_preproc=no
27630 rm -f conftest.err conftest.$ac_ext
27631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27632 echo "${ECHO_T}$ac_header_preproc" >&6; }
27634 # So? What about this header?
27635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27636 yes:no: )
27637 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27638 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
27640 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
27641 ac_header_preproc=yes
27643 no:yes:* )
27644 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
27645 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
27646 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
27647 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27648 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
27649 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
27650 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27651 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27652 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
27653 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27654 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
27655 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27658 esac
27659 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
27660 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
27661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27663 else
27664 eval "$as_ac_Header=\$ac_header_preproc"
27666 ac_res=`eval echo '${'$as_ac_Header'}'`
27667 { echo "$as_me:$LINENO: result: $ac_res" >&5
27668 echo "${ECHO_T}$ac_res" >&6; }
27671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27672 VORBIS_HEADER_FOUND=1
27673 else
27674 VORBIS_HEADER_FOUND=0
27679 else
27680 if test "xvorbis/codec.h" != "x" ; then
27681 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27682 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27683 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27684 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27687 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27688 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27689 else
27690 # Is the header compilable?
27691 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
27692 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
27693 cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h. */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27699 $ac_includes_default
27700 #include <vorbis/codec.h>
27701 _ACEOF
27702 rm -f conftest.$ac_objext
27703 if { (ac_try="$ac_compile"
27704 case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27707 esac
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_compile") 2>conftest.er1
27710 ac_status=$?
27711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } && {
27716 test -z "$ac_c_werror_flag" ||
27717 test ! -s conftest.err
27718 } && test -s conftest.$ac_objext; then
27719 ac_header_compiler=yes
27720 else
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 ac_header_compiler=no
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27729 echo "${ECHO_T}$ac_header_compiler" >&6; }
27731 # Is the header present?
27732 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
27733 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
27734 cat >conftest.$ac_ext <<_ACEOF
27735 /* confdefs.h. */
27736 _ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27740 #include <vorbis/codec.h>
27741 _ACEOF
27742 if { (ac_try="$ac_cpp conftest.$ac_ext"
27743 case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746 esac
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27749 ac_status=$?
27750 grep -v '^ *+' conftest.er1 >conftest.err
27751 rm -f conftest.er1
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } >/dev/null && {
27755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27756 test ! -s conftest.err
27757 }; then
27758 ac_header_preproc=yes
27759 else
27760 echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27763 ac_header_preproc=no
27766 rm -f conftest.err conftest.$ac_ext
27767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27768 echo "${ECHO_T}$ac_header_preproc" >&6; }
27770 # So? What about this header?
27771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27772 yes:no: )
27773 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
27774 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27775 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
27776 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
27777 ac_header_preproc=yes
27779 no:yes:* )
27780 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
27781 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
27782 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
27783 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
27785 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
27787 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
27789 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
27791 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
27794 esac
27795 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
27796 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
27797 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
27798 echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800 ac_cv_header_vorbis_codec_h=$ac_header_preproc
27802 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
27803 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
27806 if test $ac_cv_header_vorbis_codec_h = yes; then
27807 VORBIS_HEADER_FOUND=1
27808 else
27809 VORBIS_HEADER_FOUND=0
27815 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
27816 if test ! -z "${VORBIS_MANDATORY}" ;
27817 then
27818 { echo "$as_me:$LINENO: ***" >&5
27819 echo "$as_me: ***" >&6;}
27820 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
27821 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
27822 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
27823 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
27824 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27825 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27826 exit 1
27828 VORBIS_LIB=""
27829 VORBIS_INCLUDE=""
27830 PBX_VORBIS=0
27831 else
27832 PBX_VORBIS=1
27834 cat >>confdefs.h <<_ACEOF
27835 #define HAVE_VORBIS 1
27836 _ACEOF
27839 elif test ! -z "${VORBIS_MANDATORY}";
27840 then
27841 { echo "$as_me:$LINENO: ***" >&5
27842 echo "$as_me: ***" >&6;}
27843 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
27844 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
27845 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27846 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27847 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
27848 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
27849 exit 1
27854 ac_ext=cpp
27855 ac_cpp='$CXXCPP $CPPFLAGS'
27856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27861 if test "${USE_VPB}" != "no"; then
27862 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
27863 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
27864 saved_libs="${LIBS}"
27865 saved_cppflags="${CPPFLAGS}"
27866 if test "x${VPB_DIR}" != "x"; then
27867 if test -d ${VPB_DIR}/lib; then
27868 vpblibdir=${VPB_DIR}/lib
27869 else
27870 vpblibdir=${VPB_DIR}
27872 LIBS="${LIBS} -L${vpblibdir}"
27873 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
27875 LIBS="${LIBS} -lvpb -lpthread"
27876 cat >conftest.$ac_ext <<_ACEOF
27878 /* confdefs.h. */
27879 _ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h. */
27883 #include <vpbapi.h>
27885 main ()
27887 int q = vpb_open(0,0);
27889 return 0;
27892 _ACEOF
27893 rm -f conftest.$ac_objext conftest$ac_exeext
27894 if { (ac_try="$ac_link"
27895 case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898 esac
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_link") 2>conftest.er1
27901 ac_status=$?
27902 grep -v '^ *+' conftest.er1 >conftest.err
27903 rm -f conftest.er1
27904 cat conftest.err >&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } && {
27907 test -z "$ac_cxx_werror_flag" ||
27908 test ! -s conftest.err
27909 } && test -s conftest$ac_exeext &&
27910 $as_test_x conftest$ac_exeext; then
27911 { echo "$as_me:$LINENO: result: yes" >&5
27912 echo "${ECHO_T}yes" >&6; }
27913 ac_cv_lib_vpb_vpb_open="yes"
27915 else
27916 echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27919 { echo "$as_me:$LINENO: result: no" >&5
27920 echo "${ECHO_T}no" >&6; }
27921 ac_cv_lib_vpb_vpb_open="no"
27926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27927 conftest$ac_exeext conftest.$ac_ext
27928 LIBS="${saved_libs}"
27929 CPPFLAGS="${saved_cppflags}"
27930 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
27931 VPB_LIB="-lvpb"
27932 if test "${VPB_DIR}" != ""; then
27933 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
27934 VPB_INCLUDE="-I${VPB_DIR}/include"
27936 PBX_VPB=1
27938 cat >>confdefs.h <<\_ACEOF
27939 #define HAVE_VPB 1
27940 _ACEOF
27942 elif test ! -z "${VPB_MANDATORY}"; then
27943 { echo "$as_me:$LINENO: ***" >&5
27944 echo "$as_me: ***" >&6;}
27945 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
27946 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
27947 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27948 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27949 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
27950 echo "$as_me: *** including --without-vpb." >&6;}
27951 exit 1
27955 ac_ext=c
27956 ac_cpp='$CPP $CPPFLAGS'
27957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27963 if test "${USE_ZLIB}" != "no"; then
27964 pbxlibdir=""
27965 if test "x${ZLIB_DIR}" != "x"; then
27966 if test -d ${ZLIB_DIR}/lib; then
27967 pbxlibdir="-L${ZLIB_DIR}/lib"
27968 else
27969 pbxlibdir="-L${ZLIB_DIR}"
27972 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
27973 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
27974 if test "${ac_cv_lib_z_compress+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 else
27977 ac_check_lib_save_LIBS=$LIBS
27978 LIBS="-lz ${pbxlibdir} $LIBS"
27979 cat >conftest.$ac_ext <<_ACEOF
27980 /* confdefs.h. */
27981 _ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h. */
27986 /* Override any GCC internal prototype to avoid an error.
27987 Use char because int might match the return type of a GCC
27988 builtin and then its argument prototype would still apply. */
27989 #ifdef __cplusplus
27990 extern "C"
27991 #endif
27992 char compress ();
27994 main ()
27996 return compress ();
27998 return 0;
28000 _ACEOF
28001 rm -f conftest.$ac_objext conftest$ac_exeext
28002 if { (ac_try="$ac_link"
28003 case "(($ac_try" in
28004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28005 *) ac_try_echo=$ac_try;;
28006 esac
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008 (eval "$ac_link") 2>conftest.er1
28009 ac_status=$?
28010 grep -v '^ *+' conftest.er1 >conftest.err
28011 rm -f conftest.er1
28012 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } && {
28015 test -z "$ac_c_werror_flag" ||
28016 test ! -s conftest.err
28017 } && test -s conftest$ac_exeext &&
28018 $as_test_x conftest$ac_exeext; then
28019 ac_cv_lib_z_compress=yes
28020 else
28021 echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28024 ac_cv_lib_z_compress=no
28027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28028 conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_lib_save_LIBS
28031 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28032 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28033 if test $ac_cv_lib_z_compress = yes; then
28034 AST_ZLIB_FOUND=yes
28035 else
28036 AST_ZLIB_FOUND=no
28040 if test "${AST_ZLIB_FOUND}" = "yes"; then
28041 ZLIB_LIB="-lz "
28042 ZLIB_HEADER_FOUND="1"
28043 if test "x${ZLIB_DIR}" != "x"; then
28044 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
28045 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
28046 if test "xzlib.h" != "x" ; then
28047 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
28048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28049 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28050 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28054 ac_res=`eval echo '${'$as_ac_Header'}'`
28055 { echo "$as_me:$LINENO: result: $ac_res" >&5
28056 echo "${ECHO_T}$ac_res" >&6; }
28057 else
28058 # Is the header compilable?
28059 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28060 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28061 cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h. */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h. */
28067 $ac_includes_default
28068 #include <${ZLIB_DIR}/include/zlib.h>
28069 _ACEOF
28070 rm -f conftest.$ac_objext
28071 if { (ac_try="$ac_compile"
28072 case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28075 esac
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_compile") 2>conftest.er1
28078 ac_status=$?
28079 grep -v '^ *+' conftest.er1 >conftest.err
28080 rm -f conftest.er1
28081 cat conftest.err >&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); } && {
28084 test -z "$ac_c_werror_flag" ||
28085 test ! -s conftest.err
28086 } && test -s conftest.$ac_objext; then
28087 ac_header_compiler=yes
28088 else
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28092 ac_header_compiler=no
28095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28097 echo "${ECHO_T}$ac_header_compiler" >&6; }
28099 # Is the header present?
28100 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28101 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28102 cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h. */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h. */
28108 #include <${ZLIB_DIR}/include/zlib.h>
28109 _ACEOF
28110 if { (ac_try="$ac_cpp conftest.$ac_ext"
28111 case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28114 esac
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28117 ac_status=$?
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } >/dev/null && {
28123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 }; then
28126 ac_header_preproc=yes
28127 else
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_header_preproc=no
28134 rm -f conftest.err conftest.$ac_ext
28135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28136 echo "${ECHO_T}$ac_header_preproc" >&6; }
28138 # So? What about this header?
28139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28140 yes:no: )
28141 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28142 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28143 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28144 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28145 ac_header_preproc=yes
28147 no:yes:* )
28148 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28149 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28150 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28151 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28152 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28153 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28154 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28155 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28156 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28157 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28159 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28162 esac
28163 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28164 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168 eval "$as_ac_Header=\$ac_header_preproc"
28170 ac_res=`eval echo '${'$as_ac_Header'}'`
28171 { echo "$as_me:$LINENO: result: $ac_res" >&5
28172 echo "${ECHO_T}$ac_res" >&6; }
28175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28176 ZLIB_HEADER_FOUND=1
28177 else
28178 ZLIB_HEADER_FOUND=0
28183 else
28184 if test "xzlib.h" != "x" ; then
28185 if test "${ac_cv_header_zlib_h+set}" = set; then
28186 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28187 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28188 if test "${ac_cv_header_zlib_h+set}" = set; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
28191 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28192 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28193 else
28194 # Is the header compilable?
28195 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28196 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28197 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h. */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28203 $ac_includes_default
28204 #include <zlib.h>
28205 _ACEOF
28206 rm -f conftest.$ac_objext
28207 if { (ac_try="$ac_compile"
28208 case "(($ac_try" in
28209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210 *) ac_try_echo=$ac_try;;
28211 esac
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213 (eval "$ac_compile") 2>conftest.er1
28214 ac_status=$?
28215 grep -v '^ *+' conftest.er1 >conftest.err
28216 rm -f conftest.er1
28217 cat conftest.err >&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); } && {
28220 test -z "$ac_c_werror_flag" ||
28221 test ! -s conftest.err
28222 } && test -s conftest.$ac_objext; then
28223 ac_header_compiler=yes
28224 else
28225 echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28228 ac_header_compiler=no
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28233 echo "${ECHO_T}$ac_header_compiler" >&6; }
28235 # Is the header present?
28236 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28237 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28238 cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h. */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 #include <zlib.h>
28245 _ACEOF
28246 if { (ac_try="$ac_cpp conftest.$ac_ext"
28247 case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250 esac
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } >/dev/null && {
28259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28260 test ! -s conftest.err
28261 }; then
28262 ac_header_preproc=yes
28263 else
28264 echo "$as_me: failed program was:" >&5
28265 sed 's/^/| /' conftest.$ac_ext >&5
28267 ac_header_preproc=no
28270 rm -f conftest.err conftest.$ac_ext
28271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28272 echo "${ECHO_T}$ac_header_preproc" >&6; }
28274 # So? What about this header?
28275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28276 yes:no: )
28277 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28278 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28279 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28280 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28281 ac_header_preproc=yes
28283 no:yes:* )
28284 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28285 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28286 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28287 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28288 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28289 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28291 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28292 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28293 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28295 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28298 esac
28299 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28300 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28301 if test "${ac_cv_header_zlib_h+set}" = set; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28303 else
28304 ac_cv_header_zlib_h=$ac_header_preproc
28306 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28307 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28310 if test $ac_cv_header_zlib_h = yes; then
28311 ZLIB_HEADER_FOUND=1
28312 else
28313 ZLIB_HEADER_FOUND=0
28319 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28320 if test ! -z "${ZLIB_MANDATORY}" ;
28321 then
28322 { echo "$as_me:$LINENO: ***" >&5
28323 echo "$as_me: ***" >&6;}
28324 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28325 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28326 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28327 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28328 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28329 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28330 exit 1
28332 ZLIB_LIB=""
28333 ZLIB_INCLUDE=""
28334 PBX_ZLIB=0
28335 else
28336 PBX_ZLIB=1
28338 cat >>confdefs.h <<_ACEOF
28339 #define HAVE_ZLIB 1
28340 _ACEOF
28343 elif test ! -z "${ZLIB_MANDATORY}";
28344 then
28345 { echo "$as_me:$LINENO: ***" >&5
28346 echo "$as_me: ***" >&6;}
28347 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28348 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28349 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28350 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28351 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28352 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28353 exit 1
28358 if test "${USE_ZAPTEL}" != "no"; then
28359 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
28360 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
28361 saved_cppflags="${CPPFLAGS}"
28362 if test "x${ZAPTEL_DIR}" != "x"; then
28363 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28365 cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h. */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h. */
28372 #include <zaptel/zaptel.h>
28374 main ()
28376 int foo = ZT_TONE_DTMF_BASE;
28378 return 0;
28381 _ACEOF
28382 rm -f conftest.$ac_objext
28383 if { (ac_try="$ac_compile"
28384 case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28387 esac
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_compile") 2>conftest.er1
28390 ac_status=$?
28391 grep -v '^ *+' conftest.er1 >conftest.err
28392 rm -f conftest.er1
28393 cat conftest.err >&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } && {
28396 test -z "$ac_c_werror_flag" ||
28397 test ! -s conftest.err
28398 } && test -s conftest.$ac_objext; then
28399 { echo "$as_me:$LINENO: result: yes" >&5
28400 echo "${ECHO_T}yes" >&6; }
28401 ac_cv_zaptel_h="yes"
28403 else
28404 echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28407 { echo "$as_me:$LINENO: result: no" >&5
28408 echo "${ECHO_T}no" >&6; }
28409 ac_cv_zaptel_h="no"
28414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415 CPPFLAGS="${saved_cppflags}"
28416 if test "${ac_cv_zaptel_h}" = "yes"; then
28417 if test "${ZAPTEL_DIR}" != ""; then
28418 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
28420 PBX_ZAPTEL=1
28422 cat >>confdefs.h <<\_ACEOF
28423 #define HAVE_ZAPTEL 1
28424 _ACEOF
28426 elif test ! -z "${ZAPTEL_MANDATORY}";
28427 then
28428 { echo "$as_me:$LINENO: ***" >&5
28429 echo "$as_me: ***" >&6;}
28430 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28431 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28432 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28433 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28434 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28435 echo "$as_me: *** including --without-zaptel." >&6;}
28436 exit 1
28440 if test "${USE_ZAPTEL}" != "no"; then
28441 if test "${PBX_ZAPTEL}" != "1"; then
28442 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel.h" >&5
28443 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel.h... $ECHO_C" >&6; }
28444 saved_cppflags="${CPPFLAGS}"
28445 if test "x${ZAPTEL_DIR}" != "x"; then
28446 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28448 cat >conftest.$ac_ext <<_ACEOF
28450 /* confdefs.h. */
28451 _ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h. */
28455 #include <zaptel.h>
28457 main ()
28459 int foo = ZT_DIAL_OP_CANCEL;
28461 return 0;
28464 _ACEOF
28465 rm -f conftest.$ac_objext
28466 if { (ac_try="$ac_compile"
28467 case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_compile") 2>conftest.er1
28473 ac_status=$?
28474 grep -v '^ *+' conftest.er1 >conftest.err
28475 rm -f conftest.er1
28476 cat conftest.err >&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } && {
28479 test -z "$ac_c_werror_flag" ||
28480 test ! -s conftest.err
28481 } && test -s conftest.$ac_objext; then
28482 { echo "$as_me:$LINENO: result: yes" >&5
28483 echo "${ECHO_T}yes" >&6; }
28484 ac_cv_zaptel_h="yes"
28486 else
28487 echo "$as_me: failed program was:" >&5
28488 sed 's/^/| /' conftest.$ac_ext >&5
28490 { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28492 ac_cv_zaptel_h="no"
28497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498 CPPFLAGS="${saved_cppflags}"
28499 if test "${ac_cv_zaptel_h}" = "yes"; then
28500 { echo "$as_me:$LINENO: ***" >&5
28501 echo "$as_me: ***" >&6;}
28502 { echo "$as_me:$LINENO: *** The Zaptel installation on this system is too old" >&5
28503 echo "$as_me: *** The Zaptel installation on this system is too old" >&6;}
28504 { echo "$as_me:$LINENO: *** to be useable with this version of Asterisk." >&5
28505 echo "$as_me: *** to be useable with this version of Asterisk." >&6;}
28506 { echo "$as_me:$LINENO: *** Either upgrade your Zaptel installation, or run configure" >&5
28507 echo "$as_me: *** Either upgrade your Zaptel installation, or run configure" >&6;}
28508 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28509 echo "$as_me: *** including --without-zaptel." >&6;}
28510 exit 1
28515 EDITLINE_LIB=""
28516 if test "x$TERMCAP_LIB" != "x" ; then
28517 EDITLINE_LIB="$TERMCAP_LIB"
28518 elif test "x$TINFO_LIB" != "x" ; then
28519 EDITLINE_LIB="$TINFO_LIB"
28520 elif test "x$CURSES_LIB" != "x" ; then
28521 EDITLINE_LIB="$CURSES_LIB"
28522 elif test "x$NCURSES_LIB" != "x" ; then
28523 EDITLINE_LIB="$NCURSES_LIB"
28524 else
28525 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
28526 echo "$as_me: error: *** termcap support not found" >&2;}
28527 { (exit 1); exit 1; }; }
28531 if test "${ac_cv_header_h323_h+set}" = set; then
28532 { echo "$as_me:$LINENO: checking for h323.h" >&5
28533 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_h323_h+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28538 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28539 else
28540 # Is the header compilable?
28541 { echo "$as_me:$LINENO: checking h323.h usability" >&5
28542 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
28543 cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h. */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 $ac_includes_default
28550 #include <h323.h>
28551 _ACEOF
28552 rm -f conftest.$ac_objext
28553 if { (ac_try="$ac_compile"
28554 case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28557 esac
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_compile") 2>conftest.er1
28560 ac_status=$?
28561 grep -v '^ *+' conftest.er1 >conftest.err
28562 rm -f conftest.er1
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } && {
28566 test -z "$ac_c_werror_flag" ||
28567 test ! -s conftest.err
28568 } && test -s conftest.$ac_objext; then
28569 ac_header_compiler=yes
28570 else
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28574 ac_header_compiler=no
28577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28579 echo "${ECHO_T}$ac_header_compiler" >&6; }
28581 # Is the header present?
28582 { echo "$as_me:$LINENO: checking h323.h presence" >&5
28583 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
28584 cat >conftest.$ac_ext <<_ACEOF
28585 /* confdefs.h. */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28590 #include <h323.h>
28591 _ACEOF
28592 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
28605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28606 test ! -s conftest.err
28607 }; then
28608 ac_header_preproc=yes
28609 else
28610 echo "$as_me: failed program was:" >&5
28611 sed 's/^/| /' conftest.$ac_ext >&5
28613 ac_header_preproc=no
28616 rm -f conftest.err conftest.$ac_ext
28617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28618 echo "${ECHO_T}$ac_header_preproc" >&6; }
28620 # So? What about this header?
28621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28622 yes:no: )
28623 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28624 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
28626 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
28627 ac_header_preproc=yes
28629 no:yes:* )
28630 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
28631 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
28632 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
28633 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
28635 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
28637 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
28639 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
28641 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
28644 esac
28645 { echo "$as_me:$LINENO: checking for h323.h" >&5
28646 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
28647 if test "${ac_cv_header_h323_h+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28649 else
28650 ac_cv_header_h323_h=$ac_header_preproc
28652 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
28653 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
28656 if test $ac_cv_header_h323_h = yes; then
28657 PBX_H323=1
28658 else
28659 PBX_H323=0
28665 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
28666 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
28667 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28669 else
28670 cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h. */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h. */
28677 #include <linux/version.h>
28678 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
28679 #include <linux/compiler.h>
28680 #endif
28683 #include <linux/ixjuser.h>
28684 _ACEOF
28685 rm -f conftest.$ac_objext
28686 if { (ac_try="$ac_compile"
28687 case "(($ac_try" in
28688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689 *) ac_try_echo=$ac_try;;
28690 esac
28691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28692 (eval "$ac_compile") 2>conftest.er1
28693 ac_status=$?
28694 grep -v '^ *+' conftest.er1 >conftest.err
28695 rm -f conftest.er1
28696 cat conftest.err >&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); } && {
28699 test -z "$ac_c_werror_flag" ||
28700 test ! -s conftest.err
28701 } && test -s conftest.$ac_objext; then
28702 ac_cv_header_linux_ixjuser_h=yes
28703 else
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28707 ac_cv_header_linux_ixjuser_h=no
28710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28712 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
28713 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
28714 if test $ac_cv_header_linux_ixjuser_h = yes; then
28715 PBX_IXJUSER=1
28716 else
28717 PBX_IXJUSER=0
28723 PBX_GTK=0
28724 if test -n "$ac_tool_prefix"; then
28725 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
28726 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
28727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28729 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
28730 echo $ECHO_N "(cached) $ECHO_C" >&6
28731 else
28732 if test -n "$GTKCONFIG"; then
28733 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
28734 else
28735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28736 for as_dir in $PATH
28738 IFS=$as_save_IFS
28739 test -z "$as_dir" && as_dir=.
28740 for ac_exec_ext in '' $ac_executable_extensions; do
28741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28742 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
28743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28744 break 2
28746 done
28747 done
28748 IFS=$as_save_IFS
28752 GTKCONFIG=$ac_cv_prog_GTKCONFIG
28753 if test -n "$GTKCONFIG"; then
28754 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
28755 echo "${ECHO_T}$GTKCONFIG" >&6; }
28756 else
28757 { echo "$as_me:$LINENO: result: no" >&5
28758 echo "${ECHO_T}no" >&6; }
28763 if test -z "$ac_cv_prog_GTKCONFIG"; then
28764 ac_ct_GTKCONFIG=$GTKCONFIG
28765 # Extract the first word of "gtk-config", so it can be a program name with args.
28766 set dummy gtk-config; ac_word=$2
28767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28769 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
28770 echo $ECHO_N "(cached) $ECHO_C" >&6
28771 else
28772 if test -n "$ac_ct_GTKCONFIG"; then
28773 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
28774 else
28775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28776 for as_dir in $PATH
28778 IFS=$as_save_IFS
28779 test -z "$as_dir" && as_dir=.
28780 for ac_exec_ext in '' $ac_executable_extensions; do
28781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28782 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
28783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28784 break 2
28786 done
28787 done
28788 IFS=$as_save_IFS
28792 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
28793 if test -n "$ac_ct_GTKCONFIG"; then
28794 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
28795 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
28796 else
28797 { echo "$as_me:$LINENO: result: no" >&5
28798 echo "${ECHO_T}no" >&6; }
28801 if test "x$ac_ct_GTKCONFIG" = x; then
28802 GTKCONFIG="No"
28803 else
28804 case $cross_compiling:$ac_tool_warned in
28805 yes:)
28806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28807 whose name does not start with the host triplet. If you think this
28808 configuration is useful to you, please write to autoconf@gnu.org." >&5
28809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28810 whose name does not start with the host triplet. If you think this
28811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28812 ac_tool_warned=yes ;;
28813 esac
28814 GTKCONFIG=$ac_ct_GTKCONFIG
28816 else
28817 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
28820 if test ! "x${GTKCONFIG}" = xNo; then
28821 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
28822 GTK_LIB=$(${GTKCONFIG} --libs gthread)
28823 PBX_GTK=1
28825 cat >>confdefs.h <<\_ACEOF
28826 #define HAVE_GTK 1
28827 _ACEOF
28834 if test "${USE_CURL}" != "no"; then
28835 if test -n "$ac_tool_prefix"; then
28836 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
28837 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
28838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28840 if test "${ac_cv_path_CURL+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28842 else
28843 case $CURL in
28844 [\\/]* | ?:[\\/]*)
28845 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
28848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28849 for as_dir in $PATH
28851 IFS=$as_save_IFS
28852 test -z "$as_dir" && as_dir=.
28853 for ac_exec_ext in '' $ac_executable_extensions; do
28854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28855 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
28856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28857 break 2
28859 done
28860 done
28861 IFS=$as_save_IFS
28864 esac
28866 CURL=$ac_cv_path_CURL
28867 if test -n "$CURL"; then
28868 { echo "$as_me:$LINENO: result: $CURL" >&5
28869 echo "${ECHO_T}$CURL" >&6; }
28870 else
28871 { echo "$as_me:$LINENO: result: no" >&5
28872 echo "${ECHO_T}no" >&6; }
28877 if test -z "$ac_cv_path_CURL"; then
28878 ac_pt_CURL=$CURL
28879 # Extract the first word of "curl-config", so it can be a program name with args.
28880 set dummy curl-config; ac_word=$2
28881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28883 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886 case $ac_pt_CURL in
28887 [\\/]* | ?:[\\/]*)
28888 ac_cv_path_ac_pt_CURL="$ac_pt_CURL" # Let the user override the test with a path.
28891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28892 for as_dir in $PATH
28894 IFS=$as_save_IFS
28895 test -z "$as_dir" && as_dir=.
28896 for ac_exec_ext in '' $ac_executable_extensions; do
28897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28898 ac_cv_path_ac_pt_CURL="$as_dir/$ac_word$ac_exec_ext"
28899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28900 break 2
28902 done
28903 done
28904 IFS=$as_save_IFS
28907 esac
28909 ac_pt_CURL=$ac_cv_path_ac_pt_CURL
28910 if test -n "$ac_pt_CURL"; then
28911 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
28912 echo "${ECHO_T}$ac_pt_CURL" >&6; }
28913 else
28914 { echo "$as_me:$LINENO: result: no" >&5
28915 echo "${ECHO_T}no" >&6; }
28918 if test "x$ac_pt_CURL" = x; then
28919 CURL="No"
28920 else
28921 case $cross_compiling:$ac_tool_warned in
28922 yes:)
28923 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28924 whose name does not start with the host triplet. If you think this
28925 configuration is useful to you, please write to autoconf@gnu.org." >&5
28926 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28927 whose name does not start with the host triplet. If you think this
28928 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28929 ac_tool_warned=yes ;;
28930 esac
28931 CURL=$ac_pt_CURL
28933 else
28934 CURL="$ac_cv_path_CURL"
28937 if test ! x"${CURL}" = xNo; then
28938 # check for version
28939 if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); then
28940 CURL_INCLUDE=$(${CURL} --cflags)
28941 CURL_LIB=$(${CURL} --libs)
28942 PBX_CURL=1
28944 cat >>confdefs.h <<\_ACEOF
28945 #define HAVE_CURL 1
28946 _ACEOF
28952 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
28954 cat >confcache <<\_ACEOF
28955 # This file is a shell script that caches the results of configure
28956 # tests run on this system so they can be shared between configure
28957 # scripts and configure runs, see configure's option --config-cache.
28958 # It is not useful on other systems. If it contains results you don't
28959 # want to keep, you may remove or edit it.
28961 # config.status only pays attention to the cache file if you give it
28962 # the --recheck option to rerun configure.
28964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28966 # following values.
28968 _ACEOF
28970 # The following way of writing the cache mishandles newlines in values,
28971 # but we know of no workaround that is simple, portable, and efficient.
28972 # So, we kill variables containing newlines.
28973 # Ultrix sh set writes to stderr and can't be redirected directly,
28974 # and sets the high bit in the cache file unless we assign to the vars.
28976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28977 eval ac_val=\$$ac_var
28978 case $ac_val in #(
28979 *${as_nl}*)
28980 case $ac_var in #(
28981 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28982 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28983 esac
28984 case $ac_var in #(
28985 _ | IFS | as_nl) ;; #(
28986 *) $as_unset $ac_var ;;
28987 esac ;;
28988 esac
28989 done
28991 (set) 2>&1 |
28992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28993 *${as_nl}ac_space=\ *)
28994 # `set' does not quote correctly, so add quotes (double-quote
28995 # substitution turns \\\\ into \\, and sed turns \\ into \).
28996 sed -n \
28997 "s/'/'\\\\''/g;
28998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28999 ;; #(
29001 # `set' quotes correctly as required by POSIX, so do not add quotes.
29002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29004 esac |
29005 sort
29007 sed '
29008 /^ac_cv_env_/b end
29009 t clear
29010 :clear
29011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29012 t end
29013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29014 :end' >>confcache
29015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29016 if test -w "$cache_file"; then
29017 test "x$cache_file" != "x/dev/null" &&
29018 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29019 echo "$as_me: updating cache $cache_file" >&6;}
29020 cat confcache >$cache_file
29021 else
29022 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29023 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29026 rm -f confcache
29028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29029 # Let make expand exec_prefix.
29030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29032 DEFS=-DHAVE_CONFIG_H
29034 ac_libobjs=
29035 ac_ltlibobjs=
29036 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29037 # 1. Remove the extension, and $U if already installed.
29038 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29039 ac_i=`echo "$ac_i" | sed "$ac_script"`
29040 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29041 # will be set to the directory where LIBOBJS objects are built.
29042 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29043 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29044 done
29045 LIBOBJS=$ac_libobjs
29047 LTLIBOBJS=$ac_ltlibobjs
29051 : ${CONFIG_STATUS=./config.status}
29052 ac_clean_files_save=$ac_clean_files
29053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29054 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29055 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29056 cat >$CONFIG_STATUS <<_ACEOF
29057 #! $SHELL
29058 # Generated by $as_me.
29059 # Run this file to recreate the current configuration.
29060 # Compiler output produced by configure, useful for debugging
29061 # configure, is in config.log if it exists.
29063 debug=false
29064 ac_cs_recheck=false
29065 ac_cs_silent=false
29066 SHELL=\${CONFIG_SHELL-$SHELL}
29067 _ACEOF
29069 cat >>$CONFIG_STATUS <<\_ACEOF
29070 ## --------------------- ##
29071 ## M4sh Initialization. ##
29072 ## --------------------- ##
29074 # Be more Bourne compatible
29075 DUALCASE=1; export DUALCASE # for MKS sh
29076 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29077 emulate sh
29078 NULLCMD=:
29079 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29080 # is contrary to our usage. Disable this feature.
29081 alias -g '${1+"$@"}'='"$@"'
29082 setopt NO_GLOB_SUBST
29083 else
29084 case `(set -o) 2>/dev/null` in
29085 *posix*) set -o posix ;;
29086 esac
29093 # PATH needs CR
29094 # Avoid depending upon Character Ranges.
29095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29098 as_cr_digits='0123456789'
29099 as_cr_alnum=$as_cr_Letters$as_cr_digits
29101 # The user is always right.
29102 if test "${PATH_SEPARATOR+set}" != set; then
29103 echo "#! /bin/sh" >conf$$.sh
29104 echo "exit 0" >>conf$$.sh
29105 chmod +x conf$$.sh
29106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29107 PATH_SEPARATOR=';'
29108 else
29109 PATH_SEPARATOR=:
29111 rm -f conf$$.sh
29114 # Support unset when possible.
29115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29116 as_unset=unset
29117 else
29118 as_unset=false
29122 # IFS
29123 # We need space, tab and new line, in precisely that order. Quoting is
29124 # there to prevent editors from complaining about space-tab.
29125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29126 # splitting by setting IFS to empty value.)
29127 as_nl='
29129 IFS=" "" $as_nl"
29131 # Find who we are. Look in the path if we contain no directory separator.
29132 case $0 in
29133 *[\\/]* ) as_myself=$0 ;;
29134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29135 for as_dir in $PATH
29137 IFS=$as_save_IFS
29138 test -z "$as_dir" && as_dir=.
29139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29140 done
29141 IFS=$as_save_IFS
29144 esac
29145 # We did not find ourselves, most probably we were run as `sh COMMAND'
29146 # in which case we are not to be found in the path.
29147 if test "x$as_myself" = x; then
29148 as_myself=$0
29150 if test ! -f "$as_myself"; then
29151 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29152 { (exit 1); exit 1; }
29155 # Work around bugs in pre-3.0 UWIN ksh.
29156 for as_var in ENV MAIL MAILPATH
29157 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29158 done
29159 PS1='$ '
29160 PS2='> '
29161 PS4='+ '
29163 # NLS nuisances.
29164 for as_var in \
29165 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29166 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29167 LC_TELEPHONE LC_TIME
29169 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29170 eval $as_var=C; export $as_var
29171 else
29172 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29174 done
29176 # Required to use basename.
29177 if expr a : '\(a\)' >/dev/null 2>&1 &&
29178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29179 as_expr=expr
29180 else
29181 as_expr=false
29184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29185 as_basename=basename
29186 else
29187 as_basename=false
29191 # Name of the executable.
29192 as_me=`$as_basename -- "$0" ||
29193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29194 X"$0" : 'X\(//\)$' \| \
29195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29196 echo X/"$0" |
29197 sed '/^.*\/\([^/][^/]*\)\/*$/{
29198 s//\1/
29201 /^X\/\(\/\/\)$/{
29202 s//\1/
29205 /^X\/\(\/\).*/{
29206 s//\1/
29209 s/.*/./; q'`
29211 # CDPATH.
29212 $as_unset CDPATH
29216 as_lineno_1=$LINENO
29217 as_lineno_2=$LINENO
29218 test "x$as_lineno_1" != "x$as_lineno_2" &&
29219 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29221 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29222 # uniformly replaced by the line number. The first 'sed' inserts a
29223 # line-number line after each line using $LINENO; the second 'sed'
29224 # does the real work. The second script uses 'N' to pair each
29225 # line-number line with the line containing $LINENO, and appends
29226 # trailing '-' during substitution so that $LINENO is not a special
29227 # case at line end.
29228 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29229 # scripts with optimization help from Paolo Bonzini. Blame Lee
29230 # E. McMahon (1931-1989) for sed's syntax. :-)
29231 sed -n '
29233 /[$]LINENO/=
29234 ' <$as_myself |
29235 sed '
29236 s/[$]LINENO.*/&-/
29237 t lineno
29239 :lineno
29241 :loop
29242 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29243 t loop
29244 s/-\n.*//
29245 ' >$as_me.lineno &&
29246 chmod +x "$as_me.lineno" ||
29247 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29248 { (exit 1); exit 1; }; }
29250 # Don't try to exec as it changes $[0], causing all sort of problems
29251 # (the dirname of $[0] is not the place where we might find the
29252 # original and so on. Autoconf is especially sensitive to this).
29253 . "./$as_me.lineno"
29254 # Exit status is that of the last command.
29255 exit
29259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29260 as_dirname=dirname
29261 else
29262 as_dirname=false
29265 ECHO_C= ECHO_N= ECHO_T=
29266 case `echo -n x` in
29267 -n*)
29268 case `echo 'x\c'` in
29269 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29270 *) ECHO_C='\c';;
29271 esac;;
29273 ECHO_N='-n';;
29274 esac
29276 if expr a : '\(a\)' >/dev/null 2>&1 &&
29277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29278 as_expr=expr
29279 else
29280 as_expr=false
29283 rm -f conf$$ conf$$.exe conf$$.file
29284 if test -d conf$$.dir; then
29285 rm -f conf$$.dir/conf$$.file
29286 else
29287 rm -f conf$$.dir
29288 mkdir conf$$.dir
29290 echo >conf$$.file
29291 if ln -s conf$$.file conf$$ 2>/dev/null; then
29292 as_ln_s='ln -s'
29293 # ... but there are two gotchas:
29294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29296 # In both cases, we have to default to `cp -p'.
29297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29298 as_ln_s='cp -p'
29299 elif ln conf$$.file conf$$ 2>/dev/null; then
29300 as_ln_s=ln
29301 else
29302 as_ln_s='cp -p'
29304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29305 rmdir conf$$.dir 2>/dev/null
29307 if mkdir -p . 2>/dev/null; then
29308 as_mkdir_p=:
29309 else
29310 test -d ./-p && rmdir ./-p
29311 as_mkdir_p=false
29314 if test -x / >/dev/null 2>&1; then
29315 as_test_x='test -x'
29316 else
29317 if ls -dL / >/dev/null 2>&1; then
29318 as_ls_L_option=L
29319 else
29320 as_ls_L_option=
29322 as_test_x='
29323 eval sh -c '\''
29324 if test -d "$1"; then
29325 test -d "$1/.";
29326 else
29327 case $1 in
29328 -*)set "./$1";;
29329 esac;
29330 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29331 ???[sx]*):;;*)false;;esac;fi
29332 '\'' sh
29335 as_executable_p=$as_test_x
29337 # Sed expression to map a string onto a valid CPP name.
29338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29340 # Sed expression to map a string onto a valid variable name.
29341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29344 exec 6>&1
29346 # Save the log message, to keep $[0] and so on meaningful, and to
29347 # report actual input values of CONFIG_FILES etc. instead of their
29348 # values after options handling.
29349 ac_log="
29350 This file was extended by $as_me, which was
29351 generated by GNU Autoconf 2.61. Invocation command line was
29353 CONFIG_FILES = $CONFIG_FILES
29354 CONFIG_HEADERS = $CONFIG_HEADERS
29355 CONFIG_LINKS = $CONFIG_LINKS
29356 CONFIG_COMMANDS = $CONFIG_COMMANDS
29357 $ $0 $@
29359 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29362 _ACEOF
29364 cat >>$CONFIG_STATUS <<_ACEOF
29365 # Files that config.status was made for.
29366 config_files="$ac_config_files"
29367 config_headers="$ac_config_headers"
29369 _ACEOF
29371 cat >>$CONFIG_STATUS <<\_ACEOF
29372 ac_cs_usage="\
29373 \`$as_me' instantiates files from templates according to the
29374 current configuration.
29376 Usage: $0 [OPTIONS] [FILE]...
29378 -h, --help print this help, then exit
29379 -V, --version print version number and configuration settings, then exit
29380 -q, --quiet do not print progress messages
29381 -d, --debug don't remove temporary files
29382 --recheck update $as_me by reconfiguring in the same conditions
29383 --file=FILE[:TEMPLATE]
29384 instantiate the configuration file FILE
29385 --header=FILE[:TEMPLATE]
29386 instantiate the configuration header FILE
29388 Configuration files:
29389 $config_files
29391 Configuration headers:
29392 $config_headers
29394 Report bugs to <bug-autoconf@gnu.org>."
29396 _ACEOF
29397 cat >>$CONFIG_STATUS <<_ACEOF
29398 ac_cs_version="\\
29399 config.status
29400 configured by $0, generated by GNU Autoconf 2.61,
29401 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29403 Copyright (C) 2006 Free Software Foundation, Inc.
29404 This config.status script is free software; the Free Software Foundation
29405 gives unlimited permission to copy, distribute and modify it."
29407 ac_pwd='$ac_pwd'
29408 srcdir='$srcdir'
29409 INSTALL='$INSTALL'
29410 _ACEOF
29412 cat >>$CONFIG_STATUS <<\_ACEOF
29413 # If no file are specified by the user, then we need to provide default
29414 # value. By we need to know if files were specified by the user.
29415 ac_need_defaults=:
29416 while test $# != 0
29418 case $1 in
29419 --*=*)
29420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29422 ac_shift=:
29425 ac_option=$1
29426 ac_optarg=$2
29427 ac_shift=shift
29429 esac
29431 case $ac_option in
29432 # Handling of the options.
29433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29434 ac_cs_recheck=: ;;
29435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29436 echo "$ac_cs_version"; exit ;;
29437 --debug | --debu | --deb | --de | --d | -d )
29438 debug=: ;;
29439 --file | --fil | --fi | --f )
29440 $ac_shift
29441 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29442 ac_need_defaults=false;;
29443 --header | --heade | --head | --hea )
29444 $ac_shift
29445 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29446 ac_need_defaults=false;;
29447 --he | --h)
29448 # Conflict between --help and --header
29449 { echo "$as_me: error: ambiguous option: $1
29450 Try \`$0 --help' for more information." >&2
29451 { (exit 1); exit 1; }; };;
29452 --help | --hel | -h )
29453 echo "$ac_cs_usage"; exit ;;
29454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29456 ac_cs_silent=: ;;
29458 # This is an error.
29459 -*) { echo "$as_me: error: unrecognized option: $1
29460 Try \`$0 --help' for more information." >&2
29461 { (exit 1); exit 1; }; } ;;
29463 *) ac_config_targets="$ac_config_targets $1"
29464 ac_need_defaults=false ;;
29466 esac
29467 shift
29468 done
29470 ac_configure_extra_args=
29472 if $ac_cs_silent; then
29473 exec 6>/dev/null
29474 ac_configure_extra_args="$ac_configure_extra_args --silent"
29477 _ACEOF
29478 cat >>$CONFIG_STATUS <<_ACEOF
29479 if \$ac_cs_recheck; then
29480 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29481 CONFIG_SHELL=$SHELL
29482 export CONFIG_SHELL
29483 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29486 _ACEOF
29487 cat >>$CONFIG_STATUS <<\_ACEOF
29488 exec 5>>config.log
29490 echo
29491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29492 ## Running $as_me. ##
29493 _ASBOX
29494 echo "$ac_log"
29495 } >&5
29497 _ACEOF
29498 cat >>$CONFIG_STATUS <<_ACEOF
29499 _ACEOF
29501 cat >>$CONFIG_STATUS <<\_ACEOF
29503 # Handling of arguments.
29504 for ac_config_target in $ac_config_targets
29506 case $ac_config_target in
29507 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
29508 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
29509 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
29510 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
29512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29514 { (exit 1); exit 1; }; };;
29515 esac
29516 done
29519 # If the user did not use the arguments to specify the items to instantiate,
29520 # then the envvar interface is used. Set only those that are not.
29521 # We use the long form for the default assignment because of an extremely
29522 # bizarre bug on SunOS 4.1.3.
29523 if $ac_need_defaults; then
29524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29528 # Have a temporary directory for convenience. Make it in the build tree
29529 # simply because there is no reason against having it here, and in addition,
29530 # creating and moving files from /tmp can sometimes cause problems.
29531 # Hook for its removal unless debugging.
29532 # Note that there is a small window in which the directory will not be cleaned:
29533 # after its creation but before its name has been assigned to `$tmp'.
29534 $debug ||
29536 tmp=
29537 trap 'exit_status=$?
29538 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29540 trap '{ (exit 1); exit 1; }' 1 2 13 15
29542 # Create a (secure) tmp directory for tmp files.
29545 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29546 test -n "$tmp" && test -d "$tmp"
29547 } ||
29549 tmp=./conf$$-$RANDOM
29550 (umask 077 && mkdir "$tmp")
29551 } ||
29553 echo "$me: cannot create a temporary directory in ." >&2
29554 { (exit 1); exit 1; }
29558 # Set up the sed scripts for CONFIG_FILES section.
29561 # No need to generate the scripts if there are no CONFIG_FILES.
29562 # This happens for instance when ./config.status config.h
29563 if test -n "$CONFIG_FILES"; then
29565 _ACEOF
29569 ac_delim='%!_!# '
29570 for ac_last_try in false false false false false :; do
29571 cat >conf$$subs.sed <<_ACEOF
29572 SHELL!$SHELL$ac_delim
29573 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29574 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29575 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29576 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29577 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29578 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29579 exec_prefix!$exec_prefix$ac_delim
29580 prefix!$prefix$ac_delim
29581 program_transform_name!$program_transform_name$ac_delim
29582 bindir!$bindir$ac_delim
29583 sbindir!$sbindir$ac_delim
29584 libexecdir!$libexecdir$ac_delim
29585 datarootdir!$datarootdir$ac_delim
29586 datadir!$datadir$ac_delim
29587 sysconfdir!$sysconfdir$ac_delim
29588 sharedstatedir!$sharedstatedir$ac_delim
29589 localstatedir!$localstatedir$ac_delim
29590 includedir!$includedir$ac_delim
29591 oldincludedir!$oldincludedir$ac_delim
29592 docdir!$docdir$ac_delim
29593 infodir!$infodir$ac_delim
29594 htmldir!$htmldir$ac_delim
29595 dvidir!$dvidir$ac_delim
29596 pdfdir!$pdfdir$ac_delim
29597 psdir!$psdir$ac_delim
29598 libdir!$libdir$ac_delim
29599 localedir!$localedir$ac_delim
29600 mandir!$mandir$ac_delim
29601 DEFS!$DEFS$ac_delim
29602 ECHO_C!$ECHO_C$ac_delim
29603 ECHO_N!$ECHO_N$ac_delim
29604 ECHO_T!$ECHO_T$ac_delim
29605 LIBS!$LIBS$ac_delim
29606 build_alias!$build_alias$ac_delim
29607 host_alias!$host_alias$ac_delim
29608 target_alias!$target_alias$ac_delim
29609 build!$build$ac_delim
29610 build_cpu!$build_cpu$ac_delim
29611 build_vendor!$build_vendor$ac_delim
29612 build_os!$build_os$ac_delim
29613 host!$host$ac_delim
29614 host_cpu!$host_cpu$ac_delim
29615 host_vendor!$host_vendor$ac_delim
29616 host_os!$host_os$ac_delim
29617 CC!$CC$ac_delim
29618 CFLAGS!$CFLAGS$ac_delim
29619 LDFLAGS!$LDFLAGS$ac_delim
29620 CPPFLAGS!$CPPFLAGS$ac_delim
29621 ac_ct_CC!$ac_ct_CC$ac_delim
29622 EXEEXT!$EXEEXT$ac_delim
29623 OBJEXT!$OBJEXT$ac_delim
29624 CPP!$CPP$ac_delim
29625 GREP!$GREP$ac_delim
29626 EGREP!$EGREP$ac_delim
29627 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
29628 BUILD_CPU!$BUILD_CPU$ac_delim
29629 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
29630 BUILD_OS!$BUILD_OS$ac_delim
29631 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
29632 HOST_CPU!$HOST_CPU$ac_delim
29633 HOST_VENDOR!$HOST_VENDOR$ac_delim
29634 HOST_OS!$HOST_OS$ac_delim
29635 OSARCH!$OSARCH$ac_delim
29636 UNAME!$UNAME$ac_delim
29637 PBX_OSREV!$PBX_OSREV$ac_delim
29638 CXX!$CXX$ac_delim
29639 LD!$LD$ac_delim
29640 RANLIB!$RANLIB$ac_delim
29641 AR!$AR$ac_delim
29642 CXXFLAGS!$CXXFLAGS$ac_delim
29643 ac_ct_CXX!$ac_ct_CXX$ac_delim
29644 CXXCPP!$CXXCPP$ac_delim
29645 SED!$SED$ac_delim
29646 AWK!$AWK$ac_delim
29647 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29648 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29649 INSTALL_DATA!$INSTALL_DATA$ac_delim
29650 LN_S!$LN_S$ac_delim
29651 GNU_MAKE!$GNU_MAKE$ac_delim
29652 GNU_LD!$GNU_LD$ac_delim
29653 FIND!$FIND$ac_delim
29654 COMPRESS!$COMPRESS$ac_delim
29655 BASENAME!$BASENAME$ac_delim
29656 ID!$ID$ac_delim
29657 DIRNAME!$DIRNAME$ac_delim
29658 LN!$LN$ac_delim
29659 DOT!$DOT$ac_delim
29660 STRIP!$STRIP$ac_delim
29661 WGET!$WGET$ac_delim
29662 FETCH!$FETCH$ac_delim
29663 DOWNLOAD!$DOWNLOAD$ac_delim
29664 AST_DEVMODE!$AST_DEVMODE$ac_delim
29665 ALSA_LIB!$ALSA_LIB$ac_delim
29666 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
29667 PBX_ALSA!$PBX_ALSA$ac_delim
29668 CURL_LIB!$CURL_LIB$ac_delim
29669 _ACEOF
29671 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29672 break
29673 elif $ac_last_try; then
29674 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29675 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29676 { (exit 1); exit 1; }; }
29677 else
29678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29680 done
29682 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29683 if test -n "$ac_eof"; then
29684 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29685 ac_eof=`expr $ac_eof + 1`
29688 cat >>$CONFIG_STATUS <<_ACEOF
29689 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29691 _ACEOF
29692 sed '
29693 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29694 s/^/s,@/; s/!/@,|#_!!_#|/
29697 s/'"$ac_delim"'$/,g/; t
29698 s/$/\\/; p
29699 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29700 ' >>$CONFIG_STATUS <conf$$subs.sed
29701 rm -f conf$$subs.sed
29702 cat >>$CONFIG_STATUS <<_ACEOF
29703 CEOF$ac_eof
29704 _ACEOF
29707 ac_delim='%!_!# '
29708 for ac_last_try in false false false false false :; do
29709 cat >conf$$subs.sed <<_ACEOF
29710 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
29711 PBX_CURL!$PBX_CURL$ac_delim
29712 CURSES_LIB!$CURSES_LIB$ac_delim
29713 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
29714 PBX_CURSES!$PBX_CURSES$ac_delim
29715 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
29716 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
29717 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
29718 GSM_LIB!$GSM_LIB$ac_delim
29719 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
29720 PBX_GSM!$PBX_GSM$ac_delim
29721 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
29722 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
29723 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
29724 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
29725 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
29726 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
29727 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
29728 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
29729 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
29730 KDE_LIB!$KDE_LIB$ac_delim
29731 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
29732 PBX_KDE!$PBX_KDE$ac_delim
29733 MISDN_LIB!$MISDN_LIB$ac_delim
29734 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
29735 PBX_MISDN!$PBX_MISDN$ac_delim
29736 NBS_LIB!$NBS_LIB$ac_delim
29737 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
29738 PBX_NBS!$PBX_NBS$ac_delim
29739 NCURSES_LIB!$NCURSES_LIB$ac_delim
29740 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
29741 PBX_NCURSES!$PBX_NCURSES$ac_delim
29742 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
29743 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
29744 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
29745 NEWT_LIB!$NEWT_LIB$ac_delim
29746 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
29747 PBX_NEWT!$PBX_NEWT$ac_delim
29748 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
29749 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
29750 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
29751 OGG_LIB!$OGG_LIB$ac_delim
29752 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
29753 PBX_OGG!$PBX_OGG$ac_delim
29754 OSPTK_LIB!$OSPTK_LIB$ac_delim
29755 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
29756 PBX_OSPTK!$PBX_OSPTK$ac_delim
29757 OSS_LIB!$OSS_LIB$ac_delim
29758 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
29759 PBX_OSS!$PBX_OSS$ac_delim
29760 POPT_LIB!$POPT_LIB$ac_delim
29761 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
29762 PBX_POPT!$PBX_POPT$ac_delim
29763 PGSQL_LIB!$PGSQL_LIB$ac_delim
29764 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
29765 PBX_PGSQL!$PBX_PGSQL$ac_delim
29766 PRI_LIB!$PRI_LIB$ac_delim
29767 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
29768 PBX_PRI!$PBX_PRI$ac_delim
29769 PWLIB_LIB!$PWLIB_LIB$ac_delim
29770 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
29771 PBX_PWLIB!$PBX_PWLIB$ac_delim
29772 OPENH323_LIB!$OPENH323_LIB$ac_delim
29773 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
29774 PBX_OPENH323!$PBX_OPENH323$ac_delim
29775 QT_LIB!$QT_LIB$ac_delim
29776 QT_INCLUDE!$QT_INCLUDE$ac_delim
29777 PBX_QT!$PBX_QT$ac_delim
29778 RADIUS_LIB!$RADIUS_LIB$ac_delim
29779 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
29780 PBX_RADIUS!$PBX_RADIUS$ac_delim
29781 SPEEX_LIB!$SPEEX_LIB$ac_delim
29782 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
29783 PBX_SPEEX!$PBX_SPEEX$ac_delim
29784 SQLITE_LIB!$SQLITE_LIB$ac_delim
29785 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
29786 PBX_SQLITE!$PBX_SQLITE$ac_delim
29787 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
29788 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
29789 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
29790 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
29791 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
29792 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
29793 FREETDS_LIB!$FREETDS_LIB$ac_delim
29794 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
29795 PBX_FREETDS!$PBX_FREETDS$ac_delim
29796 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
29797 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
29798 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
29799 TINFO_LIB!$TINFO_LIB$ac_delim
29800 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
29801 PBX_TINFO!$PBX_TINFO$ac_delim
29802 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
29803 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
29804 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
29805 VORBIS_LIB!$VORBIS_LIB$ac_delim
29806 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
29807 _ACEOF
29809 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29810 break
29811 elif $ac_last_try; then
29812 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29813 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29814 { (exit 1); exit 1; }; }
29815 else
29816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29818 done
29820 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29821 if test -n "$ac_eof"; then
29822 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29823 ac_eof=`expr $ac_eof + 1`
29826 cat >>$CONFIG_STATUS <<_ACEOF
29827 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29829 _ACEOF
29830 sed '
29831 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29832 s/^/s,@/; s/!/@,|#_!!_#|/
29835 s/'"$ac_delim"'$/,g/; t
29836 s/$/\\/; p
29837 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29838 ' >>$CONFIG_STATUS <conf$$subs.sed
29839 rm -f conf$$subs.sed
29840 cat >>$CONFIG_STATUS <<_ACEOF
29841 CEOF$ac_eof
29842 _ACEOF
29845 ac_delim='%!_!# '
29846 for ac_last_try in false false false false false :; do
29847 cat >conf$$subs.sed <<_ACEOF
29848 PBX_VORBIS!$PBX_VORBIS$ac_delim
29849 VPB_LIB!$VPB_LIB$ac_delim
29850 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
29851 PBX_VPB!$PBX_VPB$ac_delim
29852 ZLIB_LIB!$ZLIB_LIB$ac_delim
29853 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
29854 PBX_ZLIB!$PBX_ZLIB$ac_delim
29855 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
29856 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
29857 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
29858 ALLOCA!$ALLOCA$ac_delim
29859 LIBOBJS!$LIBOBJS$ac_delim
29860 POW_LIB!$POW_LIB$ac_delim
29861 GC_CFLAGS!$GC_CFLAGS$ac_delim
29862 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
29863 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
29864 KDEINIT!$KDEINIT$ac_delim
29865 KDEDIR!$KDEDIR$ac_delim
29866 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
29867 PG_CONFIG!$PG_CONFIG$ac_delim
29868 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
29869 PWLIBDIR!$PWLIBDIR$ac_delim
29870 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
29871 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
29872 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
29873 OPENH323DIR!$OPENH323DIR$ac_delim
29874 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
29875 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
29876 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
29877 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
29878 QTMOC!$QTMOC$ac_delim
29879 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
29880 PBX_H323!$PBX_H323$ac_delim
29881 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
29882 GTKCONFIG!$GTKCONFIG$ac_delim
29883 PBX_GTK!$PBX_GTK$ac_delim
29884 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
29885 GTK_LIB!$GTK_LIB$ac_delim
29886 CURL!$CURL$ac_delim
29887 LTLIBOBJS!$LTLIBOBJS$ac_delim
29888 _ACEOF
29890 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
29891 break
29892 elif $ac_last_try; then
29893 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29894 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29895 { (exit 1); exit 1; }; }
29896 else
29897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29899 done
29901 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29902 if test -n "$ac_eof"; then
29903 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29904 ac_eof=`expr $ac_eof + 1`
29907 cat >>$CONFIG_STATUS <<_ACEOF
29908 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29910 _ACEOF
29911 sed '
29912 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29913 s/^/s,@/; s/!/@,|#_!!_#|/
29916 s/'"$ac_delim"'$/,g/; t
29917 s/$/\\/; p
29918 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29919 ' >>$CONFIG_STATUS <conf$$subs.sed
29920 rm -f conf$$subs.sed
29921 cat >>$CONFIG_STATUS <<_ACEOF
29922 :end
29923 s/|#_!!_#|//g
29924 CEOF$ac_eof
29925 _ACEOF
29928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29930 # trailing colons and then remove the whole line if VPATH becomes empty
29931 # (actually we leave an empty line to preserve line numbers).
29932 if test "x$srcdir" = x.; then
29933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29934 s/:*\$(srcdir):*/:/
29935 s/:*\${srcdir}:*/:/
29936 s/:*@srcdir@:*/:/
29937 s/^\([^=]*=[ ]*\):*/\1/
29938 s/:*$//
29939 s/^[^=]*=[ ]*$//
29943 cat >>$CONFIG_STATUS <<\_ACEOF
29944 fi # test -n "$CONFIG_FILES"
29947 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29949 case $ac_tag in
29950 :[FHLC]) ac_mode=$ac_tag; continue;;
29951 esac
29952 case $ac_mode$ac_tag in
29953 :[FHL]*:*);;
29954 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29955 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29956 { (exit 1); exit 1; }; };;
29957 :[FH]-) ac_tag=-:-;;
29958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29959 esac
29960 ac_save_IFS=$IFS
29961 IFS=:
29962 set x $ac_tag
29963 IFS=$ac_save_IFS
29964 shift
29965 ac_file=$1
29966 shift
29968 case $ac_mode in
29969 :L) ac_source=$1;;
29970 :[FH])
29971 ac_file_inputs=
29972 for ac_f
29974 case $ac_f in
29975 -) ac_f="$tmp/stdin";;
29976 *) # Look for the file first in the build tree, then in the source tree
29977 # (if the path is not absolute). The absolute path cannot be DOS-style,
29978 # because $ac_f cannot contain `:'.
29979 test -f "$ac_f" ||
29980 case $ac_f in
29981 [\\/$]*) false;;
29982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29983 esac ||
29984 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29985 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29986 { (exit 1); exit 1; }; };;
29987 esac
29988 ac_file_inputs="$ac_file_inputs $ac_f"
29989 done
29991 # Let's still pretend it is `configure' which instantiates (i.e., don't
29992 # use $as_me), people would be surprised to read:
29993 # /* config.h. Generated by config.status. */
29994 configure_input="Generated from "`IFS=:
29995 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29996 if test x"$ac_file" != x-; then
29997 configure_input="$ac_file. $configure_input"
29998 { echo "$as_me:$LINENO: creating $ac_file" >&5
29999 echo "$as_me: creating $ac_file" >&6;}
30002 case $ac_tag in
30003 *:-:* | *:-) cat >"$tmp/stdin";;
30004 esac
30006 esac
30008 ac_dir=`$as_dirname -- "$ac_file" ||
30009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30010 X"$ac_file" : 'X\(//\)[^/]' \| \
30011 X"$ac_file" : 'X\(//\)$' \| \
30012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30013 echo X"$ac_file" |
30014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30015 s//\1/
30018 /^X\(\/\/\)[^/].*/{
30019 s//\1/
30022 /^X\(\/\/\)$/{
30023 s//\1/
30026 /^X\(\/\).*/{
30027 s//\1/
30030 s/.*/./; q'`
30031 { as_dir="$ac_dir"
30032 case $as_dir in #(
30033 -*) as_dir=./$as_dir;;
30034 esac
30035 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30036 as_dirs=
30037 while :; do
30038 case $as_dir in #(
30039 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30040 *) as_qdir=$as_dir;;
30041 esac
30042 as_dirs="'$as_qdir' $as_dirs"
30043 as_dir=`$as_dirname -- "$as_dir" ||
30044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30045 X"$as_dir" : 'X\(//\)[^/]' \| \
30046 X"$as_dir" : 'X\(//\)$' \| \
30047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30048 echo X"$as_dir" |
30049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30050 s//\1/
30053 /^X\(\/\/\)[^/].*/{
30054 s//\1/
30057 /^X\(\/\/\)$/{
30058 s//\1/
30061 /^X\(\/\).*/{
30062 s//\1/
30065 s/.*/./; q'`
30066 test -d "$as_dir" && break
30067 done
30068 test -z "$as_dirs" || eval "mkdir $as_dirs"
30069 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30070 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30071 { (exit 1); exit 1; }; }; }
30072 ac_builddir=.
30074 case "$ac_dir" in
30075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30078 # A ".." for each directory in $ac_dir_suffix.
30079 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30080 case $ac_top_builddir_sub in
30081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30083 esac ;;
30084 esac
30085 ac_abs_top_builddir=$ac_pwd
30086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30087 # for backward compatibility:
30088 ac_top_builddir=$ac_top_build_prefix
30090 case $srcdir in
30091 .) # We are building in place.
30092 ac_srcdir=.
30093 ac_top_srcdir=$ac_top_builddir_sub
30094 ac_abs_top_srcdir=$ac_pwd ;;
30095 [\\/]* | ?:[\\/]* ) # Absolute name.
30096 ac_srcdir=$srcdir$ac_dir_suffix;
30097 ac_top_srcdir=$srcdir
30098 ac_abs_top_srcdir=$srcdir ;;
30099 *) # Relative name.
30100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30101 ac_top_srcdir=$ac_top_build_prefix$srcdir
30102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30103 esac
30104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30107 case $ac_mode in
30110 # CONFIG_FILE
30113 case $INSTALL in
30114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30116 esac
30117 _ACEOF
30119 cat >>$CONFIG_STATUS <<\_ACEOF
30120 # If the template does not know about datarootdir, expand it.
30121 # FIXME: This hack should be removed a few years after 2.60.
30122 ac_datarootdir_hack=; ac_datarootdir_seen=
30124 case `sed -n '/datarootdir/ {
30128 /@datadir@/p
30129 /@docdir@/p
30130 /@infodir@/p
30131 /@localedir@/p
30132 /@mandir@/p
30133 ' $ac_file_inputs` in
30134 *datarootdir*) ac_datarootdir_seen=yes;;
30135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30136 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30137 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30138 _ACEOF
30139 cat >>$CONFIG_STATUS <<_ACEOF
30140 ac_datarootdir_hack='
30141 s&@datadir@&$datadir&g
30142 s&@docdir@&$docdir&g
30143 s&@infodir@&$infodir&g
30144 s&@localedir@&$localedir&g
30145 s&@mandir@&$mandir&g
30146 s&\\\${datarootdir}&$datarootdir&g' ;;
30147 esac
30148 _ACEOF
30150 # Neutralize VPATH when `$srcdir' = `.'.
30151 # Shell code in configure.ac might set extrasub.
30152 # FIXME: do we really want to maintain this feature?
30153 cat >>$CONFIG_STATUS <<_ACEOF
30154 sed "$ac_vpsub
30155 $extrasub
30156 _ACEOF
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30160 s&@configure_input@&$configure_input&;t t
30161 s&@top_builddir@&$ac_top_builddir_sub&;t t
30162 s&@srcdir@&$ac_srcdir&;t t
30163 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30164 s&@top_srcdir@&$ac_top_srcdir&;t t
30165 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30166 s&@builddir@&$ac_builddir&;t t
30167 s&@abs_builddir@&$ac_abs_builddir&;t t
30168 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30169 s&@INSTALL@&$ac_INSTALL&;t t
30170 $ac_datarootdir_hack
30171 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30176 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30177 which seems to be undefined. Please make sure it is defined." >&5
30178 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30179 which seems to be undefined. Please make sure it is defined." >&2;}
30181 rm -f "$tmp/stdin"
30182 case $ac_file in
30183 -) cat "$tmp/out"; rm -f "$tmp/out";;
30184 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30185 esac
30189 # CONFIG_HEADER
30191 _ACEOF
30193 # Transform confdefs.h into a sed script `conftest.defines', that
30194 # substitutes the proper values into config.h.in to produce config.h.
30195 rm -f conftest.defines conftest.tail
30196 # First, append a space to every undef/define line, to ease matching.
30197 echo 's/$/ /' >conftest.defines
30198 # Then, protect against being on the right side of a sed subst, or in
30199 # an unquoted here document, in config.status. If some macros were
30200 # called several times there might be several #defines for the same
30201 # symbol, which is useless. But do not sort them, since the last
30202 # AC_DEFINE must be honored.
30203 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30204 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30205 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30206 # PARAMS is the parameter list in the macro definition--in most cases, it's
30207 # just an empty string.
30208 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30209 ac_dB='\\)[ (].*,\\1define\\2'
30210 ac_dC=' '
30211 ac_dD=' ,'
30213 uniq confdefs.h |
30214 sed -n '
30215 t rset
30216 :rset
30217 s/^[ ]*#[ ]*define[ ][ ]*//
30218 t ok
30221 s/[\\&,]/\\&/g
30222 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30223 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30224 ' >>conftest.defines
30226 # Remove the space that was appended to ease matching.
30227 # Then replace #undef with comments. This is necessary, for
30228 # example, in the case of _POSIX_SOURCE, which is predefined and required
30229 # on some systems where configure will not decide to define it.
30230 # (The regexp can be short, since the line contains either #define or #undef.)
30231 echo 's/ $//
30232 s,^[ #]*u.*,/* & */,' >>conftest.defines
30234 # Break up conftest.defines:
30235 ac_max_sed_lines=50
30237 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30238 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30239 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30240 # et cetera.
30241 ac_in='$ac_file_inputs'
30242 ac_out='"$tmp/out1"'
30243 ac_nxt='"$tmp/out2"'
30245 while :
30247 # Write a here document:
30248 cat >>$CONFIG_STATUS <<_ACEOF
30249 # First, check the format of the line:
30250 cat >"\$tmp/defines.sed" <<\\CEOF
30251 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30252 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30254 :def
30255 _ACEOF
30256 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30257 echo 'CEOF
30258 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30259 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30260 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30261 grep . conftest.tail >/dev/null || break
30262 rm -f conftest.defines
30263 mv conftest.tail conftest.defines
30264 done
30265 rm -f conftest.defines conftest.tail
30267 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30268 cat >>$CONFIG_STATUS <<\_ACEOF
30269 if test x"$ac_file" != x-; then
30270 echo "/* $configure_input */" >"$tmp/config.h"
30271 cat "$ac_result" >>"$tmp/config.h"
30272 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30273 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30274 echo "$as_me: $ac_file is unchanged" >&6;}
30275 else
30276 rm -f $ac_file
30277 mv "$tmp/config.h" $ac_file
30279 else
30280 echo "/* $configure_input */"
30281 cat "$ac_result"
30283 rm -f "$tmp/out12"
30287 esac
30289 done # for ac_tag
30292 { (exit 0); exit 0; }
30293 _ACEOF
30294 chmod +x $CONFIG_STATUS
30295 ac_clean_files=$ac_clean_files_save
30298 # configure is writing to config.log, and then calls config.status.
30299 # config.status does its own redirection, appending to config.log.
30300 # Unfortunately, on DOS this fails, as config.log is still kept open
30301 # by configure, so config.status won't be able to write to it; its
30302 # output is simply discarded. So we exec the FD to /dev/null,
30303 # effectively closing config.log, so it can be properly (re)opened and
30304 # appended to by config.status. When coming back to configure, we
30305 # need to make the FD available again.
30306 if test "$no_create" != yes; then
30307 ac_cs_success=:
30308 ac_config_status_args=
30309 test "$silent" = yes &&
30310 ac_config_status_args="$ac_config_status_args --quiet"
30311 exec 5>/dev/null
30312 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30313 exec 5>>config.log
30314 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30315 # would make configure fail if this is the last instruction.
30316 $ac_cs_success || { (exit 1); exit 1; }
30320 if test "x${silent}" != "xyes" ; then
30321 echo
30322 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30323 echo " .\$7\$7.. .7\$\$7:. "
30324 echo " .\$\$:. ,\$7.7 "
30325 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30326 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30327 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30328 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30329 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30330 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30331 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30332 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30333 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30334 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30335 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30336 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30337 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30338 echo " \$\$\$\$\$ \$\$\$ "
30339 echo " \$\$\$\$7. \$\$ (TM) "
30340 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30341 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30342 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30343 echo
30346 { echo "$as_me:$LINENO: Package configured for: " >&5
30347 echo "$as_me: Package configured for: " >&6;}
30348 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30349 echo "$as_me: OS type : $host_os" >&6;}
30350 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30351 echo "$as_me: Host CPU : $host_cpu" >&6;}
30352 if test "${cross_compiling}" = "yes"; then
30353 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30354 echo "$as_me: Cross Compilation = YES" >&6;}