use the ACX_PTHREAD macro from the Autoconf macro archive for setting up compiler...
[asterisk-bristuff.git] / configure
blob9273a4657191e57b9e009bb4ba030075dbb1e030
1 #! /bin/sh
2 # From configure.ac Revision: 49866 .
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 acx_pthread_config
715 PTHREAD_CC
716 PTHREAD_LIBS
717 PTHREAD_CFLAGS
718 AST_DEVMODE
719 ALSA_LIB
720 ALSA_INCLUDE
721 PBX_ALSA
722 CURL_LIB
723 CURL_INCLUDE
724 PBX_CURL
725 CURSES_LIB
726 CURSES_INCLUDE
727 PBX_CURSES
728 GNUTLS_LIB
729 GNUTLS_INCLUDE
730 PBX_GNUTLS
731 GSM_LIB
732 GSM_INCLUDE
733 PBX_GSM
734 IKSEMEL_LIB
735 IKSEMEL_INCLUDE
736 PBX_IKSEMEL
737 IMAP_TK_LIB
738 IMAP_TK_INCLUDE
739 PBX_IMAP_TK
740 ISDNNET_LIB
741 ISDNNET_INCLUDE
742 PBX_ISDNNET
743 KDE_LIB
744 KDE_INCLUDE
745 PBX_KDE
746 MISDN_LIB
747 MISDN_INCLUDE
748 PBX_MISDN
749 NBS_LIB
750 NBS_INCLUDE
751 PBX_NBS
752 NCURSES_LIB
753 NCURSES_INCLUDE
754 PBX_NCURSES
755 NETSNMP_LIB
756 NETSNMP_INCLUDE
757 PBX_NETSNMP
758 NEWT_LIB
759 NEWT_INCLUDE
760 PBX_NEWT
761 UNIXODBC_LIB
762 UNIXODBC_INCLUDE
763 PBX_UNIXODBC
764 OGG_LIB
765 OGG_INCLUDE
766 PBX_OGG
767 OSPTK_LIB
768 OSPTK_INCLUDE
769 PBX_OSPTK
770 OSS_LIB
771 OSS_INCLUDE
772 PBX_OSS
773 POPT_LIB
774 POPT_INCLUDE
775 PBX_POPT
776 PGSQL_LIB
777 PGSQL_INCLUDE
778 PBX_PGSQL
779 PRI_LIB
780 PRI_INCLUDE
781 PBX_PRI
782 PWLIB_LIB
783 PWLIB_INCLUDE
784 PBX_PWLIB
785 OPENH323_LIB
786 OPENH323_INCLUDE
787 PBX_OPENH323
788 QT_LIB
789 QT_INCLUDE
790 PBX_QT
791 RADIUS_LIB
792 RADIUS_INCLUDE
793 PBX_RADIUS
794 SPEEX_LIB
795 SPEEX_INCLUDE
796 PBX_SPEEX
797 SQLITE_LIB
798 SQLITE_INCLUDE
799 PBX_SQLITE
800 SUPPSERV_LIB
801 SUPPSERV_INCLUDE
802 PBX_SUPPSERV
803 OPENSSL_LIB
804 OPENSSL_INCLUDE
805 PBX_OPENSSL
806 FREETDS_LIB
807 FREETDS_INCLUDE
808 PBX_FREETDS
809 TERMCAP_LIB
810 TERMCAP_INCLUDE
811 PBX_TERMCAP
812 TINFO_LIB
813 TINFO_INCLUDE
814 PBX_TINFO
815 TONEZONE_LIB
816 TONEZONE_INCLUDE
817 PBX_TONEZONE
818 VORBIS_LIB
819 VORBIS_INCLUDE
820 PBX_VORBIS
821 VPB_LIB
822 VPB_INCLUDE
823 PBX_VPB
824 ZLIB_LIB
825 ZLIB_INCLUDE
826 PBX_ZLIB
827 ZAPTEL_LIB
828 ZAPTEL_INCLUDE
829 PBX_ZAPTEL
830 ALLOCA
831 LIBOBJS
832 POW_LIB
833 GC_CFLAGS
834 GC_LDFLAGS
835 GSM_INTERNAL
836 KDEINIT
837 KDEDIR
838 NETSNMP_CONFIG
839 PG_CONFIG
840 PTLIB_CONFIG
841 PWLIBDIR
842 PWLIB_INCDIR
843 PWLIB_LIBDIR
844 PWLIB_PLATFORM
845 OPENH323DIR
846 OPENH323_INCDIR
847 OPENH323_LIBDIR
848 OPENH323_SUFFIX
849 OPENH323_BUILD
850 QTMOC
851 PBX_ZAPTEL_VLDTMF
852 PBX_ZAPTEL_TRANSCODE
853 EDITLINE_LIB
854 PBX_H323
855 PBX_IXJUSER
856 GTKCONFIG
857 PBX_GTK
858 GTK_INCLUDE
859 GTK_LIB
860 CURL_CONFIG
861 LTLIBOBJS'
862 ac_subst_files=''
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
873 CXXFLAGS
875 CXXCPP'
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
924 ac_prev=
925 ac_dashdash=
926 for ac_option
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
931 ac_prev=
932 continue
935 case $ac_option in
936 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 *) ac_optarg=yes ;;
938 esac
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
944 ac_dashdash=yes ;;
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 ac_prev=bindir ;;
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949 bindir=$ac_optarg ;;
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
963 --config-cache | -C)
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
967 ac_prev=datadir ;;
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985 eval enable_$ac_feature=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
988 ac_prev=docdir ;;
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 docdir=$ac_optarg ;;
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 ac_prev=dvidir ;;
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 dvidir=$ac_optarg ;;
997 -enable-* | --enable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=\$ac_optarg ;;
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1194 -with-* | --with-*)
1195 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid package name: $ac_package" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201 eval with_$ac_package=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_$ac_package=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 # Be sure to have absolute directory names.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1274 done
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { echo "$as_me: error: Working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$0" : 'X\(//\)[^/]' \| \
1317 X"$0" : 'X\(//\)$' \| \
1318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319 echo X"$0" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1433 cat <<\_ACEOF
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1441 if test -n "$ac_init_help"; then
1443 cat <<\_ACEOF
1445 Optional Features:
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-dev-mode Turn on developer mode
1449 --disable-largefile omit support for large files
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1456 --with-curl=PATH use cURL files in PATH
1457 --with-curses=PATH use curses files in PATH
1458 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1459 PATH
1460 --with-gsm=PATH use GSM files in PATH , or 'internal'
1461 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1462 --with-imap=PATH use UW IMAP Toolkit files in PATH
1463 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1464 --with-kde=PATH use KDE files in PATH
1465 --with-misdn=PATH use mISDN User Library files in PATH
1466 --with-nbs=PATH use Network Broadcast Sound files in PATH
1467 --with-ncurses=PATH use ncurses files in PATH
1468 --with-netsnmp=PATH use Net-SNMP files in PATH
1469 --with-newt=PATH use newt files in PATH
1470 --with-odbc=PATH use unixODBC files in PATH
1471 --with-ogg=PATH use OGG files in PATH
1472 --with-osptk=PATH use OSP Toolkit files in PATH
1473 --with-oss=PATH use Open Sound System files in PATH
1474 --with-popt=PATH use popt files in PATH
1475 --with-postgres=PATH use PostgreSQL files in PATH
1476 --with-pri=PATH use ISDN PRI files in PATH
1477 --with-pwlib=PATH use PWlib files in PATH
1478 --with-h323=PATH use OpenH323 files in PATH
1479 --with-qt=PATH use Qt files in PATH
1480 --with-radius=PATH use Radius Client files in PATH
1481 --with-speex=PATH use Speex files in PATH
1482 --with-sqlite=PATH use SQLite files in PATH
1483 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1484 --with-ssl=PATH use OpenSSL files in PATH
1485 --with-tds=PATH use FreeTDS files in PATH
1486 --with-termcap=PATH use Termcap files in PATH
1487 --with-tinfo=PATH use Term Info files in PATH
1488 --with-tonezone=PATH use tonezone files in PATH
1489 --with-vorbis=PATH use Vorbis files in PATH
1490 --with-vpb=PATH use Voicetronix API files in PATH
1491 --with-z=PATH use zlib files in PATH
1492 --with-zaptel=PATH use Zaptel files in PATH
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 CXX C++ compiler command
1504 CXXFLAGS C++ compiler flags
1505 CXXCPP C++ preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 _ACEOF
1511 ac_status=$?
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 configure
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1578 "Asterisk"
1579 _ACEOF
1580 exit
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1586 It was created by $as_me, which was
1587 generated by GNU Autoconf 2.61. Invocation command line was
1589 $ $0 $@
1591 _ACEOF
1592 exec 5>>config.log
1594 cat <<_ASUNAME
1595 ## --------- ##
1596 ## Platform. ##
1597 ## --------- ##
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1609 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1612 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1613 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1614 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 _ASUNAME
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1624 done
1625 IFS=$as_save_IFS
1627 } >&5
1629 cat >&5 <<_ACEOF
1632 ## ----------- ##
1633 ## Core tests. ##
1634 ## ----------- ##
1636 _ACEOF
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_configure_args=
1645 ac_configure_args0=
1646 ac_configure_args1=
1647 ac_must_keep_next=false
1648 for ac_pass in 1 2
1650 for ac_arg
1652 case $ac_arg in
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1656 continue ;;
1657 *\'*)
1658 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 esac
1660 case $ac_pass in
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1666 else
1667 case $ac_arg in
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 esac
1676 -* ) ac_must_keep_next=true ;;
1677 esac
1679 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 esac
1682 done
1683 done
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log. We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1695 echo
1697 cat <<\_ASBOX
1698 ## ---------------- ##
1699 ## Cache variables. ##
1700 ## ---------------- ##
1701 _ASBOX
1702 echo
1703 # The following way of writing the cache mishandles newlines in values,
1705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706 eval ac_val=\$$ac_var
1707 case $ac_val in #(
1708 *${as_nl}*)
1709 case $ac_var in #(
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 esac
1713 case $ac_var in #(
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1716 esac ;;
1717 esac
1718 done
1719 (set) 2>&1 |
1720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
1722 sed -n \
1723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 ;; #(
1727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 esac |
1730 sort
1732 echo
1734 cat <<\_ASBOX
1735 ## ----------------- ##
1736 ## Output variables. ##
1737 ## ----------------- ##
1738 _ASBOX
1739 echo
1740 for ac_var in $ac_subst_vars
1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
1747 done | sort
1748 echo
1750 if test -n "$ac_subst_files"; then
1751 cat <<\_ASBOX
1752 ## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##
1755 _ASBOX
1756 echo
1757 for ac_var in $ac_subst_files
1759 eval ac_val=\$$ac_var
1760 case $ac_val in
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 esac
1763 echo "$ac_var='\''$ac_val'\''"
1764 done | sort
1765 echo
1768 if test -s confdefs.h; then
1769 cat <<\_ASBOX
1770 ## ----------- ##
1771 ## confdefs.h. ##
1772 ## ----------- ##
1773 _ASBOX
1774 echo
1775 cat confdefs.h
1776 echo
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1781 } >&5
1782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 exit $exit_status
1786 for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788 done
1789 ac_signal=0
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1794 # Predefined preprocessor variables.
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_NAME "$PACKAGE_NAME"
1798 _ACEOF
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 _ACEOF
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1808 _ACEOF
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1813 _ACEOF
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818 _ACEOF
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 else
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
1831 shift
1832 for ac_site_file
1834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1838 . "$ac_site_file"
1840 done
1842 if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1848 case $cache_file in
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
1851 esac
1853 else
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1856 >$cache_file
1859 ac_header_list="$ac_header_list sys/time.h"
1860 ac_header_list="$ac_header_list unistd.h"
1861 ac_func_list="$ac_func_list alarm"
1862 ac_header_list="$ac_header_list utime.h"
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1872 set,)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,set)
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,);;
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886 echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888 echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1890 fi;;
1891 esac
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1894 case $ac_new_val in
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1897 esac
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901 esac
1903 done
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 # cross-compile macros
1937 ac_aux_dir=
1938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
1943 elif test -f "$ac_dir/install.sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 break
1947 elif test -f "$ac_dir/shtool"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1952 done
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Make sure we can run config.sub.
1969 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1970 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1971 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1972 { (exit 1); exit 1; }; }
1974 { echo "$as_me:$LINENO: checking build system type" >&5
1975 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1976 if test "${ac_cv_build+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 ac_build_alias=$build_alias
1980 test "x$ac_build_alias" = x &&
1981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1982 test "x$ac_build_alias" = x &&
1983 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1984 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1985 { (exit 1); exit 1; }; }
1986 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1987 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1989 { (exit 1); exit 1; }; }
1992 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1993 echo "${ECHO_T}$ac_cv_build" >&6; }
1994 case $ac_cv_build in
1995 *-*-*) ;;
1996 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1997 echo "$as_me: error: invalid value of canonical build" >&2;}
1998 { (exit 1); exit 1; }; };;
1999 esac
2000 build=$ac_cv_build
2001 ac_save_IFS=$IFS; IFS='-'
2002 set x $ac_cv_build
2003 shift
2004 build_cpu=$1
2005 build_vendor=$2
2006 shift; shift
2007 # Remember, the first character of IFS is used to create $*,
2008 # except with old shells:
2009 build_os=$*
2010 IFS=$ac_save_IFS
2011 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2014 { echo "$as_me:$LINENO: checking host system type" >&5
2015 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2016 if test "${ac_cv_host+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 if test "x$host_alias" = x; then
2020 ac_cv_host=$ac_cv_build
2021 else
2022 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2023 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2024 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2025 { (exit 1); exit 1; }; }
2029 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2030 echo "${ECHO_T}$ac_cv_host" >&6; }
2031 case $ac_cv_host in
2032 *-*-*) ;;
2033 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2034 echo "$as_me: error: invalid value of canonical host" >&2;}
2035 { (exit 1); exit 1; }; };;
2036 esac
2037 host=$ac_cv_host
2038 ac_save_IFS=$IFS; IFS='-'
2039 set x $ac_cv_host
2040 shift
2041 host_cpu=$1
2042 host_vendor=$2
2043 shift; shift
2044 # Remember, the first character of IFS is used to create $*,
2045 # except with old shells:
2046 host_os=$*
2047 IFS=$ac_save_IFS
2048 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2052 # check existence of the package
2055 # specify output header file
2056 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2063 cat >>confdefs.h <<\_ACEOF
2064 #define _GNU_SOURCE 1
2065 _ACEOF
2068 ac_ext=c
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073 if test -n "$ac_tool_prefix"; then
2074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2095 done
2096 done
2097 IFS=$as_save_IFS
2101 CC=$ac_cv_prog_CC
2102 if test -n "$CC"; then
2103 { echo "$as_me:$LINENO: result: $CC" >&5
2104 echo "${ECHO_T}$CC" >&6; }
2105 else
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2112 if test -z "$ac_cv_prog_CC"; then
2113 ac_ct_CC=$CC
2114 # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc; ac_word=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_ac_ct_CC="gcc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2135 done
2136 done
2137 IFS=$as_save_IFS
2141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144 echo "${ECHO_T}$ac_ct_CC" >&6; }
2145 else
2146 { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2150 if test "x$ac_ct_CC" = x; then
2151 CC=""
2152 else
2153 case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet. If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&5
2158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2161 ac_tool_warned=yes ;;
2162 esac
2163 CC=$ac_ct_CC
2165 else
2166 CC="$ac_cv_prog_CC"
2169 if test -z "$CC"; then
2170 if test -n "$ac_tool_prefix"; then
2171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}cc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_CC="${ac_tool_prefix}cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2194 IFS=$as_save_IFS
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200 { echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6; }
2202 else
2203 { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2210 if test -z "$CC"; then
2211 # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 ac_prog_rejected=no
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2230 ac_prog_rejected=yes
2231 continue
2233 ac_cv_prog_CC="cc"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2237 done
2238 done
2239 IFS=$as_save_IFS
2241 if test $ac_prog_rejected = yes; then
2242 # We found a bogon in the path, so make sure we never use it.
2243 set dummy $ac_cv_prog_CC
2244 shift
2245 if test $# != 0; then
2246 # We chose a different compiler from the bogus one.
2247 # However, it has the same basename, so the bogon will be chosen
2248 # first if we set CC to just the basename; use the full file name.
2249 shift
2250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2259 else
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2266 if test -z "$CC"; then
2267 if test -n "$ac_tool_prefix"; then
2268 for ac_prog in cl.exe
2270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2291 done
2292 done
2293 IFS=$as_save_IFS
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299 { echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6; }
2301 else
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2307 test -n "$CC" && break
2308 done
2310 if test -z "$CC"; then
2311 ac_ct_CC=$CC
2312 for ac_prog in cl.exe
2314 # Extract the first word of "$ac_prog", so it can be a program name with args.
2315 set dummy $ac_prog; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test -n "$ac_ct_CC"; then
2322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_CC="$ac_prog"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2335 done
2336 done
2337 IFS=$as_save_IFS
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6; }
2345 else
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2351 test -n "$ac_ct_CC" && break
2352 done
2354 if test "x$ac_ct_CC" = x; then
2355 CC=""
2356 else
2357 case $cross_compiling:$ac_tool_warned in
2358 yes:)
2359 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&5
2362 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2365 ac_tool_warned=yes ;;
2366 esac
2367 CC=$ac_ct_CC
2374 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2380 # Provide some information about the compiler.
2381 echo "$as_me:$LINENO: checking for C compiler version" >&5
2382 ac_compiler=`set X $ac_compile; echo $2`
2383 { (ac_try="$ac_compiler --version >&5"
2384 case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compiler --version >&5") 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2393 { (ac_try="$ac_compiler -v >&5"
2394 case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compiler -v >&5") 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2403 { (ac_try="$ac_compiler -V >&5"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compiler -V >&5") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2422 main ()
2426 return 0;
2428 _ACEOF
2429 ac_clean_files_save=$ac_clean_files
2430 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2431 # Try to create an executable without -o first, disregard a.out.
2432 # It will help us diagnose broken compilers, and finding out an intuition
2433 # of exeext.
2434 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2435 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2436 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2438 # List of possible output files, starting from the most likely.
2439 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2440 # only as a last resort. b.out is created by i960 compilers.
2441 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2443 # The IRIX 6 linker writes into existing files which may not be
2444 # executable, retaining their permissions. Remove them first so a
2445 # subsequent execution test works.
2446 ac_rmfiles=
2447 for ac_file in $ac_files
2449 case $ac_file in
2450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2452 esac
2453 done
2454 rm -f $ac_rmfiles
2456 if { (ac_try="$ac_link_default"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462 (eval "$ac_link_default") 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; then
2466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2467 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2468 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2469 # so that the user can short-circuit this test for compilers unknown to
2470 # Autoconf.
2471 for ac_file in $ac_files ''
2473 test -f "$ac_file" || continue
2474 case $ac_file in
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2477 [ab].out )
2478 # We found the default executable, but exeext='' is most
2479 # certainly right.
2480 break;;
2481 *.* )
2482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2483 then :; else
2484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2486 # We set ac_cv_exeext here because the later test for it is not
2487 # safe: cross compilers may not add the suffix if given an `-o'
2488 # argument, so we may need to know it at that point already.
2489 # Even if this section looks crufty: it has the advantage of
2490 # actually working.
2491 break;;
2493 break;;
2494 esac
2495 done
2496 test "$ac_cv_exeext" = no && ac_cv_exeext=
2498 else
2499 ac_file=''
2502 { echo "$as_me:$LINENO: result: $ac_file" >&5
2503 echo "${ECHO_T}$ac_file" >&6; }
2504 if test -z "$ac_file"; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: C compiler cannot create executables
2511 See \`config.log' for more details." >&2;}
2512 { (exit 77); exit 77; }; }
2515 ac_exeext=$ac_cv_exeext
2517 # Check that the compiler produces executables we can run. If not, either
2518 # the compiler is broken, or we cross compile.
2519 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2520 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2521 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2522 # If not cross compiling, check that we can run a simple program.
2523 if test "$cross_compiling" != yes; then
2524 if { ac_try='./$ac_file'
2525 { (case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_try") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 cross_compiling=no
2535 else
2536 if test "$cross_compiling" = maybe; then
2537 cross_compiling=yes
2538 else
2539 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2540 If you meant to cross compile, use \`--host'.
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: cannot run C compiled programs.
2543 If you meant to cross compile, use \`--host'.
2544 See \`config.log' for more details." >&2;}
2545 { (exit 1); exit 1; }; }
2549 { echo "$as_me:$LINENO: result: yes" >&5
2550 echo "${ECHO_T}yes" >&6; }
2552 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2553 ac_clean_files=$ac_clean_files_save
2554 # Check that the compiler produces executables we can run. If not, either
2555 # the compiler is broken, or we cross compile.
2556 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2557 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2558 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2559 echo "${ECHO_T}$cross_compiling" >&6; }
2561 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2562 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2563 if { (ac_try="$ac_link"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_link") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; then
2573 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2574 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2575 # work properly (i.e., refer to `conftest.exe'), while it won't with
2576 # `rm'.
2577 for ac_file in conftest.exe conftest conftest.*; do
2578 test -f "$ac_file" || continue
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2582 break;;
2583 * ) break;;
2584 esac
2585 done
2586 else
2587 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }
2594 rm -f conftest$ac_cv_exeext
2595 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2596 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2598 rm -f conftest.$ac_ext
2599 EXEEXT=$ac_cv_exeext
2600 ac_exeext=$EXEEXT
2601 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2602 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2603 if test "${ac_cv_objext+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h. */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2614 main ()
2618 return 0;
2620 _ACEOF
2621 rm -f conftest.o conftest.obj
2622 if { (ac_try="$ac_compile"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compile") 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 for ac_file in conftest.o conftest.obj conftest.*; do
2633 test -f "$ac_file" || continue;
2634 case $ac_file in
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2636 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2637 break;;
2638 esac
2639 done
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2644 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2645 See \`config.log' for more details." >&5
2646 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2647 See \`config.log' for more details." >&2;}
2648 { (exit 1); exit 1; }; }
2651 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2653 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2654 echo "${ECHO_T}$ac_cv_objext" >&6; }
2655 OBJEXT=$ac_cv_objext
2656 ac_objext=$OBJEXT
2657 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2658 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2659 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2670 main ()
2672 #ifndef __GNUC__
2673 choke me
2674 #endif
2677 return 0;
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (ac_try="$ac_compile"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2697 ac_compiler_gnu=yes
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2702 ac_compiler_gnu=no
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2709 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2710 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2711 GCC=`test $ac_compiler_gnu = yes && echo yes`
2712 ac_test_CFLAGS=${CFLAGS+set}
2713 ac_save_CFLAGS=$CFLAGS
2714 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2715 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_cc_g+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 ac_save_c_werror_flag=$ac_c_werror_flag
2720 ac_c_werror_flag=yes
2721 ac_cv_prog_cc_g=no
2722 CFLAGS="-g"
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2731 main ()
2735 return 0;
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.$ac_objext; then
2755 ac_cv_prog_cc_g=yes
2756 else
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2760 CFLAGS=""
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2769 main ()
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2798 ac_c_werror_flag=$ac_save_c_werror_flag
2799 CFLAGS="-g"
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2808 main ()
2812 return 0;
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2832 ac_cv_prog_cc_g=yes
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_c_werror_flag=$ac_save_c_werror_flag
2849 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2850 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2851 if test "$ac_test_CFLAGS" = set; then
2852 CFLAGS=$ac_save_CFLAGS
2853 elif test $ac_cv_prog_cc_g = yes; then
2854 if test "$GCC" = yes; then
2855 CFLAGS="-g -O2"
2856 else
2857 CFLAGS="-g"
2859 else
2860 if test "$GCC" = yes; then
2861 CFLAGS="-O2"
2862 else
2863 CFLAGS=
2866 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2867 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_cc_c89+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 ac_cv_prog_cc_c89=no
2872 ac_save_CC=$CC
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 #include <stdarg.h>
2880 #include <stdio.h>
2881 #include <sys/types.h>
2882 #include <sys/stat.h>
2883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884 struct buf { int x; };
2885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886 static char *e (p, i)
2887 char **p;
2888 int i;
2890 return p[i];
2892 static char *f (char * (*g) (char **, int), char **p, ...)
2894 char *s;
2895 va_list v;
2896 va_start (v,p);
2897 s = g (p, va_arg (v,int));
2898 va_end (v);
2899 return s;
2902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2903 function prototypes and stuff, but not '\xHH' hex character constants.
2904 These don't provoke an error unfortunately, instead are silently treated
2905 as 'x'. The following induces an error, until -std is added to get
2906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2907 array size at least. It's necessary to write '\x00'==0 to get something
2908 that's true only with -std. */
2909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2912 inside strings and character constants. */
2913 #define FOO(x) 'x'
2914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2916 int test (int i, double x);
2917 struct s1 {int (*f) (int a);};
2918 struct s2 {int (*f) (double a);};
2919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920 int argc;
2921 char **argv;
2923 main ()
2925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2927 return 0;
2929 _ACEOF
2930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2933 CC="$ac_save_CC $ac_arg"
2934 rm -f conftest.$ac_objext
2935 if { (ac_try="$ac_compile"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2951 ac_cv_prog_cc_c89=$ac_arg
2952 else
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2959 rm -f core conftest.err conftest.$ac_objext
2960 test "x$ac_cv_prog_cc_c89" != "xno" && break
2961 done
2962 rm -f conftest.$ac_ext
2963 CC=$ac_save_CC
2966 # AC_CACHE_VAL
2967 case "x$ac_cv_prog_cc_c89" in
2969 { echo "$as_me:$LINENO: result: none needed" >&5
2970 echo "${ECHO_T}none needed" >&6; } ;;
2971 xno)
2972 { echo "$as_me:$LINENO: result: unsupported" >&5
2973 echo "${ECHO_T}unsupported" >&6; } ;;
2975 CC="$CC $ac_cv_prog_cc_c89"
2976 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2977 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2978 esac
2981 ac_ext=c
2982 ac_cpp='$CPP $CPPFLAGS'
2983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 ac_ext=c
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2997 CPP=
2999 if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3006 ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #ifdef __STDC__
3022 # include <limits.h>
3023 #else
3024 # include <assert.h>
3025 #endif
3026 Syntax error
3027 _ACEOF
3028 if { (ac_try="$ac_cpp conftest.$ac_ext"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null && {
3041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 }; then
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 # Broken: fails on valid input.
3050 continue
3053 rm -f conftest.err conftest.$ac_ext
3055 # OK, works on sane cases. Now check whether nonexistent headers
3056 # can be detected and how.
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #include <ac_nonexistent.h>
3064 _ACEOF
3065 if { (ac_try="$ac_cpp conftest.$ac_ext"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null && {
3078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 }; then
3081 # Broken: success on invalid input.
3082 continue
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 # Passes both tests.
3088 ac_preproc_ok=:
3089 break
3092 rm -f conftest.err conftest.$ac_ext
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3098 break
3101 done
3102 ac_cv_prog_CPP=$CPP
3105 CPP=$ac_cv_prog_CPP
3106 else
3107 ac_cv_prog_CPP=$CPP
3109 { echo "$as_me:$LINENO: result: $CPP" >&5
3110 echo "${ECHO_T}$CPP" >&6; }
3111 ac_preproc_ok=false
3112 for ac_c_preproc_warn_flag in '' yes
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #ifdef __STDC__
3127 # include <limits.h>
3128 #else
3129 # include <assert.h>
3130 #endif
3131 Syntax error
3132 _ACEOF
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null && {
3146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 }; then
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 # Broken: fails on valid input.
3155 continue
3158 rm -f conftest.err conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether nonexistent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <ac_nonexistent.h>
3169 _ACEOF
3170 if { (ac_try="$ac_cpp conftest.$ac_ext"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null && {
3183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 }; then
3186 # Broken: success on invalid input.
3187 continue
3188 else
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 # Passes both tests.
3193 ac_preproc_ok=:
3194 break
3197 rm -f conftest.err conftest.$ac_ext
3199 done
3200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3201 rm -f conftest.err conftest.$ac_ext
3202 if $ac_preproc_ok; then
3204 else
3205 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3208 See \`config.log' for more details." >&2;}
3209 { (exit 1); exit 1; }; }
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3220 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3221 if test "${ac_cv_path_GREP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 # Extract the first word of "grep ggrep" to use in msg output
3225 if test -z "$GREP"; then
3226 set dummy grep ggrep; ac_prog_name=$2
3227 if test "${ac_cv_path_GREP+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 ac_path_GREP_found=false
3231 # Loop through the user's path and test for each of PROGNAME-LIST
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_prog in grep ggrep; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3241 # Check for GNU ac_path_GREP and select it if it is found.
3242 # Check for GNU $ac_path_GREP
3243 case `"$ac_path_GREP" --version 2>&1` in
3244 *GNU*)
3245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3247 ac_count=0
3248 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3249 while :
3251 cat "conftest.in" "conftest.in" >"conftest.tmp"
3252 mv "conftest.tmp" "conftest.in"
3253 cp "conftest.in" "conftest.nl"
3254 echo 'GREP' >> "conftest.nl"
3255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3257 ac_count=`expr $ac_count + 1`
3258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3259 # Best one so far, save it but keep looking for a better one
3260 ac_cv_path_GREP="$ac_path_GREP"
3261 ac_path_GREP_max=$ac_count
3263 # 10*(2^10) chars as input seems more than enough
3264 test $ac_count -gt 10 && break
3265 done
3266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3267 esac
3270 $ac_path_GREP_found && break 3
3271 done
3272 done
3274 done
3275 IFS=$as_save_IFS
3280 GREP="$ac_cv_path_GREP"
3281 if test -z "$GREP"; then
3282 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3283 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3284 { (exit 1); exit 1; }; }
3287 else
3288 ac_cv_path_GREP=$GREP
3293 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3294 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3295 GREP="$ac_cv_path_GREP"
3298 { echo "$as_me:$LINENO: checking for egrep" >&5
3299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3300 if test "${ac_cv_path_EGREP+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3304 then ac_cv_path_EGREP="$GREP -E"
3305 else
3306 # Extract the first word of "egrep" to use in msg output
3307 if test -z "$EGREP"; then
3308 set dummy egrep; ac_prog_name=$2
3309 if test "${ac_cv_path_EGREP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 ac_path_EGREP_found=false
3313 # Loop through the user's path and test for each of PROGNAME-LIST
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_prog in egrep; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3322 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3323 # Check for GNU ac_path_EGREP and select it if it is found.
3324 # Check for GNU $ac_path_EGREP
3325 case `"$ac_path_EGREP" --version 2>&1` in
3326 *GNU*)
3327 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3329 ac_count=0
3330 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3331 while :
3333 cat "conftest.in" "conftest.in" >"conftest.tmp"
3334 mv "conftest.tmp" "conftest.in"
3335 cp "conftest.in" "conftest.nl"
3336 echo 'EGREP' >> "conftest.nl"
3337 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3339 ac_count=`expr $ac_count + 1`
3340 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3341 # Best one so far, save it but keep looking for a better one
3342 ac_cv_path_EGREP="$ac_path_EGREP"
3343 ac_path_EGREP_max=$ac_count
3345 # 10*(2^10) chars as input seems more than enough
3346 test $ac_count -gt 10 && break
3347 done
3348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3349 esac
3352 $ac_path_EGREP_found && break 3
3353 done
3354 done
3356 done
3357 IFS=$as_save_IFS
3362 EGREP="$ac_cv_path_EGREP"
3363 if test -z "$EGREP"; then
3364 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3365 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3366 { (exit 1); exit 1; }; }
3369 else
3370 ac_cv_path_EGREP=$EGREP
3376 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3377 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3378 EGREP="$ac_cv_path_EGREP"
3382 { echo "$as_me:$LINENO: checking for AIX" >&5
3383 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #ifdef _AIX
3392 #endif
3394 _ACEOF
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 $EGREP "yes" >/dev/null 2>&1; then
3397 { echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6; }
3399 cat >>confdefs.h <<\_ACEOF
3400 #define _ALL_SOURCE 1
3401 _ACEOF
3403 else
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3407 rm -f conftest*
3410 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3411 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3412 if test "${ac_cv_header_stdc+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <stdlib.h>
3422 #include <stdarg.h>
3423 #include <string.h>
3424 #include <float.h>
3427 main ()
3431 return 0;
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3451 ac_cv_header_stdc=yes
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 ac_cv_header_stdc=no
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 if test $ac_cv_header_stdc = yes; then
3462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <string.h>
3471 _ACEOF
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 $EGREP "memchr" >/dev/null 2>&1; then
3475 else
3476 ac_cv_header_stdc=no
3478 rm -f conftest*
3482 if test $ac_cv_header_stdc = yes; then
3483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include <stdlib.h>
3492 _ACEOF
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 $EGREP "free" >/dev/null 2>&1; then
3496 else
3497 ac_cv_header_stdc=no
3499 rm -f conftest*
3503 if test $ac_cv_header_stdc = yes; then
3504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3505 if test "$cross_compiling" = yes; then
3507 else
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ctype.h>
3515 #include <stdlib.h>
3516 #if ((' ' & 0x0FF) == 0x020)
3517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3519 #else
3520 # define ISLOWER(c) \
3521 (('a' <= (c) && (c) <= 'i') \
3522 || ('j' <= (c) && (c) <= 'r') \
3523 || ('s' <= (c) && (c) <= 'z'))
3524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3525 #endif
3527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3529 main ()
3531 int i;
3532 for (i = 0; i < 256; i++)
3533 if (XOR (islower (i), ISLOWER (i))
3534 || toupper (i) != TOUPPER (i))
3535 return 2;
3536 return 0;
3538 _ACEOF
3539 rm -f conftest$ac_exeext
3540 if { (ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_try") 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3560 else
3561 echo "$as_me: program exited with status $ac_status" >&5
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 ( exit $ac_status )
3566 ac_cv_header_stdc=no
3568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3574 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3575 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3576 if test $ac_cv_header_stdc = yes; then
3578 cat >>confdefs.h <<\_ACEOF
3579 #define STDC_HEADERS 1
3580 _ACEOF
3584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3595 inttypes.h stdint.h unistd.h
3597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 $ac_includes_default
3611 #include <$ac_header>
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 eval "$as_ac_Header=yes"
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 eval "$as_ac_Header=no"
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_res=`eval echo '${'$as_ac_Header'}'`
3641 { echo "$as_me:$LINENO: result: $ac_res" >&5
3642 echo "${ECHO_T}$ac_res" >&6; }
3643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3644 cat >>confdefs.h <<_ACEOF
3645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3646 _ACEOF
3650 done
3653 if test "${ac_cv_header_minix_config_h+set}" = set; then
3654 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3655 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3656 if test "${ac_cv_header_minix_config_h+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3660 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3661 else
3662 # Is the header compilable?
3663 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3664 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3672 #include <minix/config.h>
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_header_compiler=yes
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_header_compiler=no
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3701 echo "${ECHO_T}$ac_header_compiler" >&6; }
3703 # Is the header present?
3704 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3705 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h. */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <minix/config.h>
3713 _ACEOF
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3721 ac_status=$?
3722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } >/dev/null && {
3727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 }; then
3730 ac_header_preproc=yes
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 ac_header_preproc=no
3738 rm -f conftest.err conftest.$ac_ext
3739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3740 echo "${ECHO_T}$ac_header_preproc" >&6; }
3742 # So? What about this header?
3743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3744 yes:no: )
3745 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3746 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3748 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3749 ac_header_preproc=yes
3751 no:yes:* )
3752 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3753 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3755 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3757 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3759 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3760 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3761 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3762 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3763 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3766 esac
3767 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3768 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3769 if test "${ac_cv_header_minix_config_h+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 ac_cv_header_minix_config_h=$ac_header_preproc
3774 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3775 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3778 if test $ac_cv_header_minix_config_h = yes; then
3779 MINIX=yes
3780 else
3781 MINIX=
3785 if test "$MINIX" = yes; then
3787 cat >>confdefs.h <<\_ACEOF
3788 #define _POSIX_SOURCE 1
3789 _ACEOF
3792 cat >>confdefs.h <<\_ACEOF
3793 #define _POSIX_1_SOURCE 2
3794 _ACEOF
3797 cat >>confdefs.h <<\_ACEOF
3798 #define _MINIX 1
3799 _ACEOF
3813 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3814 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3815 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3825 # define __EXTENSIONS__ 1
3826 $ac_includes_default
3828 main ()
3832 return 0;
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3852 ac_cv_safe_to_define___extensions__=yes
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_cv_safe_to_define___extensions__=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3863 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3864 test $ac_cv_safe_to_define___extensions__ = yes &&
3865 cat >>confdefs.h <<\_ACEOF
3866 #define __EXTENSIONS__ 1
3867 _ACEOF
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _POSIX_PTHREAD_SEMANTICS 1
3871 _ACEOF
3873 cat >>confdefs.h <<\_ACEOF
3874 #define _TANDEM_SOURCE 1
3875 _ACEOF
3879 case "${host_os}" in
3880 freebsd*)
3881 ac_default_prefix=/usr/local
3882 CPPFLAGS=-I/usr/local/include
3883 LDFLAGS=-L/usr/local/lib
3886 ac_default_prefix=/usr
3887 if test ${sysconfdir} = '${prefix}/etc'; then
3888 sysconfdir=/etc
3890 if test ${mandir} = '${prefix}/man'; then
3891 mandir=/usr/share/man
3894 esac
3896 if test ${localstatedir} = '${prefix}/var'; then
3897 localstatedir=/var
3900 BUILD_PLATFORM=${build}
3901 BUILD_CPU=${build_cpu}
3902 BUILD_VENDOR=${build_vendor}
3903 BUILD_OS=${build_os}
3910 HOST_PLATFORM=${host}
3911 HOST_CPU=${host_cpu}
3912 HOST_VENDOR=${host_vendor}
3913 HOST_OS=${host_os}
3920 case "${host_os}" in
3921 freebsd*)
3922 OSARCH=FreeBSD
3924 netbsd*)
3925 OSARCH=NetBSD
3927 openbsd*)
3928 OSARCH=OpenBSD
3930 solaris*)
3931 OSARCH=SunOS
3934 OSARCH=${HOST_OS}
3936 esac
3940 # check for uname
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}uname; ac_word=$2
3944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3946 if test "${ac_cv_path_UNAME+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 case $UNAME in
3950 [\\/]* | ?:[\\/]*)
3951 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3965 done
3966 done
3967 IFS=$as_save_IFS
3970 esac
3972 UNAME=$ac_cv_path_UNAME
3973 if test -n "$UNAME"; then
3974 { echo "$as_me:$LINENO: result: $UNAME" >&5
3975 echo "${ECHO_T}$UNAME" >&6; }
3976 else
3977 { echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6; }
3983 if test -z "$ac_cv_path_UNAME"; then
3984 ac_pt_UNAME=$UNAME
3985 # Extract the first word of "uname", so it can be a program name with args.
3986 set dummy uname; ac_word=$2
3987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 case $ac_pt_UNAME in
3993 [\\/]* | ?:[\\/]*)
3994 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4010 IFS=$as_save_IFS
4013 esac
4015 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4016 if test -n "$ac_pt_UNAME"; then
4017 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4018 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4019 else
4020 { echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6; }
4024 if test "x$ac_pt_UNAME" = x; then
4025 UNAME="No"
4026 else
4027 case $cross_compiling:$ac_tool_warned in
4028 yes:)
4029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4030 whose name does not start with the host triplet. If you think this
4031 configuration is useful to you, please write to autoconf@gnu.org." >&5
4032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4033 whose name does not start with the host triplet. If you think this
4034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037 UNAME=$ac_pt_UNAME
4039 else
4040 UNAME="$ac_cv_path_UNAME"
4043 if test ! x"${UNAME}" = xNo; then
4044 PBX_OSREV=$(${UNAME} -r)
4054 # cross-compile checks
4055 if test "${cross_compiling}" = "yes";
4056 then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062 if test "${ac_cv_prog_CC+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4081 IFS=$as_save_IFS
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087 { echo "$as_me:$LINENO: result: $CC" >&5
4088 echo "${ECHO_T}$CC" >&6; }
4089 else
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4096 if test -z "$ac_cv_prog_CC"; then
4097 ac_ct_CC=$CC
4098 # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc; ac_word=$2
4100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$ac_ct_CC"; then
4106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_ac_ct_CC="gcc"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4121 IFS=$as_save_IFS
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4128 echo "${ECHO_T}$ac_ct_CC" >&6; }
4129 else
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4134 if test "x$ac_ct_CC" = x; then
4135 CC=":"
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138 yes:)
4139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4140 whose name does not start with the host triplet. If you think this
4141 configuration is useful to you, please write to autoconf@gnu.org." >&5
4142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4143 whose name does not start with the host triplet. If you think this
4144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4145 ac_tool_warned=yes ;;
4146 esac
4147 CC=$ac_ct_CC
4149 else
4150 CC="$ac_cv_prog_CC"
4153 if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}g++; ac_word=$2
4156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158 if test "${ac_cv_prog_CXX+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -n "$CXX"; then
4162 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 CXX=$ac_cv_prog_CXX
4182 if test -n "$CXX"; then
4183 { echo "$as_me:$LINENO: result: $CXX" >&5
4184 echo "${ECHO_T}$CXX" >&6; }
4185 else
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4192 if test -z "$ac_cv_prog_CXX"; then
4193 ac_ct_CXX=$CXX
4194 # Extract the first word of "g++", so it can be a program name with args.
4195 set dummy g++; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test -n "$ac_ct_CXX"; then
4202 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_ac_ct_CXX="g++"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4222 if test -n "$ac_ct_CXX"; then
4223 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4224 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4225 else
4226 { echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6; }
4230 if test "x$ac_ct_CXX" = x; then
4231 CXX=":"
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234 yes:)
4235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236 whose name does not start with the host triplet. If you think this
4237 configuration is useful to you, please write to autoconf@gnu.org." >&5
4238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239 whose name does not start with the host triplet. If you think this
4240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241 ac_tool_warned=yes ;;
4242 esac
4243 CXX=$ac_ct_CXX
4245 else
4246 CXX="$ac_cv_prog_CXX"
4249 if test -n "$ac_tool_prefix"; then
4250 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4251 set dummy ${ac_tool_prefix}ld; ac_word=$2
4252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4254 if test "${ac_cv_prog_LD+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 if test -n "$LD"; then
4258 ac_cv_prog_LD="$LD" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_prog_LD="${ac_tool_prefix}ld"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4271 done
4272 done
4273 IFS=$as_save_IFS
4277 LD=$ac_cv_prog_LD
4278 if test -n "$LD"; then
4279 { echo "$as_me:$LINENO: result: $LD" >&5
4280 echo "${ECHO_T}$LD" >&6; }
4281 else
4282 { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4288 if test -z "$ac_cv_prog_LD"; then
4289 ac_ct_LD=$LD
4290 # Extract the first word of "ld", so it can be a program name with args.
4291 set dummy ld; ac_word=$2
4292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4294 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 if test -n "$ac_ct_LD"; then
4298 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 ac_cv_prog_ac_ct_LD="ld"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4311 done
4312 done
4313 IFS=$as_save_IFS
4317 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4318 if test -n "$ac_ct_LD"; then
4319 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4320 echo "${ECHO_T}$ac_ct_LD" >&6; }
4321 else
4322 { echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6; }
4326 if test "x$ac_ct_LD" = x; then
4327 LD=":"
4328 else
4329 case $cross_compiling:$ac_tool_warned in
4330 yes:)
4331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4332 whose name does not start with the host triplet. If you think this
4333 configuration is useful to you, please write to autoconf@gnu.org." >&5
4334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4335 whose name does not start with the host triplet. If you think this
4336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4337 ac_tool_warned=yes ;;
4338 esac
4339 LD=$ac_ct_LD
4341 else
4342 LD="$ac_cv_prog_LD"
4345 if test -n "$ac_tool_prefix"; then
4346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_RANLIB+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -n "$RANLIB"; then
4354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4373 RANLIB=$ac_cv_prog_RANLIB
4374 if test -n "$RANLIB"; then
4375 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4376 echo "${ECHO_T}$RANLIB" >&6; }
4377 else
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib; ac_word=$2
4388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_ac_ct_RANLIB="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4409 IFS=$as_save_IFS
4413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4417 else
4418 { echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6; }
4422 if test "x$ac_ct_RANLIB" = x; then
4423 RANLIB=":"
4424 else
4425 case $cross_compiling:$ac_tool_warned in
4426 yes:)
4427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4428 whose name does not start with the host triplet. If you think this
4429 configuration is useful to you, please write to autoconf@gnu.org." >&5
4430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4431 whose name does not start with the host triplet. If you think this
4432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4433 ac_tool_warned=yes ;;
4434 esac
4435 RANLIB=$ac_ct_RANLIB
4437 else
4438 RANLIB="$ac_cv_prog_RANLIB"
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}ar; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_AR+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 if test -n "$AR"; then
4450 ac_cv_prog_AR="$AR" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_AR="${ac_tool_prefix}ar"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 AR=$ac_cv_prog_AR
4470 if test -n "$AR"; then
4471 { echo "$as_me:$LINENO: result: $AR" >&5
4472 echo "${ECHO_T}$AR" >&6; }
4473 else
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4480 if test -z "$ac_cv_prog_AR"; then
4481 ac_ct_AR=$AR
4482 # Extract the first word of "ar", so it can be a program name with args.
4483 set dummy ar; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489 if test -n "$ac_ct_AR"; then
4490 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_prog_ac_ct_AR="ar"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4503 done
4504 done
4505 IFS=$as_save_IFS
4509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4510 if test -n "$ac_ct_AR"; then
4511 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4512 echo "${ECHO_T}$ac_ct_AR" >&6; }
4513 else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4518 if test "x$ac_ct_AR" = x; then
4519 AR=":"
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522 yes:)
4523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4524 whose name does not start with the host triplet. If you think this
4525 configuration is useful to you, please write to autoconf@gnu.org." >&5
4526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4527 whose name does not start with the host triplet. If you think this
4528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531 AR=$ac_ct_AR
4533 else
4534 AR="$ac_cv_prog_AR"
4539 # Checks for programs.
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550 if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 CC=$ac_cv_prog_CC
4574 if test -n "$CC"; then
4575 { echo "$as_me:$LINENO: result: $CC" >&5
4576 echo "${ECHO_T}$CC" >&6; }
4577 else
4578 { echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6; }
4584 if test -z "$ac_cv_prog_CC"; then
4585 ac_ct_CC=$CC
4586 # Extract the first word of "gcc", so it can be a program name with args.
4587 set dummy gcc; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 if test -n "$ac_ct_CC"; then
4594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_prog_ac_ct_CC="gcc"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4609 IFS=$as_save_IFS
4613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4614 if test -n "$ac_ct_CC"; then
4615 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4616 echo "${ECHO_T}$ac_ct_CC" >&6; }
4617 else
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4622 if test "x$ac_ct_CC" = x; then
4623 CC=""
4624 else
4625 case $cross_compiling:$ac_tool_warned in
4626 yes:)
4627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4628 whose name does not start with the host triplet. If you think this
4629 configuration is useful to you, please write to autoconf@gnu.org." >&5
4630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4631 whose name does not start with the host triplet. If you think this
4632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4633 ac_tool_warned=yes ;;
4634 esac
4635 CC=$ac_ct_CC
4637 else
4638 CC="$ac_cv_prog_CC"
4641 if test -z "$CC"; then
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}cc; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_CC+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_CC="${ac_tool_prefix}cc"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 CC=$ac_cv_prog_CC
4671 if test -n "$CC"; then
4672 { echo "$as_me:$LINENO: result: $CC" >&5
4673 echo "${ECHO_T}$CC" >&6; }
4674 else
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4682 if test -z "$CC"; then
4683 # Extract the first word of "cc", so it can be a program name with args.
4684 set dummy cc; ac_word=$2
4685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4687 if test "${ac_cv_prog_CC+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4692 else
4693 ac_prog_rejected=no
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4702 ac_prog_rejected=yes
4703 continue
4705 ac_cv_prog_CC="cc"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4713 if test $ac_prog_rejected = yes; then
4714 # We found a bogon in the path, so make sure we never use it.
4715 set dummy $ac_cv_prog_CC
4716 shift
4717 if test $# != 0; then
4718 # We chose a different compiler from the bogus one.
4719 # However, it has the same basename, so the bogon will be chosen
4720 # first if we set CC to just the basename; use the full file name.
4721 shift
4722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4727 CC=$ac_cv_prog_CC
4728 if test -n "$CC"; then
4729 { echo "$as_me:$LINENO: result: $CC" >&5
4730 echo "${ECHO_T}$CC" >&6; }
4731 else
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 for ac_prog in cl.exe
4742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746 if test "${ac_cv_prog_CC+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 if test -n "$CC"; then
4750 ac_cv_prog_CC="$CC" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4763 done
4764 done
4765 IFS=$as_save_IFS
4769 CC=$ac_cv_prog_CC
4770 if test -n "$CC"; then
4771 { echo "$as_me:$LINENO: result: $CC" >&5
4772 echo "${ECHO_T}$CC" >&6; }
4773 else
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4779 test -n "$CC" && break
4780 done
4782 if test -z "$CC"; then
4783 ac_ct_CC=$CC
4784 for ac_prog in cl.exe
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 if test -n "$ac_ct_CC"; then
4794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_ac_ct_CC="$ac_prog"
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4814 if test -n "$ac_ct_CC"; then
4815 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4816 echo "${ECHO_T}$ac_ct_CC" >&6; }
4817 else
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4823 test -n "$ac_ct_CC" && break
4824 done
4826 if test "x$ac_ct_CC" = x; then
4827 CC=""
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4832 whose name does not start with the host triplet. If you think this
4833 configuration is useful to you, please write to autoconf@gnu.org." >&5
4834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4835 whose name does not start with the host triplet. If you think this
4836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839 CC=$ac_ct_CC
4846 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4847 See \`config.log' for more details." >&5
4848 echo "$as_me: error: no acceptable C compiler found in \$PATH
4849 See \`config.log' for more details." >&2;}
4850 { (exit 1); exit 1; }; }
4852 # Provide some information about the compiler.
4853 echo "$as_me:$LINENO: checking for C compiler version" >&5
4854 ac_compiler=`set X $ac_compile; echo $2`
4855 { (ac_try="$ac_compiler --version >&5"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_compiler --version >&5") 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }
4865 { (ac_try="$ac_compiler -v >&5"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_compiler -v >&5") 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }
4875 { (ac_try="$ac_compiler -V >&5"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_compiler -V >&5") 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }
4886 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4887 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4899 main ()
4901 #ifndef __GNUC__
4902 choke me
4903 #endif
4906 return 0;
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4911 case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4926 ac_compiler_gnu=yes
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 ac_compiler_gnu=no
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4938 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4940 GCC=`test $ac_compiler_gnu = yes && echo yes`
4941 ac_test_CFLAGS=${CFLAGS+set}
4942 ac_save_CFLAGS=$CFLAGS
4943 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4944 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4945 if test "${ac_cv_prog_cc_g+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 ac_save_c_werror_flag=$ac_c_werror_flag
4949 ac_c_werror_flag=yes
4950 ac_cv_prog_cc_g=no
4951 CFLAGS="-g"
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4960 main ()
4964 return 0;
4966 _ACEOF
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4984 ac_cv_prog_cc_g=yes
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 CFLAGS=""
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4998 main ()
5002 return 0;
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5007 case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_c_werror_flag=$ac_save_c_werror_flag
5028 CFLAGS="-g"
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5037 main ()
5041 return 0;
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest.$ac_objext; then
5061 ac_cv_prog_cc_g=yes
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 ac_c_werror_flag=$ac_save_c_werror_flag
5078 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5080 if test "$ac_test_CFLAGS" = set; then
5081 CFLAGS=$ac_save_CFLAGS
5082 elif test $ac_cv_prog_cc_g = yes; then
5083 if test "$GCC" = yes; then
5084 CFLAGS="-g -O2"
5085 else
5086 CFLAGS="-g"
5088 else
5089 if test "$GCC" = yes; then
5090 CFLAGS="-O2"
5091 else
5092 CFLAGS=
5095 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5096 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_cc_c89+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 ac_cv_prog_cc_c89=no
5101 ac_save_CC=$CC
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <stdarg.h>
5109 #include <stdio.h>
5110 #include <sys/types.h>
5111 #include <sys/stat.h>
5112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5113 struct buf { int x; };
5114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5115 static char *e (p, i)
5116 char **p;
5117 int i;
5119 return p[i];
5121 static char *f (char * (*g) (char **, int), char **p, ...)
5123 char *s;
5124 va_list v;
5125 va_start (v,p);
5126 s = g (p, va_arg (v,int));
5127 va_end (v);
5128 return s;
5131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5132 function prototypes and stuff, but not '\xHH' hex character constants.
5133 These don't provoke an error unfortunately, instead are silently treated
5134 as 'x'. The following induces an error, until -std is added to get
5135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5136 array size at least. It's necessary to write '\x00'==0 to get something
5137 that's true only with -std. */
5138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5141 inside strings and character constants. */
5142 #define FOO(x) 'x'
5143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5145 int test (int i, double x);
5146 struct s1 {int (*f) (int a);};
5147 struct s2 {int (*f) (double a);};
5148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5149 int argc;
5150 char **argv;
5152 main ()
5154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5156 return 0;
5158 _ACEOF
5159 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5162 CC="$ac_save_CC $ac_arg"
5163 rm -f conftest.$ac_objext
5164 if { (ac_try="$ac_compile"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_compile") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest.$ac_objext; then
5180 ac_cv_prog_cc_c89=$ac_arg
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f core conftest.err conftest.$ac_objext
5189 test "x$ac_cv_prog_cc_c89" != "xno" && break
5190 done
5191 rm -f conftest.$ac_ext
5192 CC=$ac_save_CC
5195 # AC_CACHE_VAL
5196 case "x$ac_cv_prog_cc_c89" in
5198 { echo "$as_me:$LINENO: result: none needed" >&5
5199 echo "${ECHO_T}none needed" >&6; } ;;
5200 xno)
5201 { echo "$as_me:$LINENO: result: unsupported" >&5
5202 echo "${ECHO_T}unsupported" >&6; } ;;
5204 CC="$CC $ac_cv_prog_cc_c89"
5205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5207 esac
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 ac_ext=cpp
5217 ac_cpp='$CXXCPP $CPPFLAGS'
5218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5221 if test -z "$CXX"; then
5222 if test -n "$CCC"; then
5223 CXX=$CCC
5224 else
5225 if test -n "$ac_tool_prefix"; then
5226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_prog_CXX+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 if test -n "$CXX"; then
5236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5255 CXX=$ac_cv_prog_CXX
5256 if test -n "$CXX"; then
5257 { echo "$as_me:$LINENO: result: $CXX" >&5
5258 echo "${ECHO_T}$CXX" >&6; }
5259 else
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5265 test -n "$CXX" && break
5266 done
5268 if test -z "$CXX"; then
5269 ac_ct_CXX=$CXX
5270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272 # Extract the first word of "$ac_prog", so it can be a program name with args.
5273 set dummy $ac_prog; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test -n "$ac_ct_CXX"; then
5280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_ac_ct_CXX="$ac_prog"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5295 IFS=$as_save_IFS
5299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5300 if test -n "$ac_ct_CXX"; then
5301 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5302 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5303 else
5304 { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
5309 test -n "$ac_ct_CXX" && break
5310 done
5312 if test "x$ac_ct_CXX" = x; then
5313 CXX="g++"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316 yes:)
5317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5318 whose name does not start with the host triplet. If you think this
5319 configuration is useful to you, please write to autoconf@gnu.org." >&5
5320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5321 whose name does not start with the host triplet. If you think this
5322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325 CXX=$ac_ct_CXX
5331 # Provide some information about the compiler.
5332 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5333 ac_compiler=`set X $ac_compile; echo $2`
5334 { (ac_try="$ac_compiler --version >&5"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compiler --version >&5") 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }
5344 { (ac_try="$ac_compiler -v >&5"
5345 case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compiler -v >&5") 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }
5354 { (ac_try="$ac_compiler -V >&5"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compiler -V >&5") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }
5365 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5366 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5367 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5378 main ()
5380 #ifndef __GNUC__
5381 choke me
5382 #endif
5385 return 0;
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_cxx_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_compiler_gnu=yes
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_compiler_gnu=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5419 GXX=`test $ac_compiler_gnu = yes && echo yes`
5420 ac_test_CXXFLAGS=${CXXFLAGS+set}
5421 ac_save_CXXFLAGS=$CXXFLAGS
5422 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5424 if test "${ac_cv_prog_cxx_g+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5428 ac_cxx_werror_flag=yes
5429 ac_cv_prog_cxx_g=no
5430 CXXFLAGS="-g"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5439 main ()
5443 return 0;
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_cxx_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_cv_prog_cxx_g=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 CXXFLAGS=""
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5477 main ()
5481 return 0;
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 CXXFLAGS="-g"
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5516 main ()
5520 return 0;
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_cxx_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 ac_cv_prog_cxx_g=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5557 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5558 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5559 if test "$ac_test_CXXFLAGS" = set; then
5560 CXXFLAGS=$ac_save_CXXFLAGS
5561 elif test $ac_cv_prog_cxx_g = yes; then
5562 if test "$GXX" = yes; then
5563 CXXFLAGS="-g -O2"
5564 else
5565 CXXFLAGS="-g"
5567 else
5568 if test "$GXX" = yes; then
5569 CXXFLAGS="-O2"
5570 else
5571 CXXFLAGS=
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
5580 ac_ext=c
5581 ac_cpp='$CPP $CPPFLAGS'
5582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5586 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5587 # On Suns, sometimes $CPP names a directory.
5588 if test -n "$CPP" && test -d "$CPP"; then
5589 CPP=
5591 if test -z "$CPP"; then
5592 if test "${ac_cv_prog_CPP+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 # Double quotes because CPP needs to be expanded
5596 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5598 ac_preproc_ok=false
5599 for ac_c_preproc_warn_flag in '' yes
5601 # Use a header file that comes with gcc, so configuring glibc
5602 # with a fresh cross-compiler works.
5603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5604 # <limits.h> exists even on freestanding compilers.
5605 # On the NeXT, cc -E runs the code through the compiler's parser,
5606 # not just through cpp. "Syntax error" is here to catch this case.
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #ifdef __STDC__
5614 # include <limits.h>
5615 #else
5616 # include <assert.h>
5617 #endif
5618 Syntax error
5619 _ACEOF
5620 if { (ac_try="$ac_cpp conftest.$ac_ext"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } >/dev/null && {
5633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 }; then
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 # Broken: fails on valid input.
5642 continue
5645 rm -f conftest.err conftest.$ac_ext
5647 # OK, works on sane cases. Now check whether nonexistent headers
5648 # can be detected and how.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <ac_nonexistent.h>
5656 _ACEOF
5657 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null && {
5670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 }; then
5673 # Broken: success on invalid input.
5674 continue
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 # Passes both tests.
5680 ac_preproc_ok=:
5681 break
5684 rm -f conftest.err conftest.$ac_ext
5686 done
5687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688 rm -f conftest.err conftest.$ac_ext
5689 if $ac_preproc_ok; then
5690 break
5693 done
5694 ac_cv_prog_CPP=$CPP
5697 CPP=$ac_cv_prog_CPP
5698 else
5699 ac_cv_prog_CPP=$CPP
5701 { echo "$as_me:$LINENO: result: $CPP" >&5
5702 echo "${ECHO_T}$CPP" >&6; }
5703 ac_preproc_ok=false
5704 for ac_c_preproc_warn_flag in '' yes
5706 # Use a header file that comes with gcc, so configuring glibc
5707 # with a fresh cross-compiler works.
5708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5709 # <limits.h> exists even on freestanding compilers.
5710 # On the NeXT, cc -E runs the code through the compiler's parser,
5711 # not just through cpp. "Syntax error" is here to catch this case.
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #ifdef __STDC__
5719 # include <limits.h>
5720 #else
5721 # include <assert.h>
5722 #endif
5723 Syntax error
5724 _ACEOF
5725 if { (ac_try="$ac_cpp conftest.$ac_ext"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } >/dev/null && {
5738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 }; then
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 # Broken: fails on valid input.
5747 continue
5750 rm -f conftest.err conftest.$ac_ext
5752 # OK, works on sane cases. Now check whether nonexistent headers
5753 # can be detected and how.
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <ac_nonexistent.h>
5761 _ACEOF
5762 if { (ac_try="$ac_cpp conftest.$ac_ext"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } >/dev/null && {
5775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 }; then
5778 # Broken: success on invalid input.
5779 continue
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 # Passes both tests.
5785 ac_preproc_ok=:
5786 break
5789 rm -f conftest.err conftest.$ac_ext
5791 done
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.err conftest.$ac_ext
5794 if $ac_preproc_ok; then
5796 else
5797 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5798 See \`config.log' for more details." >&5
5799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5800 See \`config.log' for more details." >&2;}
5801 { (exit 1); exit 1; }; }
5804 ac_ext=c
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810 ac_ext=cpp
5811 ac_cpp='$CXXCPP $CPPFLAGS'
5812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5815 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5816 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5817 if test -z "$CXXCPP"; then
5818 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 # Double quotes because CXXCPP needs to be expanded
5822 for CXXCPP in "$CXX -E" "/lib/cpp"
5824 ac_preproc_ok=false
5825 for ac_cxx_preproc_warn_flag in '' yes
5827 # Use a header file that comes with gcc, so configuring glibc
5828 # with a fresh cross-compiler works.
5829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5830 # <limits.h> exists even on freestanding compilers.
5831 # On the NeXT, cc -E runs the code through the compiler's parser,
5832 # not just through cpp. "Syntax error" is here to catch this case.
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #ifdef __STDC__
5840 # include <limits.h>
5841 #else
5842 # include <assert.h>
5843 #endif
5844 Syntax error
5845 _ACEOF
5846 if { (ac_try="$ac_cpp conftest.$ac_ext"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null && {
5859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5860 test ! -s conftest.err
5861 }; then
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 # Broken: fails on valid input.
5868 continue
5871 rm -f conftest.err conftest.$ac_ext
5873 # OK, works on sane cases. Now check whether nonexistent headers
5874 # can be detected and how.
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5882 _ACEOF
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5884 case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null && {
5896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5897 test ! -s conftest.err
5898 }; then
5899 # Broken: success on invalid input.
5900 continue
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5905 # Passes both tests.
5906 ac_preproc_ok=:
5907 break
5910 rm -f conftest.err conftest.$ac_ext
5912 done
5913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5914 rm -f conftest.err conftest.$ac_ext
5915 if $ac_preproc_ok; then
5916 break
5919 done
5920 ac_cv_prog_CXXCPP=$CXXCPP
5923 CXXCPP=$ac_cv_prog_CXXCPP
5924 else
5925 ac_cv_prog_CXXCPP=$CXXCPP
5927 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5928 echo "${ECHO_T}$CXXCPP" >&6; }
5929 ac_preproc_ok=false
5930 for ac_cxx_preproc_warn_flag in '' yes
5932 # Use a header file that comes with gcc, so configuring glibc
5933 # with a fresh cross-compiler works.
5934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935 # <limits.h> exists even on freestanding compilers.
5936 # On the NeXT, cc -E runs the code through the compiler's parser,
5937 # not just through cpp. "Syntax error" is here to catch this case.
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #ifdef __STDC__
5945 # include <limits.h>
5946 #else
5947 # include <assert.h>
5948 #endif
5949 Syntax error
5950 _ACEOF
5951 if { (ac_try="$ac_cpp conftest.$ac_ext"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null && {
5964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965 test ! -s conftest.err
5966 }; then
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 # Broken: fails on valid input.
5973 continue
5976 rm -f conftest.err conftest.$ac_ext
5978 # OK, works on sane cases. Now check whether nonexistent headers
5979 # can be detected and how.
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <ac_nonexistent.h>
5987 _ACEOF
5988 if { (ac_try="$ac_cpp conftest.$ac_ext"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null && {
6001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002 test ! -s conftest.err
6003 }; then
6004 # Broken: success on invalid input.
6005 continue
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 # Passes both tests.
6011 ac_preproc_ok=:
6012 break
6015 rm -f conftest.err conftest.$ac_ext
6017 done
6018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019 rm -f conftest.err conftest.$ac_ext
6020 if $ac_preproc_ok; then
6022 else
6023 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6024 See \`config.log' for more details." >&5
6025 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6026 See \`config.log' for more details." >&2;}
6027 { (exit 1); exit 1; }; }
6030 ac_ext=c
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6037 # the developers regenerating the configure script don't have to install libtool.
6038 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6039 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6040 if test "${ac_cv_path_SED+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6044 for ac_i in 1 2 3 4 5 6 7; do
6045 ac_script="$ac_script$as_nl$ac_script"
6046 done
6047 echo "$ac_script" | sed 99q >conftest.sed
6048 $as_unset ac_script || ac_script=
6049 # Extract the first word of "sed gsed" to use in msg output
6050 if test -z "$SED"; then
6051 set dummy sed gsed; ac_prog_name=$2
6052 if test "${ac_cv_path_SED+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 ac_path_SED_found=false
6056 # Loop through the user's path and test for each of PROGNAME-LIST
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_prog in sed gsed; do
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6065 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6066 # Check for GNU ac_path_SED and select it if it is found.
6067 # Check for GNU $ac_path_SED
6068 case `"$ac_path_SED" --version 2>&1` in
6069 *GNU*)
6070 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6072 ac_count=0
6073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6074 while :
6076 cat "conftest.in" "conftest.in" >"conftest.tmp"
6077 mv "conftest.tmp" "conftest.in"
6078 cp "conftest.in" "conftest.nl"
6079 echo '' >> "conftest.nl"
6080 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6082 ac_count=`expr $ac_count + 1`
6083 if test $ac_count -gt ${ac_path_SED_max-0}; then
6084 # Best one so far, save it but keep looking for a better one
6085 ac_cv_path_SED="$ac_path_SED"
6086 ac_path_SED_max=$ac_count
6088 # 10*(2^10) chars as input seems more than enough
6089 test $ac_count -gt 10 && break
6090 done
6091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6092 esac
6095 $ac_path_SED_found && break 3
6096 done
6097 done
6099 done
6100 IFS=$as_save_IFS
6105 SED="$ac_cv_path_SED"
6106 if test -z "$SED"; then
6107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6108 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6109 { (exit 1); exit 1; }; }
6112 else
6113 ac_cv_path_SED=$SED
6117 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6118 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6119 SED="$ac_cv_path_SED"
6120 rm -f conftest.sed
6122 { echo "$as_me:$LINENO: checking for egrep" >&5
6123 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6124 if test "${ac_cv_prog_egrep+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6128 then ac_cv_prog_egrep='grep -E'
6129 else ac_cv_prog_egrep='egrep'
6132 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6133 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6134 EGREP=$ac_cv_prog_egrep
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then
6140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6141 else
6142 with_gnu_ld=no
6145 ac_prog=ld
6146 if test "$GCC" = yes; then
6147 # Check if gcc -print-prog-name=ld gives a path.
6148 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6149 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6150 case $host in
6151 *-*-mingw*)
6152 # gcc leaves a trailing carriage return which upsets mingw
6153 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6155 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6156 esac
6157 case $ac_prog in
6158 # Accept absolute paths.
6159 [\\/]* | ?:[\\/]*)
6160 re_direlt='/[^/][^/]*/\.\./'
6161 # Canonicalize the pathname of ld
6162 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6163 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6164 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6165 done
6166 test -z "$LD" && LD="$ac_prog"
6169 # If it fails, then pretend we aren't using GCC.
6170 ac_prog=ld
6173 # If it is relative, then search for the first ld in PATH.
6174 with_gnu_ld=unknown
6176 esac
6177 elif test "$with_gnu_ld" = yes; then
6178 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6179 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6180 else
6181 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6182 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6184 if test "${lt_cv_path_LD+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 if test -z "$LD"; then
6188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6189 for ac_dir in $PATH; do
6190 IFS="$lt_save_ifs"
6191 test -z "$ac_dir" && ac_dir=.
6192 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6193 lt_cv_path_LD="$ac_dir/$ac_prog"
6194 # Check to see if the program is GNU ld. I'd rather use --version,
6195 # but apparently some variants of GNU ld only accept -v.
6196 # Break only if it was the GNU/non-GNU ld that we prefer.
6197 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6198 *GNU* | *'with BFD'*)
6199 test "$with_gnu_ld" != no && break
6202 test "$with_gnu_ld" != yes && break
6204 esac
6206 done
6207 IFS="$lt_save_ifs"
6208 else
6209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6213 LD="$lt_cv_path_LD"
6214 if test -n "$LD"; then
6215 { echo "$as_me:$LINENO: result: $LD" >&5
6216 echo "${ECHO_T}$LD" >&6; }
6217 else
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6223 { (exit 1); exit 1; }; }
6224 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6230 case `$LD -v 2>&1 </dev/null` in
6231 *GNU* | *'with BFD'*)
6232 lt_cv_prog_gnu_ld=yes
6235 lt_cv_prog_gnu_ld=no
6237 esac
6239 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6240 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6241 with_gnu_ld=$lt_cv_prog_gnu_ld
6244 for ac_prog in gawk mawk nawk awk
6246 # Extract the first word of "$ac_prog", so it can be a program name with args.
6247 set dummy $ac_prog; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_AWK+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 if test -n "$AWK"; then
6254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_AWK="$ac_prog"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6267 done
6268 done
6269 IFS=$as_save_IFS
6273 AWK=$ac_cv_prog_AWK
6274 if test -n "$AWK"; then
6275 { echo "$as_me:$LINENO: result: $AWK" >&5
6276 echo "${ECHO_T}$AWK" >&6; }
6277 else
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6283 test -n "$AWK" && break
6284 done
6286 # Find a good install program. We prefer a C program (faster),
6287 # so one script is as good as another. But avoid the broken or
6288 # incompatible versions:
6289 # SysV /etc/install, /usr/sbin/install
6290 # SunOS /usr/etc/install
6291 # IRIX /sbin/install
6292 # AIX /bin/install
6293 # AmigaOS /C/install, which installs bootblocks on floppy discs
6294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6297 # OS/2's system install, which has a completely different semantic
6298 # ./install, which can be erroneously created by make from ./install.sh.
6299 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6300 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6301 if test -z "$INSTALL"; then
6302 if test "${ac_cv_path_install+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 # Account for people who put trailing slashes in PATH elements.
6311 case $as_dir/ in
6312 ./ | .// | /cC/* | \
6313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6314 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6315 /usr/ucb/* ) ;;
6317 # OSF1 and SCO ODT 3.0 have their own names for install.
6318 # Don't use installbsd from OSF since it installs stuff as root
6319 # by default.
6320 for ac_prog in ginstall scoinst install; do
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6323 if test $ac_prog = install &&
6324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6325 # AIX install. It has an incompatible calling convention.
6327 elif test $ac_prog = install &&
6328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6329 # program-specific install script used by HP pwplus--don't use.
6331 else
6332 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6333 break 3
6336 done
6337 done
6339 esac
6340 done
6341 IFS=$as_save_IFS
6345 if test "${ac_cv_path_install+set}" = set; then
6346 INSTALL=$ac_cv_path_install
6347 else
6348 # As a last resort, use the slow shell script. Don't cache a
6349 # value for INSTALL within a source directory, because that will
6350 # break other packages using the cache if that directory is
6351 # removed, or if the value is a relative name.
6352 INSTALL=$ac_install_sh
6355 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6356 echo "${ECHO_T}$INSTALL" >&6; }
6358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6359 # It thinks the first close brace ends the variable substitution.
6360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6366 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6368 LN_S=$as_ln_s
6369 if test "$LN_S" = "ln -s"; then
6370 { echo "$as_me:$LINENO: result: yes" >&5
6371 echo "${ECHO_T}yes" >&6; }
6372 else
6373 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6374 echo "${ECHO_T}no, using $LN_S" >&6; }
6377 if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382 if test "${ac_cv_prog_RANLIB+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 if test -n "$RANLIB"; then
6386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 RANLIB=$ac_cv_prog_RANLIB
6406 if test -n "$RANLIB"; then
6407 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6408 echo "${ECHO_T}$RANLIB" >&6; }
6409 else
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6416 if test -z "$ac_cv_prog_RANLIB"; then
6417 ac_ct_RANLIB=$RANLIB
6418 # Extract the first word of "ranlib", so it can be a program name with args.
6419 set dummy ranlib; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 if test -n "$ac_ct_RANLIB"; then
6426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_ac_ct_RANLIB="ranlib"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6441 IFS=$as_save_IFS
6445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6446 if test -n "$ac_ct_RANLIB"; then
6447 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6448 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6449 else
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6454 if test "x$ac_ct_RANLIB" = x; then
6455 RANLIB=":"
6456 else
6457 case $cross_compiling:$ac_tool_warned in
6458 yes:)
6459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6460 whose name does not start with the host triplet. If you think this
6461 configuration is useful to you, please write to autoconf@gnu.org." >&5
6462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet. If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6465 ac_tool_warned=yes ;;
6466 esac
6467 RANLIB=$ac_ct_RANLIB
6469 else
6470 RANLIB="$ac_cv_prog_RANLIB"
6473 { echo "$as_me:$LINENO: checking for GNU make" >&5
6474 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6475 if test "${GNU_MAKE+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 GNU_MAKE='Not Found' ;
6479 GNU_MAKE_VERSION_MAJOR=0 ;
6480 GNU_MAKE_VERSION_MINOR=0 ;
6481 for a in make gmake gnumake ; do
6482 if test -z "$a" ; then continue ; fi ;
6483 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6484 GNU_MAKE=$a ;
6485 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6486 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6487 break;
6489 done ;
6492 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6493 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6494 if test "x$GNU_MAKE" = "xNot Found" ; then
6495 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6496 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6497 { (exit 1); exit 1; }; }
6498 exit 1
6503 GNU_LD=0
6504 if test "x$with_gnu_ld" = "xyes" ; then
6505 GNU_LD=1
6509 # Extract the first word of "grep", so it can be a program name with args.
6510 set dummy grep; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_path_GREP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 case $GREP in
6517 [\\/]* | ?:[\\/]*)
6518 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6534 IFS=$as_save_IFS
6536 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6538 esac
6540 GREP=$ac_cv_path_GREP
6541 if test -n "$GREP"; then
6542 { echo "$as_me:$LINENO: result: $GREP" >&5
6543 echo "${ECHO_T}$GREP" >&6; }
6544 else
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6550 # Extract the first word of "ar", so it can be a program name with args.
6551 set dummy ar; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_path_AR+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 case $AR in
6558 [\\/]* | ?:[\\/]*)
6559 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6573 done
6574 done
6575 IFS=$as_save_IFS
6577 test -z "$ac_cv_path_AR" && ac_cv_path_AR=":"
6579 esac
6581 AR=$ac_cv_path_AR
6582 if test -n "$AR"; then
6583 { echo "$as_me:$LINENO: result: $AR" >&5
6584 echo "${ECHO_T}$AR" >&6; }
6585 else
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6591 # Extract the first word of "find", so it can be a program name with args.
6592 set dummy find; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_FIND+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 case $FIND in
6599 [\\/]* | ?:[\\/]*)
6600 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6614 done
6615 done
6616 IFS=$as_save_IFS
6618 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6620 esac
6622 FIND=$ac_cv_path_FIND
6623 if test -n "$FIND"; then
6624 { echo "$as_me:$LINENO: result: $FIND" >&5
6625 echo "${ECHO_T}$FIND" >&6; }
6626 else
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 # Extract the first word of "compress", so it can be a program name with args.
6633 set dummy compress; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_COMPRESS+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639 case $COMPRESS in
6640 [\\/]* | ?:[\\/]*)
6641 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6659 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6661 esac
6663 COMPRESS=$ac_cv_path_COMPRESS
6664 if test -n "$COMPRESS"; then
6665 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6666 echo "${ECHO_T}$COMPRESS" >&6; }
6667 else
6668 { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6673 # Extract the first word of "basename", so it can be a program name with args.
6674 set dummy basename; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_BASENAME+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 case $BASENAME in
6681 [\\/]* | ?:[\\/]*)
6682 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6696 done
6697 done
6698 IFS=$as_save_IFS
6700 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6702 esac
6704 BASENAME=$ac_cv_path_BASENAME
6705 if test -n "$BASENAME"; then
6706 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6707 echo "${ECHO_T}$BASENAME" >&6; }
6708 else
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6714 # Extract the first word of "id", so it can be a program name with args.
6715 set dummy id; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_ID+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721 case $ID in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6737 done
6738 done
6739 IFS=$as_save_IFS
6741 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6743 esac
6745 ID=$ac_cv_path_ID
6746 if test -n "$ID"; then
6747 { echo "$as_me:$LINENO: result: $ID" >&5
6748 echo "${ECHO_T}$ID" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 # Extract the first word of "dirname", so it can be a program name with args.
6756 set dummy dirname; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_DIRNAME+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 case $DIRNAME in
6763 [\\/]* | ?:[\\/]*)
6764 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6782 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6784 esac
6786 DIRNAME=$ac_cv_path_DIRNAME
6787 if test -n "$DIRNAME"; then
6788 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6789 echo "${ECHO_T}$DIRNAME" >&6; }
6790 else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6796 # Extract the first word of "sh", so it can be a program name with args.
6797 set dummy sh; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_SHELL+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 case $SHELL in
6804 [\\/]* | ?:[\\/]*)
6805 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6823 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6825 esac
6827 SHELL=$ac_cv_path_SHELL
6828 if test -n "$SHELL"; then
6829 { echo "$as_me:$LINENO: result: $SHELL" >&5
6830 echo "${ECHO_T}$SHELL" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 # Extract the first word of "ln", so it can be a program name with args.
6838 set dummy ln; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_LN+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case $LN in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6864 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6866 esac
6868 LN=$ac_cv_path_LN
6869 if test -n "$LN"; then
6870 { echo "$as_me:$LINENO: result: $LN" >&5
6871 echo "${ECHO_T}$LN" >&6; }
6872 else
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6878 # Extract the first word of "dot", so it can be a program name with args.
6879 set dummy dot; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_DOT+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 case $DOT in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6905 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
6907 esac
6909 DOT=$ac_cv_path_DOT
6910 if test -n "$DOT"; then
6911 { echo "$as_me:$LINENO: result: $DOT" >&5
6912 echo "${ECHO_T}$DOT" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "strip", so it can be a program name with args.
6920 set dummy strip; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_STRIP+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 case $STRIP in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6946 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP=":"
6948 esac
6950 STRIP=$ac_cv_path_STRIP
6951 if test -n "$STRIP"; then
6952 { echo "$as_me:$LINENO: result: $STRIP" >&5
6953 echo "${ECHO_T}$STRIP" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "wget", so it can be a program name with args.
6961 set dummy wget; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_WGET+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 case $WGET in
6968 [\\/]* | ?:[\\/]*)
6969 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6987 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
6989 esac
6991 WGET=$ac_cv_path_WGET
6992 if test -n "$WGET"; then
6993 { echo "$as_me:$LINENO: result: $WGET" >&5
6994 echo "${ECHO_T}$WGET" >&6; }
6995 else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 if test "${WGET}" != ":" ; then
7002 DOWNLOAD=${WGET}
7003 else
7004 # Extract the first word of "fetch", so it can be a program name with args.
7005 set dummy fetch; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_FETCH+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 case $FETCH in
7012 [\\/]* | ?:[\\/]*)
7013 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7027 done
7028 done
7029 IFS=$as_save_IFS
7031 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7033 esac
7035 FETCH=$ac_cv_path_FETCH
7036 if test -n "$FETCH"; then
7037 { echo "$as_me:$LINENO: result: $FETCH" >&5
7038 echo "${ECHO_T}$FETCH" >&6; }
7039 else
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7045 DOWNLOAD=${FETCH}
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058 acx_pthread_ok=no
7060 # We used to check for pthread.h first, but this fails if pthread.h
7061 # requires special compiler flags (e.g. on True64 or Sequent).
7062 # It gets checked for in the link test anyway.
7064 # First of all, check if the user has set any of the PTHREAD_LIBS,
7065 # etcetera environment variables, and if threads linking works using
7066 # them:
7067 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7068 save_CFLAGS="$CFLAGS"
7069 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7070 save_LIBS="$LIBS"
7071 LIBS="$PTHREAD_LIBS $LIBS"
7072 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7073 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h. */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7081 /* Override any GCC internal prototype to avoid an error.
7082 Use char because int might match the return type of a GCC
7083 builtin and then its argument prototype would still apply. */
7084 #ifdef __cplusplus
7085 extern "C"
7086 #endif
7087 char pthread_join ();
7089 main ()
7091 return pthread_join ();
7093 return 0;
7095 _ACEOF
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (ac_try="$ac_link"
7098 case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_link") 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest$ac_exeext &&
7113 $as_test_x conftest$ac_exeext; then
7114 acx_pthread_ok=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7123 conftest$ac_exeext conftest.$ac_ext
7124 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7125 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7126 if test x"$acx_pthread_ok" = xno; then
7127 PTHREAD_LIBS=""
7128 PTHREAD_CFLAGS=""
7130 LIBS="$save_LIBS"
7131 CFLAGS="$save_CFLAGS"
7134 # We must check for the threads library under a number of different
7135 # names; the ordering is very important because some systems
7136 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7137 # libraries is broken (non-POSIX).
7139 # Create a list of thread flags to try. Items starting with a "-" are
7140 # C compiler flags, and other items are library names, except for "none"
7141 # which indicates that we try without any flags at all, and "pthread-config"
7142 # which is a program returning the flags for the Pth emulation library.
7144 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7146 # The ordering *is* (sometimes) important. Some notes on the
7147 # individual items follow:
7149 # pthreads: AIX (must check this before -lpthread)
7150 # none: in case threads are in libc; should be tried before -Kthread and
7151 # other compiler flags to prevent continual compiler warnings
7152 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7153 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7154 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7155 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7156 # -pthreads: Solaris/gcc
7157 # -mthreads: Mingw32/gcc, Lynx/gcc
7158 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7159 # doesn't hurt to check since this sometimes defines pthreads too;
7160 # also defines -D_REENTRANT)
7161 # ... -mt is also the pthreads flag for HP/aCC
7162 # pthread: Linux, etcetera
7163 # --thread-safe: KAI C++
7164 # pthread-config: use pthread-config program (for GNU Pth library)
7166 case "${host_cpu}-${host_os}" in
7167 *solaris*)
7169 # On Solaris (at least, for some versions), libc contains stubbed
7170 # (non-functional) versions of the pthreads routines, so link-based
7171 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7172 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7173 # a function called by this macro, so we could check for that, but
7174 # who knows whether they'll stub that too in a future libc.) So,
7175 # we'll just look for -pthreads and -lpthread first:
7177 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7179 esac
7181 if test x"$acx_pthread_ok" = xno; then
7182 for flag in $acx_pthread_flags; do
7184 case $flag in
7185 none)
7186 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7187 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7191 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7192 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7193 PTHREAD_CFLAGS="$flag"
7196 pthread-config)
7197 # Extract the first word of "pthread-config", so it can be a program name with args.
7198 set dummy pthread-config; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 if test -n "$acx_pthread_config"; then
7205 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_acx_pthread_config="yes"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7218 done
7219 done
7220 IFS=$as_save_IFS
7222 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7225 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7226 if test -n "$acx_pthread_config"; then
7227 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7228 echo "${ECHO_T}$acx_pthread_config" >&6; }
7229 else
7230 { echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6; }
7235 if test x"$acx_pthread_config" = xno; then continue; fi
7236 PTHREAD_CFLAGS="`pthread-config --cflags`"
7237 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7241 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7242 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7243 PTHREAD_LIBS="-l$flag"
7245 esac
7247 save_LIBS="$LIBS"
7248 save_CFLAGS="$CFLAGS"
7249 LIBS="$PTHREAD_LIBS $LIBS"
7250 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7252 # Check for various functions. We must include pthread.h,
7253 # since some functions may be macros. (On the Sequent, we
7254 # need a special flag -Kthread to make this header compile.)
7255 # We check for pthread_join because it is in -lpthread on IRIX
7256 # while pthread_create is in libc. We check for pthread_attr_init
7257 # due to DEC craziness with -lpthreads. We check for
7258 # pthread_cleanup_push because it is one of the few pthread
7259 # functions on Solaris that doesn't have a non-functional libc stub.
7260 # We try pthread_create on general principles.
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <pthread.h>
7269 main ()
7271 pthread_t th; pthread_join(th, 0);
7272 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7273 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest$ac_exeext &&
7295 $as_test_x conftest$ac_exeext; then
7296 acx_pthread_ok=yes
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305 conftest$ac_exeext conftest.$ac_ext
7307 LIBS="$save_LIBS"
7308 CFLAGS="$save_CFLAGS"
7310 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7311 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7312 if test "x$acx_pthread_ok" = xyes; then
7313 break;
7316 PTHREAD_LIBS=""
7317 PTHREAD_CFLAGS=""
7318 done
7321 # Various other checks:
7322 if test "x$acx_pthread_ok" = xyes; then
7323 save_LIBS="$LIBS"
7324 LIBS="$PTHREAD_LIBS $LIBS"
7325 save_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7328 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7329 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7330 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7331 attr_name=unknown
7332 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <pthread.h>
7341 main ()
7343 int attr=$attr; return attr;
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (ac_try="$ac_link"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_link") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest$ac_exeext &&
7365 $as_test_x conftest$ac_exeext; then
7366 attr_name=$attr; break
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7375 conftest$ac_exeext conftest.$ac_ext
7376 done
7377 { echo "$as_me:$LINENO: result: $attr_name" >&5
7378 echo "${ECHO_T}$attr_name" >&6; }
7379 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7381 cat >>confdefs.h <<_ACEOF
7382 #define PTHREAD_CREATE_JOINABLE $attr_name
7383 _ACEOF
7387 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7388 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7389 flag=no
7390 case "${host_cpu}-${host_os}" in
7391 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7392 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7393 esac
7394 { echo "$as_me:$LINENO: result: ${flag}" >&5
7395 echo "${ECHO_T}${flag}" >&6; }
7396 if test "x$flag" != xno; then
7397 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7400 LIBS="$save_LIBS"
7401 CFLAGS="$save_CFLAGS"
7403 # More AIX lossage: must compile with xlc_r or cc_r
7404 if test x"$GCC" != xyes; then
7405 for ac_prog in xlc_r cc_r
7407 # Extract the first word of "$ac_prog", so it can be a program name with args.
7408 set dummy $ac_prog; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 if test -n "$PTHREAD_CC"; then
7415 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_PTHREAD_CC="$ac_prog"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7434 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7435 if test -n "$PTHREAD_CC"; then
7436 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7437 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7438 else
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7444 test -n "$PTHREAD_CC" && break
7445 done
7446 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7448 else
7449 PTHREAD_CC=$CC
7451 else
7452 PTHREAD_CC="$CC"
7459 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7460 if test x"$acx_pthread_ok" = xyes; then
7462 cat >>confdefs.h <<\_ACEOF
7463 #define HAVE_PTHREAD 1
7464 _ACEOF
7467 else
7468 acx_pthread_ok=no
7471 ac_ext=c
7472 ac_cpp='$CPP $CPPFLAGS'
7473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479 ac_ext=c
7480 ac_cpp='$CPP $CPPFLAGS'
7481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486 # Check whether --enable-dev-mode was given.
7487 if test "${enable_dev_mode+set}" = set; then
7488 enableval=$enable_dev_mode; case "${enableval}" in
7489 y|ye|yes) AST_DEVMODE=yes ;;
7490 n|no) AST_DEVMODE=no ;;
7491 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7492 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7493 { (exit 1); exit 1; }; } ;;
7494 esac
7499 # package option names should be in alphabetical order
7500 # by the --with option name, to make things easier for the users :-)
7503 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7504 ALSA_OPTION="asound"
7506 # Check whether --with-asound was given.
7507 if test "${with_asound+set}" = set; then
7508 withval=$with_asound;
7509 case ${withval} in
7510 n|no)
7511 USE_ALSA=no
7513 y|ye|yes)
7514 ALSA_MANDATORY="yes"
7517 ALSA_DIR="${withval}"
7518 ALSA_MANDATORY="yes"
7520 esac
7524 PBX_ALSA=0
7530 CURL_DESCRIP="cURL"
7531 CURL_OPTION="curl"
7533 # Check whether --with-curl was given.
7534 if test "${with_curl+set}" = set; then
7535 withval=$with_curl;
7536 case ${withval} in
7537 n|no)
7538 USE_CURL=no
7540 y|ye|yes)
7541 CURL_MANDATORY="yes"
7544 CURL_DIR="${withval}"
7545 CURL_MANDATORY="yes"
7547 esac
7551 PBX_CURL=0
7557 CURSES_DESCRIP="curses"
7558 CURSES_OPTION="curses"
7560 # Check whether --with-curses was given.
7561 if test "${with_curses+set}" = set; then
7562 withval=$with_curses;
7563 case ${withval} in
7564 n|no)
7565 USE_CURSES=no
7567 y|ye|yes)
7568 CURSES_MANDATORY="yes"
7571 CURSES_DIR="${withval}"
7572 CURSES_MANDATORY="yes"
7574 esac
7578 PBX_CURSES=0
7584 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7585 GNUTLS_OPTION="gnutls"
7587 # Check whether --with-gnutls was given.
7588 if test "${with_gnutls+set}" = set; then
7589 withval=$with_gnutls;
7590 case ${withval} in
7591 n|no)
7592 USE_GNUTLS=no
7594 y|ye|yes)
7595 GNUTLS_MANDATORY="yes"
7598 GNUTLS_DIR="${withval}"
7599 GNUTLS_MANDATORY="yes"
7601 esac
7605 PBX_GNUTLS=0
7611 GSM_DESCRIP="GSM"
7612 GSM_OPTION="gsm"
7614 # Check whether --with-gsm was given.
7615 if test "${with_gsm+set}" = set; then
7616 withval=$with_gsm;
7617 case ${withval} in
7618 n|no)
7619 USE_GSM=no
7621 y|ye|yes)
7622 GSM_MANDATORY="yes"
7625 GSM_DIR="${withval}"
7626 GSM_MANDATORY="yes"
7628 esac
7632 PBX_GSM=0
7638 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7639 IKSEMEL_OPTION="iksemel"
7641 # Check whether --with-iksemel was given.
7642 if test "${with_iksemel+set}" = set; then
7643 withval=$with_iksemel;
7644 case ${withval} in
7645 n|no)
7646 USE_IKSEMEL=no
7648 y|ye|yes)
7649 IKSEMEL_MANDATORY="yes"
7652 IKSEMEL_DIR="${withval}"
7653 IKSEMEL_MANDATORY="yes"
7655 esac
7659 PBX_IKSEMEL=0
7665 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7666 IMAP_TK_OPTION="imap"
7668 # Check whether --with-imap was given.
7669 if test "${with_imap+set}" = set; then
7670 withval=$with_imap;
7671 case ${withval} in
7672 n|no)
7673 USE_IMAP_TK=no
7675 y|ye|yes)
7676 IMAP_TK_MANDATORY="yes"
7679 IMAP_TK_DIR="${withval}"
7680 IMAP_TK_MANDATORY="yes"
7682 esac
7686 PBX_IMAP_TK=0
7692 ISDNNET_DESCRIP="ISDN4Linux Library"
7693 ISDNNET_OPTION="isdnnet"
7695 # Check whether --with-isdnnet was given.
7696 if test "${with_isdnnet+set}" = set; then
7697 withval=$with_isdnnet;
7698 case ${withval} in
7699 n|no)
7700 USE_ISDNNET=no
7702 y|ye|yes)
7703 ISDNNET_MANDATORY="yes"
7706 ISDNNET_DIR="${withval}"
7707 ISDNNET_MANDATORY="yes"
7709 esac
7713 PBX_ISDNNET=0
7719 KDE_DESCRIP="KDE"
7720 KDE_OPTION="kde"
7722 # Check whether --with-kde was given.
7723 if test "${with_kde+set}" = set; then
7724 withval=$with_kde;
7725 case ${withval} in
7726 n|no)
7727 USE_KDE=no
7729 y|ye|yes)
7730 KDE_MANDATORY="yes"
7733 KDE_DIR="${withval}"
7734 KDE_MANDATORY="yes"
7736 esac
7740 PBX_KDE=0
7746 MISDN_DESCRIP="mISDN User Library"
7747 MISDN_OPTION="misdn"
7749 # Check whether --with-misdn was given.
7750 if test "${with_misdn+set}" = set; then
7751 withval=$with_misdn;
7752 case ${withval} in
7753 n|no)
7754 USE_MISDN=no
7756 y|ye|yes)
7757 MISDN_MANDATORY="yes"
7760 MISDN_DIR="${withval}"
7761 MISDN_MANDATORY="yes"
7763 esac
7767 PBX_MISDN=0
7773 NBS_DESCRIP="Network Broadcast Sound"
7774 NBS_OPTION="nbs"
7776 # Check whether --with-nbs was given.
7777 if test "${with_nbs+set}" = set; then
7778 withval=$with_nbs;
7779 case ${withval} in
7780 n|no)
7781 USE_NBS=no
7783 y|ye|yes)
7784 NBS_MANDATORY="yes"
7787 NBS_DIR="${withval}"
7788 NBS_MANDATORY="yes"
7790 esac
7794 PBX_NBS=0
7800 NCURSES_DESCRIP="ncurses"
7801 NCURSES_OPTION="ncurses"
7803 # Check whether --with-ncurses was given.
7804 if test "${with_ncurses+set}" = set; then
7805 withval=$with_ncurses;
7806 case ${withval} in
7807 n|no)
7808 USE_NCURSES=no
7810 y|ye|yes)
7811 NCURSES_MANDATORY="yes"
7814 NCURSES_DIR="${withval}"
7815 NCURSES_MANDATORY="yes"
7817 esac
7821 PBX_NCURSES=0
7827 NETSNMP_DESCRIP="Net-SNMP"
7828 NETSNMP_OPTION="netsnmp"
7830 # Check whether --with-netsnmp was given.
7831 if test "${with_netsnmp+set}" = set; then
7832 withval=$with_netsnmp;
7833 case ${withval} in
7834 n|no)
7835 USE_NETSNMP=no
7837 y|ye|yes)
7838 NETSNMP_MANDATORY="yes"
7841 NETSNMP_DIR="${withval}"
7842 NETSNMP_MANDATORY="yes"
7844 esac
7848 PBX_NETSNMP=0
7854 NEWT_DESCRIP="newt"
7855 NEWT_OPTION="newt"
7857 # Check whether --with-newt was given.
7858 if test "${with_newt+set}" = set; then
7859 withval=$with_newt;
7860 case ${withval} in
7861 n|no)
7862 USE_NEWT=no
7864 y|ye|yes)
7865 NEWT_MANDATORY="yes"
7868 NEWT_DIR="${withval}"
7869 NEWT_MANDATORY="yes"
7871 esac
7875 PBX_NEWT=0
7881 UNIXODBC_DESCRIP="unixODBC"
7882 UNIXODBC_OPTION="odbc"
7884 # Check whether --with-odbc was given.
7885 if test "${with_odbc+set}" = set; then
7886 withval=$with_odbc;
7887 case ${withval} in
7888 n|no)
7889 USE_UNIXODBC=no
7891 y|ye|yes)
7892 UNIXODBC_MANDATORY="yes"
7895 UNIXODBC_DIR="${withval}"
7896 UNIXODBC_MANDATORY="yes"
7898 esac
7902 PBX_UNIXODBC=0
7908 OGG_DESCRIP="OGG"
7909 OGG_OPTION="ogg"
7911 # Check whether --with-ogg was given.
7912 if test "${with_ogg+set}" = set; then
7913 withval=$with_ogg;
7914 case ${withval} in
7915 n|no)
7916 USE_OGG=no
7918 y|ye|yes)
7919 OGG_MANDATORY="yes"
7922 OGG_DIR="${withval}"
7923 OGG_MANDATORY="yes"
7925 esac
7929 PBX_OGG=0
7935 OSPTK_DESCRIP="OSP Toolkit"
7936 OSPTK_OPTION="osptk"
7938 # Check whether --with-osptk was given.
7939 if test "${with_osptk+set}" = set; then
7940 withval=$with_osptk;
7941 case ${withval} in
7942 n|no)
7943 USE_OSPTK=no
7945 y|ye|yes)
7946 OSPTK_MANDATORY="yes"
7949 OSPTK_DIR="${withval}"
7950 OSPTK_MANDATORY="yes"
7952 esac
7956 PBX_OSPTK=0
7962 OSS_DESCRIP="Open Sound System"
7963 OSS_OPTION="oss"
7965 # Check whether --with-oss was given.
7966 if test "${with_oss+set}" = set; then
7967 withval=$with_oss;
7968 case ${withval} in
7969 n|no)
7970 USE_OSS=no
7972 y|ye|yes)
7973 OSS_MANDATORY="yes"
7976 OSS_DIR="${withval}"
7977 OSS_MANDATORY="yes"
7979 esac
7983 PBX_OSS=0
7989 POPT_DESCRIP="popt"
7990 POPT_OPTION="popt"
7992 # Check whether --with-popt was given.
7993 if test "${with_popt+set}" = set; then
7994 withval=$with_popt;
7995 case ${withval} in
7996 n|no)
7997 USE_POPT=no
7999 y|ye|yes)
8000 POPT_MANDATORY="yes"
8003 POPT_DIR="${withval}"
8004 POPT_MANDATORY="yes"
8006 esac
8010 PBX_POPT=0
8016 PGSQL_DESCRIP="PostgreSQL"
8017 PGSQL_OPTION="postgres"
8019 # Check whether --with-postgres was given.
8020 if test "${with_postgres+set}" = set; then
8021 withval=$with_postgres;
8022 case ${withval} in
8023 n|no)
8024 USE_PGSQL=no
8026 y|ye|yes)
8027 PGSQL_MANDATORY="yes"
8030 PGSQL_DIR="${withval}"
8031 PGSQL_MANDATORY="yes"
8033 esac
8037 PBX_PGSQL=0
8043 PRI_DESCRIP="ISDN PRI"
8044 PRI_OPTION="pri"
8046 # Check whether --with-pri was given.
8047 if test "${with_pri+set}" = set; then
8048 withval=$with_pri;
8049 case ${withval} in
8050 n|no)
8051 USE_PRI=no
8053 y|ye|yes)
8054 PRI_MANDATORY="yes"
8057 PRI_DIR="${withval}"
8058 PRI_MANDATORY="yes"
8060 esac
8064 PBX_PRI=0
8070 PWLIB_DESCRIP="PWlib"
8071 PWLIB_OPTION="pwlib"
8073 # Check whether --with-pwlib was given.
8074 if test "${with_pwlib+set}" = set; then
8075 withval=$with_pwlib;
8076 case ${withval} in
8077 n|no)
8078 USE_PWLIB=no
8080 y|ye|yes)
8081 PWLIB_MANDATORY="yes"
8084 PWLIB_DIR="${withval}"
8085 PWLIB_MANDATORY="yes"
8087 esac
8091 PBX_PWLIB=0
8097 OPENH323_DESCRIP="OpenH323"
8098 OPENH323_OPTION="h323"
8100 # Check whether --with-h323 was given.
8101 if test "${with_h323+set}" = set; then
8102 withval=$with_h323;
8103 case ${withval} in
8104 n|no)
8105 USE_OPENH323=no
8107 y|ye|yes)
8108 OPENH323_MANDATORY="yes"
8111 OPENH323_DIR="${withval}"
8112 OPENH323_MANDATORY="yes"
8114 esac
8118 PBX_OPENH323=0
8124 QT_DESCRIP="Qt"
8125 QT_OPTION="qt"
8127 # Check whether --with-qt was given.
8128 if test "${with_qt+set}" = set; then
8129 withval=$with_qt;
8130 case ${withval} in
8131 n|no)
8132 USE_QT=no
8134 y|ye|yes)
8135 QT_MANDATORY="yes"
8138 QT_DIR="${withval}"
8139 QT_MANDATORY="yes"
8141 esac
8145 PBX_QT=0
8151 RADIUS_DESCRIP="Radius Client"
8152 RADIUS_OPTION="radius"
8154 # Check whether --with-radius was given.
8155 if test "${with_radius+set}" = set; then
8156 withval=$with_radius;
8157 case ${withval} in
8158 n|no)
8159 USE_RADIUS=no
8161 y|ye|yes)
8162 RADIUS_MANDATORY="yes"
8165 RADIUS_DIR="${withval}"
8166 RADIUS_MANDATORY="yes"
8168 esac
8172 PBX_RADIUS=0
8178 SPEEX_DESCRIP="Speex"
8179 SPEEX_OPTION="speex"
8181 # Check whether --with-speex was given.
8182 if test "${with_speex+set}" = set; then
8183 withval=$with_speex;
8184 case ${withval} in
8185 n|no)
8186 USE_SPEEX=no
8188 y|ye|yes)
8189 SPEEX_MANDATORY="yes"
8192 SPEEX_DIR="${withval}"
8193 SPEEX_MANDATORY="yes"
8195 esac
8199 PBX_SPEEX=0
8205 SQLITE_DESCRIP="SQLite"
8206 SQLITE_OPTION="sqlite"
8208 # Check whether --with-sqlite was given.
8209 if test "${with_sqlite+set}" = set; then
8210 withval=$with_sqlite;
8211 case ${withval} in
8212 n|no)
8213 USE_SQLITE=no
8215 y|ye|yes)
8216 SQLITE_MANDATORY="yes"
8219 SQLITE_DIR="${withval}"
8220 SQLITE_MANDATORY="yes"
8222 esac
8226 PBX_SQLITE=0
8232 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8233 SUPPSERV_OPTION="suppserv"
8235 # Check whether --with-suppserv was given.
8236 if test "${with_suppserv+set}" = set; then
8237 withval=$with_suppserv;
8238 case ${withval} in
8239 n|no)
8240 USE_SUPPSERV=no
8242 y|ye|yes)
8243 SUPPSERV_MANDATORY="yes"
8246 SUPPSERV_DIR="${withval}"
8247 SUPPSERV_MANDATORY="yes"
8249 esac
8253 PBX_SUPPSERV=0
8259 OPENSSL_DESCRIP="OpenSSL"
8260 OPENSSL_OPTION="ssl"
8262 # Check whether --with-ssl was given.
8263 if test "${with_ssl+set}" = set; then
8264 withval=$with_ssl;
8265 case ${withval} in
8266 n|no)
8267 USE_OPENSSL=no
8269 y|ye|yes)
8270 OPENSSL_MANDATORY="yes"
8273 OPENSSL_DIR="${withval}"
8274 OPENSSL_MANDATORY="yes"
8276 esac
8280 PBX_OPENSSL=0
8286 FREETDS_DESCRIP="FreeTDS"
8287 FREETDS_OPTION="tds"
8289 # Check whether --with-tds was given.
8290 if test "${with_tds+set}" = set; then
8291 withval=$with_tds;
8292 case ${withval} in
8293 n|no)
8294 USE_FREETDS=no
8296 y|ye|yes)
8297 FREETDS_MANDATORY="yes"
8300 FREETDS_DIR="${withval}"
8301 FREETDS_MANDATORY="yes"
8303 esac
8307 PBX_FREETDS=0
8313 TERMCAP_DESCRIP="Termcap"
8314 TERMCAP_OPTION="termcap"
8316 # Check whether --with-termcap was given.
8317 if test "${with_termcap+set}" = set; then
8318 withval=$with_termcap;
8319 case ${withval} in
8320 n|no)
8321 USE_TERMCAP=no
8323 y|ye|yes)
8324 TERMCAP_MANDATORY="yes"
8327 TERMCAP_DIR="${withval}"
8328 TERMCAP_MANDATORY="yes"
8330 esac
8334 PBX_TERMCAP=0
8340 TINFO_DESCRIP="Term Info"
8341 TINFO_OPTION="tinfo"
8343 # Check whether --with-tinfo was given.
8344 if test "${with_tinfo+set}" = set; then
8345 withval=$with_tinfo;
8346 case ${withval} in
8347 n|no)
8348 USE_TINFO=no
8350 y|ye|yes)
8351 TINFO_MANDATORY="yes"
8354 TINFO_DIR="${withval}"
8355 TINFO_MANDATORY="yes"
8357 esac
8361 PBX_TINFO=0
8367 TONEZONE_DESCRIP="tonezone"
8368 TONEZONE_OPTION="tonezone"
8370 # Check whether --with-tonezone was given.
8371 if test "${with_tonezone+set}" = set; then
8372 withval=$with_tonezone;
8373 case ${withval} in
8374 n|no)
8375 USE_TONEZONE=no
8377 y|ye|yes)
8378 TONEZONE_MANDATORY="yes"
8381 TONEZONE_DIR="${withval}"
8382 TONEZONE_MANDATORY="yes"
8384 esac
8388 PBX_TONEZONE=0
8394 VORBIS_DESCRIP="Vorbis"
8395 VORBIS_OPTION="vorbis"
8397 # Check whether --with-vorbis was given.
8398 if test "${with_vorbis+set}" = set; then
8399 withval=$with_vorbis;
8400 case ${withval} in
8401 n|no)
8402 USE_VORBIS=no
8404 y|ye|yes)
8405 VORBIS_MANDATORY="yes"
8408 VORBIS_DIR="${withval}"
8409 VORBIS_MANDATORY="yes"
8411 esac
8415 PBX_VORBIS=0
8421 VPB_DESCRIP="Voicetronix API"
8422 VPB_OPTION="vpb"
8424 # Check whether --with-vpb was given.
8425 if test "${with_vpb+set}" = set; then
8426 withval=$with_vpb;
8427 case ${withval} in
8428 n|no)
8429 USE_VPB=no
8431 y|ye|yes)
8432 VPB_MANDATORY="yes"
8435 VPB_DIR="${withval}"
8436 VPB_MANDATORY="yes"
8438 esac
8442 PBX_VPB=0
8448 ZLIB_DESCRIP="zlib"
8449 ZLIB_OPTION="z"
8451 # Check whether --with-z was given.
8452 if test "${with_z+set}" = set; then
8453 withval=$with_z;
8454 case ${withval} in
8455 n|no)
8456 USE_ZLIB=no
8458 y|ye|yes)
8459 ZLIB_MANDATORY="yes"
8462 ZLIB_DIR="${withval}"
8463 ZLIB_MANDATORY="yes"
8465 esac
8469 PBX_ZLIB=0
8475 ZAPTEL_DESCRIP="Zaptel"
8476 ZAPTEL_OPTION="zaptel"
8478 # Check whether --with-zaptel was given.
8479 if test "${with_zaptel+set}" = set; then
8480 withval=$with_zaptel;
8481 case ${withval} in
8482 n|no)
8483 USE_ZAPTEL=no
8485 y|ye|yes)
8486 ZAPTEL_MANDATORY="yes"
8489 ZAPTEL_DIR="${withval}"
8490 ZAPTEL_MANDATORY="yes"
8492 esac
8496 PBX_ZAPTEL=0
8502 # check for basic system features and functionality before
8503 # checking for package libraries
8505 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8506 # for constant arguments. Useless!
8507 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8508 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8509 if test "${ac_cv_working_alloca_h+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <alloca.h>
8520 main ()
8522 char *p = (char *) alloca (2 * sizeof (int));
8523 if (p) return 0;
8525 return 0;
8527 _ACEOF
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (ac_try="$ac_link"
8530 case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest$ac_exeext &&
8545 $as_test_x conftest$ac_exeext; then
8546 ac_cv_working_alloca_h=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_cv_working_alloca_h=no
8554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8555 conftest$ac_exeext conftest.$ac_ext
8557 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8559 if test $ac_cv_working_alloca_h = yes; then
8561 cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_ALLOCA_H 1
8563 _ACEOF
8567 { echo "$as_me:$LINENO: checking for alloca" >&5
8568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8569 if test "${ac_cv_func_alloca_works+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 #ifdef __GNUC__
8579 # define alloca __builtin_alloca
8580 #else
8581 # ifdef _MSC_VER
8582 # include <malloc.h>
8583 # define alloca _alloca
8584 # else
8585 # ifdef HAVE_ALLOCA_H
8586 # include <alloca.h>
8587 # else
8588 # ifdef _AIX
8589 #pragma alloca
8590 # else
8591 # ifndef alloca /* predefined by HP cc +Olibcalls */
8592 char *alloca ();
8593 # endif
8594 # endif
8595 # endif
8596 # endif
8597 #endif
8600 main ()
8602 char *p = (char *) alloca (1);
8603 if (p) return 0;
8605 return 0;
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8610 case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_link") 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest$ac_exeext &&
8625 $as_test_x conftest$ac_exeext; then
8626 ac_cv_func_alloca_works=yes
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_func_alloca_works=no
8634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8635 conftest$ac_exeext conftest.$ac_ext
8637 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8638 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8640 if test $ac_cv_func_alloca_works = yes; then
8642 cat >>confdefs.h <<\_ACEOF
8643 #define HAVE_ALLOCA 1
8644 _ACEOF
8646 else
8647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8648 # that cause trouble. Some versions do not even contain alloca or
8649 # contain a buggy version. If you still want to use their alloca,
8650 # use ar to extract alloca.o from them instead of compiling alloca.c.
8652 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8654 cat >>confdefs.h <<\_ACEOF
8655 #define C_ALLOCA 1
8656 _ACEOF
8659 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8660 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8661 if test "${ac_cv_os_cray+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 #if defined CRAY && ! defined CRAY2
8671 webecray
8672 #else
8673 wenotbecray
8674 #endif
8676 _ACEOF
8677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8678 $EGREP "webecray" >/dev/null 2>&1; then
8679 ac_cv_os_cray=yes
8680 else
8681 ac_cv_os_cray=no
8683 rm -f conftest*
8686 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8687 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8688 if test $ac_cv_os_cray = yes; then
8689 for ac_func in _getb67 GETB67 getb67; do
8690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define $ac_func innocuous_$ac_func
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char $ac_func (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8717 #undef $ac_func
8719 /* Override any GCC internal prototype to avoid an error.
8720 Use char because int might match the return type of a GCC
8721 builtin and then its argument prototype would still apply. */
8722 #ifdef __cplusplus
8723 extern "C"
8724 #endif
8725 char $ac_func ();
8726 /* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729 #if defined __stub_$ac_func || defined __stub___$ac_func
8730 choke me
8731 #endif
8734 main ()
8736 return $ac_func ();
8738 return 0;
8740 _ACEOF
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (ac_try="$ac_link"
8743 case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_link") 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 } && test -s conftest$ac_exeext &&
8758 $as_test_x conftest$ac_exeext; then
8759 eval "$as_ac_var=yes"
8760 else
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 eval "$as_ac_var=no"
8767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8768 conftest$ac_exeext conftest.$ac_ext
8770 ac_res=`eval echo '${'$as_ac_var'}'`
8771 { echo "$as_me:$LINENO: result: $ac_res" >&5
8772 echo "${ECHO_T}$ac_res" >&6; }
8773 if test `eval echo '${'$as_ac_var'}'` = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define CRAY_STACKSEG_END $ac_func
8777 _ACEOF
8779 break
8782 done
8785 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8786 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8787 if test "${ac_cv_c_stack_direction+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 if test "$cross_compiling" = yes; then
8791 ac_cv_c_stack_direction=0
8792 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8801 find_stack_direction ()
8803 static char *addr = 0;
8804 auto char dummy;
8805 if (addr == 0)
8807 addr = &dummy;
8808 return find_stack_direction ();
8810 else
8811 return (&dummy > addr) ? 1 : -1;
8815 main ()
8817 return find_stack_direction () < 0;
8819 _ACEOF
8820 rm -f conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8822 case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_link") 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_try") 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_c_stack_direction=1
8841 else
8842 echo "$as_me: program exited with status $ac_status" >&5
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ( exit $ac_status )
8847 ac_cv_c_stack_direction=-1
8849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8854 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8855 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8857 cat >>confdefs.h <<_ACEOF
8858 #define STACK_DIRECTION $ac_cv_c_stack_direction
8859 _ACEOF
8869 ac_header_dirent=no
8870 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8871 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8872 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8873 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8884 #include <$ac_hdr>
8887 main ()
8889 if ((DIR *) 0)
8890 return 0;
8892 return 0;
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8897 case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 eval "$as_ac_Header=yes"
8913 else
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 eval "$as_ac_Header=no"
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 ac_res=`eval echo '${'$as_ac_Header'}'`
8923 { echo "$as_me:$LINENO: result: $ac_res" >&5
8924 echo "${ECHO_T}$ac_res" >&6; }
8925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8928 _ACEOF
8930 ac_header_dirent=$ac_hdr; break
8933 done
8934 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8935 if test $ac_header_dirent = dirent.h; then
8936 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8937 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8938 if test "${ac_cv_search_opendir+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_func_search_save_LIBS=$LIBS
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 char opendir ();
8957 main ()
8959 return opendir ();
8961 return 0;
8963 _ACEOF
8964 for ac_lib in '' dir; do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required"
8967 else
8968 ac_res=-l$ac_lib
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8973 case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest$ac_exeext &&
8988 $as_test_x conftest$ac_exeext; then
8989 ac_cv_search_opendir=$ac_res
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8998 conftest$ac_exeext
8999 if test "${ac_cv_search_opendir+set}" = set; then
9000 break
9002 done
9003 if test "${ac_cv_search_opendir+set}" = set; then
9005 else
9006 ac_cv_search_opendir=no
9008 rm conftest.$ac_ext
9009 LIBS=$ac_func_search_save_LIBS
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9012 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9013 ac_res=$ac_cv_search_opendir
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9019 else
9020 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9022 if test "${ac_cv_search_opendir+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 ac_func_search_save_LIBS=$LIBS
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 /* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 char opendir ();
9041 main ()
9043 return opendir ();
9045 return 0;
9047 _ACEOF
9048 for ac_lib in '' x; do
9049 if test -z "$ac_lib"; then
9050 ac_res="none required"
9051 else
9052 ac_res=-l$ac_lib
9053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (ac_try="$ac_link"
9057 case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_link") 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest$ac_exeext &&
9072 $as_test_x conftest$ac_exeext; then
9073 ac_cv_search_opendir=$ac_res
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9082 conftest$ac_exeext
9083 if test "${ac_cv_search_opendir+set}" = set; then
9084 break
9086 done
9087 if test "${ac_cv_search_opendir+set}" = set; then
9089 else
9090 ac_cv_search_opendir=no
9092 rm conftest.$ac_ext
9093 LIBS=$ac_func_search_save_LIBS
9095 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9096 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9097 ac_res=$ac_cv_search_opendir
9098 if test "$ac_res" != no; then
9099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9105 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9107 if test "${ac_cv_header_stdc+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116 #include <stdlib.h>
9117 #include <stdarg.h>
9118 #include <string.h>
9119 #include <float.h>
9122 main ()
9126 return 0;
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest.$ac_objext; then
9146 ac_cv_header_stdc=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_header_stdc=no
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 if test $ac_cv_header_stdc = yes; then
9157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 #include <string.h>
9166 _ACEOF
9167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9168 $EGREP "memchr" >/dev/null 2>&1; then
9170 else
9171 ac_cv_header_stdc=no
9173 rm -f conftest*
9177 if test $ac_cv_header_stdc = yes; then
9178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9179 cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h. */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <stdlib.h>
9187 _ACEOF
9188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189 $EGREP "free" >/dev/null 2>&1; then
9191 else
9192 ac_cv_header_stdc=no
9194 rm -f conftest*
9198 if test $ac_cv_header_stdc = yes; then
9199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9200 if test "$cross_compiling" = yes; then
9202 else
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <ctype.h>
9210 #include <stdlib.h>
9211 #if ((' ' & 0x0FF) == 0x020)
9212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9214 #else
9215 # define ISLOWER(c) \
9216 (('a' <= (c) && (c) <= 'i') \
9217 || ('j' <= (c) && (c) <= 'r') \
9218 || ('s' <= (c) && (c) <= 'z'))
9219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9220 #endif
9222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9224 main ()
9226 int i;
9227 for (i = 0; i < 256; i++)
9228 if (XOR (islower (i), ISLOWER (i))
9229 || toupper (i) != TOUPPER (i))
9230 return 2;
9231 return 0;
9233 _ACEOF
9234 rm -f conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9236 case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9239 esac
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9245 { (case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9248 esac
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_try") 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9255 else
9256 echo "$as_me: program exited with status $ac_status" >&5
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ( exit $ac_status )
9261 ac_cv_header_stdc=no
9263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9270 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9271 if test $ac_cv_header_stdc = yes; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define STDC_HEADERS 1
9275 _ACEOF
9279 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9280 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9281 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <sys/types.h>
9291 #include <sys/wait.h>
9292 #ifndef WEXITSTATUS
9293 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9294 #endif
9295 #ifndef WIFEXITED
9296 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9297 #endif
9300 main ()
9302 int s;
9303 wait (&s);
9304 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9306 return 0;
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9311 case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_compile") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest.$ac_objext; then
9326 ac_cv_header_sys_wait_h=yes
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_header_sys_wait_h=no
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9337 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9338 if test $ac_cv_header_sys_wait_h = yes; then
9340 cat >>confdefs.h <<\_ACEOF
9341 #define HAVE_SYS_WAIT_H 1
9342 _ACEOF
9369 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
9371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 ac_res=`eval echo '${'$as_ac_Header'}'`
9379 { echo "$as_me:$LINENO: result: $ac_res" >&5
9380 echo "${ECHO_T}$ac_res" >&6; }
9381 else
9382 # Is the header compilable?
9383 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h. */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 $ac_includes_default
9392 #include <$ac_header>
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (ac_try="$ac_compile"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9411 ac_header_compiler=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_compiler=no
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421 echo "${ECHO_T}$ac_header_compiler" >&6; }
9423 # Is the header present?
9424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 #include <$ac_header>
9433 _ACEOF
9434 if { (ac_try="$ac_cpp conftest.$ac_ext"
9435 case "(($ac_try" in
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9438 esac
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } >/dev/null && {
9447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9448 test ! -s conftest.err
9449 }; then
9450 ac_header_preproc=yes
9451 else
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ac_header_preproc=no
9458 rm -f conftest.err conftest.$ac_ext
9459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460 echo "${ECHO_T}$ac_header_preproc" >&6; }
9462 # So? What about this header?
9463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464 yes:no: )
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9469 ac_header_preproc=yes
9471 no:yes:* )
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9486 esac
9487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492 eval "$as_ac_Header=\$ac_header_preproc"
9494 ac_res=`eval echo '${'$as_ac_Header'}'`
9495 { echo "$as_me:$LINENO: result: $ac_res" >&5
9496 echo "${ECHO_T}$ac_res" >&6; }
9499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500 cat >>confdefs.h <<_ACEOF
9501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502 _ACEOF
9506 done
9509 # Check whether --enable-largefile was given.
9510 if test "${enable_largefile+set}" = set; then
9511 enableval=$enable_largefile;
9514 if test "$enable_largefile" != no; then
9516 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9517 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9518 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521 ac_cv_sys_largefile_CC=no
9522 if test "$GCC" != yes; then
9523 ac_save_CC=$CC
9524 while :; do
9525 # IRIX 6.2 and later do not support large files by default,
9526 # so use the C compiler's -n32 option if that helps.
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 #include <sys/types.h>
9534 /* Check that off_t can represent 2**63 - 1 correctly.
9535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9536 since some C++ compilers masquerading as C compilers
9537 incorrectly reject 9223372036854775807. */
9538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9540 && LARGE_OFF_T % 2147483647 == 1)
9541 ? 1 : -1];
9543 main ()
9547 return 0;
9549 _ACEOF
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9552 case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_compile") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest.$ac_objext; then
9567 break
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9575 rm -f core conftest.err conftest.$ac_objext
9576 CC="$CC -n32"
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9579 case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_compile") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
9594 ac_cv_sys_largefile_CC=' -n32'; break
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9602 rm -f core conftest.err conftest.$ac_objext
9603 break
9604 done
9605 CC=$ac_save_CC
9606 rm -f conftest.$ac_ext
9609 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9610 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9611 if test "$ac_cv_sys_largefile_CC" != no; then
9612 CC=$CC$ac_cv_sys_largefile_CC
9615 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9616 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9617 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 while :; do
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <sys/types.h>
9628 /* Check that off_t can represent 2**63 - 1 correctly.
9629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9630 since some C++ compilers masquerading as C compilers
9631 incorrectly reject 9223372036854775807. */
9632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9634 && LARGE_OFF_T % 2147483647 == 1)
9635 ? 1 : -1];
9637 main ()
9641 return 0;
9643 _ACEOF
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9646 case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_compile") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest.$ac_objext; then
9661 ac_cv_sys_file_offset_bits=no; break
9662 else
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #define _FILE_OFFSET_BITS 64
9677 #include <sys/types.h>
9678 /* Check that off_t can represent 2**63 - 1 correctly.
9679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9680 since some C++ compilers masquerading as C compilers
9681 incorrectly reject 9223372036854775807. */
9682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9684 && LARGE_OFF_T % 2147483647 == 1)
9685 ? 1 : -1];
9687 main ()
9691 return 0;
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (ac_try="$ac_compile"
9696 case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_compile") 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest.$ac_objext; then
9711 ac_cv_sys_file_offset_bits=64; break
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 ac_cv_sys_file_offset_bits=unknown
9721 break
9722 done
9724 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9725 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9726 case $ac_cv_sys_file_offset_bits in #(
9727 no | unknown) ;;
9729 cat >>confdefs.h <<_ACEOF
9730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9731 _ACEOF
9733 esac
9734 rm -f conftest*
9735 if test $ac_cv_sys_file_offset_bits = unknown; then
9736 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9737 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9738 if test "${ac_cv_sys_large_files+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 while :; do
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <sys/types.h>
9749 /* Check that off_t can represent 2**63 - 1 correctly.
9750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9751 since some C++ compilers masquerading as C compilers
9752 incorrectly reject 9223372036854775807. */
9753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9755 && LARGE_OFF_T % 2147483647 == 1)
9756 ? 1 : -1];
9758 main ()
9762 return 0;
9764 _ACEOF
9765 rm -f conftest.$ac_objext
9766 if { (ac_try="$ac_compile"
9767 case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_compile") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest.$ac_objext; then
9782 ac_cv_sys_large_files=no; break
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 #define _LARGE_FILES 1
9798 #include <sys/types.h>
9799 /* Check that off_t can represent 2**63 - 1 correctly.
9800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9801 since some C++ compilers masquerading as C compilers
9802 incorrectly reject 9223372036854775807. */
9803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9805 && LARGE_OFF_T % 2147483647 == 1)
9806 ? 1 : -1];
9808 main ()
9812 return 0;
9814 _ACEOF
9815 rm -f conftest.$ac_objext
9816 if { (ac_try="$ac_compile"
9817 case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_compile") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest.$ac_objext; then
9832 ac_cv_sys_large_files=1; break
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 ac_cv_sys_large_files=unknown
9842 break
9843 done
9845 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9846 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
9847 case $ac_cv_sys_large_files in #(
9848 no | unknown) ;;
9850 cat >>confdefs.h <<_ACEOF
9851 #define _LARGE_FILES $ac_cv_sys_large_files
9852 _ACEOF
9854 esac
9855 rm -f conftest*
9860 # Checks for typedefs, structures, and compiler characteristics.
9861 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9862 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9863 if test "${ac_cv_header_stdbool_h+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 #include <stdbool.h>
9874 #ifndef bool
9875 "error: bool is not defined"
9876 #endif
9877 #ifndef false
9878 "error: false is not defined"
9879 #endif
9880 #if false
9881 "error: false is not 0"
9882 #endif
9883 #ifndef true
9884 "error: true is not defined"
9885 #endif
9886 #if true != 1
9887 "error: true is not 1"
9888 #endif
9889 #ifndef __bool_true_false_are_defined
9890 "error: __bool_true_false_are_defined is not defined"
9891 #endif
9893 struct s { _Bool s: 1; _Bool t; } s;
9895 char a[true == 1 ? 1 : -1];
9896 char b[false == 0 ? 1 : -1];
9897 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9898 char d[(bool) 0.5 == true ? 1 : -1];
9899 bool e = &s;
9900 char f[(_Bool) 0.0 == false ? 1 : -1];
9901 char g[true];
9902 char h[sizeof (_Bool)];
9903 char i[sizeof s.t];
9904 enum { j = false, k = true, l = false * true, m = true * 256 };
9905 _Bool n[m];
9906 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9907 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9908 # if defined __xlc__ || defined __GNUC__
9909 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9910 reported by James Lemley on 2005-10-05; see
9911 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9912 This test is not quite right, since xlc is allowed to
9913 reject this program, as the initializer for xlcbug is
9914 not one of the forms that C requires support for.
9915 However, doing the test right would require a runtime
9916 test, and that would make cross-compilation harder.
9917 Let us hope that IBM fixes the xlc bug, and also adds
9918 support for this kind of constant expression. In the
9919 meantime, this test will reject xlc, which is OK, since
9920 our stdbool.h substitute should suffice. We also test
9921 this with GCC, where it should work, to detect more
9922 quickly whether someone messes up the test in the
9923 future. */
9924 char digs[] = "0123456789";
9925 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9926 # endif
9927 /* Catch a bug in an HP-UX C compiler. See
9928 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9929 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9931 _Bool q = true;
9932 _Bool *pq = &q;
9935 main ()
9938 *pq |= q;
9939 *pq |= ! q;
9940 /* Refer to every declared value, to avoid compiler optimizations. */
9941 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9942 + !m + !n + !o + !p + !q + !pq);
9945 return 0;
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_header_stdbool_h=yes
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_header_stdbool_h=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9976 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9977 { echo "$as_me:$LINENO: checking for _Bool" >&5
9978 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9979 if test "${ac_cv_type__Bool+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 typedef _Bool ac__type_new_;
9991 main ()
9993 if ((ac__type_new_ *) 0)
9994 return 0;
9995 if (sizeof (ac__type_new_))
9996 return 0;
9998 return 0;
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (ac_try="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.$ac_objext; then
10018 ac_cv_type__Bool=yes
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_cv_type__Bool=no
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10029 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10030 if test $ac_cv_type__Bool = yes; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define HAVE__BOOL 1
10034 _ACEOF
10039 if test $ac_cv_header_stdbool_h = yes; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_STDBOOL_H 1
10043 _ACEOF
10047 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10048 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10049 if test "${ac_cv_c_const+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10060 main ()
10062 /* FIXME: Include the comments suggested by Paul. */
10063 #ifndef __cplusplus
10064 /* Ultrix mips cc rejects this. */
10065 typedef int charset[2];
10066 const charset cs;
10067 /* SunOS 4.1.1 cc rejects this. */
10068 char const *const *pcpcc;
10069 char **ppc;
10070 /* NEC SVR4.0.2 mips cc rejects this. */
10071 struct point {int x, y;};
10072 static struct point const zero = {0,0};
10073 /* AIX XL C 1.02.0.0 rejects this.
10074 It does not let you subtract one const X* pointer from another in
10075 an arm of an if-expression whose if-part is not a constant
10076 expression */
10077 const char *g = "string";
10078 pcpcc = &g + (g ? g-g : 0);
10079 /* HPUX 7.0 cc rejects these. */
10080 ++pcpcc;
10081 ppc = (char**) pcpcc;
10082 pcpcc = (char const *const *) ppc;
10083 { /* SCO 3.2v4 cc rejects this. */
10084 char *t;
10085 char const *s = 0 ? (char *) 0 : (char const *) 0;
10087 *t++ = 0;
10088 if (s) return 0;
10090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10091 int x[] = {25, 17};
10092 const int *foo = &x[0];
10093 ++foo;
10095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10096 typedef const int *iptr;
10097 iptr p = 0;
10098 ++p;
10100 { /* AIX XL C 1.02.0.0 rejects this saying
10101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10102 struct s { int j; const int *ap[3]; };
10103 struct s *b; b->j = 5;
10105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10106 const int foo = 10;
10107 if (!foo) return 0;
10109 return !cs[0] && !zero.x;
10110 #endif
10113 return 0;
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (ac_try="$ac_compile"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_compile") 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } && {
10130 test -z "$ac_c_werror_flag" ||
10131 test ! -s conftest.err
10132 } && test -s conftest.$ac_objext; then
10133 ac_cv_c_const=yes
10134 else
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_cv_c_const=no
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10145 if test $ac_cv_c_const = no; then
10147 cat >>confdefs.h <<\_ACEOF
10148 #define const
10149 _ACEOF
10153 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10154 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10155 if test "${ac_cv_type_uid_t+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <sys/types.h>
10166 _ACEOF
10167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10168 $EGREP "uid_t" >/dev/null 2>&1; then
10169 ac_cv_type_uid_t=yes
10170 else
10171 ac_cv_type_uid_t=no
10173 rm -f conftest*
10176 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10177 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10178 if test $ac_cv_type_uid_t = no; then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define uid_t int
10182 _ACEOF
10185 cat >>confdefs.h <<\_ACEOF
10186 #define gid_t int
10187 _ACEOF
10191 { echo "$as_me:$LINENO: checking for inline" >&5
10192 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10193 if test "${ac_cv_c_inline+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196 ac_cv_c_inline=no
10197 for ac_kw in inline __inline__ __inline; do
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #ifndef __cplusplus
10205 typedef int foo_t;
10206 static $ac_kw foo_t static_foo () {return 0; }
10207 $ac_kw foo_t foo () {return 0; }
10208 #endif
10210 _ACEOF
10211 rm -f conftest.$ac_objext
10212 if { (ac_try="$ac_compile"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_compile") 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } && {
10225 test -z "$ac_c_werror_flag" ||
10226 test ! -s conftest.err
10227 } && test -s conftest.$ac_objext; then
10228 ac_cv_c_inline=$ac_kw
10229 else
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237 test "$ac_cv_c_inline" != no && break
10238 done
10241 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10242 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10245 case $ac_cv_c_inline in
10246 inline | yes) ;;
10248 case $ac_cv_c_inline in
10249 no) ac_val=;;
10250 *) ac_val=$ac_cv_c_inline;;
10251 esac
10252 cat >>confdefs.h <<_ACEOF
10253 #ifndef __cplusplus
10254 #define inline $ac_val
10255 #endif
10256 _ACEOF
10258 esac
10260 { echo "$as_me:$LINENO: checking for mode_t" >&5
10261 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10262 if test "${ac_cv_type_mode_t+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 typedef mode_t ac__type_new_;
10274 main ()
10276 if ((ac__type_new_ *) 0)
10277 return 0;
10278 if (sizeof (ac__type_new_))
10279 return 0;
10281 return 0;
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (ac_try="$ac_compile"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_compile") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest.$ac_objext; then
10301 ac_cv_type_mode_t=yes
10302 else
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_cv_type_mode_t=no
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10312 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10313 if test $ac_cv_type_mode_t = yes; then
10315 else
10317 cat >>confdefs.h <<_ACEOF
10318 #define mode_t int
10319 _ACEOF
10323 { echo "$as_me:$LINENO: checking for off_t" >&5
10324 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10325 if test "${ac_cv_type_off_t+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10335 typedef off_t ac__type_new_;
10337 main ()
10339 if ((ac__type_new_ *) 0)
10340 return 0;
10341 if (sizeof (ac__type_new_))
10342 return 0;
10344 return 0;
10346 _ACEOF
10347 rm -f conftest.$ac_objext
10348 if { (ac_try="$ac_compile"
10349 case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10352 esac
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_compile") 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && {
10361 test -z "$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 } && test -s conftest.$ac_objext; then
10364 ac_cv_type_off_t=yes
10365 else
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_type_off_t=no
10372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10375 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10376 if test $ac_cv_type_off_t = yes; then
10378 else
10380 cat >>confdefs.h <<_ACEOF
10381 #define off_t long int
10382 _ACEOF
10386 { echo "$as_me:$LINENO: checking for pid_t" >&5
10387 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10388 if test "${ac_cv_type_pid_t+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h. */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 $ac_includes_default
10398 typedef pid_t ac__type_new_;
10400 main ()
10402 if ((ac__type_new_ *) 0)
10403 return 0;
10404 if (sizeof (ac__type_new_))
10405 return 0;
10407 return 0;
10409 _ACEOF
10410 rm -f conftest.$ac_objext
10411 if { (ac_try="$ac_compile"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_compile") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest.$ac_objext; then
10427 ac_cv_type_pid_t=yes
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_cv_type_pid_t=no
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10439 if test $ac_cv_type_pid_t = yes; then
10441 else
10443 cat >>confdefs.h <<_ACEOF
10444 #define pid_t int
10445 _ACEOF
10449 { echo "$as_me:$LINENO: checking for size_t" >&5
10450 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10451 if test "${ac_cv_type_size_t+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 $ac_includes_default
10461 typedef size_t ac__type_new_;
10463 main ()
10465 if ((ac__type_new_ *) 0)
10466 return 0;
10467 if (sizeof (ac__type_new_))
10468 return 0;
10470 return 0;
10472 _ACEOF
10473 rm -f conftest.$ac_objext
10474 if { (ac_try="$ac_compile"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_compile") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest.$ac_objext; then
10490 ac_cv_type_size_t=yes
10491 else
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_cv_type_size_t=no
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10501 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10502 if test $ac_cv_type_size_t = yes; then
10504 else
10506 cat >>confdefs.h <<_ACEOF
10507 #define size_t unsigned int
10508 _ACEOF
10512 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10513 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10514 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 $ac_includes_default
10525 main ()
10527 static struct stat ac_aggr;
10528 if (ac_aggr.st_blksize)
10529 return 0;
10531 return 0;
10533 _ACEOF
10534 rm -f conftest.$ac_objext
10535 if { (ac_try="$ac_compile"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_compile") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest.$ac_objext; then
10551 ac_cv_member_struct_stat_st_blksize=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10564 main ()
10566 static struct stat ac_aggr;
10567 if (sizeof ac_aggr.st_blksize)
10568 return 0;
10570 return 0;
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest.$ac_objext; then
10590 ac_cv_member_struct_stat_st_blksize=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_cv_member_struct_stat_st_blksize=no
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10604 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10605 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10609 _ACEOF
10614 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10615 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10616 if test "${ac_cv_header_time+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 #include <sys/types.h>
10626 #include <sys/time.h>
10627 #include <time.h>
10630 main ()
10632 if ((struct tm *) 0)
10633 return 0;
10635 return 0;
10637 _ACEOF
10638 rm -f conftest.$ac_objext
10639 if { (ac_try="$ac_compile"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_compile") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest.$ac_objext; then
10655 ac_cv_header_time=yes
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_header_time=no
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10666 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10667 if test $ac_cv_header_time = yes; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define TIME_WITH_SYS_TIME 1
10671 _ACEOF
10675 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10676 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10677 if test "${ac_cv_struct_tm+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 #include <sys/types.h>
10687 #include <time.h>
10690 main ()
10692 struct tm tm;
10693 int *p = &tm.tm_sec;
10694 return !p;
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (ac_try="$ac_compile"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_compile") 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && {
10713 test -z "$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 } && test -s conftest.$ac_objext; then
10716 ac_cv_struct_tm=time.h
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_struct_tm=sys/time.h
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10727 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10728 if test $ac_cv_struct_tm = sys/time.h; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define TM_IN_SYS_TIME 1
10732 _ACEOF
10736 { echo "$as_me:$LINENO: checking for working volatile" >&5
10737 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10738 if test "${ac_cv_c_volatile+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10749 main ()
10752 volatile int x;
10753 int * volatile y = (int *) 0;
10754 return !x && !y;
10756 return 0;
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest.$ac_objext; then
10776 ac_cv_c_volatile=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_c_volatile=no
10784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10787 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10788 if test $ac_cv_c_volatile = no; then
10790 cat >>confdefs.h <<\_ACEOF
10791 #define volatile
10792 _ACEOF
10796 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10797 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10798 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h. */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 $ac_includes_default
10808 typedef ptrdiff_t ac__type_new_;
10810 main ()
10812 if ((ac__type_new_ *) 0)
10813 return 0;
10814 if (sizeof (ac__type_new_))
10815 return 0;
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (ac_try="$ac_compile"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_compile") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } && {
10834 test -z "$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10836 } && test -s conftest.$ac_objext; then
10837 ac_cv_type_ptrdiff_t=yes
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_cv_type_ptrdiff_t=no
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10848 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10849 if test $ac_cv_type_ptrdiff_t = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define HAVE_PTRDIFF_T 1
10853 _ACEOF
10859 # Checks for library functions.
10861 for ac_header in unistd.h
10863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 ac_res=`eval echo '${'$as_ac_Header'}'`
10871 { echo "$as_me:$LINENO: result: $ac_res" >&5
10872 echo "${ECHO_T}$ac_res" >&6; }
10873 else
10874 # Is the header compilable?
10875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 $ac_includes_default
10884 #include <$ac_header>
10885 _ACEOF
10886 rm -f conftest.$ac_objext
10887 if { (ac_try="$ac_compile"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_compile") 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && {
10900 test -z "$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 } && test -s conftest.$ac_objext; then
10903 ac_header_compiler=yes
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_header_compiler=no
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913 echo "${ECHO_T}$ac_header_compiler" >&6; }
10915 # Is the header present?
10916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <$ac_header>
10925 _ACEOF
10926 if { (ac_try="$ac_cpp conftest.$ac_ext"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } >/dev/null && {
10939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 }; then
10942 ac_header_preproc=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_header_preproc=no
10950 rm -f conftest.err conftest.$ac_ext
10951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10952 echo "${ECHO_T}$ac_header_preproc" >&6; }
10954 # So? What about this header?
10955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10956 yes:no: )
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10961 ac_header_preproc=yes
10963 no:yes:* )
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10978 esac
10979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 eval "$as_ac_Header=\$ac_header_preproc"
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994 _ACEOF
10998 done
11000 { echo "$as_me:$LINENO: checking for working chown" >&5
11001 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11002 if test "${ac_cv_func_chown_works+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 if test "$cross_compiling" = yes; then
11006 ac_cv_func_chown_works=no
11007 else
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 $ac_includes_default
11015 #include <fcntl.h>
11018 main ()
11020 char *f = "conftest.chown";
11021 struct stat before, after;
11023 if (creat (f, 0600) < 0)
11024 return 1;
11025 if (stat (f, &before) < 0)
11026 return 1;
11027 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11028 return 1;
11029 if (stat (f, &after) < 0)
11030 return 1;
11031 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11034 return 0;
11036 _ACEOF
11037 rm -f conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_func_chown_works=yes
11058 else
11059 echo "$as_me: program exited with status $ac_status" >&5
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ( exit $ac_status )
11064 ac_cv_func_chown_works=no
11066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11070 rm -f conftest.chown
11073 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11074 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11075 if test $ac_cv_func_chown_works = yes; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_CHOWN 1
11079 _ACEOF
11083 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11084 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11085 if test "${ac_cv_func_closedir_void+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 if test "$cross_compiling" = yes; then
11089 ac_cv_func_closedir_void=yes
11090 else
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 $ac_includes_default
11098 #include <$ac_header_dirent>
11099 #ifndef __cplusplus
11100 int closedir ();
11101 #endif
11104 main ()
11106 return closedir (opendir (".")) != 0;
11108 return 0;
11110 _ACEOF
11111 rm -f conftest$ac_exeext
11112 if { (ac_try="$ac_link"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_link") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func_closedir_void=no
11132 else
11133 echo "$as_me: program exited with status $ac_status" >&5
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11137 ( exit $ac_status )
11138 ac_cv_func_closedir_void=yes
11140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11145 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11146 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11147 if test $ac_cv_func_closedir_void = yes; then
11149 cat >>confdefs.h <<\_ACEOF
11150 #define CLOSEDIR_VOID 1
11151 _ACEOF
11155 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11156 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11157 if test "${ac_cv_lib_error_at_line+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 #include <error.h>
11168 main ()
11170 error_at_line (0, 0, "", 0, "an error occurred");
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest$ac_exeext &&
11192 $as_test_x conftest$ac_exeext; then
11193 ac_cv_lib_error_at_line=yes
11194 else
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_cv_lib_error_at_line=no
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11205 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11206 if test $ac_cv_lib_error_at_line = no; then
11207 case " $LIBOBJS " in
11208 *" error.$ac_objext "* ) ;;
11209 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11211 esac
11216 for ac_header in vfork.h
11218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result: $ac_res" >&5
11227 echo "${ECHO_T}$ac_res" >&6; }
11228 else
11229 # Is the header compilable?
11230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 $ac_includes_default
11239 #include <$ac_header>
11240 _ACEOF
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest.$ac_objext; then
11258 ac_header_compiler=yes
11259 else
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_header_compiler=no
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11268 echo "${ECHO_T}$ac_header_compiler" >&6; }
11270 # Is the header present?
11271 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <$ac_header>
11280 _ACEOF
11281 if { (ac_try="$ac_cpp conftest.$ac_ext"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } >/dev/null && {
11294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 }; then
11297 ac_header_preproc=yes
11298 else
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 ac_header_preproc=no
11305 rm -f conftest.err conftest.$ac_ext
11306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11307 echo "${ECHO_T}$ac_header_preproc" >&6; }
11309 # So? What about this header?
11310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11311 yes:no: )
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11316 ac_header_preproc=yes
11318 no:yes:* )
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11333 esac
11334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 eval "$as_ac_Header=\$ac_header_preproc"
11341 ac_res=`eval echo '${'$as_ac_Header'}'`
11342 { echo "$as_me:$LINENO: result: $ac_res" >&5
11343 echo "${ECHO_T}$ac_res" >&6; }
11346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11347 cat >>confdefs.h <<_ACEOF
11348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11349 _ACEOF
11353 done
11357 for ac_func in fork vfork
11359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365 cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h. */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11373 #define $ac_func innocuous_$ac_func
11375 /* System header to define __stub macros and hopefully few prototypes,
11376 which can conflict with char $ac_func (); below.
11377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378 <limits.h> exists even on freestanding compilers. */
11380 #ifdef __STDC__
11381 # include <limits.h>
11382 #else
11383 # include <assert.h>
11384 #endif
11386 #undef $ac_func
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char $ac_func ();
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined __stub_$ac_func || defined __stub___$ac_func
11399 choke me
11400 #endif
11403 main ()
11405 return $ac_func ();
11407 return 0;
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_link") 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest$ac_exeext &&
11427 $as_test_x conftest$ac_exeext; then
11428 eval "$as_ac_var=yes"
11429 else
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 eval "$as_ac_var=no"
11436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11437 conftest$ac_exeext conftest.$ac_ext
11439 ac_res=`eval echo '${'$as_ac_var'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 _ACEOF
11448 done
11450 if test "x$ac_cv_func_fork" = xyes; then
11451 { echo "$as_me:$LINENO: checking for working fork" >&5
11452 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11453 if test "${ac_cv_func_fork_works+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 if test "$cross_compiling" = yes; then
11457 ac_cv_func_fork_works=cross
11458 else
11459 cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11467 main ()
11470 /* By Ruediger Kuhlmann. */
11471 return fork () < 0;
11474 return 0;
11476 _ACEOF
11477 rm -f conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_func_fork_works=yes
11498 else
11499 echo "$as_me: program exited with status $ac_status" >&5
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ( exit $ac_status )
11504 ac_cv_func_fork_works=no
11506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11512 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11514 else
11515 ac_cv_func_fork_works=$ac_cv_func_fork
11517 if test "x$ac_cv_func_fork_works" = xcross; then
11518 case $host in
11519 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
11520 # Override, as these systems have only a dummy fork() stub
11521 ac_cv_func_fork_works=no
11524 ac_cv_func_fork_works=yes
11526 esac
11527 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11528 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11530 ac_cv_func_vfork_works=$ac_cv_func_vfork
11531 if test "x$ac_cv_func_vfork" = xyes; then
11532 { echo "$as_me:$LINENO: checking for working vfork" >&5
11533 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11534 if test "${ac_cv_func_vfork_works+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 if test "$cross_compiling" = yes; then
11538 ac_cv_func_vfork_works=cross
11539 else
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 /* Thanks to Paul Eggert for this test. */
11547 $ac_includes_default
11548 #include <sys/wait.h>
11549 #ifdef HAVE_VFORK_H
11550 # include <vfork.h>
11551 #endif
11552 /* On some sparc systems, changes by the child to local and incoming
11553 argument registers are propagated back to the parent. The compiler
11554 is told about this with #include <vfork.h>, but some compilers
11555 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11556 static variable whose address is put into a register that is
11557 clobbered by the vfork. */
11558 static void
11559 #ifdef __cplusplus
11560 sparc_address_test (int arg)
11561 # else
11562 sparc_address_test (arg) int arg;
11563 #endif
11565 static pid_t child;
11566 if (!child) {
11567 child = vfork ();
11568 if (child < 0) {
11569 perror ("vfork");
11570 _exit(2);
11572 if (!child) {
11573 arg = getpid();
11574 write(-1, "", 0);
11575 _exit (arg);
11581 main ()
11583 pid_t parent = getpid ();
11584 pid_t child;
11586 sparc_address_test (0);
11588 child = vfork ();
11590 if (child == 0) {
11591 /* Here is another test for sparc vfork register problems. This
11592 test uses lots of local variables, at least as many local
11593 variables as main has allocated so far including compiler
11594 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11595 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11596 reuse the register of parent for one of the local variables,
11597 since it will think that parent can't possibly be used any more
11598 in this routine. Assigning to the local variable will thus
11599 munge parent in the parent process. */
11600 pid_t
11601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11603 /* Convince the compiler that p..p7 are live; otherwise, it might
11604 use the same hardware register for all 8 local variables. */
11605 if (p != p1 || p != p2 || p != p3 || p != p4
11606 || p != p5 || p != p6 || p != p7)
11607 _exit(1);
11609 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11610 from child file descriptors. If the child closes a descriptor
11611 before it execs or exits, this munges the parent's descriptor
11612 as well. Test for this by closing stdout in the child. */
11613 _exit(close(fileno(stdout)) != 0);
11614 } else {
11615 int status;
11616 struct stat st;
11618 while (wait(&status) != child)
11620 return (
11621 /* Was there some problem with vforking? */
11622 child < 0
11624 /* Did the child fail? (This shouldn't happen.) */
11625 || status
11627 /* Did the vfork/compiler bug occur? */
11628 || parent != getpid()
11630 /* Did the file descriptor bug occur? */
11631 || fstat(fileno(stdout), &st) != 0
11635 _ACEOF
11636 rm -f conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11647 { (case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_try") 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_func_vfork_works=yes
11657 else
11658 echo "$as_me: program exited with status $ac_status" >&5
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ( exit $ac_status )
11663 ac_cv_func_vfork_works=no
11665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11670 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11671 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11674 if test "x$ac_cv_func_fork_works" = xcross; then
11675 ac_cv_func_vfork_works=$ac_cv_func_vfork
11676 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11677 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11680 if test "x$ac_cv_func_vfork_works" = xyes; then
11682 cat >>confdefs.h <<\_ACEOF
11683 #define HAVE_WORKING_VFORK 1
11684 _ACEOF
11686 else
11688 cat >>confdefs.h <<\_ACEOF
11689 #define vfork fork
11690 _ACEOF
11693 if test "x$ac_cv_func_fork_works" = xyes; then
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_WORKING_FORK 1
11697 _ACEOF
11701 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11702 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11703 if test "${ac_cv_sys_largefile_source+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 while :; do
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 #include <sys/types.h> /* for off_t */
11714 #include <stdio.h>
11716 main ()
11718 int (*fp) (FILE *, off_t, int) = fseeko;
11719 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11721 return 0;
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest$ac_exeext &&
11741 $as_test_x conftest$ac_exeext; then
11742 ac_cv_sys_largefile_source=no; break
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751 conftest$ac_exeext conftest.$ac_ext
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 #define _LARGEFILE_SOURCE 1
11759 #include <sys/types.h> /* for off_t */
11760 #include <stdio.h>
11762 main ()
11764 int (*fp) (FILE *, off_t, int) = fseeko;
11765 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11767 return 0;
11769 _ACEOF
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (ac_try="$ac_link"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_link") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext &&
11787 $as_test_x conftest$ac_exeext; then
11788 ac_cv_sys_largefile_source=1; break
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11797 conftest$ac_exeext conftest.$ac_ext
11798 ac_cv_sys_largefile_source=unknown
11799 break
11800 done
11802 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11803 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11804 case $ac_cv_sys_largefile_source in #(
11805 no | unknown) ;;
11807 cat >>confdefs.h <<_ACEOF
11808 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11809 _ACEOF
11811 esac
11812 rm -f conftest*
11814 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11815 # in glibc 2.1.3, but that breaks too many other things.
11816 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11817 if test $ac_cv_sys_largefile_source != unknown; then
11819 cat >>confdefs.h <<\_ACEOF
11820 #define HAVE_FSEEKO 1
11821 _ACEOF
11825 if test $ac_cv_c_compiler_gnu = yes; then
11826 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11827 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11828 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 ac_pattern="Autoconf.*'x'"
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 #include <sgtty.h>
11839 Autoconf TIOCGETP
11840 _ACEOF
11841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11843 ac_cv_prog_gcc_traditional=yes
11844 else
11845 ac_cv_prog_gcc_traditional=no
11847 rm -f conftest*
11850 if test $ac_cv_prog_gcc_traditional = no; then
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 #include <termio.h>
11858 Autoconf TCGETA
11859 _ACEOF
11860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11861 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11862 ac_cv_prog_gcc_traditional=yes
11864 rm -f conftest*
11868 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11869 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11870 if test $ac_cv_prog_gcc_traditional = yes; then
11871 CC="$CC -traditional"
11875 # XXX: these are commented out until we determine whether it matters if our malloc()
11876 # acts exactly like glibc's or not
11877 # AC_FUNC_MALLOC
11878 # AC_FUNC_REALLOC
11879 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11880 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11881 if test "${ac_cv_func_memcmp_working+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 if test "$cross_compiling" = yes; then
11885 ac_cv_func_memcmp_working=no
11886 else
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h. */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11895 main ()
11898 /* Some versions of memcmp are not 8-bit clean. */
11899 char c0 = '\100', c1 = '\200', c2 = '\201';
11900 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11901 return 1;
11903 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11904 or more and with at least one buffer not starting on a 4-byte boundary.
11905 William Lewis provided this test program. */
11907 char foo[21];
11908 char bar[21];
11909 int i;
11910 for (i = 0; i < 4; i++)
11912 char *a = foo + i;
11913 char *b = bar + i;
11914 strcpy (a, "--------01111111");
11915 strcpy (b, "--------10000000");
11916 if (memcmp (a, b, 16) >= 0)
11917 return 1;
11919 return 0;
11923 return 0;
11925 _ACEOF
11926 rm -f conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_func_memcmp_working=yes
11947 else
11948 echo "$as_me: program exited with status $ac_status" >&5
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ( exit $ac_status )
11953 ac_cv_func_memcmp_working=no
11955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11960 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11961 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11962 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11963 *" memcmp.$ac_objext "* ) ;;
11964 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11966 esac
11973 for ac_header in $ac_header_list
11975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985 else
11986 # Is the header compilable?
11987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 #include <$ac_header>
11997 _ACEOF
11998 rm -f conftest.$ac_objext
11999 if { (ac_try="$ac_compile"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_header_compiler=yes
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_header_compiler=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12025 echo "${ECHO_T}$ac_header_compiler" >&6; }
12027 # Is the header present?
12028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <$ac_header>
12037 _ACEOF
12038 if { (ac_try="$ac_cpp conftest.$ac_ext"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } >/dev/null && {
12051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 }; then
12054 ac_header_preproc=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_header_preproc=no
12062 rm -f conftest.err conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12064 echo "${ECHO_T}$ac_header_preproc" >&6; }
12066 # So? What about this header?
12067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12068 yes:no: )
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12073 ac_header_preproc=yes
12075 no:yes:* )
12076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12090 esac
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 eval "$as_ac_Header=\$ac_header_preproc"
12098 ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12106 _ACEOF
12110 done
12120 for ac_func in $ac_func_list
12122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h. */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136 #define $ac_func innocuous_$ac_func
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12143 #ifdef __STDC__
12144 # include <limits.h>
12145 #else
12146 # include <assert.h>
12147 #endif
12149 #undef $ac_func
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12154 #ifdef __cplusplus
12155 extern "C"
12156 #endif
12157 char $ac_func ();
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined __stub_$ac_func || defined __stub___$ac_func
12162 choke me
12163 #endif
12166 main ()
12168 return $ac_func ();
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 eval "$as_ac_var=yes"
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 eval "$as_ac_var=no"
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12202 ac_res=`eval echo '${'$as_ac_var'}'`
12203 { echo "$as_me:$LINENO: result: $ac_res" >&5
12204 echo "${ECHO_T}$ac_res" >&6; }
12205 if test `eval echo '${'$as_ac_var'}'` = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12208 _ACEOF
12211 done
12229 { echo "$as_me:$LINENO: checking for working mktime" >&5
12230 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
12231 if test "${ac_cv_func_working_mktime+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 if test "$cross_compiling" = yes; then
12235 ac_cv_func_working_mktime=no
12236 else
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 /* Test program from Paul Eggert and Tony Leneis. */
12244 #ifdef TIME_WITH_SYS_TIME
12245 # include <sys/time.h>
12246 # include <time.h>
12247 #else
12248 # ifdef HAVE_SYS_TIME_H
12249 # include <sys/time.h>
12250 # else
12251 # include <time.h>
12252 # endif
12253 #endif
12255 #include <stdlib.h>
12257 #ifdef HAVE_UNISTD_H
12258 # include <unistd.h>
12259 #endif
12261 #ifndef HAVE_ALARM
12262 # define alarm(X) /* empty */
12263 #endif
12265 /* Work around redefinition to rpl_putenv by other config tests. */
12266 #undef putenv
12268 static time_t time_t_max;
12269 static time_t time_t_min;
12271 /* Values we'll use to set the TZ environment variable. */
12272 static char *tz_strings[] = {
12273 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12274 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12276 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12278 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12279 Based on a problem report from Andreas Jaeger. */
12280 static int
12281 spring_forward_gap ()
12283 /* glibc (up to about 1998-10-07) failed this test. */
12284 struct tm tm;
12286 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12287 instead of "TZ=America/Vancouver" in order to detect the bug even
12288 on systems that don't support the Olson extension, or don't have the
12289 full zoneinfo tables installed. */
12290 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12292 tm.tm_year = 98;
12293 tm.tm_mon = 3;
12294 tm.tm_mday = 5;
12295 tm.tm_hour = 2;
12296 tm.tm_min = 0;
12297 tm.tm_sec = 0;
12298 tm.tm_isdst = -1;
12299 return mktime (&tm) != (time_t) -1;
12302 static int
12303 mktime_test1 (now)
12304 time_t now;
12306 struct tm *lt;
12307 return ! (lt = localtime (&now)) || mktime (lt) == now;
12310 static int
12311 mktime_test (now)
12312 time_t now;
12314 return (mktime_test1 (now)
12315 && mktime_test1 ((time_t) (time_t_max - now))
12316 && mktime_test1 ((time_t) (time_t_min + now)));
12319 static int
12320 irix_6_4_bug ()
12322 /* Based on code from Ariel Faigon. */
12323 struct tm tm;
12324 tm.tm_year = 96;
12325 tm.tm_mon = 3;
12326 tm.tm_mday = 0;
12327 tm.tm_hour = 0;
12328 tm.tm_min = 0;
12329 tm.tm_sec = 0;
12330 tm.tm_isdst = -1;
12331 mktime (&tm);
12332 return tm.tm_mon == 2 && tm.tm_mday == 31;
12335 static int
12336 bigtime_test (j)
12337 int j;
12339 struct tm tm;
12340 time_t now;
12341 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12342 now = mktime (&tm);
12343 if (now != (time_t) -1)
12345 struct tm *lt = localtime (&now);
12346 if (! (lt
12347 && lt->tm_year == tm.tm_year
12348 && lt->tm_mon == tm.tm_mon
12349 && lt->tm_mday == tm.tm_mday
12350 && lt->tm_hour == tm.tm_hour
12351 && lt->tm_min == tm.tm_min
12352 && lt->tm_sec == tm.tm_sec
12353 && lt->tm_yday == tm.tm_yday
12354 && lt->tm_wday == tm.tm_wday
12355 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12356 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12357 return 0;
12359 return 1;
12362 static int
12363 year_2050_test ()
12365 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12366 ignoring leap seconds. */
12367 unsigned long int answer = 2527315200UL;
12369 struct tm tm;
12370 time_t t;
12371 tm.tm_year = 2050 - 1900;
12372 tm.tm_mon = 2 - 1;
12373 tm.tm_mday = 1;
12374 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12375 tm.tm_isdst = -1;
12377 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12378 instead of "TZ=America/Vancouver" in order to detect the bug even
12379 on systems that don't support the Olson extension, or don't have the
12380 full zoneinfo tables installed. */
12381 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12383 t = mktime (&tm);
12385 /* Check that the result is either a failure, or close enough
12386 to the correct answer that we can assume the discrepancy is
12387 due to leap seconds. */
12388 return (t == (time_t) -1
12389 || (0 < t && answer - 120 <= t && t <= answer + 120));
12393 main ()
12395 time_t t, delta;
12396 int i, j;
12398 /* This test makes some buggy mktime implementations loop.
12399 Give up after 60 seconds; a mktime slower than that
12400 isn't worth using anyway. */
12401 alarm (60);
12403 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12404 continue;
12405 time_t_max--;
12406 if ((time_t) -1 < 0)
12407 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12408 continue;
12409 delta = time_t_max / 997; /* a suitable prime number */
12410 for (i = 0; i < N_STRINGS; i++)
12412 if (tz_strings[i])
12413 putenv (tz_strings[i]);
12415 for (t = 0; t <= time_t_max - delta; t += delta)
12416 if (! mktime_test (t))
12417 return 1;
12418 if (! (mktime_test ((time_t) 1)
12419 && mktime_test ((time_t) (60 * 60))
12420 && mktime_test ((time_t) (60 * 60 * 24))))
12421 return 1;
12423 for (j = 1; 0 < j; j *= 2)
12424 if (! bigtime_test (j))
12425 return 1;
12426 if (! bigtime_test (j - 1))
12427 return 1;
12429 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12431 _ACEOF
12432 rm -f conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_func_working_mktime=yes
12453 else
12454 echo "$as_me: program exited with status $ac_status" >&5
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ( exit $ac_status )
12459 ac_cv_func_working_mktime=no
12461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12466 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12467 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12468 if test $ac_cv_func_working_mktime = no; then
12469 case " $LIBOBJS " in
12470 *" mktime.$ac_objext "* ) ;;
12471 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12473 esac
12479 for ac_header in stdlib.h unistd.h
12481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 ac_res=`eval echo '${'$as_ac_Header'}'`
12489 { echo "$as_me:$LINENO: result: $ac_res" >&5
12490 echo "${ECHO_T}$ac_res" >&6; }
12491 else
12492 # Is the header compilable?
12493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12495 cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h. */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12501 $ac_includes_default
12502 #include <$ac_header>
12503 _ACEOF
12504 rm -f conftest.$ac_objext
12505 if { (ac_try="$ac_compile"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_compile") 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && {
12518 test -z "$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12520 } && test -s conftest.$ac_objext; then
12521 ac_header_compiler=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_header_compiler=no
12529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531 echo "${ECHO_T}$ac_header_compiler" >&6; }
12533 # Is the header present?
12534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <$ac_header>
12543 _ACEOF
12544 if { (ac_try="$ac_cpp conftest.$ac_ext"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } >/dev/null && {
12557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 }; then
12560 ac_header_preproc=yes
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_header_preproc=no
12568 rm -f conftest.err conftest.$ac_ext
12569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12570 echo "${ECHO_T}$ac_header_preproc" >&6; }
12572 # So? What about this header?
12573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12574 yes:no: )
12575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12579 ac_header_preproc=yes
12581 no:yes:* )
12582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12596 esac
12597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 eval "$as_ac_Header=\$ac_header_preproc"
12604 ac_res=`eval echo '${'$as_ac_Header'}'`
12605 { echo "$as_me:$LINENO: result: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12610 cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 _ACEOF
12616 done
12619 for ac_func in getpagesize
12621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h. */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define $ac_func innocuous_$ac_func
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12642 #ifdef __STDC__
12643 # include <limits.h>
12644 #else
12645 # include <assert.h>
12646 #endif
12648 #undef $ac_func
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 char $ac_func ();
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined __stub_$ac_func || defined __stub___$ac_func
12661 choke me
12662 #endif
12665 main ()
12667 return $ac_func ();
12669 return 0;
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_link") 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest$ac_exeext &&
12689 $as_test_x conftest$ac_exeext; then
12690 eval "$as_ac_var=yes"
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 eval "$as_ac_var=no"
12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 if test `eval echo '${'$as_ac_var'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707 _ACEOF
12710 done
12712 { echo "$as_me:$LINENO: checking for working mmap" >&5
12713 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717 if test "$cross_compiling" = yes; then
12718 ac_cv_func_mmap_fixed_mapped=no
12719 else
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h. */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 /* malloc might have been renamed as rpl_malloc. */
12728 #undef malloc
12730 /* Thanks to Mike Haertel and Jim Avera for this test.
12731 Here is a matrix of mmap possibilities:
12732 mmap private not fixed
12733 mmap private fixed at somewhere currently unmapped
12734 mmap private fixed at somewhere already mapped
12735 mmap shared not fixed
12736 mmap shared fixed at somewhere currently unmapped
12737 mmap shared fixed at somewhere already mapped
12738 For private mappings, we should verify that changes cannot be read()
12739 back from the file, nor mmap's back from the file at a different
12740 address. (There have been systems where private was not correctly
12741 implemented like the infamous i386 svr4.0, and systems where the
12742 VM page cache was not coherent with the file system buffer cache
12743 like early versions of FreeBSD and possibly contemporary NetBSD.)
12744 For shared mappings, we should conversely verify that changes get
12745 propagated back to all the places they're supposed to be.
12747 Grep wants private fixed already mapped.
12748 The main things grep needs to know about mmap are:
12749 * does it exist and is it safe to write into the mmap'd area
12750 * how to use it (BSD variants) */
12752 #include <fcntl.h>
12753 #include <sys/mman.h>
12755 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12756 char *malloc ();
12757 #endif
12759 /* This mess was copied from the GNU getpagesize.h. */
12760 #ifndef HAVE_GETPAGESIZE
12761 /* Assume that all systems that can run configure have sys/param.h. */
12762 # ifndef HAVE_SYS_PARAM_H
12763 # define HAVE_SYS_PARAM_H 1
12764 # endif
12766 # ifdef _SC_PAGESIZE
12767 # define getpagesize() sysconf(_SC_PAGESIZE)
12768 # else /* no _SC_PAGESIZE */
12769 # ifdef HAVE_SYS_PARAM_H
12770 # include <sys/param.h>
12771 # ifdef EXEC_PAGESIZE
12772 # define getpagesize() EXEC_PAGESIZE
12773 # else /* no EXEC_PAGESIZE */
12774 # ifdef NBPG
12775 # define getpagesize() NBPG * CLSIZE
12776 # ifndef CLSIZE
12777 # define CLSIZE 1
12778 # endif /* no CLSIZE */
12779 # else /* no NBPG */
12780 # ifdef NBPC
12781 # define getpagesize() NBPC
12782 # else /* no NBPC */
12783 # ifdef PAGESIZE
12784 # define getpagesize() PAGESIZE
12785 # endif /* PAGESIZE */
12786 # endif /* no NBPC */
12787 # endif /* no NBPG */
12788 # endif /* no EXEC_PAGESIZE */
12789 # else /* no HAVE_SYS_PARAM_H */
12790 # define getpagesize() 8192 /* punt totally */
12791 # endif /* no HAVE_SYS_PARAM_H */
12792 # endif /* no _SC_PAGESIZE */
12794 #endif /* no HAVE_GETPAGESIZE */
12797 main ()
12799 char *data, *data2, *data3;
12800 int i, pagesize;
12801 int fd;
12803 pagesize = getpagesize ();
12805 /* First, make a file with some known garbage in it. */
12806 data = (char *) malloc (pagesize);
12807 if (!data)
12808 return 1;
12809 for (i = 0; i < pagesize; ++i)
12810 *(data + i) = rand ();
12811 umask (0);
12812 fd = creat ("conftest.mmap", 0600);
12813 if (fd < 0)
12814 return 1;
12815 if (write (fd, data, pagesize) != pagesize)
12816 return 1;
12817 close (fd);
12819 /* Next, try to mmap the file at a fixed address which already has
12820 something else allocated at it. If we can, also make sure that
12821 we see the same garbage. */
12822 fd = open ("conftest.mmap", O_RDWR);
12823 if (fd < 0)
12824 return 1;
12825 data2 = (char *) malloc (2 * pagesize);
12826 if (!data2)
12827 return 1;
12828 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12829 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12830 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12831 return 1;
12832 for (i = 0; i < pagesize; ++i)
12833 if (*(data + i) != *(data2 + i))
12834 return 1;
12836 /* Finally, make sure that changes to the mapped area do not
12837 percolate back to the file as seen by read(). (This is a bug on
12838 some variants of i386 svr4.0.) */
12839 for (i = 0; i < pagesize; ++i)
12840 *(data2 + i) = *(data2 + i) + 1;
12841 data3 = (char *) malloc (pagesize);
12842 if (!data3)
12843 return 1;
12844 if (read (fd, data3, pagesize) != pagesize)
12845 return 1;
12846 for (i = 0; i < pagesize; ++i)
12847 if (*(data + i) != *(data3 + i))
12848 return 1;
12849 close (fd);
12850 return 0;
12852 _ACEOF
12853 rm -f conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858 esac
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_link") 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_func_mmap_fixed_mapped=yes
12874 else
12875 echo "$as_me: program exited with status $ac_status" >&5
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 ( exit $ac_status )
12880 ac_cv_func_mmap_fixed_mapped=no
12882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12887 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12888 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12891 cat >>confdefs.h <<\_ACEOF
12892 #define HAVE_MMAP 1
12893 _ACEOF
12896 rm -f conftest.mmap
12900 for ac_header in sys/select.h sys/socket.h
12902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 ac_res=`eval echo '${'$as_ac_Header'}'`
12910 { echo "$as_me:$LINENO: result: $ac_res" >&5
12911 echo "${ECHO_T}$ac_res" >&6; }
12912 else
12913 # Is the header compilable?
12914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12916 cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h. */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 $ac_includes_default
12923 #include <$ac_header>
12924 _ACEOF
12925 rm -f conftest.$ac_objext
12926 if { (ac_try="$ac_compile"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_compile") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } && {
12939 test -z "$ac_c_werror_flag" ||
12940 test ! -s conftest.err
12941 } && test -s conftest.$ac_objext; then
12942 ac_header_compiler=yes
12943 else
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ac_header_compiler=no
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12952 echo "${ECHO_T}$ac_header_compiler" >&6; }
12954 # Is the header present?
12955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include <$ac_header>
12964 _ACEOF
12965 if { (ac_try="$ac_cpp conftest.$ac_ext"
12966 case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } >/dev/null && {
12978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 }; then
12981 ac_header_preproc=yes
12982 else
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_header_preproc=no
12989 rm -f conftest.err conftest.$ac_ext
12990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12991 echo "${ECHO_T}$ac_header_preproc" >&6; }
12993 # So? What about this header?
12994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12995 yes:no: )
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13000 ac_header_preproc=yes
13002 no:yes:* )
13003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13017 esac
13018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 eval "$as_ac_Header=\$ac_header_preproc"
13025 ac_res=`eval echo '${'$as_ac_Header'}'`
13026 { echo "$as_me:$LINENO: result: $ac_res" >&5
13027 echo "${ECHO_T}$ac_res" >&6; }
13030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13031 cat >>confdefs.h <<_ACEOF
13032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13033 _ACEOF
13037 done
13039 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13040 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13041 if test "${ac_cv_func_select_args+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13045 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13046 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 $ac_includes_default
13054 #ifdef HAVE_SYS_SELECT_H
13055 # include <sys/select.h>
13056 #endif
13057 #ifdef HAVE_SYS_SOCKET_H
13058 # include <sys/socket.h>
13059 #endif
13062 main ()
13064 extern int select ($ac_arg1,
13065 $ac_arg234, $ac_arg234, $ac_arg234,
13066 $ac_arg5);
13068 return 0;
13070 _ACEOF
13071 rm -f conftest.$ac_objext
13072 if { (ac_try="$ac_compile"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_compile") 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } && {
13085 test -z "$ac_c_werror_flag" ||
13086 test ! -s conftest.err
13087 } && test -s conftest.$ac_objext; then
13088 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13089 else
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13097 done
13098 done
13099 done
13100 # Provide a safe default value.
13101 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13104 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13105 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13106 ac_save_IFS=$IFS; IFS=','
13107 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13108 IFS=$ac_save_IFS
13109 shift
13111 cat >>confdefs.h <<_ACEOF
13112 #define SELECT_TYPE_ARG1 $1
13113 _ACEOF
13116 cat >>confdefs.h <<_ACEOF
13117 #define SELECT_TYPE_ARG234 ($2)
13118 _ACEOF
13121 cat >>confdefs.h <<_ACEOF
13122 #define SELECT_TYPE_ARG5 ($3)
13123 _ACEOF
13125 rm -f conftest*
13127 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13128 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13129 if test "$ac_cv_prog_cc_c89" != no; then
13130 { echo "$as_me:$LINENO: result: yes" >&5
13131 echo "${ECHO_T}yes" >&6; }
13133 cat >>confdefs.h <<\_ACEOF
13134 #define PROTOTYPES 1
13135 _ACEOF
13138 cat >>confdefs.h <<\_ACEOF
13139 #define __PROTOTYPES 1
13140 _ACEOF
13142 else
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13147 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13148 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13149 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 ac_cv_func_setvbuf_reversed=no
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 #include <stdio.h>
13160 # ifdef PROTOTYPES
13161 int (setvbuf) (FILE *, int, char *, size_t);
13162 # endif
13164 main ()
13166 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13168 return 0;
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest$ac_exeext &&
13188 $as_test_x conftest$ac_exeext; then
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #include <stdio.h>
13196 # ifdef PROTOTYPES
13197 int (setvbuf) (FILE *, int, char *, size_t);
13198 # endif
13200 main ()
13202 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13204 return 0;
13206 _ACEOF
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest$ac_exeext &&
13224 $as_test_x conftest$ac_exeext; then
13225 # It compiles and links either way, so it must not be declared
13226 # with a prototype and most likely this is a K&R C compiler.
13227 # Try running it.
13228 if test "$cross_compiling" = yes; then
13229 : # Assume setvbuf is not reversed when cross-compiling.
13230 else
13231 cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h. */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 $ac_includes_default
13239 main ()
13241 /* This call has the arguments reversed.
13242 A reversed system may check and see that the address of buf
13243 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13244 char buf;
13245 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13246 return 1;
13247 putchar ('\r');
13248 return 0; /* Non-reversed systems SEGV here. */
13250 return 0;
13252 _ACEOF
13253 rm -f conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_link") 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_cv_func_setvbuf_reversed=yes
13274 else
13275 echo "$as_me: program exited with status $ac_status" >&5
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13284 ac_cv_func_setvbuf_reversed=yes
13285 else
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13293 conftest$ac_exeext conftest.$ac_ext
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13302 conftest$ac_exeext conftest.$ac_ext
13304 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13305 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13306 if test $ac_cv_func_setvbuf_reversed = yes; then
13308 cat >>confdefs.h <<\_ACEOF
13309 #define SETVBUF_REVERSED 1
13310 _ACEOF
13314 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13315 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13316 if test "${ac_cv_type_signal+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h. */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 #include <sys/types.h>
13326 #include <signal.h>
13329 main ()
13331 return *(signal (0, 0)) (0) == 1;
13333 return 0;
13335 _ACEOF
13336 rm -f conftest.$ac_objext
13337 if { (ac_try="$ac_compile"
13338 case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_compile") 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest.$ac_objext; then
13353 ac_cv_type_signal=int
13354 else
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 ac_cv_type_signal=void
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13364 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13366 cat >>confdefs.h <<_ACEOF
13367 #define RETSIGTYPE $ac_cv_type_signal
13368 _ACEOF
13371 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13372 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13373 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 rm -f conftest.sym conftest.file
13377 echo >conftest.file
13378 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13379 if test "$cross_compiling" = yes; then
13380 ac_cv_func_lstat_dereferences_slashed_symlink=no
13381 else
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13390 main ()
13392 struct stat sbuf;
13393 /* Linux will dereference the symlink and fail.
13394 That is better in the sense that it means we will not
13395 have to compile and use the lstat wrapper. */
13396 return lstat ("conftest.sym/", &sbuf) == 0;
13398 return 0;
13400 _ACEOF
13401 rm -f conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13422 else
13423 echo "$as_me: program exited with status $ac_status" >&5
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ( exit $ac_status )
13428 ac_cv_func_lstat_dereferences_slashed_symlink=no
13430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13434 else
13435 # If the `ln -s' command failed, then we probably don't even
13436 # have an lstat function.
13437 ac_cv_func_lstat_dereferences_slashed_symlink=no
13439 rm -f conftest.sym conftest.file
13442 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13443 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13445 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13447 cat >>confdefs.h <<_ACEOF
13448 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13449 _ACEOF
13452 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13453 case " $LIBOBJS " in
13454 *" lstat.$ac_objext "* ) ;;
13455 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13457 esac
13461 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13462 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13463 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 else
13466 if test "$cross_compiling" = yes; then
13467 ac_cv_func_stat_empty_string_bug=yes
13468 else
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h. */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 $ac_includes_default
13477 main ()
13479 struct stat sbuf;
13480 return stat ("", &sbuf) == 0;
13482 return 0;
13484 _ACEOF
13485 rm -f conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13496 { (case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_try") 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_cv_func_stat_empty_string_bug=no
13506 else
13507 echo "$as_me: program exited with status $ac_status" >&5
13508 echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13511 ( exit $ac_status )
13512 ac_cv_func_stat_empty_string_bug=yes
13514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13519 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13520 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13521 if test $ac_cv_func_stat_empty_string_bug = yes; then
13522 case " $LIBOBJS " in
13523 *" stat.$ac_objext "* ) ;;
13524 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13526 esac
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_STAT_EMPTY_STRING_BUG 1
13531 _ACEOF
13535 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13536 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13537 if test "${ac_cv_func_strcoll_works+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 if test "$cross_compiling" = yes; then
13541 ac_cv_func_strcoll_works=no
13542 else
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h. */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13551 main ()
13553 return (strcoll ("abc", "def") >= 0 ||
13554 strcoll ("ABC", "DEF") >= 0 ||
13555 strcoll ("123", "456") >= 0)
13557 return 0;
13559 _ACEOF
13560 rm -f conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_link") 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_func_strcoll_works=yes
13581 else
13582 echo "$as_me: program exited with status $ac_status" >&5
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ( exit $ac_status )
13587 ac_cv_func_strcoll_works=no
13589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13595 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13596 if test $ac_cv_func_strcoll_works = yes; then
13598 cat >>confdefs.h <<\_ACEOF
13599 #define HAVE_STRCOLL 1
13600 _ACEOF
13605 for ac_func in strftime
13607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13621 #define $ac_func innocuous_$ac_func
13623 /* System header to define __stub macros and hopefully few prototypes,
13624 which can conflict with char $ac_func (); below.
13625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 <limits.h> exists even on freestanding compilers. */
13628 #ifdef __STDC__
13629 # include <limits.h>
13630 #else
13631 # include <assert.h>
13632 #endif
13634 #undef $ac_func
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13639 #ifdef __cplusplus
13640 extern "C"
13641 #endif
13642 char $ac_func ();
13643 /* The GNU C library defines this for functions which it implements
13644 to always fail with ENOSYS. Some functions are actually named
13645 something starting with __ and the normal name is an alias. */
13646 #if defined __stub_$ac_func || defined __stub___$ac_func
13647 choke me
13648 #endif
13651 main ()
13653 return $ac_func ();
13655 return 0;
13657 _ACEOF
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663 esac
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_link") 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && {
13672 test -z "$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 } && test -s conftest$ac_exeext &&
13675 $as_test_x conftest$ac_exeext; then
13676 eval "$as_ac_var=yes"
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 eval "$as_ac_var=no"
13684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13685 conftest$ac_exeext conftest.$ac_ext
13687 ac_res=`eval echo '${'$as_ac_var'}'`
13688 { echo "$as_me:$LINENO: result: $ac_res" >&5
13689 echo "${ECHO_T}$ac_res" >&6; }
13690 if test `eval echo '${'$as_ac_var'}'` = yes; then
13691 cat >>confdefs.h <<_ACEOF
13692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13693 _ACEOF
13695 else
13696 # strftime is in -lintl on SCO UNIX.
13697 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13698 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13699 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lintl $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13714 #ifdef __cplusplus
13715 extern "C"
13716 #endif
13717 char strftime ();
13719 main ()
13721 return strftime ();
13723 return 0;
13725 _ACEOF
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (ac_try="$ac_link"
13728 case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_link") 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && {
13740 test -z "$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 } && test -s conftest$ac_exeext &&
13743 $as_test_x conftest$ac_exeext; then
13744 ac_cv_lib_intl_strftime=yes
13745 else
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13749 ac_cv_lib_intl_strftime=no
13752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13757 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13758 if test $ac_cv_lib_intl_strftime = yes; then
13759 cat >>confdefs.h <<\_ACEOF
13760 #define HAVE_STRFTIME 1
13761 _ACEOF
13763 LIBS="-lintl $LIBS"
13767 done
13769 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13770 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13771 if test "${ac_cv_func_strnlen_working+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 if test "$cross_compiling" = yes; then
13775 ac_cv_func_strnlen_working=no
13776 else
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13785 main ()
13788 #define S "foobar"
13789 #define S_LEN (sizeof S - 1)
13791 /* At least one implementation is buggy: that of AIX 4.3 would
13792 give strnlen (S, 1) == 3. */
13794 int i;
13795 for (i = 0; i < S_LEN + 1; ++i)
13797 int expected = i <= S_LEN ? i : S_LEN;
13798 if (strnlen (S, i) != expected)
13799 return 1;
13801 return 0;
13804 return 0;
13806 _ACEOF
13807 rm -f conftest$ac_exeext
13808 if { (ac_try="$ac_link"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_link") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13818 { (case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_try") 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_func_strnlen_working=yes
13828 else
13829 echo "$as_me: program exited with status $ac_status" >&5
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ( exit $ac_status )
13834 ac_cv_func_strnlen_working=no
13836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13841 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13842 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13843 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13844 *" strnlen.$ac_objext "* ) ;;
13845 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13847 esac
13850 { echo "$as_me:$LINENO: checking for working strtod" >&5
13851 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13852 if test "${ac_cv_func_strtod+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855 if test "$cross_compiling" = yes; then
13856 ac_cv_func_strtod=no
13857 else
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h. */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13865 $ac_includes_default
13866 #ifndef strtod
13867 double strtod ();
13868 #endif
13870 main()
13873 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13874 char *string = " +69";
13875 char *term;
13876 double value;
13877 value = strtod (string, &term);
13878 if (value != 69 || term != (string + 4))
13879 return 1;
13883 /* Under Solaris 2.4, strtod returns the wrong value for the
13884 terminating character under some conditions. */
13885 char *string = "NaN";
13886 char *term;
13887 strtod (string, &term);
13888 if (term != string && *(term - 1) == 0)
13889 return 1;
13891 return 0;
13894 _ACEOF
13895 rm -f conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_func_strtod=yes
13916 else
13917 echo "$as_me: program exited with status $ac_status" >&5
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ( exit $ac_status )
13922 ac_cv_func_strtod=no
13924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13929 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13930 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13931 if test $ac_cv_func_strtod = no; then
13932 case " $LIBOBJS " in
13933 *" strtod.$ac_objext "* ) ;;
13934 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13936 esac
13938 { echo "$as_me:$LINENO: checking for pow" >&5
13939 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13940 if test "${ac_cv_func_pow+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943 cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h. */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13951 #define pow innocuous_pow
13953 /* System header to define __stub macros and hopefully few prototypes,
13954 which can conflict with char pow (); below.
13955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13956 <limits.h> exists even on freestanding compilers. */
13958 #ifdef __STDC__
13959 # include <limits.h>
13960 #else
13961 # include <assert.h>
13962 #endif
13964 #undef pow
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13969 #ifdef __cplusplus
13970 extern "C"
13971 #endif
13972 char pow ();
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined __stub_pow || defined __stub___pow
13977 choke me
13978 #endif
13981 main ()
13983 return pow ();
13985 return 0;
13987 _ACEOF
13988 rm -f conftest.$ac_objext conftest$ac_exeext
13989 if { (ac_try="$ac_link"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_link") 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } && {
14002 test -z "$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14004 } && test -s conftest$ac_exeext &&
14005 $as_test_x conftest$ac_exeext; then
14006 ac_cv_func_pow=yes
14007 else
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ac_cv_func_pow=no
14014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14015 conftest$ac_exeext conftest.$ac_ext
14017 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14018 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14020 if test $ac_cv_func_pow = no; then
14021 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14022 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_m_pow+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026 ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-lm $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h. */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char pow ();
14043 main ()
14045 return pow ();
14047 return 0;
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest$ac_exeext &&
14067 $as_test_x conftest$ac_exeext; then
14068 ac_cv_lib_m_pow=yes
14069 else
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ac_cv_lib_m_pow=no
14076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14080 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14081 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14082 if test $ac_cv_lib_m_pow = yes; then
14083 POW_LIB=-lm
14084 else
14085 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14086 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14101 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14102 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14103 if test "${ac_cv_func_utime_null+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 rm -f conftest.data; >conftest.data
14107 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14108 if test "$cross_compiling" = yes; then
14109 ac_cv_func_utime_null=no
14110 else
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #ifdef HAVE_UTIME_H
14119 # include <utime.h>
14120 #endif
14122 main ()
14124 struct stat s, t;
14125 return ! (stat ("conftest.data", &s) == 0
14126 && utime ("conftest.data", 0) == 0
14127 && stat ("conftest.data", &t) == 0
14128 && t.st_mtime >= s.st_mtime
14129 && t.st_mtime - s.st_mtime < 120);
14131 return 0;
14133 _ACEOF
14134 rm -f conftest$ac_exeext
14135 if { (ac_try="$ac_link"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139 esac
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_link") 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14145 { (case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14148 esac
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_try") 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_cv_func_utime_null=yes
14155 else
14156 echo "$as_me: program exited with status $ac_status" >&5
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ( exit $ac_status )
14161 ac_cv_func_utime_null=no
14163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14168 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14169 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14170 if test $ac_cv_func_utime_null = yes; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define HAVE_UTIME_NULL 1
14174 _ACEOF
14177 rm -f conftest.data
14180 for ac_func in vprintf
14182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h. */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14196 #define $ac_func innocuous_$ac_func
14198 /* System header to define __stub macros and hopefully few prototypes,
14199 which can conflict with char $ac_func (); below.
14200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14201 <limits.h> exists even on freestanding compilers. */
14203 #ifdef __STDC__
14204 # include <limits.h>
14205 #else
14206 # include <assert.h>
14207 #endif
14209 #undef $ac_func
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 char $ac_func ();
14218 /* The GNU C library defines this for functions which it implements
14219 to always fail with ENOSYS. Some functions are actually named
14220 something starting with __ and the normal name is an alias. */
14221 #if defined __stub_$ac_func || defined __stub___$ac_func
14222 choke me
14223 #endif
14226 main ()
14228 return $ac_func ();
14230 return 0;
14232 _ACEOF
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (ac_try="$ac_link"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_link") 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest$ac_exeext &&
14250 $as_test_x conftest$ac_exeext; then
14251 eval "$as_ac_var=yes"
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 eval "$as_ac_var=no"
14259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14260 conftest$ac_exeext conftest.$ac_ext
14262 ac_res=`eval echo '${'$as_ac_var'}'`
14263 { echo "$as_me:$LINENO: result: $ac_res" >&5
14264 echo "${ECHO_T}$ac_res" >&6; }
14265 if test `eval echo '${'$as_ac_var'}'` = yes; then
14266 cat >>confdefs.h <<_ACEOF
14267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14268 _ACEOF
14270 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14271 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14272 if test "${ac_cv_func__doprnt+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14283 #define _doprnt innocuous__doprnt
14285 /* System header to define __stub macros and hopefully few prototypes,
14286 which can conflict with char _doprnt (); below.
14287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14288 <limits.h> exists even on freestanding compilers. */
14290 #ifdef __STDC__
14291 # include <limits.h>
14292 #else
14293 # include <assert.h>
14294 #endif
14296 #undef _doprnt
14298 /* Override any GCC internal prototype to avoid an error.
14299 Use char because int might match the return type of a GCC
14300 builtin and then its argument prototype would still apply. */
14301 #ifdef __cplusplus
14302 extern "C"
14303 #endif
14304 char _doprnt ();
14305 /* The GNU C library defines this for functions which it implements
14306 to always fail with ENOSYS. Some functions are actually named
14307 something starting with __ and the normal name is an alias. */
14308 #if defined __stub__doprnt || defined __stub____doprnt
14309 choke me
14310 #endif
14313 main ()
14315 return _doprnt ();
14317 return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext conftest$ac_exeext
14321 if { (ac_try="$ac_link"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_link") 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } && {
14334 test -z "$ac_c_werror_flag" ||
14335 test ! -s conftest.err
14336 } && test -s conftest$ac_exeext &&
14337 $as_test_x conftest$ac_exeext; then
14338 ac_cv_func__doprnt=yes
14339 else
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_cv_func__doprnt=no
14346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14347 conftest$ac_exeext conftest.$ac_ext
14349 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14350 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14351 if test $ac_cv_func__doprnt = yes; then
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_DOPRNT 1
14355 _ACEOF
14360 done
14410 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
14412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14426 #define $ac_func innocuous_$ac_func
14428 /* System header to define __stub macros and hopefully few prototypes,
14429 which can conflict with char $ac_func (); below.
14430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14431 <limits.h> exists even on freestanding compilers. */
14433 #ifdef __STDC__
14434 # include <limits.h>
14435 #else
14436 # include <assert.h>
14437 #endif
14439 #undef $ac_func
14441 /* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14444 #ifdef __cplusplus
14445 extern "C"
14446 #endif
14447 char $ac_func ();
14448 /* The GNU C library defines this for functions which it implements
14449 to always fail with ENOSYS. Some functions are actually named
14450 something starting with __ and the normal name is an alias. */
14451 #if defined __stub_$ac_func || defined __stub___$ac_func
14452 choke me
14453 #endif
14456 main ()
14458 return $ac_func ();
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_link") 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && {
14477 test -z "$ac_c_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest$ac_exeext &&
14480 $as_test_x conftest$ac_exeext; then
14481 eval "$as_ac_var=yes"
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 eval "$as_ac_var=no"
14489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14490 conftest$ac_exeext conftest.$ac_ext
14492 ac_res=`eval echo '${'$as_ac_var'}'`
14493 { echo "$as_me:$LINENO: result: $ac_res" >&5
14494 echo "${ECHO_T}$ac_res" >&6; }
14495 if test `eval echo '${'$as_ac_var'}'` = yes; then
14496 cat >>confdefs.h <<_ACEOF
14497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14498 _ACEOF
14501 done
14504 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14505 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 #include <pthread.h>
14514 main ()
14516 int foo = PTHREAD_RWLOCK_INITIALIZER;
14518 return 0;
14520 _ACEOF
14521 rm -f conftest.$ac_objext conftest$ac_exeext
14522 if { (ac_try="$ac_link"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_link") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } && {
14535 test -z "$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14537 } && test -s conftest$ac_exeext &&
14538 $as_test_x conftest$ac_exeext; then
14539 { echo "$as_me:$LINENO: result: yes" >&5
14540 echo "${ECHO_T}yes" >&6; }
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14544 _ACEOF
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 { echo "$as_me:$LINENO: result: no" >&5
14551 echo "${ECHO_T}no" >&6; }
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14558 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14559 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <pthread.h>
14568 main ()
14570 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest$ac_exeext &&
14592 $as_test_x conftest$ac_exeext; then
14593 { echo "$as_me:$LINENO: result: yes" >&5
14594 echo "${ECHO_T}yes" >&6; }
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14598 _ACEOF
14600 else
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 { echo "$as_me:$LINENO: result: no" >&5
14605 echo "${ECHO_T}no" >&6; }
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14612 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14613 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14622 main ()
14624 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14626 return 0;
14628 _ACEOF
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (ac_try="$ac_link"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_link") 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest$ac_exeext &&
14646 $as_test_x conftest$ac_exeext; then
14647 { echo "$as_me:$LINENO: result: yes" >&5
14648 echo "${ECHO_T}yes" >&6; }
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_GCC_ATOMICS 1
14652 _ACEOF
14654 else
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 { echo "$as_me:$LINENO: result: no" >&5
14659 echo "${ECHO_T}no" >&6; }
14663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14664 conftest$ac_exeext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14668 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 static int __attribute__((pure)) test(void) {}
14677 main ()
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (ac_try="$ac_compile"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_compile") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest.$ac_objext; then
14701 { echo "$as_me:$LINENO: result: yes" >&5
14702 echo "${ECHO_T}yes" >&6; }
14704 cat >>confdefs.h <<_ACEOF
14705 #define HAVE_ATTRIBUTE_pure 1
14706 _ACEOF
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 { echo "$as_me:$LINENO: result: no" >&5
14713 echo "${ECHO_T}no" >&6; }
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14720 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h. */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 static int __attribute__((malloc)) test(void) {}
14729 main ()
14733 return 0;
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } && {
14750 test -z "$ac_c_werror_flag" ||
14751 test ! -s conftest.err
14752 } && test -s conftest.$ac_objext; then
14753 { echo "$as_me:$LINENO: result: yes" >&5
14754 echo "${ECHO_T}yes" >&6; }
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_ATTRIBUTE_malloc 1
14758 _ACEOF
14760 else
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 { echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6; }
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14772 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14773 cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h. */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 static int __attribute__((const)) test(void) {}
14781 main ()
14785 return 0;
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.$ac_objext; then
14805 { echo "$as_me:$LINENO: result: yes" >&5
14806 echo "${ECHO_T}yes" >&6; }
14808 cat >>confdefs.h <<_ACEOF
14809 #define HAVE_ATTRIBUTE_const 1
14810 _ACEOF
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 { echo "$as_me:$LINENO: result: no" >&5
14817 echo "${ECHO_T}no" >&6; }
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
14824 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 static int __attribute__((unused)) test(void) {}
14833 main ()
14837 return 0;
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_compile") 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest.$ac_objext; then
14857 { echo "$as_me:$LINENO: result: yes" >&5
14858 echo "${ECHO_T}yes" >&6; }
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE_ATTRIBUTE_unused 1
14862 _ACEOF
14864 else
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 { echo "$as_me:$LINENO: result: no" >&5
14869 echo "${ECHO_T}no" >&6; }
14872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
14876 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h. */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 static int __attribute__((always_inline)) test(void) {}
14885 main ()
14889 return 0;
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_compile") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest.$ac_objext; then
14909 { echo "$as_me:$LINENO: result: yes" >&5
14910 echo "${ECHO_T}yes" >&6; }
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_ATTRIBUTE_always_inline 1
14914 _ACEOF
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 { echo "$as_me:$LINENO: result: no" >&5
14921 echo "${ECHO_T}no" >&6; }
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
14928 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
14929 saved_CFLAGS="${CFLAGS}"
14930 CFLAGS="${CFLAGS} -ffunction-sections"
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14939 main ()
14941 int x = 1;
14943 return 0;
14945 _ACEOF
14946 rm -f conftest.$ac_objext
14947 if { (ac_try="$ac_compile"
14948 case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14951 esac
14952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_compile") 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } && {
14960 test -z "$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 } && test -s conftest.$ac_objext; then
14963 { echo "$as_me:$LINENO: result: yes" >&5
14964 echo "${ECHO_T}yes" >&6; }
14965 saved_LDFLAGS="${LDFLAGS}"
14966 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
14967 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
14968 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h. */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14977 main ()
14979 int x = 1;
14981 return 0;
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (ac_try="$ac_link"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_link") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest$ac_exeext &&
15001 $as_test_x conftest$ac_exeext; then
15002 { echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6; }
15004 GC_CFLAGS="-ffunction-sections"
15005 GC_LDFLAGS="-Wl,--gc-sections"
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 { echo "$as_me:$LINENO: result: no" >&5
15011 echo "${ECHO_T}no" >&6; }
15015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15016 conftest$ac_exeext conftest.$ac_ext
15017 LDFLAGS="${saved_LDFLAGS}"
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 { echo "$as_me:$LINENO: result: no" >&5
15023 echo "${ECHO_T}no" >&6; }
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 CFLAGS="${saved_CFLAGS}"
15032 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15033 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15034 cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h. */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <resolv.h>
15042 main ()
15044 int foo = res_ninit(NULL);
15046 return 0;
15048 _ACEOF
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (ac_try="$ac_link"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054 esac
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_link") 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest$ac_exeext &&
15066 $as_test_x conftest$ac_exeext; then
15067 { echo "$as_me:$LINENO: result: yes" >&5
15068 echo "${ECHO_T}yes" >&6; }
15070 cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_RES_NINIT 1
15072 _ACEOF
15074 else
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 { echo "$as_me:$LINENO: result: no" >&5
15079 echo "${ECHO_T}no" >&6; }
15083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15084 conftest$ac_exeext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15087 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 #include <dlfcn.h>
15096 main ()
15098 int foo = RTLD_NOLOAD;
15100 return 0;
15102 _ACEOF
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (ac_try="$ac_link"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_link") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } && {
15117 test -z "$ac_c_werror_flag" ||
15118 test ! -s conftest.err
15119 } && test -s conftest$ac_exeext &&
15120 $as_test_x conftest$ac_exeext; then
15121 { echo "$as_me:$LINENO: result: yes" >&5
15122 echo "${ECHO_T}yes" >&6; }
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_RTLD_NOLOAD 1
15126 _ACEOF
15128 else
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 { echo "$as_me:$LINENO: result: no" >&5
15133 echo "${ECHO_T}no" >&6; }
15137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15140 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15141 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <netinet/in.h>
15150 main ()
15152 int foo = IP_MTU_DISCOVER;
15154 return 0;
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_link") 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext &&
15174 $as_test_x conftest$ac_exeext; then
15175 { echo "$as_me:$LINENO: result: yes" >&5
15176 echo "${ECHO_T}yes" >&6; }
15178 cat >>confdefs.h <<\_ACEOF
15179 #define HAVE_IP_MTU_DISCOVER 1
15180 _ACEOF
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 { echo "$as_me:$LINENO: result: no" >&5
15187 echo "${ECHO_T}no" >&6; }
15191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15192 conftest$ac_exeext conftest.$ac_ext
15194 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15195 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15196 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15197 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15201 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15202 else
15203 # Is the header compilable?
15204 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15205 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15213 #include <libkern/OSAtomic.h>
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (ac_try="$ac_compile"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest.$ac_objext; then
15232 ac_header_compiler=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_header_compiler=no
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15242 echo "${ECHO_T}$ac_header_compiler" >&6; }
15244 # Is the header present?
15245 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15246 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include <libkern/OSAtomic.h>
15254 _ACEOF
15255 if { (ac_try="$ac_cpp conftest.$ac_ext"
15256 case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } >/dev/null && {
15268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15269 test ! -s conftest.err
15270 }; then
15271 ac_header_preproc=yes
15272 else
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_header_preproc=no
15279 rm -f conftest.err conftest.$ac_ext
15280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15281 echo "${ECHO_T}$ac_header_preproc" >&6; }
15283 # So? What about this header?
15284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15285 yes:no: )
15286 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15287 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15289 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15290 ac_header_preproc=yes
15292 no:yes:* )
15293 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15294 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15296 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15298 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15300 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15302 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15304 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15307 esac
15308 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15309 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15310 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15315 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15316 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15319 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define HAVE_OSX_ATOMICS 1
15323 _ACEOF
15329 { echo "$as_me:$LINENO: checking for int" >&5
15330 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15331 if test "${ac_cv_type_int+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 $ac_includes_default
15341 typedef int ac__type_new_;
15343 main ()
15345 if ((ac__type_new_ *) 0)
15346 return 0;
15347 if (sizeof (ac__type_new_))
15348 return 0;
15350 return 0;
15352 _ACEOF
15353 rm -f conftest.$ac_objext
15354 if { (ac_try="$ac_compile"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_compile") 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } && {
15367 test -z "$ac_c_werror_flag" ||
15368 test ! -s conftest.err
15369 } && test -s conftest.$ac_objext; then
15370 ac_cv_type_int=yes
15371 else
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ac_cv_type_int=no
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15381 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15383 # The cast to long int works around a bug in the HP C Compiler
15384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15386 # This bug is HP SR number 8606223364.
15387 { echo "$as_me:$LINENO: checking size of int" >&5
15388 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15389 if test "${ac_cv_sizeof_int+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392 if test "$cross_compiling" = yes; then
15393 # Depending upon the size, compute the lo and hi bounds.
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 typedef int ac__type_sizeof_;
15403 main ()
15405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15406 test_array [0] = 0
15409 return 0;
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_compile") 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest.$ac_objext; then
15429 ac_lo=0 ac_mid=0
15430 while :; do
15431 cat >conftest.$ac_ext <<_ACEOF
15432 /* confdefs.h. */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15437 $ac_includes_default
15438 typedef int ac__type_sizeof_;
15440 main ()
15442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15443 test_array [0] = 0
15446 return 0;
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (ac_try="$ac_compile"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_compile") 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } && {
15463 test -z "$ac_c_werror_flag" ||
15464 test ! -s conftest.err
15465 } && test -s conftest.$ac_objext; then
15466 ac_hi=$ac_mid; break
15467 else
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_lo=`expr $ac_mid + 1`
15472 if test $ac_lo -le $ac_mid; then
15473 ac_lo= ac_hi=
15474 break
15476 ac_mid=`expr 2 '*' $ac_mid + 1`
15479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480 done
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h. */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 $ac_includes_default
15492 typedef int ac__type_sizeof_;
15494 main ()
15496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15497 test_array [0] = 0
15500 return 0;
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_compile") 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest.$ac_objext; then
15520 ac_hi=-1 ac_mid=-1
15521 while :; do
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15529 typedef int ac__type_sizeof_;
15531 main ()
15533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15534 test_array [0] = 0
15537 return 0;
15539 _ACEOF
15540 rm -f conftest.$ac_objext
15541 if { (ac_try="$ac_compile"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_compile") 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } && {
15554 test -z "$ac_c_werror_flag" ||
15555 test ! -s conftest.err
15556 } && test -s conftest.$ac_objext; then
15557 ac_lo=$ac_mid; break
15558 else
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_hi=`expr '(' $ac_mid ')' - 1`
15563 if test $ac_mid -le $ac_hi; then
15564 ac_lo= ac_hi=
15565 break
15567 ac_mid=`expr 2 '*' $ac_mid`
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 done
15572 else
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_lo= ac_hi=
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 # Binary search between lo and hi bounds.
15584 while test "x$ac_lo" != "x$ac_hi"; do
15585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15586 cat >conftest.$ac_ext <<_ACEOF
15587 /* confdefs.h. */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 $ac_includes_default
15593 typedef int ac__type_sizeof_;
15595 main ()
15597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15598 test_array [0] = 0
15601 return 0;
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15621 ac_hi=$ac_mid
15622 else
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 ac_lo=`expr '(' $ac_mid ')' + 1`
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 done
15631 case $ac_lo in
15632 ?*) ac_cv_sizeof_int=$ac_lo;;
15633 '') if test "$ac_cv_type_int" = yes; then
15634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15635 See \`config.log' for more details." >&5
15636 echo "$as_me: error: cannot compute sizeof (int)
15637 See \`config.log' for more details." >&2;}
15638 { (exit 77); exit 77; }; }
15639 else
15640 ac_cv_sizeof_int=0
15641 fi ;;
15642 esac
15643 else
15644 cat >conftest.$ac_ext <<_ACEOF
15645 /* confdefs.h. */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 $ac_includes_default
15651 typedef int ac__type_sizeof_;
15652 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15653 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15654 #include <stdio.h>
15655 #include <stdlib.h>
15657 main ()
15660 FILE *f = fopen ("conftest.val", "w");
15661 if (! f)
15662 return 1;
15663 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15665 long int i = longval ();
15666 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15667 return 1;
15668 fprintf (f, "%ld\n", i);
15670 else
15672 unsigned long int i = ulongval ();
15673 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15674 return 1;
15675 fprintf (f, "%lu\n", i);
15677 return ferror (f) || fclose (f) != 0;
15680 return 0;
15682 _ACEOF
15683 rm -f conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_link") 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_cv_sizeof_int=`cat conftest.val`
15704 else
15705 echo "$as_me: program exited with status $ac_status" >&5
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ( exit $ac_status )
15710 if test "$ac_cv_type_int" = yes; then
15711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15712 See \`config.log' for more details." >&5
15713 echo "$as_me: error: cannot compute sizeof (int)
15714 See \`config.log' for more details." >&2;}
15715 { (exit 77); exit 77; }; }
15716 else
15717 ac_cv_sizeof_int=0
15720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15722 rm -f conftest.val
15724 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15725 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15729 cat >>confdefs.h <<_ACEOF
15730 #define SIZEOF_INT $ac_cv_sizeof_int
15731 _ACEOF
15735 # do the package library checks now
15738 if test "${USE_ALSA}" != "no"; then
15739 pbxlibdir=""
15740 if test "x${ALSA_DIR}" != "x"; then
15741 if test -d ${ALSA_DIR}/lib; then
15742 pbxlibdir="-L${ALSA_DIR}/lib"
15743 else
15744 pbxlibdir="-L${ALSA_DIR}"
15747 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
15748 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
15749 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 ac_check_lib_save_LIBS=$LIBS
15753 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15761 /* Override any GCC internal prototype to avoid an error.
15762 Use char because int might match the return type of a GCC
15763 builtin and then its argument prototype would still apply. */
15764 #ifdef __cplusplus
15765 extern "C"
15766 #endif
15767 char snd_spcm_init ();
15769 main ()
15771 return snd_spcm_init ();
15773 return 0;
15775 _ACEOF
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (ac_try="$ac_link"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_link") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && {
15790 test -z "$ac_c_werror_flag" ||
15791 test ! -s conftest.err
15792 } && test -s conftest$ac_exeext &&
15793 $as_test_x conftest$ac_exeext; then
15794 ac_cv_lib_asound_snd_spcm_init=yes
15795 else
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 ac_cv_lib_asound_snd_spcm_init=no
15802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15803 conftest$ac_exeext conftest.$ac_ext
15804 LIBS=$ac_check_lib_save_LIBS
15806 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
15807 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15808 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15809 AST_ALSA_FOUND=yes
15810 else
15811 AST_ALSA_FOUND=no
15815 if test "${AST_ALSA_FOUND}" = "yes"; then
15816 ALSA_LIB="-lasound -lm -ldl"
15817 ALSA_HEADER_FOUND="1"
15818 if test "x${ALSA_DIR}" != "x"; then
15819 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15820 ALSA_INCLUDE="-I${ALSA_DIR}/include"
15821 saved_cppflags="${CPPFLAGS}"
15822 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
15823 if test "xalsa/asoundlib.h" != "x" ; then
15824 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
15825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15827 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 ac_res=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15834 else
15835 # Is the header compilable?
15836 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
15837 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15845 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (ac_try="$ac_compile"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_compile") 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest.$ac_objext; then
15864 ac_header_compiler=yes
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_header_compiler=no
15872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6; }
15876 # Is the header present?
15877 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
15878 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15886 _ACEOF
15887 if { (ac_try="$ac_cpp conftest.$ac_ext"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } >/dev/null && {
15900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 }; then
15903 ac_header_preproc=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_preproc=no
15911 rm -f conftest.err conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15913 echo "${ECHO_T}$ac_header_preproc" >&6; }
15915 # So? What about this header?
15916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15917 yes:no: )
15918 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15919 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
15921 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
15922 ac_header_preproc=yes
15924 no:yes:* )
15925 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
15926 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
15928 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
15930 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
15932 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
15934 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
15936 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
15939 esac
15940 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
15941 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 eval "$as_ac_Header=\$ac_header_preproc"
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953 ALSA_HEADER_FOUND=1
15954 else
15955 ALSA_HEADER_FOUND=0
15960 CPPFLAGS="${saved_cppflags}"
15961 else
15962 if test "xalsa/asoundlib.h" != "x" ; then
15963 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15964 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
15965 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
15966 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
15970 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15971 else
15972 # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
15974 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 $ac_includes_default
15982 #include <alsa/asoundlib.h>
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest.$ac_objext; then
16001 ac_header_compiler=yes
16002 else
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_header_compiler=no
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16011 echo "${ECHO_T}$ac_header_compiler" >&6; }
16013 # Is the header present?
16014 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16015 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017 /* confdefs.h. */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 #include <alsa/asoundlib.h>
16023 _ACEOF
16024 if { (ac_try="$ac_cpp conftest.$ac_ext"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } >/dev/null && {
16037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 }; then
16040 ac_header_preproc=yes
16041 else
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_header_preproc=no
16048 rm -f conftest.err conftest.$ac_ext
16049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050 echo "${ECHO_T}$ac_header_preproc" >&6; }
16052 # So? What about this header?
16053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16054 yes:no: )
16055 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16056 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16058 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16059 ac_header_preproc=yes
16061 no:yes:* )
16062 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16063 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16065 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16067 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16069 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16071 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16073 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16076 esac
16077 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16078 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16079 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16084 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16085 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16088 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16089 ALSA_HEADER_FOUND=1
16090 else
16091 ALSA_HEADER_FOUND=0
16097 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16098 if test ! -z "${ALSA_MANDATORY}" ;
16099 then
16100 { echo "$as_me:$LINENO: ***" >&5
16101 echo "$as_me: ***" >&6;}
16102 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16103 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16104 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16105 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16106 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16107 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16108 exit 1
16110 ALSA_LIB=""
16111 ALSA_INCLUDE=""
16112 PBX_ALSA=0
16113 else
16114 PBX_ALSA=1
16116 cat >>confdefs.h <<_ACEOF
16117 #define HAVE_ALSA 1
16118 _ACEOF
16121 elif test ! -z "${ALSA_MANDATORY}";
16122 then
16123 { echo "$as_me:$LINENO: ***" >&5
16124 echo "$as_me: ***" >&6;}
16125 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16126 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16127 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16128 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16130 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16131 exit 1
16137 if test "${USE_CURSES}" != "no"; then
16138 pbxlibdir=""
16139 if test "x${CURSES_DIR}" != "x"; then
16140 if test -d ${CURSES_DIR}/lib; then
16141 pbxlibdir="-L${CURSES_DIR}/lib"
16142 else
16143 pbxlibdir="-L${CURSES_DIR}"
16146 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16147 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16148 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 ac_check_lib_save_LIBS=$LIBS
16152 LIBS="-lcurses ${pbxlibdir} $LIBS"
16153 cat >conftest.$ac_ext <<_ACEOF
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16160 /* Override any GCC internal prototype to avoid an error.
16161 Use char because int might match the return type of a GCC
16162 builtin and then its argument prototype would still apply. */
16163 #ifdef __cplusplus
16164 extern "C"
16165 #endif
16166 char initscr ();
16168 main ()
16170 return initscr ();
16172 return 0;
16174 _ACEOF
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (ac_try="$ac_link"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_link") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest$ac_exeext &&
16192 $as_test_x conftest$ac_exeext; then
16193 ac_cv_lib_curses_initscr=yes
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_cv_lib_curses_initscr=no
16201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16202 conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16205 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16206 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16207 if test $ac_cv_lib_curses_initscr = yes; then
16208 AST_CURSES_FOUND=yes
16209 else
16210 AST_CURSES_FOUND=no
16214 if test "${AST_CURSES_FOUND}" = "yes"; then
16215 CURSES_LIB="-lcurses "
16216 CURSES_HEADER_FOUND="1"
16217 if test "x${CURSES_DIR}" != "x"; then
16218 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16219 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16220 saved_cppflags="${CPPFLAGS}"
16221 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16222 if test "xcurses.h" != "x" ; then
16223 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16225 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16226 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 ac_res=`eval echo '${'$as_ac_Header'}'`
16231 { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16233 else
16234 # Is the header compilable?
16235 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16236 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16244 #include <${CURSES_DIR}/include/curses.h>
16245 _ACEOF
16246 rm -f conftest.$ac_objext
16247 if { (ac_try="$ac_compile"
16248 case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_compile") 2>conftest.er1
16254 ac_status=$?
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest.$ac_objext; then
16263 ac_header_compiler=yes
16264 else
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16268 ac_header_compiler=no
16271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16273 echo "${ECHO_T}$ac_header_compiler" >&6; }
16275 # Is the header present?
16276 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16277 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 #include <${CURSES_DIR}/include/curses.h>
16285 _ACEOF
16286 if { (ac_try="$ac_cpp conftest.$ac_ext"
16287 case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16290 esac
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } >/dev/null && {
16299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 }; then
16302 ac_header_preproc=yes
16303 else
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_header_preproc=no
16310 rm -f conftest.err conftest.$ac_ext
16311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 echo "${ECHO_T}$ac_header_preproc" >&6; }
16314 # So? What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316 yes:no: )
16317 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16318 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16320 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16321 ac_header_preproc=yes
16323 no:yes:* )
16324 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16325 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16327 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16329 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16331 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16333 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16335 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16338 esac
16339 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16340 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 eval "$as_ac_Header=\$ac_header_preproc"
16346 ac_res=`eval echo '${'$as_ac_Header'}'`
16347 { echo "$as_me:$LINENO: result: $ac_res" >&5
16348 echo "${ECHO_T}$ac_res" >&6; }
16351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16352 CURSES_HEADER_FOUND=1
16353 else
16354 CURSES_HEADER_FOUND=0
16359 CPPFLAGS="${saved_cppflags}"
16360 else
16361 if test "xcurses.h" != "x" ; then
16362 if test "${ac_cv_header_curses_h+set}" = set; then
16363 { echo "$as_me:$LINENO: checking for curses.h" >&5
16364 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16365 if test "${ac_cv_header_curses_h+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16369 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16370 else
16371 # Is the header compilable?
16372 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16373 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 #include <curses.h>
16382 _ACEOF
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_compile") 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } && {
16397 test -z "$ac_c_werror_flag" ||
16398 test ! -s conftest.err
16399 } && test -s conftest.$ac_objext; then
16400 ac_header_compiler=yes
16401 else
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_header_compiler=no
16408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16410 echo "${ECHO_T}$ac_header_compiler" >&6; }
16412 # Is the header present?
16413 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16414 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 #include <curses.h>
16422 _ACEOF
16423 if { (ac_try="$ac_cpp conftest.$ac_ext"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } >/dev/null && {
16436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 }; then
16439 ac_header_preproc=yes
16440 else
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ac_header_preproc=no
16447 rm -f conftest.err conftest.$ac_ext
16448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16449 echo "${ECHO_T}$ac_header_preproc" >&6; }
16451 # So? What about this header?
16452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16453 yes:no: )
16454 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16455 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16457 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16458 ac_header_preproc=yes
16460 no:yes:* )
16461 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16462 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16464 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16466 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16468 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16470 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16471 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16472 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16475 esac
16476 { echo "$as_me:$LINENO: checking for curses.h" >&5
16477 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16478 if test "${ac_cv_header_curses_h+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481 ac_cv_header_curses_h=$ac_header_preproc
16483 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16484 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16487 if test $ac_cv_header_curses_h = yes; then
16488 CURSES_HEADER_FOUND=1
16489 else
16490 CURSES_HEADER_FOUND=0
16496 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16497 if test ! -z "${CURSES_MANDATORY}" ;
16498 then
16499 { echo "$as_me:$LINENO: ***" >&5
16500 echo "$as_me: ***" >&6;}
16501 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16502 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16503 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16504 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16505 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16506 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16507 exit 1
16509 CURSES_LIB=""
16510 CURSES_INCLUDE=""
16511 PBX_CURSES=0
16512 else
16513 PBX_CURSES=1
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_CURSES 1
16517 _ACEOF
16520 elif test ! -z "${CURSES_MANDATORY}";
16521 then
16522 { echo "$as_me:$LINENO: ***" >&5
16523 echo "$as_me: ***" >&6;}
16524 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16525 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16526 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16527 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16528 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16529 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16530 exit 1
16535 GSM_INTERNAL="yes"
16537 GSM_SYSTEM="yes"
16538 if test "${USE_GSM}" != "no"; then
16539 if test "${GSM_DIR}" = "internal"; then
16540 GSM_SYSTEM="no"
16541 elif test "${GSM_DIR}" != ""; then
16542 GSM_INTERNAL="no"
16544 if test "${GSM_SYSTEM}" = "yes"; then
16545 gsmlibdir=""
16546 if test "x${GSM_DIR}" != "x"; then
16547 if test -d ${GSM_DIR}/lib; then
16548 gsmlibdir="-L${GSM_DIR}/lib"
16549 else
16550 gsmlibdir="-L${GSM_DIR}"
16553 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16554 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16555 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558 ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-lgsm ${gsmlibdir} $LIBS"
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16570 #ifdef __cplusplus
16571 extern "C"
16572 #endif
16573 char gsm_create ();
16575 main ()
16577 return gsm_create ();
16579 return 0;
16581 _ACEOF
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest$ac_exeext &&
16599 $as_test_x conftest$ac_exeext; then
16600 ac_cv_lib_gsm_gsm_create=yes
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_lib_gsm_gsm_create=no
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609 conftest$ac_exeext conftest.$ac_ext
16610 LIBS=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
16613 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
16614 if test $ac_cv_lib_gsm_gsm_create = yes; then
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_GSM 1
16618 _ACEOF
16622 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
16623 GSM_LIB="-lgsm"
16624 if test "x${GSM_DIR}" != "x"; then
16625 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
16626 GSM_INCLUDE="-I${GSM_DIR}/include"
16628 PBX_GSM=1
16629 GSM_INTERNAL="no"
16632 if test "${GSM_INTERNAL}" = "yes"; then
16633 PBX_GSM=1
16638 if test "${USE_IKSEMEL}" != "no"; then
16639 pbxlibdir=""
16640 if test "x${IKSEMEL_DIR}" != "x"; then
16641 if test -d ${IKSEMEL_DIR}/lib; then
16642 pbxlibdir="-L${IKSEMEL_DIR}/lib"
16643 else
16644 pbxlibdir="-L${IKSEMEL_DIR}"
16647 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
16648 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
16649 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652 ac_check_lib_save_LIBS=$LIBS
16653 LIBS="-liksemel ${pbxlibdir} $LIBS"
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h. */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16661 /* Override any GCC internal prototype to avoid an error.
16662 Use char because int might match the return type of a GCC
16663 builtin and then its argument prototype would still apply. */
16664 #ifdef __cplusplus
16665 extern "C"
16666 #endif
16667 char iks_start_sasl ();
16669 main ()
16671 return iks_start_sasl ();
16673 return 0;
16675 _ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (ac_try="$ac_link"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_link") 2>conftest.er1
16684 ac_status=$?
16685 grep -v '^ *+' conftest.er1 >conftest.err
16686 rm -f conftest.er1
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest$ac_exeext &&
16693 $as_test_x conftest$ac_exeext; then
16694 ac_cv_lib_iksemel_iks_start_sasl=yes
16695 else
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_cv_lib_iksemel_iks_start_sasl=no
16702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16703 conftest$ac_exeext conftest.$ac_ext
16704 LIBS=$ac_check_lib_save_LIBS
16706 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16707 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16708 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16709 AST_IKSEMEL_FOUND=yes
16710 else
16711 AST_IKSEMEL_FOUND=no
16715 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16716 IKSEMEL_LIB="-liksemel "
16717 IKSEMEL_HEADER_FOUND="1"
16718 if test "x${IKSEMEL_DIR}" != "x"; then
16719 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16720 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
16721 saved_cppflags="${CPPFLAGS}"
16722 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
16723 if test "xiksemel.h" != "x" ; then
16724 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16727 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 ac_res=`eval echo '${'$as_ac_Header'}'`
16732 { echo "$as_me:$LINENO: result: $ac_res" >&5
16733 echo "${ECHO_T}$ac_res" >&6; }
16734 else
16735 # Is the header compilable?
16736 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
16737 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 $ac_includes_default
16745 #include <${IKSEMEL_DIR}/include/iksemel.h>
16746 _ACEOF
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest.$ac_objext; then
16764 ac_header_compiler=yes
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_header_compiler=no
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16774 echo "${ECHO_T}$ac_header_compiler" >&6; }
16776 # Is the header present?
16777 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
16778 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 #include <${IKSEMEL_DIR}/include/iksemel.h>
16786 _ACEOF
16787 if { (ac_try="$ac_cpp conftest.$ac_ext"
16788 case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } >/dev/null && {
16800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16802 }; then
16803 ac_header_preproc=yes
16804 else
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_header_preproc=no
16811 rm -f conftest.err conftest.$ac_ext
16812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16813 echo "${ECHO_T}$ac_header_preproc" >&6; }
16815 # So? What about this header?
16816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16817 yes:no: )
16818 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16819 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
16821 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
16822 ac_header_preproc=yes
16824 no:yes:* )
16825 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
16826 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
16828 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
16830 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16832 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16833 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
16834 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
16836 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
16839 esac
16840 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
16841 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
16842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845 eval "$as_ac_Header=\$ac_header_preproc"
16847 ac_res=`eval echo '${'$as_ac_Header'}'`
16848 { echo "$as_me:$LINENO: result: $ac_res" >&5
16849 echo "${ECHO_T}$ac_res" >&6; }
16852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16853 IKSEMEL_HEADER_FOUND=1
16854 else
16855 IKSEMEL_HEADER_FOUND=0
16860 CPPFLAGS="${saved_cppflags}"
16861 else
16862 if test "xiksemel.h" != "x" ; then
16863 if test "${ac_cv_header_iksemel_h+set}" = set; then
16864 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16865 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16866 if test "${ac_cv_header_iksemel_h+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16870 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16871 else
16872 # Is the header compilable?
16873 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
16874 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h. */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 $ac_includes_default
16882 #include <iksemel.h>
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (ac_try="$ac_compile"
16886 case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_compile") 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } && {
16898 test -z "$ac_c_werror_flag" ||
16899 test ! -s conftest.err
16900 } && test -s conftest.$ac_objext; then
16901 ac_header_compiler=yes
16902 else
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_header_compiler=no
16909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16911 echo "${ECHO_T}$ac_header_compiler" >&6; }
16913 # Is the header present?
16914 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
16915 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <iksemel.h>
16923 _ACEOF
16924 if { (ac_try="$ac_cpp conftest.$ac_ext"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16931 ac_status=$?
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } >/dev/null && {
16937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16938 test ! -s conftest.err
16939 }; then
16940 ac_header_preproc=yes
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_header_preproc=no
16948 rm -f conftest.err conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16950 echo "${ECHO_T}$ac_header_preproc" >&6; }
16952 # So? What about this header?
16953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16954 yes:no: )
16955 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
16956 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
16958 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
16959 ac_header_preproc=yes
16961 no:yes:* )
16962 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
16963 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
16965 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
16967 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
16969 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
16971 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
16973 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
16976 esac
16977 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
16978 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
16979 if test "${ac_cv_header_iksemel_h+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982 ac_cv_header_iksemel_h=$ac_header_preproc
16984 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
16985 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16988 if test $ac_cv_header_iksemel_h = yes; then
16989 IKSEMEL_HEADER_FOUND=1
16990 else
16991 IKSEMEL_HEADER_FOUND=0
16997 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
16998 if test ! -z "${IKSEMEL_MANDATORY}" ;
16999 then
17000 { echo "$as_me:$LINENO: ***" >&5
17001 echo "$as_me: ***" >&6;}
17002 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
17003 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
17004 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
17005 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
17006 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17007 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17008 exit 1
17010 IKSEMEL_LIB=""
17011 IKSEMEL_INCLUDE=""
17012 PBX_IKSEMEL=0
17013 else
17014 PBX_IKSEMEL=1
17016 cat >>confdefs.h <<_ACEOF
17017 #define HAVE_IKSEMEL 1
17018 _ACEOF
17021 elif test ! -z "${IKSEMEL_MANDATORY}";
17022 then
17023 { echo "$as_me:$LINENO: ***" >&5
17024 echo "$as_me: ***" >&6;}
17025 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
17026 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
17027 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17028 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17029 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
17030 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
17031 exit 1
17036 if test "${PBX_IKSEMEL}" = 1; then
17038 if test "${USE_GNUTLS}" != "no"; then
17039 pbxlibdir=""
17040 if test "x${GNUTLS_DIR}" != "x"; then
17041 if test -d ${GNUTLS_DIR}/lib; then
17042 pbxlibdir="-L${GNUTLS_DIR}/lib"
17043 else
17044 pbxlibdir="-L${GNUTLS_DIR}"
17047 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
17048 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
17049 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052 ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-lgnutls ${pbxlibdir} $LIBS"
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17064 #ifdef __cplusplus
17065 extern "C"
17066 #endif
17067 char gnutls_bye ();
17069 main ()
17071 return gnutls_bye ();
17073 return 0;
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest$ac_exeext &&
17093 $as_test_x conftest$ac_exeext; then
17094 ac_cv_lib_gnutls_gnutls_bye=yes
17095 else
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_cv_lib_gnutls_gnutls_bye=no
17102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17103 conftest$ac_exeext conftest.$ac_ext
17104 LIBS=$ac_check_lib_save_LIBS
17106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
17107 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
17108 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
17109 AST_GNUTLS_FOUND=yes
17110 else
17111 AST_GNUTLS_FOUND=no
17115 if test "${AST_GNUTLS_FOUND}" = "yes"; then
17116 GNUTLS_LIB="-lgnutls "
17117 GNUTLS_HEADER_FOUND="1"
17118 if test "x${GNUTLS_DIR}" != "x"; then
17119 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
17120 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
17121 saved_cppflags="${CPPFLAGS}"
17122 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
17123 if test "x" != "x" ; then
17124 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/" | $as_tr_sh`
17125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17126 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17127 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 ac_res=`eval echo '${'$as_ac_Header'}'`
17132 { echo "$as_me:$LINENO: result: $ac_res" >&5
17133 echo "${ECHO_T}$ac_res" >&6; }
17134 else
17135 # Is the header compilable?
17136 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ usability" >&5
17137 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ usability... $ECHO_C" >&6; }
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h. */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 $ac_includes_default
17145 #include <${GNUTLS_DIR}/include/>
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (ac_try="$ac_compile"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_compile") 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest.$ac_objext; then
17164 ac_header_compiler=yes
17165 else
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 ac_header_compiler=no
17172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17174 echo "${ECHO_T}$ac_header_compiler" >&6; }
17176 # Is the header present?
17177 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/ presence" >&5
17178 echo $ECHO_N "checking ${GNUTLS_DIR}/include/ presence... $ECHO_C" >&6; }
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h. */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 #include <${GNUTLS_DIR}/include/>
17186 _ACEOF
17187 if { (ac_try="$ac_cpp conftest.$ac_ext"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } >/dev/null && {
17200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17201 test ! -s conftest.err
17202 }; then
17203 ac_header_preproc=yes
17204 else
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_header_preproc=no
17211 rm -f conftest.err conftest.$ac_ext
17212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17213 echo "${ECHO_T}$ac_header_preproc" >&6; }
17215 # So? What about this header?
17216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17217 yes:no: )
17218 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
17219 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
17220 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&5
17221 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the compiler's result" >&2;}
17222 ac_header_preproc=yes
17224 no:yes:* )
17225 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&5
17226 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: present but cannot be compiled" >&2;}
17227 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&5
17228 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: check for missing prerequisite headers?" >&2;}
17229 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&5
17230 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: see the Autoconf documentation" >&2;}
17231 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
17232 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
17233 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&5
17234 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: proceeding with the preprocessor's result" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&5
17236 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/: in the future, the compiler will take precedence" >&2;}
17239 esac
17240 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/" >&5
17241 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/... $ECHO_C" >&6; }
17242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 else
17245 eval "$as_ac_Header=\$ac_header_preproc"
17247 ac_res=`eval echo '${'$as_ac_Header'}'`
17248 { echo "$as_me:$LINENO: result: $ac_res" >&5
17249 echo "${ECHO_T}$ac_res" >&6; }
17252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17253 GNUTLS_HEADER_FOUND=1
17254 else
17255 GNUTLS_HEADER_FOUND=0
17260 CPPFLAGS="${saved_cppflags}"
17261 else
17262 if test "x" != "x" ; then
17263 if test "${ac_cv_header_+set}" = set; then
17264 { echo "$as_me:$LINENO: checking for " >&5
17265 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17266 if test "${ac_cv_header_+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17270 echo "${ECHO_T}$ac_cv_header_" >&6; }
17271 else
17272 # Is the header compilable?
17273 { echo "$as_me:$LINENO: checking usability" >&5
17274 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17282 #include <>
17283 _ACEOF
17284 rm -f conftest.$ac_objext
17285 if { (ac_try="$ac_compile"
17286 case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_compile") 2>conftest.er1
17292 ac_status=$?
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } && {
17298 test -z "$ac_c_werror_flag" ||
17299 test ! -s conftest.err
17300 } && test -s conftest.$ac_objext; then
17301 ac_header_compiler=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_header_compiler=no
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17311 echo "${ECHO_T}$ac_header_compiler" >&6; }
17313 # Is the header present?
17314 { echo "$as_me:$LINENO: checking presence" >&5
17315 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
17316 cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h. */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 #include <>
17323 _ACEOF
17324 if { (ac_try="$ac_cpp conftest.$ac_ext"
17325 case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17331 ac_status=$?
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } >/dev/null && {
17337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 }; then
17340 ac_header_preproc=yes
17341 else
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 ac_header_preproc=no
17348 rm -f conftest.err conftest.$ac_ext
17349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17350 echo "${ECHO_T}$ac_header_preproc" >&6; }
17352 # So? What about this header?
17353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17354 yes:no: )
17355 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
17356 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
17358 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
17359 ac_header_preproc=yes
17361 no:yes:* )
17362 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
17363 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
17365 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
17367 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
17369 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
17370 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
17371 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
17372 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
17373 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
17376 esac
17377 { echo "$as_me:$LINENO: checking for " >&5
17378 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
17379 if test "${ac_cv_header_+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382 ac_cv_header_=$ac_header_preproc
17384 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
17385 echo "${ECHO_T}$ac_cv_header_" >&6; }
17388 if test $ac_cv_header_ = yes; then
17389 GNUTLS_HEADER_FOUND=1
17390 else
17391 GNUTLS_HEADER_FOUND=0
17397 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
17398 if test ! -z "${GNUTLS_MANDATORY}" ;
17399 then
17400 { echo "$as_me:$LINENO: ***" >&5
17401 echo "$as_me: ***" >&6;}
17402 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
17403 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
17404 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
17405 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
17406 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17407 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17408 exit 1
17410 GNUTLS_LIB=""
17411 GNUTLS_INCLUDE=""
17412 PBX_GNUTLS=0
17413 else
17414 PBX_GNUTLS=1
17416 cat >>confdefs.h <<_ACEOF
17417 #define HAVE_GNUTLS 1
17418 _ACEOF
17421 elif test ! -z "${GNUTLS_MANDATORY}";
17422 then
17423 { echo "$as_me:$LINENO: ***" >&5
17424 echo "$as_me: ***" >&6;}
17425 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
17426 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
17427 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17428 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17429 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
17430 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
17431 exit 1
17435 if test "${PBX_GNUTLS}" = 1; then
17436 IKSEMEL_LIB="${IKSEMEL_LIB} -lgnutls -lz -lgcrypt -lnsl -lgpg-error"
17440 if test "${USE_IMAP_TK}" != "no"; then
17441 if test "${IMAP_TK_DIR}" = ""; then
17442 IMAP_TK_DIR=`pwd`"/../imap-2004g"
17444 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
17445 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
17446 saved_cppflags="${CPPFLAGS}"
17447 saved_libs="${LIBS}"
17448 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
17449 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
17451 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
17452 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 #include "c-client.h"
17460 void mm_searched (MAILSTREAM *stream,unsigned long number)
17463 void mm_exists (MAILSTREAM *stream,unsigned long number)
17466 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17469 void mm_flags (MAILSTREAM *stream,unsigned long number)
17472 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17475 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17478 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17481 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17484 void mm_log (char *string,long errflg)
17487 void mm_dlog (char *string)
17490 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17493 void mm_critical (MAILSTREAM *stream)
17496 void mm_nocritical (MAILSTREAM *stream)
17499 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17502 void mm_fatal (char *string)
17506 main ()
17509 MAILSTREAM *foo = mail_open(NULL, "", 0);
17513 return 0;
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } && {
17530 test -z "$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 } && test -s conftest$ac_exeext &&
17533 $as_test_x conftest$ac_exeext; then
17534 ac_cv_imap_tk="yes"
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 ac_cv_imap_tk="no"
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17545 if test "${ac_cv_imap_tk}" = "yes"; then
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 #include "c-client.h"
17553 void mm_searched (MAILSTREAM *stream,unsigned long number)
17556 void mm_exists (MAILSTREAM *stream,unsigned long number)
17559 void mm_expunged (MAILSTREAM *stream,unsigned long number)
17562 void mm_flags (MAILSTREAM *stream,unsigned long number)
17565 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
17568 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17571 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
17574 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
17577 void mm_log (char *string,long errflg)
17580 void mm_dlog (char *string)
17583 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
17586 void mm_critical (MAILSTREAM *stream)
17589 void mm_nocritical (MAILSTREAM *stream)
17592 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
17595 void mm_fatal (char *string)
17599 main ()
17602 long check = mail_expunge_full(NULL, "", 0);
17606 return 0;
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17617 ac_status=$?
17618 grep -v '^ *+' conftest.er1 >conftest.err
17619 rm -f conftest.er1
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 ac_cv_imap_tk2006="yes"
17628 else
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 ac_cv_imap_tk2006="no"
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17639 CPPFLAGS="${saved_cppflags}"
17640 LIBS="${saved_libs}"
17641 if test "${ac_cv_imap_tk}" = "yes"; then
17642 { echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6; }
17644 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
17645 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
17646 PBX_IMAP_TK=1
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_IMAP_TK 1
17650 _ACEOF
17652 if test "${ac_cv_imap_tk2006}" = "yes"; then
17654 cat >>confdefs.h <<\_ACEOF
17655 #define HAVE_IMAP_TK2006 1
17656 _ACEOF
17659 elif test ! -z "${IMAP_TK_MANDATORY}"; then
17660 { echo "$as_me:$LINENO: result: no" >&5
17661 echo "${ECHO_T}no" >&6; }
17662 { echo "$as_me:$LINENO: ***" >&5
17663 echo "$as_me: ***" >&6;}
17664 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
17665 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
17666 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17667 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17668 { echo "$as_me:$LINENO: *** including --without-imap." >&5
17669 echo "$as_me: *** including --without-imap." >&6;}
17670 exit 1
17671 else
17672 { echo "$as_me:$LINENO: result: no" >&5
17673 echo "${ECHO_T}no" >&6; }
17677 ac_ext=cpp
17678 ac_cpp='$CXXCPP $CPPFLAGS'
17679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17684 if test "${USE_KDE}" != "no"; then
17685 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
17686 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
17687 saved_libs="${LIBS}"
17688 saved_cppflags="${CPPFLAGS}"
17689 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
17690 if test -d ${KDE_DIR}/lib; then
17691 kdelibdir="${KDE_DIR}/lib"
17692 else
17693 kdelibdir="${KDE_DIR}"
17695 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
17698 cat >conftest.$ac_ext <<_ACEOF
17699 /* confdefs.h. */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 #include "kcrash.h"
17706 main ()
17708 KCrash::defaultCrashHandler(1);
17710 return 0;
17713 _ACEOF
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (ac_try="$ac_link"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_link") 2>conftest.er1
17722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } && {
17728 test -z "$ac_cxx_werror_flag" ||
17729 test ! -s conftest.err
17730 } && test -s conftest$ac_exeext &&
17731 $as_test_x conftest$ac_exeext; then
17732 ac_cv_lib_kde_crash="yes"
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_cv_lib_kde_crash="no"
17740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17741 conftest$ac_exeext conftest.$ac_ext
17743 LIBS="${saved_libs}"
17744 CPPFLAGS="${saved_cppflags}"
17746 if test "${ac_cv_lib_kde_crash}" = "yes"; then
17747 { echo "$as_me:$LINENO: result: yes" >&5
17748 echo "${ECHO_T}yes" >&6; }
17749 KDE_LIB="-lkdecore -lkdeui"
17750 if test "${KDE_DIR}" != ""; then
17751 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
17752 KDE_INCLUDE="-I${KDE_DIR}/include"
17754 PBX_KDE=1
17756 cat >>confdefs.h <<\_ACEOF
17757 #define HAVE_LIBKDE 1
17758 _ACEOF
17760 elif test ! -z "${KDE_MANDATORY}"; then
17761 { echo "$as_me:$LINENO: result: no" >&5
17762 echo "${ECHO_T}no" >&6; }
17763 { echo "$as_me:$LINENO: ***" >&5
17764 echo "$as_me: ***" >&6;}
17765 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
17766 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
17767 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17768 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17769 { echo "$as_me:$LINENO: *** including --without-kde." >&5
17770 echo "$as_me: *** including --without-kde." >&6;}
17771 exit 1
17772 else
17773 { echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6; }
17777 if test "${PBX_KDE}" = 1; then
17778 if test -n "$ac_tool_prefix"; then
17779 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
17780 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
17781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17783 if test "${ac_cv_path_KDEINIT+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786 case $KDEINIT in
17787 [\\/]* | ?:[\\/]*)
17788 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
17791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17794 IFS=$as_save_IFS
17795 test -z "$as_dir" && as_dir=.
17796 for ac_exec_ext in '' $ac_executable_extensions; do
17797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17798 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17800 break 2
17802 done
17803 done
17804 IFS=$as_save_IFS
17807 esac
17809 KDEINIT=$ac_cv_path_KDEINIT
17810 if test -n "$KDEINIT"; then
17811 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
17812 echo "${ECHO_T}$KDEINIT" >&6; }
17813 else
17814 { echo "$as_me:$LINENO: result: no" >&5
17815 echo "${ECHO_T}no" >&6; }
17820 if test -z "$ac_cv_path_KDEINIT"; then
17821 ac_pt_KDEINIT=$KDEINIT
17822 # Extract the first word of "kdeinit", so it can be a program name with args.
17823 set dummy kdeinit; ac_word=$2
17824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17826 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 else
17829 case $ac_pt_KDEINIT in
17830 [\\/]* | ?:[\\/]*)
17831 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
17834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17835 for as_dir in $PATH
17837 IFS=$as_save_IFS
17838 test -z "$as_dir" && as_dir=.
17839 for ac_exec_ext in '' $ac_executable_extensions; do
17840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17841 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
17842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17843 break 2
17845 done
17846 done
17847 IFS=$as_save_IFS
17850 esac
17852 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
17853 if test -n "$ac_pt_KDEINIT"; then
17854 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
17855 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
17856 else
17857 { echo "$as_me:$LINENO: result: no" >&5
17858 echo "${ECHO_T}no" >&6; }
17861 if test "x$ac_pt_KDEINIT" = x; then
17862 KDEINIT="No"
17863 else
17864 case $cross_compiling:$ac_tool_warned in
17865 yes:)
17866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17867 whose name does not start with the host triplet. If you think this
17868 configuration is useful to you, please write to autoconf@gnu.org." >&5
17869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17870 whose name does not start with the host triplet. If you think this
17871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17872 ac_tool_warned=yes ;;
17873 esac
17874 KDEINIT=$ac_pt_KDEINIT
17876 else
17877 KDEINIT="$ac_cv_path_KDEINIT"
17880 if test ! x"${KDEINIT}" = xNo; then
17881 KDEDIR=$(${DIRNAME} ${KDEINIT})
17882 KDEDIR=$(${DIRNAME} ${KDEDIR})
17887 ac_ext=c
17888 ac_cpp='$CPP $CPPFLAGS'
17889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17895 if test "${USE_MISDN}" != "no"; then
17896 pbxlibdir=""
17897 if test "x${MISDN_DIR}" != "x"; then
17898 if test -d ${MISDN_DIR}/lib; then
17899 pbxlibdir="-L${MISDN_DIR}/lib"
17900 else
17901 pbxlibdir="-L${MISDN_DIR}"
17904 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
17905 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
17906 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-lmISDN ${pbxlibdir} $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h. */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char mISDN_open ();
17926 main ()
17928 return mISDN_open ();
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17941 ac_status=$?
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17951 ac_cv_lib_mISDN_mISDN_open=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_cv_lib_mISDN_mISDN_open=no
17959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
17964 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
17965 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
17966 AST_MISDN_FOUND=yes
17967 else
17968 AST_MISDN_FOUND=no
17972 if test "${AST_MISDN_FOUND}" = "yes"; then
17973 MISDN_LIB="-lmISDN "
17974 MISDN_HEADER_FOUND="1"
17975 if test "x${MISDN_DIR}" != "x"; then
17976 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
17977 MISDN_INCLUDE="-I${MISDN_DIR}/include"
17978 saved_cppflags="${CPPFLAGS}"
17979 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
17980 if test "xmISDNuser/mISDNlib.h" != "x" ; then
17981 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
17984 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 ac_res=`eval echo '${'$as_ac_Header'}'`
17989 { echo "$as_me:$LINENO: result: $ac_res" >&5
17990 echo "${ECHO_T}$ac_res" >&6; }
17991 else
17992 # Is the header compilable?
17993 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
17994 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 $ac_includes_default
18002 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18003 _ACEOF
18004 rm -f conftest.$ac_objext
18005 if { (ac_try="$ac_compile"
18006 case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_compile") 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest.$ac_objext; then
18021 ac_header_compiler=yes
18022 else
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_header_compiler=no
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18031 echo "${ECHO_T}$ac_header_compiler" >&6; }
18033 # Is the header present?
18034 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
18035 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
18043 _ACEOF
18044 if { (ac_try="$ac_cpp conftest.$ac_ext"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } >/dev/null && {
18057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18058 test ! -s conftest.err
18059 }; then
18060 ac_header_preproc=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_header_preproc=no
18068 rm -f conftest.err conftest.$ac_ext
18069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18070 echo "${ECHO_T}$ac_header_preproc" >&6; }
18072 # So? What about this header?
18073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18074 yes:no: )
18075 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18076 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
18078 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
18079 ac_header_preproc=yes
18081 no:yes:* )
18082 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
18083 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
18085 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
18087 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
18089 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
18091 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
18093 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
18096 esac
18097 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
18098 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102 eval "$as_ac_Header=\$ac_header_preproc"
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105 { echo "$as_me:$LINENO: result: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110 MISDN_HEADER_FOUND=1
18111 else
18112 MISDN_HEADER_FOUND=0
18117 CPPFLAGS="${saved_cppflags}"
18118 else
18119 if test "xmISDNuser/mISDNlib.h" != "x" ; then
18120 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18121 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
18122 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18123 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18127 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18128 else
18129 # Is the header compilable?
18130 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
18131 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
18132 cat >conftest.$ac_ext <<_ACEOF
18133 /* confdefs.h. */
18134 _ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18139 #include <mISDNuser/mISDNlib.h>
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest.$ac_objext; then
18158 ac_header_compiler=yes
18159 else
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_header_compiler=no
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6; }
18170 # Is the header present?
18171 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
18172 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
18173 cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h. */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 #include <mISDNuser/mISDNlib.h>
18180 _ACEOF
18181 if { (ac_try="$ac_cpp conftest.$ac_ext"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } >/dev/null && {
18194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18195 test ! -s conftest.err
18196 }; then
18197 ac_header_preproc=yes
18198 else
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 ac_header_preproc=no
18205 rm -f conftest.err conftest.$ac_ext
18206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18207 echo "${ECHO_T}$ac_header_preproc" >&6; }
18209 # So? What about this header?
18210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18211 yes:no: )
18212 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18213 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
18215 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
18216 ac_header_preproc=yes
18218 no:yes:* )
18219 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
18220 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
18222 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
18224 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
18226 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
18228 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
18230 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
18233 esac
18234 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
18235 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
18236 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
18241 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
18242 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
18245 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
18246 MISDN_HEADER_FOUND=1
18247 else
18248 MISDN_HEADER_FOUND=0
18254 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
18255 if test ! -z "${MISDN_MANDATORY}" ;
18256 then
18257 { echo "$as_me:$LINENO: ***" >&5
18258 echo "$as_me: ***" >&6;}
18259 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
18260 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
18261 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
18262 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
18263 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18264 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18265 exit 1
18267 MISDN_LIB=""
18268 MISDN_INCLUDE=""
18269 PBX_MISDN=0
18270 else
18271 PBX_MISDN=1
18273 cat >>confdefs.h <<_ACEOF
18274 #define HAVE_MISDN 1
18275 _ACEOF
18278 elif test ! -z "${MISDN_MANDATORY}";
18279 then
18280 { echo "$as_me:$LINENO: ***" >&5
18281 echo "$as_me: ***" >&6;}
18282 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
18283 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
18284 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18285 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18286 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
18287 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
18288 exit 1
18293 if test "${PBX_MISDN}" = 1; then
18295 if test "${USE_ISDNNET}" != "no"; then
18296 pbxlibdir=""
18297 if test "x${ISDNNET_DIR}" != "x"; then
18298 if test -d ${ISDNNET_DIR}/lib; then
18299 pbxlibdir="-L${ISDNNET_DIR}/lib"
18300 else
18301 pbxlibdir="-L${ISDNNET_DIR}"
18304 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
18305 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
18306 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 ac_check_lib_save_LIBS=$LIBS
18310 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18321 #ifdef __cplusplus
18322 extern "C"
18323 #endif
18324 char init_manager ();
18326 main ()
18328 return init_manager ();
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18351 ac_cv_lib_isdnnet_init_manager=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_cv_lib_isdnnet_init_manager=no
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18361 LIBS=$ac_check_lib_save_LIBS
18363 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
18364 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
18365 if test $ac_cv_lib_isdnnet_init_manager = yes; then
18366 AST_ISDNNET_FOUND=yes
18367 else
18368 AST_ISDNNET_FOUND=no
18372 if test "${AST_ISDNNET_FOUND}" = "yes"; then
18373 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
18374 ISDNNET_HEADER_FOUND="1"
18375 if test "x${ISDNNET_DIR}" != "x"; then
18376 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
18377 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
18378 saved_cppflags="${CPPFLAGS}"
18379 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
18380 if test "xmISDNuser/isdn_net.h" != "x" ; then
18381 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
18382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18383 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18384 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 ac_res=`eval echo '${'$as_ac_Header'}'`
18389 { echo "$as_me:$LINENO: result: $ac_res" >&5
18390 echo "${ECHO_T}$ac_res" >&6; }
18391 else
18392 # Is the header compilable?
18393 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
18394 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 $ac_includes_default
18402 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18403 _ACEOF
18404 rm -f conftest.$ac_objext
18405 if { (ac_try="$ac_compile"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409 esac
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_header_compiler=yes
18422 else
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_header_compiler=no
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18431 echo "${ECHO_T}$ac_header_compiler" >&6; }
18433 # Is the header present?
18434 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
18435 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
18443 _ACEOF
18444 if { (ac_try="$ac_cpp conftest.$ac_ext"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } >/dev/null && {
18457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18458 test ! -s conftest.err
18459 }; then
18460 ac_header_preproc=yes
18461 else
18462 echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18465 ac_header_preproc=no
18468 rm -f conftest.err conftest.$ac_ext
18469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18470 echo "${ECHO_T}$ac_header_preproc" >&6; }
18472 # So? What about this header?
18473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18474 yes:no: )
18475 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18476 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18478 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18479 ac_header_preproc=yes
18481 no:yes:* )
18482 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18483 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18484 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18485 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18486 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18487 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18489 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18490 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18491 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18492 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18493 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18496 esac
18497 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
18498 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502 eval "$as_ac_Header=\$ac_header_preproc"
18504 ac_res=`eval echo '${'$as_ac_Header'}'`
18505 { echo "$as_me:$LINENO: result: $ac_res" >&5
18506 echo "${ECHO_T}$ac_res" >&6; }
18509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18510 ISDNNET_HEADER_FOUND=1
18511 else
18512 ISDNNET_HEADER_FOUND=0
18517 CPPFLAGS="${saved_cppflags}"
18518 else
18519 if test "xmISDNuser/isdn_net.h" != "x" ; then
18520 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18521 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18522 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18523 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18527 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18528 else
18529 # Is the header compilable?
18530 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
18531 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 $ac_includes_default
18539 #include <mISDNuser/isdn_net.h>
18540 _ACEOF
18541 rm -f conftest.$ac_objext
18542 if { (ac_try="$ac_compile"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_compile") 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } && {
18555 test -z "$ac_c_werror_flag" ||
18556 test ! -s conftest.err
18557 } && test -s conftest.$ac_objext; then
18558 ac_header_compiler=yes
18559 else
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_header_compiler=no
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18568 echo "${ECHO_T}$ac_header_compiler" >&6; }
18570 # Is the header present?
18571 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
18572 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 #include <mISDNuser/isdn_net.h>
18580 _ACEOF
18581 if { (ac_try="$ac_cpp conftest.$ac_ext"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18588 ac_status=$?
18589 grep -v '^ *+' conftest.er1 >conftest.err
18590 rm -f conftest.er1
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } >/dev/null && {
18594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18595 test ! -s conftest.err
18596 }; then
18597 ac_header_preproc=yes
18598 else
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18602 ac_header_preproc=no
18605 rm -f conftest.err conftest.$ac_ext
18606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18607 echo "${ECHO_T}$ac_header_preproc" >&6; }
18609 # So? What about this header?
18610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18611 yes:no: )
18612 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
18613 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18614 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
18615 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
18616 ac_header_preproc=yes
18618 no:yes:* )
18619 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
18620 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
18622 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
18624 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
18626 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
18628 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
18630 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
18633 esac
18634 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
18635 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
18636 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
18641 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
18642 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
18645 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
18646 ISDNNET_HEADER_FOUND=1
18647 else
18648 ISDNNET_HEADER_FOUND=0
18654 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
18655 if test ! -z "${ISDNNET_MANDATORY}" ;
18656 then
18657 { echo "$as_me:$LINENO: ***" >&5
18658 echo "$as_me: ***" >&6;}
18659 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
18660 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
18661 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
18662 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
18663 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18664 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18665 exit 1
18667 ISDNNET_LIB=""
18668 ISDNNET_INCLUDE=""
18669 PBX_ISDNNET=0
18670 else
18671 PBX_ISDNNET=1
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_ISDNNET 1
18675 _ACEOF
18678 elif test ! -z "${ISDNNET_MANDATORY}";
18679 then
18680 { echo "$as_me:$LINENO: ***" >&5
18681 echo "$as_me: ***" >&6;}
18682 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
18683 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
18684 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18685 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18686 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
18687 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
18688 exit 1
18693 if test "${USE_SUPPSERV}" != "no"; then
18694 pbxlibdir=""
18695 if test "x${SUPPSERV_DIR}" != "x"; then
18696 if test -d ${SUPPSERV_DIR}/lib; then
18697 pbxlibdir="-L${SUPPSERV_DIR}/lib"
18698 else
18699 pbxlibdir="-L${SUPPSERV_DIR}"
18702 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
18703 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
18704 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707 ac_check_lib_save_LIBS=$LIBS
18708 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 /* Override any GCC internal prototype to avoid an error.
18717 Use char because int might match the return type of a GCC
18718 builtin and then its argument prototype would still apply. */
18719 #ifdef __cplusplus
18720 extern "C"
18721 #endif
18722 char encodeFac ();
18724 main ()
18726 return encodeFac ();
18728 return 0;
18730 _ACEOF
18731 rm -f conftest.$ac_objext conftest$ac_exeext
18732 if { (ac_try="$ac_link"
18733 case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18736 esac
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_link") 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest$ac_exeext &&
18748 $as_test_x conftest$ac_exeext; then
18749 ac_cv_lib_suppserv_encodeFac=yes
18750 else
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_cv_lib_suppserv_encodeFac=no
18757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18758 conftest$ac_exeext conftest.$ac_ext
18759 LIBS=$ac_check_lib_save_LIBS
18761 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
18762 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
18763 if test $ac_cv_lib_suppserv_encodeFac = yes; then
18764 AST_SUPPSERV_FOUND=yes
18765 else
18766 AST_SUPPSERV_FOUND=no
18770 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
18771 SUPPSERV_LIB="-lsuppserv "
18772 SUPPSERV_HEADER_FOUND="1"
18773 if test "x${SUPPSERV_DIR}" != "x"; then
18774 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
18775 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
18776 saved_cppflags="${CPPFLAGS}"
18777 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
18778 if test "xmISDNuser/suppserv.h" != "x" ; then
18779 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
18780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18781 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18782 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 ac_res=`eval echo '${'$as_ac_Header'}'`
18787 { echo "$as_me:$LINENO: result: $ac_res" >&5
18788 echo "${ECHO_T}$ac_res" >&6; }
18789 else
18790 # Is the header compilable?
18791 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
18792 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18820 else
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_compiler=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18829 echo "${ECHO_T}$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
18833 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h. */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
18841 _ACEOF
18842 if { (ac_try="$ac_cpp conftest.$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } >/dev/null && {
18855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 }; then
18858 ac_header_preproc=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_header_preproc=no
18866 rm -f conftest.err conftest.$ac_ext
18867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18868 echo "${ECHO_T}$ac_header_preproc" >&6; }
18870 # So? What about this header?
18871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18872 yes:no: )
18873 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18874 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
18876 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
18877 ac_header_preproc=yes
18879 no:yes:* )
18880 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
18881 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
18883 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
18885 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
18887 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
18889 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
18891 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
18894 esac
18895 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
18896 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
18897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900 eval "$as_ac_Header=\$ac_header_preproc"
18902 ac_res=`eval echo '${'$as_ac_Header'}'`
18903 { echo "$as_me:$LINENO: result: $ac_res" >&5
18904 echo "${ECHO_T}$ac_res" >&6; }
18907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18908 SUPPSERV_HEADER_FOUND=1
18909 else
18910 SUPPSERV_HEADER_FOUND=0
18915 CPPFLAGS="${saved_cppflags}"
18916 else
18917 if test "xmISDNuser/suppserv.h" != "x" ; then
18918 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18919 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
18920 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
18921 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
18925 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
18926 else
18927 # Is the header compilable?
18928 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
18929 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h. */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18937 #include <mISDNuser/suppserv.h>
18938 _ACEOF
18939 rm -f conftest.$ac_objext
18940 if { (ac_try="$ac_compile"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_compile") 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } && {
18953 test -z "$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18955 } && test -s conftest.$ac_objext; then
18956 ac_header_compiler=yes
18957 else
18958 echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_compiler=no
18964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6; }
18968 # Is the header present?
18969 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
18970 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <mISDNuser/suppserv.h>
18978 _ACEOF
18979 if { (ac_try="$ac_cpp conftest.$ac_ext"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } >/dev/null && {
18992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18994 }; then
18995 ac_header_preproc=yes
18996 else
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_header_preproc=no
19003 rm -f conftest.err conftest.$ac_ext
19004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6; }
19007 # So? What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19009 yes:no: )
19010 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
19011 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
19013 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
19014 ac_header_preproc=yes
19016 no:yes:* )
19017 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
19018 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
19020 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
19022 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
19024 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
19026 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
19028 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
19031 esac
19032 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
19033 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
19034 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
19039 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
19040 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
19043 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
19044 SUPPSERV_HEADER_FOUND=1
19045 else
19046 SUPPSERV_HEADER_FOUND=0
19052 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
19053 if test ! -z "${SUPPSERV_MANDATORY}" ;
19054 then
19055 { echo "$as_me:$LINENO: ***" >&5
19056 echo "$as_me: ***" >&6;}
19057 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
19058 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
19059 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
19060 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
19061 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
19062 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
19063 exit 1
19065 SUPPSERV_LIB=""
19066 SUPPSERV_INCLUDE=""
19067 PBX_SUPPSERV=0
19068 else
19069 PBX_SUPPSERV=1
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_SUPPSERV 1
19073 _ACEOF
19076 elif test ! -z "${SUPPSERV_MANDATORY}";
19077 then
19078 { echo "$as_me:$LINENO: ***" >&5
19079 echo "$as_me: ***" >&6;}
19080 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
19081 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
19082 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19083 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19084 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
19085 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
19086 exit 1
19093 if test "${USE_NBS}" != "no"; then
19094 pbxlibdir=""
19095 if test "x${NBS_DIR}" != "x"; then
19096 if test -d ${NBS_DIR}/lib; then
19097 pbxlibdir="-L${NBS_DIR}/lib"
19098 else
19099 pbxlibdir="-L${NBS_DIR}"
19102 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
19103 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
19104 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 ac_check_lib_save_LIBS=$LIBS
19108 LIBS="-lnbs ${pbxlibdir} $LIBS"
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19116 /* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 char nbs_connect ();
19124 main ()
19126 return nbs_connect ();
19128 return 0;
19130 _ACEOF
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
19139 ac_status=$?
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest$ac_exeext &&
19148 $as_test_x conftest$ac_exeext; then
19149 ac_cv_lib_nbs_nbs_connect=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_lib_nbs_nbs_connect=no
19157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19158 conftest$ac_exeext conftest.$ac_ext
19159 LIBS=$ac_check_lib_save_LIBS
19161 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
19162 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
19163 if test $ac_cv_lib_nbs_nbs_connect = yes; then
19164 AST_NBS_FOUND=yes
19165 else
19166 AST_NBS_FOUND=no
19170 if test "${AST_NBS_FOUND}" = "yes"; then
19171 NBS_LIB="-lnbs "
19172 NBS_HEADER_FOUND="1"
19173 if test "x${NBS_DIR}" != "x"; then
19174 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
19175 NBS_INCLUDE="-I${NBS_DIR}/include"
19176 saved_cppflags="${CPPFLAGS}"
19177 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
19178 if test "xnbs.h" != "x" ; then
19179 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
19180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19181 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19182 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 ac_res=`eval echo '${'$as_ac_Header'}'`
19187 { echo "$as_me:$LINENO: result: $ac_res" >&5
19188 echo "${ECHO_T}$ac_res" >&6; }
19189 else
19190 # Is the header compilable?
19191 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
19192 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 $ac_includes_default
19200 #include <${NBS_DIR}/include/nbs.h>
19201 _ACEOF
19202 rm -f conftest.$ac_objext
19203 if { (ac_try="$ac_compile"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_compile") 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest.$ac_objext; then
19219 ac_header_compiler=yes
19220 else
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19224 ac_header_compiler=no
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19229 echo "${ECHO_T}$ac_header_compiler" >&6; }
19231 # Is the header present?
19232 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
19233 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <${NBS_DIR}/include/nbs.h>
19241 _ACEOF
19242 if { (ac_try="$ac_cpp conftest.$ac_ext"
19243 case "(($ac_try" in
19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245 *) ac_try_echo=$ac_try;;
19246 esac
19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } >/dev/null && {
19255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19256 test ! -s conftest.err
19257 }; then
19258 ac_header_preproc=yes
19259 else
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_header_preproc=no
19266 rm -f conftest.err conftest.$ac_ext
19267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19268 echo "${ECHO_T}$ac_header_preproc" >&6; }
19270 # So? What about this header?
19271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19272 yes:no: )
19273 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19274 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19275 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
19276 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
19277 ac_header_preproc=yes
19279 no:yes:* )
19280 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
19281 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
19283 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
19285 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
19286 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19287 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19288 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
19289 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
19291 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
19294 esac
19295 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
19296 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
19297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300 eval "$as_ac_Header=\$ac_header_preproc"
19302 ac_res=`eval echo '${'$as_ac_Header'}'`
19303 { echo "$as_me:$LINENO: result: $ac_res" >&5
19304 echo "${ECHO_T}$ac_res" >&6; }
19307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19308 NBS_HEADER_FOUND=1
19309 else
19310 NBS_HEADER_FOUND=0
19315 CPPFLAGS="${saved_cppflags}"
19316 else
19317 if test "xnbs.h" != "x" ; then
19318 if test "${ac_cv_header_nbs_h+set}" = set; then
19319 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19320 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19321 if test "${ac_cv_header_nbs_h+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19325 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19326 else
19327 # Is the header compilable?
19328 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
19329 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
19330 cat >conftest.$ac_ext <<_ACEOF
19331 /* confdefs.h. */
19332 _ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19336 $ac_includes_default
19337 #include <nbs.h>
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_compile") 2>conftest.er1
19347 ac_status=$?
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest.$ac_objext; then
19356 ac_header_compiler=yes
19357 else
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ac_header_compiler=no
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19366 echo "${ECHO_T}$ac_header_compiler" >&6; }
19368 # Is the header present?
19369 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
19370 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 #include <nbs.h>
19378 _ACEOF
19379 if { (ac_try="$ac_cpp conftest.$ac_ext"
19380 case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19383 esac
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19386 ac_status=$?
19387 grep -v '^ *+' conftest.er1 >conftest.err
19388 rm -f conftest.er1
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } >/dev/null && {
19392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19393 test ! -s conftest.err
19394 }; then
19395 ac_header_preproc=yes
19396 else
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_header_preproc=no
19403 rm -f conftest.err conftest.$ac_ext
19404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19405 echo "${ECHO_T}$ac_header_preproc" >&6; }
19407 # So? What about this header?
19408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19409 yes:no: )
19410 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
19411 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19412 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
19413 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
19414 ac_header_preproc=yes
19416 no:yes:* )
19417 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
19418 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
19419 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
19420 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
19421 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
19422 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
19423 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
19424 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
19425 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
19426 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
19427 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
19428 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
19431 esac
19432 { echo "$as_me:$LINENO: checking for nbs.h" >&5
19433 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
19434 if test "${ac_cv_header_nbs_h+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 else
19437 ac_cv_header_nbs_h=$ac_header_preproc
19439 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
19440 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
19443 if test $ac_cv_header_nbs_h = yes; then
19444 NBS_HEADER_FOUND=1
19445 else
19446 NBS_HEADER_FOUND=0
19452 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
19453 if test ! -z "${NBS_MANDATORY}" ;
19454 then
19455 { echo "$as_me:$LINENO: ***" >&5
19456 echo "$as_me: ***" >&6;}
19457 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
19458 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
19459 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
19460 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
19461 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19462 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19463 exit 1
19465 NBS_LIB=""
19466 NBS_INCLUDE=""
19467 PBX_NBS=0
19468 else
19469 PBX_NBS=1
19471 cat >>confdefs.h <<_ACEOF
19472 #define HAVE_NBS 1
19473 _ACEOF
19476 elif test ! -z "${NBS_MANDATORY}";
19477 then
19478 { echo "$as_me:$LINENO: ***" >&5
19479 echo "$as_me: ***" >&6;}
19480 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
19481 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
19482 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19483 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19484 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
19485 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
19486 exit 1
19492 if test "${USE_NCURSES}" != "no"; then
19493 pbxlibdir=""
19494 if test "x${NCURSES_DIR}" != "x"; then
19495 if test -d ${NCURSES_DIR}/lib; then
19496 pbxlibdir="-L${NCURSES_DIR}/lib"
19497 else
19498 pbxlibdir="-L${NCURSES_DIR}"
19501 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
19502 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
19503 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506 ac_check_lib_save_LIBS=$LIBS
19507 LIBS="-lncurses ${pbxlibdir} $LIBS"
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char initscr ();
19523 main ()
19525 return initscr ();
19527 return 0;
19529 _ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_link") 2>conftest.er1
19538 ac_status=$?
19539 grep -v '^ *+' conftest.er1 >conftest.err
19540 rm -f conftest.er1
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && {
19544 test -z "$ac_c_werror_flag" ||
19545 test ! -s conftest.err
19546 } && test -s conftest$ac_exeext &&
19547 $as_test_x conftest$ac_exeext; then
19548 ac_cv_lib_ncurses_initscr=yes
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_cv_lib_ncurses_initscr=no
19556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19557 conftest$ac_exeext conftest.$ac_ext
19558 LIBS=$ac_check_lib_save_LIBS
19560 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
19561 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
19562 if test $ac_cv_lib_ncurses_initscr = yes; then
19563 AST_NCURSES_FOUND=yes
19564 else
19565 AST_NCURSES_FOUND=no
19569 if test "${AST_NCURSES_FOUND}" = "yes"; then
19570 NCURSES_LIB="-lncurses "
19571 NCURSES_HEADER_FOUND="1"
19572 if test "x${NCURSES_DIR}" != "x"; then
19573 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
19574 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
19575 saved_cppflags="${CPPFLAGS}"
19576 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
19577 if test "xcurses.h" != "x" ; then
19578 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
19579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19580 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19581 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 ac_res=`eval echo '${'$as_ac_Header'}'`
19586 { echo "$as_me:$LINENO: result: $ac_res" >&5
19587 echo "${ECHO_T}$ac_res" >&6; }
19588 else
19589 # Is the header compilable?
19590 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
19591 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 $ac_includes_default
19599 #include <${NCURSES_DIR}/include/curses.h>
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_header_compiler=yes
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_header_compiler=no
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19628 echo "${ECHO_T}$ac_header_compiler" >&6; }
19630 # Is the header present?
19631 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
19632 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <${NCURSES_DIR}/include/curses.h>
19640 _ACEOF
19641 if { (ac_try="$ac_cpp conftest.$ac_ext"
19642 case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } >/dev/null && {
19654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19655 test ! -s conftest.err
19656 }; then
19657 ac_header_preproc=yes
19658 else
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ac_header_preproc=no
19665 rm -f conftest.err conftest.$ac_ext
19666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19667 echo "${ECHO_T}$ac_header_preproc" >&6; }
19669 # So? What about this header?
19670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19671 yes:no: )
19672 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19673 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
19675 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
19676 ac_header_preproc=yes
19678 no:yes:* )
19679 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
19680 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
19681 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
19682 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
19683 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
19684 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
19685 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
19686 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19687 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
19688 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
19690 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
19693 esac
19694 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
19695 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
19696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699 eval "$as_ac_Header=\$ac_header_preproc"
19701 ac_res=`eval echo '${'$as_ac_Header'}'`
19702 { echo "$as_me:$LINENO: result: $ac_res" >&5
19703 echo "${ECHO_T}$ac_res" >&6; }
19706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19707 NCURSES_HEADER_FOUND=1
19708 else
19709 NCURSES_HEADER_FOUND=0
19714 CPPFLAGS="${saved_cppflags}"
19715 else
19716 if test "xcurses.h" != "x" ; then
19717 if test "${ac_cv_header_curses_h+set}" = set; then
19718 { echo "$as_me:$LINENO: checking for curses.h" >&5
19719 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19720 if test "${ac_cv_header_curses_h+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19724 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19725 else
19726 # Is the header compilable?
19727 { echo "$as_me:$LINENO: checking curses.h usability" >&5
19728 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h. */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 $ac_includes_default
19736 #include <curses.h>
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (ac_try="$ac_compile"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_compile") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest.$ac_objext; then
19755 ac_header_compiler=yes
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 ac_header_compiler=no
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19765 echo "${ECHO_T}$ac_header_compiler" >&6; }
19767 # Is the header present?
19768 { echo "$as_me:$LINENO: checking curses.h presence" >&5
19769 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h. */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776 #include <curses.h>
19777 _ACEOF
19778 if { (ac_try="$ac_cpp conftest.$ac_ext"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } >/dev/null && {
19791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 }; then
19794 ac_header_preproc=yes
19795 else
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_header_preproc=no
19802 rm -f conftest.err conftest.$ac_ext
19803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6; }
19806 # So? What about this header?
19807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19808 yes:no: )
19809 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19810 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19812 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19813 ac_header_preproc=yes
19815 no:yes:* )
19816 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19817 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19819 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19821 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19823 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19825 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19827 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19830 esac
19831 { echo "$as_me:$LINENO: checking for curses.h" >&5
19832 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19833 if test "${ac_cv_header_curses_h+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836 ac_cv_header_curses_h=$ac_header_preproc
19838 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19839 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19842 if test $ac_cv_header_curses_h = yes; then
19843 NCURSES_HEADER_FOUND=1
19844 else
19845 NCURSES_HEADER_FOUND=0
19851 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
19852 if test ! -z "${NCURSES_MANDATORY}" ;
19853 then
19854 { echo "$as_me:$LINENO: ***" >&5
19855 echo "$as_me: ***" >&6;}
19856 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
19857 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
19858 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
19859 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
19860 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19861 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19862 exit 1
19864 NCURSES_LIB=""
19865 NCURSES_INCLUDE=""
19866 PBX_NCURSES=0
19867 else
19868 PBX_NCURSES=1
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_NCURSES 1
19872 _ACEOF
19875 elif test ! -z "${NCURSES_MANDATORY}";
19876 then
19877 { echo "$as_me:$LINENO: ***" >&5
19878 echo "$as_me: ***" >&6;}
19879 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
19880 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19881 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19882 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19883 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
19884 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
19885 exit 1
19890 NETSNMP_CONFIG=No
19891 if test "${USE_NETSNMP}" != "no"; then
19892 if test "x${NETSNMP_DIR}" != "x"; then
19893 if test -n "$ac_tool_prefix"; then
19894 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
19895 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
19896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19898 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901 case $NETSNMP_CONFIG in
19902 [\\/]* | ?:[\\/]*)
19903 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
19906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19907 for as_dir in ${NETSNMP_DIR}/bin
19909 IFS=$as_save_IFS
19910 test -z "$as_dir" && as_dir=.
19911 for ac_exec_ext in '' $ac_executable_extensions; do
19912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19913 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19915 break 2
19917 done
19918 done
19919 IFS=$as_save_IFS
19922 esac
19924 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
19925 if test -n "$NETSNMP_CONFIG"; then
19926 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
19927 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
19928 else
19929 { echo "$as_me:$LINENO: result: no" >&5
19930 echo "${ECHO_T}no" >&6; }
19935 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
19936 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
19937 # Extract the first word of "net-snmp-config", so it can be a program name with args.
19938 set dummy net-snmp-config; ac_word=$2
19939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19941 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944 case $ac_pt_NETSNMP_CONFIG in
19945 [\\/]* | ?:[\\/]*)
19946 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
19949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in ${NETSNMP_DIR}/bin
19952 IFS=$as_save_IFS
19953 test -z "$as_dir" && as_dir=.
19954 for ac_exec_ext in '' $ac_executable_extensions; do
19955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19956 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19958 break 2
19960 done
19961 done
19962 IFS=$as_save_IFS
19965 esac
19967 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
19968 if test -n "$ac_pt_NETSNMP_CONFIG"; then
19969 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
19970 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
19971 else
19972 { echo "$as_me:$LINENO: result: no" >&5
19973 echo "${ECHO_T}no" >&6; }
19976 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
19977 NETSNMP_CONFIG="No"
19978 else
19979 case $cross_compiling:$ac_tool_warned in
19980 yes:)
19981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19982 whose name does not start with the host triplet. If you think this
19983 configuration is useful to you, please write to autoconf@gnu.org." >&5
19984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19985 whose name does not start with the host triplet. If you think this
19986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19987 ac_tool_warned=yes ;;
19988 esac
19989 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
19991 else
19992 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
19995 if test x"${NETSNMP_CONFIG}" = xNo; then
19996 { echo "$as_me:$LINENO: ***" >&5
19997 echo "$as_me: ***" >&6;}
19998 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
19999 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
20000 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
20001 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
20002 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20003 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20004 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20005 echo "$as_me: *** including --without-netsnmp" >&6;}
20006 exit 1
20008 else
20009 if test -n "$ac_tool_prefix"; then
20010 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
20011 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
20012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20014 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 case $NETSNMP_CONFIG in
20018 [\\/]* | ?:[\\/]*)
20019 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
20022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20023 for as_dir in $PATH
20025 IFS=$as_save_IFS
20026 test -z "$as_dir" && as_dir=.
20027 for ac_exec_ext in '' $ac_executable_extensions; do
20028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20029 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20031 break 2
20033 done
20034 done
20035 IFS=$as_save_IFS
20038 esac
20040 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
20041 if test -n "$NETSNMP_CONFIG"; then
20042 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
20043 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
20044 else
20045 { echo "$as_me:$LINENO: result: no" >&5
20046 echo "${ECHO_T}no" >&6; }
20051 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
20052 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
20053 # Extract the first word of "net-snmp-config", so it can be a program name with args.
20054 set dummy net-snmp-config; ac_word=$2
20055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20057 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060 case $ac_pt_NETSNMP_CONFIG in
20061 [\\/]* | ?:[\\/]*)
20062 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
20065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20068 IFS=$as_save_IFS
20069 test -z "$as_dir" && as_dir=.
20070 for ac_exec_ext in '' $ac_executable_extensions; do
20071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20072 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20074 break 2
20076 done
20077 done
20078 IFS=$as_save_IFS
20081 esac
20083 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
20084 if test -n "$ac_pt_NETSNMP_CONFIG"; then
20085 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
20086 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
20087 else
20088 { echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6; }
20092 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
20093 NETSNMP_CONFIG="No"
20094 else
20095 case $cross_compiling:$ac_tool_warned in
20096 yes:)
20097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20098 whose name does not start with the host triplet. If you think this
20099 configuration is useful to you, please write to autoconf@gnu.org." >&5
20100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20101 whose name does not start with the host triplet. If you think this
20102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20103 ac_tool_warned=yes ;;
20104 esac
20105 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
20107 else
20108 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
20113 if test x"${NETSNMP_CONFIG}" != xNo; then
20114 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
20116 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
20117 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
20118 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
20119 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 else
20121 ac_check_lib_save_LIBS=$LIBS
20122 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
20123 cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h. */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20130 /* Override any GCC internal prototype to avoid an error.
20131 Use char because int might match the return type of a GCC
20132 builtin and then its argument prototype would still apply. */
20133 #ifdef __cplusplus
20134 extern "C"
20135 #endif
20136 char snmp_register_callback ();
20138 main ()
20140 return snmp_register_callback ();
20142 return 0;
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_link") 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && {
20159 test -z "$ac_c_werror_flag" ||
20160 test ! -s conftest.err
20161 } && test -s conftest$ac_exeext &&
20162 $as_test_x conftest$ac_exeext; then
20163 ac_cv_lib_netsnmp_snmp_register_callback=yes
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_lib_netsnmp_snmp_register_callback=no
20171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20172 conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20175 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
20176 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
20177 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
20179 cat >>confdefs.h <<_ACEOF
20180 #define HAVE_NETSNMP 1
20181 _ACEOF
20186 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
20187 NETSNMP_LIB="${NETSNMP_libs}"
20188 PBX_NETSNMP=1
20189 elif test ! -z "${NETSNMP_MANDATORY}";
20190 then
20191 { echo "$as_me:$LINENO: ***" >&5
20192 echo "$as_me: ***" >&6;}
20193 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20194 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20195 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20196 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20197 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20198 echo "$as_me: *** including --without-netsnmp" >&6;}
20199 exit 1
20201 elif test ! -z "${NETSNMP_MANDATORY}";
20202 then
20203 { echo "$as_me:$LINENO: ***" >&5
20204 echo "$as_me: ***" >&6;}
20205 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
20206 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
20207 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20208 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20209 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
20210 echo "$as_me: *** including --without-netsnmp" >&6;}
20211 exit 1
20215 if test "${USE_NEWT}" != "no"; then
20216 pbxlibdir=""
20217 if test "x${NEWT_DIR}" != "x"; then
20218 if test -d ${NEWT_DIR}/lib; then
20219 pbxlibdir="-L${NEWT_DIR}/lib"
20220 else
20221 pbxlibdir="-L${NEWT_DIR}"
20224 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
20225 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
20226 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lnewt ${pbxlibdir} $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char newtBell ();
20246 main ()
20248 return newtBell ();
20250 return 0;
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest$ac_exeext &&
20270 $as_test_x conftest$ac_exeext; then
20271 ac_cv_lib_newt_newtBell=yes
20272 else
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_lib_newt_newtBell=no
20279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
20284 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
20285 if test $ac_cv_lib_newt_newtBell = yes; then
20286 AST_NEWT_FOUND=yes
20287 else
20288 AST_NEWT_FOUND=no
20292 if test "${AST_NEWT_FOUND}" = "yes"; then
20293 NEWT_LIB="-lnewt "
20294 NEWT_HEADER_FOUND="1"
20295 if test "x${NEWT_DIR}" != "x"; then
20296 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
20297 NEWT_INCLUDE="-I${NEWT_DIR}/include"
20298 saved_cppflags="${CPPFLAGS}"
20299 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
20300 if test "xnewt.h" != "x" ; then
20301 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
20302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20303 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20304 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 ac_res=`eval echo '${'$as_ac_Header'}'`
20309 { echo "$as_me:$LINENO: result: $ac_res" >&5
20310 echo "${ECHO_T}$ac_res" >&6; }
20311 else
20312 # Is the header compilable?
20313 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
20314 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20322 #include <${NEWT_DIR}/include/newt.h>
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_compile") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest.$ac_objext; then
20341 ac_header_compiler=yes
20342 else
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_compiler=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20351 echo "${ECHO_T}$ac_header_compiler" >&6; }
20353 # Is the header present?
20354 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
20355 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h. */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 #include <${NEWT_DIR}/include/newt.h>
20363 _ACEOF
20364 if { (ac_try="$ac_cpp conftest.$ac_ext"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } >/dev/null && {
20377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 }; then
20380 ac_header_preproc=yes
20381 else
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_header_preproc=no
20388 rm -f conftest.err conftest.$ac_ext
20389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20390 echo "${ECHO_T}$ac_header_preproc" >&6; }
20392 # So? What about this header?
20393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20394 yes:no: )
20395 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20396 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
20398 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
20399 ac_header_preproc=yes
20401 no:yes:* )
20402 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
20403 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
20405 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
20407 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
20409 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
20411 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
20413 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
20416 esac
20417 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
20418 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
20419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422 eval "$as_ac_Header=\$ac_header_preproc"
20424 ac_res=`eval echo '${'$as_ac_Header'}'`
20425 { echo "$as_me:$LINENO: result: $ac_res" >&5
20426 echo "${ECHO_T}$ac_res" >&6; }
20429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20430 NEWT_HEADER_FOUND=1
20431 else
20432 NEWT_HEADER_FOUND=0
20437 CPPFLAGS="${saved_cppflags}"
20438 else
20439 if test "xnewt.h" != "x" ; then
20440 if test "${ac_cv_header_newt_h+set}" = set; then
20441 { echo "$as_me:$LINENO: checking for newt.h" >&5
20442 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20443 if test "${ac_cv_header_newt_h+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20447 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20448 else
20449 # Is the header compilable?
20450 { echo "$as_me:$LINENO: checking newt.h usability" >&5
20451 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 $ac_includes_default
20459 #include <newt.h>
20460 _ACEOF
20461 rm -f conftest.$ac_objext
20462 if { (ac_try="$ac_compile"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_header_compiler=yes
20479 else
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_header_compiler=no
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20488 echo "${ECHO_T}$ac_header_compiler" >&6; }
20490 # Is the header present?
20491 { echo "$as_me:$LINENO: checking newt.h presence" >&5
20492 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
20493 cat >conftest.$ac_ext <<_ACEOF
20494 /* confdefs.h. */
20495 _ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20499 #include <newt.h>
20500 _ACEOF
20501 if { (ac_try="$ac_cpp conftest.$ac_ext"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } >/dev/null && {
20514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 }; then
20517 ac_header_preproc=yes
20518 else
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_header_preproc=no
20525 rm -f conftest.err conftest.$ac_ext
20526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20527 echo "${ECHO_T}$ac_header_preproc" >&6; }
20529 # So? What about this header?
20530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20531 yes:no: )
20532 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20533 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20534 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
20535 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
20536 ac_header_preproc=yes
20538 no:yes:* )
20539 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
20540 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
20542 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
20544 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
20546 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
20548 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
20550 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
20553 esac
20554 { echo "$as_me:$LINENO: checking for newt.h" >&5
20555 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
20556 if test "${ac_cv_header_newt_h+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559 ac_cv_header_newt_h=$ac_header_preproc
20561 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
20562 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
20565 if test $ac_cv_header_newt_h = yes; then
20566 NEWT_HEADER_FOUND=1
20567 else
20568 NEWT_HEADER_FOUND=0
20574 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
20575 if test ! -z "${NEWT_MANDATORY}" ;
20576 then
20577 { echo "$as_me:$LINENO: ***" >&5
20578 echo "$as_me: ***" >&6;}
20579 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
20580 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
20581 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
20582 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
20583 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20584 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20585 exit 1
20587 NEWT_LIB=""
20588 NEWT_INCLUDE=""
20589 PBX_NEWT=0
20590 else
20591 PBX_NEWT=1
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_NEWT 1
20595 _ACEOF
20598 elif test ! -z "${NEWT_MANDATORY}";
20599 then
20600 { echo "$as_me:$LINENO: ***" >&5
20601 echo "$as_me: ***" >&6;}
20602 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
20603 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
20604 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20605 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20606 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
20607 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
20608 exit 1
20614 if test "${USE_UNIXODBC}" != "no"; then
20615 pbxlibdir=""
20616 if test "x${UNIXODBC_DIR}" != "x"; then
20617 if test -d ${UNIXODBC_DIR}/lib; then
20618 pbxlibdir="-L${UNIXODBC_DIR}/lib"
20619 else
20620 pbxlibdir="-L${UNIXODBC_DIR}"
20623 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
20624 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
20625 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 else
20628 ac_check_lib_save_LIBS=$LIBS
20629 LIBS="-lodbc ${pbxlibdir} -lltdl $LIBS"
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h. */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20640 #ifdef __cplusplus
20641 extern "C"
20642 #endif
20643 char SQLConnect ();
20645 main ()
20647 return SQLConnect ();
20649 return 0;
20651 _ACEOF
20652 rm -f conftest.$ac_objext conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>conftest.er1
20660 ac_status=$?
20661 grep -v '^ *+' conftest.er1 >conftest.err
20662 rm -f conftest.er1
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } && {
20666 test -z "$ac_c_werror_flag" ||
20667 test ! -s conftest.err
20668 } && test -s conftest$ac_exeext &&
20669 $as_test_x conftest$ac_exeext; then
20670 ac_cv_lib_odbc_SQLConnect=yes
20671 else
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_cv_lib_odbc_SQLConnect=no
20678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20679 conftest$ac_exeext conftest.$ac_ext
20680 LIBS=$ac_check_lib_save_LIBS
20682 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
20683 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
20684 if test $ac_cv_lib_odbc_SQLConnect = yes; then
20685 AST_UNIXODBC_FOUND=yes
20686 else
20687 AST_UNIXODBC_FOUND=no
20691 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
20692 UNIXODBC_LIB="-lodbc -lltdl"
20693 UNIXODBC_HEADER_FOUND="1"
20694 if test "x${UNIXODBC_DIR}" != "x"; then
20695 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
20696 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
20697 saved_cppflags="${CPPFLAGS}"
20698 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
20699 if test "xsql.h" != "x" ; then
20700 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20703 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 ac_res=`eval echo '${'$as_ac_Header'}'`
20708 { echo "$as_me:$LINENO: result: $ac_res" >&5
20709 echo "${ECHO_T}$ac_res" >&6; }
20710 else
20711 # Is the header compilable?
20712 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
20713 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20721 #include <${UNIXODBC_DIR}/include/sql.h>
20722 _ACEOF
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
20740 ac_header_compiler=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_header_compiler=no
20748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20750 echo "${ECHO_T}$ac_header_compiler" >&6; }
20752 # Is the header present?
20753 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
20754 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <${UNIXODBC_DIR}/include/sql.h>
20762 _ACEOF
20763 if { (ac_try="$ac_cpp conftest.$ac_ext"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null && {
20776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 }; then
20779 ac_header_preproc=yes
20780 else
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_header_preproc=no
20787 rm -f conftest.err conftest.$ac_ext
20788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20789 echo "${ECHO_T}$ac_header_preproc" >&6; }
20791 # So? What about this header?
20792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20793 yes:no: )
20794 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20795 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
20797 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
20798 ac_header_preproc=yes
20800 no:yes:* )
20801 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
20802 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
20804 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
20805 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
20806 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
20807 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
20808 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
20810 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
20811 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
20812 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
20815 esac
20816 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
20817 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
20818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821 eval "$as_ac_Header=\$ac_header_preproc"
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20829 UNIXODBC_HEADER_FOUND=1
20830 else
20831 UNIXODBC_HEADER_FOUND=0
20836 CPPFLAGS="${saved_cppflags}"
20837 else
20838 if test "xsql.h" != "x" ; then
20839 if test "${ac_cv_header_sql_h+set}" = set; then
20840 { echo "$as_me:$LINENO: checking for sql.h" >&5
20841 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20842 if test "${ac_cv_header_sql_h+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20846 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20847 else
20848 # Is the header compilable?
20849 { echo "$as_me:$LINENO: checking sql.h usability" >&5
20850 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 $ac_includes_default
20858 #include <sql.h>
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_compile") 2>conftest.er1
20868 ac_status=$?
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest.$ac_objext; then
20877 ac_header_compiler=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_compiler=no
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6; }
20889 # Is the header present?
20890 { echo "$as_me:$LINENO: checking sql.h presence" >&5
20891 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <sql.h>
20899 _ACEOF
20900 if { (ac_try="$ac_cpp conftest.$ac_ext"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev/null && {
20913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 }; then
20916 ac_header_preproc=yes
20917 else
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ac_header_preproc=no
20924 rm -f conftest.err conftest.$ac_ext
20925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20926 echo "${ECHO_T}$ac_header_preproc" >&6; }
20928 # So? What about this header?
20929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20930 yes:no: )
20931 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20932 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
20934 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
20935 ac_header_preproc=yes
20937 no:yes:* )
20938 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
20939 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
20941 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
20943 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
20945 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
20947 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
20949 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
20952 esac
20953 { echo "$as_me:$LINENO: checking for sql.h" >&5
20954 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
20955 if test "${ac_cv_header_sql_h+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958 ac_cv_header_sql_h=$ac_header_preproc
20960 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
20961 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
20964 if test $ac_cv_header_sql_h = yes; then
20965 UNIXODBC_HEADER_FOUND=1
20966 else
20967 UNIXODBC_HEADER_FOUND=0
20973 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
20974 if test ! -z "${UNIXODBC_MANDATORY}" ;
20975 then
20976 { echo "$as_me:$LINENO: ***" >&5
20977 echo "$as_me: ***" >&6;}
20978 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
20979 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
20980 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
20981 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
20982 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
20983 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
20984 exit 1
20986 UNIXODBC_LIB=""
20987 UNIXODBC_INCLUDE=""
20988 PBX_UNIXODBC=0
20989 else
20990 PBX_UNIXODBC=1
20992 cat >>confdefs.h <<_ACEOF
20993 #define HAVE_UNIXODBC 1
20994 _ACEOF
20997 elif test ! -z "${UNIXODBC_MANDATORY}";
20998 then
20999 { echo "$as_me:$LINENO: ***" >&5
21000 echo "$as_me: ***" >&6;}
21001 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
21002 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
21003 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21004 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21005 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
21006 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
21007 exit 1
21013 if test "${USE_OGG}" != "no"; then
21014 pbxlibdir=""
21015 if test "x${OGG_DIR}" != "x"; then
21016 if test -d ${OGG_DIR}/lib; then
21017 pbxlibdir="-L${OGG_DIR}/lib"
21018 else
21019 pbxlibdir="-L${OGG_DIR}"
21022 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
21023 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
21024 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027 ac_check_lib_save_LIBS=$LIBS
21028 LIBS="-logg ${pbxlibdir} $LIBS"
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21036 /* Override any GCC internal prototype to avoid an error.
21037 Use char because int might match the return type of a GCC
21038 builtin and then its argument prototype would still apply. */
21039 #ifdef __cplusplus
21040 extern "C"
21041 #endif
21042 char ogg_sync_init ();
21044 main ()
21046 return ogg_sync_init ();
21048 return 0;
21050 _ACEOF
21051 rm -f conftest.$ac_objext conftest$ac_exeext
21052 if { (ac_try="$ac_link"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_link") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest$ac_exeext &&
21068 $as_test_x conftest$ac_exeext; then
21069 ac_cv_lib_ogg_ogg_sync_init=yes
21070 else
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_lib_ogg_ogg_sync_init=no
21077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21078 conftest$ac_exeext conftest.$ac_ext
21079 LIBS=$ac_check_lib_save_LIBS
21081 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
21082 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
21083 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
21084 AST_OGG_FOUND=yes
21085 else
21086 AST_OGG_FOUND=no
21090 if test "${AST_OGG_FOUND}" = "yes"; then
21091 OGG_LIB="-logg "
21092 OGG_HEADER_FOUND="1"
21093 if test "x${OGG_DIR}" != "x"; then
21094 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
21095 OGG_INCLUDE="-I${OGG_DIR}/include"
21096 saved_cppflags="${CPPFLAGS}"
21097 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
21098 if test "x" != "x" ; then
21099 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
21100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21101 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21102 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 ac_res=`eval echo '${'$as_ac_Header'}'`
21107 { echo "$as_me:$LINENO: result: $ac_res" >&5
21108 echo "${ECHO_T}$ac_res" >&6; }
21109 else
21110 # Is the header compilable?
21111 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
21112 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
21113 cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h. */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 #include <${OGG_DIR}/include/>
21121 _ACEOF
21122 rm -f conftest.$ac_objext
21123 if { (ac_try="$ac_compile"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_compile") 2>conftest.er1
21130 ac_status=$?
21131 grep -v '^ *+' conftest.er1 >conftest.err
21132 rm -f conftest.er1
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } && {
21136 test -z "$ac_c_werror_flag" ||
21137 test ! -s conftest.err
21138 } && test -s conftest.$ac_objext; then
21139 ac_header_compiler=yes
21140 else
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 ac_header_compiler=no
21147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21149 echo "${ECHO_T}$ac_header_compiler" >&6; }
21151 # Is the header present?
21152 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
21153 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
21154 cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h. */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 #include <${OGG_DIR}/include/>
21161 _ACEOF
21162 if { (ac_try="$ac_cpp conftest.$ac_ext"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } >/dev/null && {
21175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 }; then
21178 ac_header_preproc=yes
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_preproc=no
21186 rm -f conftest.err conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21188 echo "${ECHO_T}$ac_header_preproc" >&6; }
21190 # So? What about this header?
21191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21192 yes:no: )
21193 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
21194 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
21196 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
21197 ac_header_preproc=yes
21199 no:yes:* )
21200 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
21201 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
21203 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
21205 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
21207 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
21209 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
21211 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
21214 esac
21215 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
21216 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
21217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220 eval "$as_ac_Header=\$ac_header_preproc"
21222 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21228 OGG_HEADER_FOUND=1
21229 else
21230 OGG_HEADER_FOUND=0
21235 CPPFLAGS="${saved_cppflags}"
21236 else
21237 if test "x" != "x" ; then
21238 if test "${ac_cv_header_+set}" = set; then
21239 { echo "$as_me:$LINENO: checking for " >&5
21240 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21241 if test "${ac_cv_header_+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21245 echo "${ECHO_T}$ac_cv_header_" >&6; }
21246 else
21247 # Is the header compilable?
21248 { echo "$as_me:$LINENO: checking usability" >&5
21249 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21250 cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h. */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 $ac_includes_default
21257 #include <>
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21276 ac_header_compiler=yes
21277 else
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_header_compiler=no
21284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21286 echo "${ECHO_T}$ac_header_compiler" >&6; }
21288 # Is the header present?
21289 { echo "$as_me:$LINENO: checking presence" >&5
21290 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21291 cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h. */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 #include <>
21298 _ACEOF
21299 if { (ac_try="$ac_cpp conftest.$ac_ext"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } >/dev/null && {
21312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 }; then
21315 ac_header_preproc=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_preproc=no
21323 rm -f conftest.err conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21325 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327 # So? What about this header?
21328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21329 yes:no: )
21330 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21331 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21333 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21334 ac_header_preproc=yes
21336 no:yes:* )
21337 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21338 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21340 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21342 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21344 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21346 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21348 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21351 esac
21352 { echo "$as_me:$LINENO: checking for " >&5
21353 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21354 if test "${ac_cv_header_+set}" = set; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 else
21357 ac_cv_header_=$ac_header_preproc
21359 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21360 echo "${ECHO_T}$ac_cv_header_" >&6; }
21363 if test $ac_cv_header_ = yes; then
21364 OGG_HEADER_FOUND=1
21365 else
21366 OGG_HEADER_FOUND=0
21372 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
21373 if test ! -z "${OGG_MANDATORY}" ;
21374 then
21375 { echo "$as_me:$LINENO: ***" >&5
21376 echo "$as_me: ***" >&6;}
21377 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
21378 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
21379 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
21380 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
21381 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21382 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21383 exit 1
21385 OGG_LIB=""
21386 OGG_INCLUDE=""
21387 PBX_OGG=0
21388 else
21389 PBX_OGG=1
21391 cat >>confdefs.h <<_ACEOF
21392 #define HAVE_OGG 1
21393 _ACEOF
21396 elif test ! -z "${OGG_MANDATORY}";
21397 then
21398 { echo "$as_me:$LINENO: ***" >&5
21399 echo "$as_me: ***" >&6;}
21400 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
21401 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
21402 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21403 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21404 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
21405 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
21406 exit 1
21412 if test "${USE_OSPTK}" != "no"; then
21413 pbxlibdir=""
21414 if test "x${OSPTK_DIR}" != "x"; then
21415 if test -d ${OSPTK_DIR}/lib; then
21416 pbxlibdir="-L${OSPTK_DIR}/lib"
21417 else
21418 pbxlibdir="-L${OSPTK_DIR}"
21421 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
21422 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
21423 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 else
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h. */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21438 #ifdef __cplusplus
21439 extern "C"
21440 #endif
21441 char OSPPCryptoDecrypt ();
21443 main ()
21445 return OSPPCryptoDecrypt ();
21447 return 0;
21449 _ACEOF
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_link") 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext &&
21467 $as_test_x conftest$ac_exeext; then
21468 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
21469 else
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
21476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21477 conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21480 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
21481 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
21482 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
21483 AST_OSPTK_FOUND=yes
21484 else
21485 AST_OSPTK_FOUND=no
21489 if test "${AST_OSPTK_FOUND}" = "yes"; then
21490 OSPTK_LIB="-losptk -lcrypto -lssl"
21491 OSPTK_HEADER_FOUND="1"
21492 if test "x${OSPTK_DIR}" != "x"; then
21493 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
21494 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
21495 saved_cppflags="${CPPFLAGS}"
21496 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
21497 if test "xosp/osp.h" != "x" ; then
21498 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21501 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21508 else
21509 # Is the header compilable?
21510 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
21511 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 #include <${OSPTK_DIR}/include/osp/osp.h>
21520 _ACEOF
21521 rm -f conftest.$ac_objext
21522 if { (ac_try="$ac_compile"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_header_compiler=yes
21539 else
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_header_compiler=no
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6; }
21550 # Is the header present?
21551 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
21552 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h. */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <${OSPTK_DIR}/include/osp/osp.h>
21560 _ACEOF
21561 if { (ac_try="$ac_cpp conftest.$ac_ext"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } >/dev/null && {
21574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 }; then
21577 ac_header_preproc=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_header_preproc=no
21585 rm -f conftest.err conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6; }
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21591 yes:no: )
21592 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21593 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
21595 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
21596 ac_header_preproc=yes
21598 no:yes:* )
21599 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
21600 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
21602 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
21604 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21606 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
21608 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
21610 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
21613 esac
21614 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
21615 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
21616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619 eval "$as_ac_Header=\$ac_header_preproc"
21621 ac_res=`eval echo '${'$as_ac_Header'}'`
21622 { echo "$as_me:$LINENO: result: $ac_res" >&5
21623 echo "${ECHO_T}$ac_res" >&6; }
21626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21627 OSPTK_HEADER_FOUND=1
21628 else
21629 OSPTK_HEADER_FOUND=0
21634 CPPFLAGS="${saved_cppflags}"
21635 else
21636 if test "xosp/osp.h" != "x" ; then
21637 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21638 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21639 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21640 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21644 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21645 else
21646 # Is the header compilable?
21647 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
21648 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <osp/osp.h>
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ac_header_compiler=yes
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6; }
21687 # Is the header present?
21688 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
21689 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <osp/osp.h>
21697 _ACEOF
21698 if { (ac_try="$ac_cpp conftest.$ac_ext"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev/null && {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 }; then
21714 ac_header_preproc=yes
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21728 yes:no: )
21729 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21730 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
21732 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
21733 ac_header_preproc=yes
21735 no:yes:* )
21736 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
21737 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
21739 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
21741 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
21743 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
21745 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
21747 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
21750 esac
21751 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
21752 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
21753 if test "${ac_cv_header_osp_osp_h+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756 ac_cv_header_osp_osp_h=$ac_header_preproc
21758 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
21759 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
21762 if test $ac_cv_header_osp_osp_h = yes; then
21763 OSPTK_HEADER_FOUND=1
21764 else
21765 OSPTK_HEADER_FOUND=0
21771 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
21772 if test ! -z "${OSPTK_MANDATORY}" ;
21773 then
21774 { echo "$as_me:$LINENO: ***" >&5
21775 echo "$as_me: ***" >&6;}
21776 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
21777 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
21778 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
21779 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
21780 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21781 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21782 exit 1
21784 OSPTK_LIB=""
21785 OSPTK_INCLUDE=""
21786 PBX_OSPTK=0
21787 else
21788 PBX_OSPTK=1
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_OSPTK 1
21792 _ACEOF
21795 elif test ! -z "${OSPTK_MANDATORY}";
21796 then
21797 { echo "$as_me:$LINENO: ***" >&5
21798 echo "$as_me: ***" >&6;}
21799 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
21800 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
21801 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21802 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21803 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
21804 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
21805 exit 1
21810 PBX_OSS=0
21811 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21812 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21813 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21814 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21818 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21819 else
21820 # Is the header compilable?
21821 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
21822 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 $ac_includes_default
21830 #include <linux/soundcard.h>
21831 _ACEOF
21832 rm -f conftest.$ac_objext
21833 if { (ac_try="$ac_compile"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21837 esac
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_compile") 2>conftest.er1
21840 ac_status=$?
21841 grep -v '^ *+' conftest.er1 >conftest.err
21842 rm -f conftest.er1
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest.$ac_objext; then
21849 ac_header_compiler=yes
21850 else
21851 echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_header_compiler=no
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21859 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861 # Is the header present?
21862 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
21863 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h. */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 #include <linux/soundcard.h>
21871 _ACEOF
21872 if { (ac_try="$ac_cpp conftest.$ac_ext"
21873 case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21879 ac_status=$?
21880 grep -v '^ *+' conftest.er1 >conftest.err
21881 rm -f conftest.er1
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } >/dev/null && {
21885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21887 }; then
21888 ac_header_preproc=yes
21889 else
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_header_preproc=no
21896 rm -f conftest.err conftest.$ac_ext
21897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21898 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900 # So? What about this header?
21901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21902 yes:no: )
21903 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21904 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
21906 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
21907 ac_header_preproc=yes
21909 no:yes:* )
21910 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
21911 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
21913 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
21915 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
21917 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
21919 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
21921 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
21924 esac
21925 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
21926 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
21927 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930 ac_cv_header_linux_soundcard_h=$ac_header_preproc
21932 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
21933 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
21936 if test $ac_cv_header_linux_soundcard_h = yes; then
21938 PBX_OSS=1
21940 cat >>confdefs.h <<_ACEOF
21941 #define HAVE_OSS 1
21942 _ACEOF
21948 if test "$PBX_OSS" = "0"; then
21949 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21950 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21951 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
21952 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21956 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
21957 else
21958 # Is the header compilable?
21959 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
21960 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h. */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 #include <sys/soundcard.h>
21969 _ACEOF
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21978 ac_status=$?
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21987 ac_header_compiler=yes
21988 else
21989 echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21992 ac_header_compiler=no
21995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21997 echo "${ECHO_T}$ac_header_compiler" >&6; }
21999 # Is the header present?
22000 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
22001 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
22002 cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h. */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 #include <sys/soundcard.h>
22009 _ACEOF
22010 if { (ac_try="$ac_cpp conftest.$ac_ext"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22017 ac_status=$?
22018 grep -v '^ *+' conftest.er1 >conftest.err
22019 rm -f conftest.er1
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } >/dev/null && {
22023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22024 test ! -s conftest.err
22025 }; then
22026 ac_header_preproc=yes
22027 else
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 ac_header_preproc=no
22034 rm -f conftest.err conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22036 echo "${ECHO_T}$ac_header_preproc" >&6; }
22038 # So? What about this header?
22039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22040 yes:no: )
22041 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22042 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
22044 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
22045 ac_header_preproc=yes
22047 no:yes:* )
22048 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
22049 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
22051 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
22053 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22055 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22056 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
22057 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
22058 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
22059 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
22062 esac
22063 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
22064 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
22065 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068 ac_cv_header_sys_soundcard_h=$ac_header_preproc
22070 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
22071 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
22074 if test $ac_cv_header_sys_soundcard_h = yes; then
22076 PBX_OSS=1
22078 cat >>confdefs.h <<_ACEOF
22079 #define HAVE_OSS 1
22080 _ACEOF
22087 if test "$PBX_OSS" = "0"; then
22089 if test "${USE_OSS}" != "no"; then
22090 pbxlibdir=""
22091 if test "x${OSS_DIR}" != "x"; then
22092 if test -d ${OSS_DIR}/lib; then
22093 pbxlibdir="-L${OSS_DIR}/lib"
22094 else
22095 pbxlibdir="-L${OSS_DIR}"
22098 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
22099 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
22100 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103 ac_check_lib_save_LIBS=$LIBS
22104 LIBS="-lossaudio ${pbxlibdir} $LIBS"
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22112 /* Override any GCC internal prototype to avoid an error.
22113 Use char because int might match the return type of a GCC
22114 builtin and then its argument prototype would still apply. */
22115 #ifdef __cplusplus
22116 extern "C"
22117 #endif
22118 char oss_ioctl_mixer ();
22120 main ()
22122 return oss_ioctl_mixer ();
22124 return 0;
22126 _ACEOF
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_link") 2>conftest.er1
22135 ac_status=$?
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext &&
22144 $as_test_x conftest$ac_exeext; then
22145 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
22146 else
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
22153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154 conftest$ac_exeext conftest.$ac_ext
22155 LIBS=$ac_check_lib_save_LIBS
22157 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
22158 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
22159 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
22160 AST_OSS_FOUND=yes
22161 else
22162 AST_OSS_FOUND=no
22166 if test "${AST_OSS_FOUND}" = "yes"; then
22167 OSS_LIB="-lossaudio "
22168 OSS_HEADER_FOUND="1"
22169 if test "x${OSS_DIR}" != "x"; then
22170 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
22171 OSS_INCLUDE="-I${OSS_DIR}/include"
22172 saved_cppflags="${CPPFLAGS}"
22173 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
22174 if test "xsoundcard.h" != "x" ; then
22175 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
22176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22177 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22178 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 ac_res=`eval echo '${'$as_ac_Header'}'`
22183 { echo "$as_me:$LINENO: result: $ac_res" >&5
22184 echo "${ECHO_T}$ac_res" >&6; }
22185 else
22186 # Is the header compilable?
22187 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
22188 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22196 #include <${OSS_DIR}/include/soundcard.h>
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_header_compiler=yes
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_header_compiler=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6; }
22227 # Is the header present?
22228 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
22229 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 #include <${OSS_DIR}/include/soundcard.h>
22237 _ACEOF
22238 if { (ac_try="$ac_cpp conftest.$ac_ext"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } >/dev/null && {
22251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 }; then
22254 ac_header_preproc=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_header_preproc=no
22262 rm -f conftest.err conftest.$ac_ext
22263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22264 echo "${ECHO_T}$ac_header_preproc" >&6; }
22266 # So? What about this header?
22267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22268 yes:no: )
22269 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22270 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22271 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
22272 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
22273 ac_header_preproc=yes
22275 no:yes:* )
22276 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
22277 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
22278 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
22279 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
22281 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
22282 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22283 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
22285 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
22287 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
22290 esac
22291 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
22292 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
22293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296 eval "$as_ac_Header=\$ac_header_preproc"
22298 ac_res=`eval echo '${'$as_ac_Header'}'`
22299 { echo "$as_me:$LINENO: result: $ac_res" >&5
22300 echo "${ECHO_T}$ac_res" >&6; }
22303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22304 OSS_HEADER_FOUND=1
22305 else
22306 OSS_HEADER_FOUND=0
22311 CPPFLAGS="${saved_cppflags}"
22312 else
22313 if test "xsoundcard.h" != "x" ; then
22314 if test "${ac_cv_header_soundcard_h+set}" = set; then
22315 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22316 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22317 if test "${ac_cv_header_soundcard_h+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22321 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22322 else
22323 # Is the header compilable?
22324 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
22325 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 $ac_includes_default
22333 #include <soundcard.h>
22334 _ACEOF
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_header_compiler=yes
22353 else
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ac_header_compiler=no
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22362 echo "${ECHO_T}$ac_header_compiler" >&6; }
22364 # Is the header present?
22365 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
22366 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 #include <soundcard.h>
22374 _ACEOF
22375 if { (ac_try="$ac_cpp conftest.$ac_ext"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22379 esac
22380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22382 ac_status=$?
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } >/dev/null && {
22388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 }; then
22391 ac_header_preproc=yes
22392 else
22393 echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ac_header_preproc=no
22399 rm -f conftest.err conftest.$ac_ext
22400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22401 echo "${ECHO_T}$ac_header_preproc" >&6; }
22403 # So? What about this header?
22404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22405 yes:no: )
22406 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
22407 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22408 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
22409 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
22410 ac_header_preproc=yes
22412 no:yes:* )
22413 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
22414 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
22415 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
22416 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
22417 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
22418 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
22419 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
22420 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
22421 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
22422 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
22423 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
22424 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
22427 esac
22428 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
22429 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
22430 if test "${ac_cv_header_soundcard_h+set}" = set; then
22431 echo $ECHO_N "(cached) $ECHO_C" >&6
22432 else
22433 ac_cv_header_soundcard_h=$ac_header_preproc
22435 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
22436 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
22439 if test $ac_cv_header_soundcard_h = yes; then
22440 OSS_HEADER_FOUND=1
22441 else
22442 OSS_HEADER_FOUND=0
22448 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
22449 if test ! -z "${OSS_MANDATORY}" ;
22450 then
22451 { echo "$as_me:$LINENO: ***" >&5
22452 echo "$as_me: ***" >&6;}
22453 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
22454 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
22455 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
22456 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
22457 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22458 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22459 exit 1
22461 OSS_LIB=""
22462 OSS_INCLUDE=""
22463 PBX_OSS=0
22464 else
22465 PBX_OSS=1
22467 cat >>confdefs.h <<_ACEOF
22468 #define HAVE_OSS 1
22469 _ACEOF
22472 elif test ! -z "${OSS_MANDATORY}";
22473 then
22474 { echo "$as_me:$LINENO: ***" >&5
22475 echo "$as_me: ***" >&6;}
22476 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
22477 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
22478 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22479 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22480 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
22481 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
22482 exit 1
22488 PG_CONFIG=No
22489 if test "${USE_PGSQL}" != "no"; then
22490 if test "x${PGSQL_DIR}" != "x"; then
22491 if test -n "$ac_tool_prefix"; then
22492 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22493 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22496 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499 case $PG_CONFIG in
22500 [\\/]* | ?:[\\/]*)
22501 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in ${PGSQL_DIR}/bin
22507 IFS=$as_save_IFS
22508 test -z "$as_dir" && as_dir=.
22509 for ac_exec_ext in '' $ac_executable_extensions; do
22510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22513 break 2
22515 done
22516 done
22517 IFS=$as_save_IFS
22520 esac
22522 PG_CONFIG=$ac_cv_path_PG_CONFIG
22523 if test -n "$PG_CONFIG"; then
22524 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22525 echo "${ECHO_T}$PG_CONFIG" >&6; }
22526 else
22527 { echo "$as_me:$LINENO: result: no" >&5
22528 echo "${ECHO_T}no" >&6; }
22533 if test -z "$ac_cv_path_PG_CONFIG"; then
22534 ac_pt_PG_CONFIG=$PG_CONFIG
22535 # Extract the first word of "pg_config", so it can be a program name with args.
22536 set dummy pg_config; ac_word=$2
22537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22539 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542 case $ac_pt_PG_CONFIG in
22543 [\\/]* | ?:[\\/]*)
22544 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22548 for as_dir in ${PGSQL_DIR}/bin
22550 IFS=$as_save_IFS
22551 test -z "$as_dir" && as_dir=.
22552 for ac_exec_ext in '' $ac_executable_extensions; do
22553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22554 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22556 break 2
22558 done
22559 done
22560 IFS=$as_save_IFS
22563 esac
22565 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22566 if test -n "$ac_pt_PG_CONFIG"; then
22567 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22568 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22569 else
22570 { echo "$as_me:$LINENO: result: no" >&5
22571 echo "${ECHO_T}no" >&6; }
22574 if test "x$ac_pt_PG_CONFIG" = x; then
22575 PG_CONFIG="No"
22576 else
22577 case $cross_compiling:$ac_tool_warned in
22578 yes:)
22579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22580 whose name does not start with the host triplet. If you think this
22581 configuration is useful to you, please write to autoconf@gnu.org." >&5
22582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22583 whose name does not start with the host triplet. If you think this
22584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22585 ac_tool_warned=yes ;;
22586 esac
22587 PG_CONFIG=$ac_pt_PG_CONFIG
22589 else
22590 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22593 if test x"${PG_CONFIG}" = xNo; then
22594 { echo "$as_me:$LINENO: ***" >&5
22595 echo "$as_me: ***" >&6;}
22596 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
22597 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
22598 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
22599 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
22600 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22601 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22602 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22603 echo "$as_me: *** including --without-postgres" >&6;}
22604 exit 1
22606 else
22607 if test -n "$ac_tool_prefix"; then
22608 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
22609 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
22610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22612 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615 case $PG_CONFIG in
22616 [\\/]* | ?:[\\/]*)
22617 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22623 IFS=$as_save_IFS
22624 test -z "$as_dir" && as_dir=.
22625 for ac_exec_ext in '' $ac_executable_extensions; do
22626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22627 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22629 break 2
22631 done
22632 done
22633 IFS=$as_save_IFS
22636 esac
22638 PG_CONFIG=$ac_cv_path_PG_CONFIG
22639 if test -n "$PG_CONFIG"; then
22640 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
22641 echo "${ECHO_T}$PG_CONFIG" >&6; }
22642 else
22643 { echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6; }
22649 if test -z "$ac_cv_path_PG_CONFIG"; then
22650 ac_pt_PG_CONFIG=$PG_CONFIG
22651 # Extract the first word of "pg_config", so it can be a program name with args.
22652 set dummy pg_config; ac_word=$2
22653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22655 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658 case $ac_pt_PG_CONFIG in
22659 [\\/]* | ?:[\\/]*)
22660 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
22663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22664 for as_dir in $PATH
22666 IFS=$as_save_IFS
22667 test -z "$as_dir" && as_dir=.
22668 for ac_exec_ext in '' $ac_executable_extensions; do
22669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22670 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22672 break 2
22674 done
22675 done
22676 IFS=$as_save_IFS
22679 esac
22681 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
22682 if test -n "$ac_pt_PG_CONFIG"; then
22683 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
22684 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
22685 else
22686 { echo "$as_me:$LINENO: result: no" >&5
22687 echo "${ECHO_T}no" >&6; }
22690 if test "x$ac_pt_PG_CONFIG" = x; then
22691 PG_CONFIG="No"
22692 else
22693 case $cross_compiling:$ac_tool_warned in
22694 yes:)
22695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22696 whose name does not start with the host triplet. If you think this
22697 configuration is useful to you, please write to autoconf@gnu.org." >&5
22698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22699 whose name does not start with the host triplet. If you think this
22700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22701 ac_tool_warned=yes ;;
22702 esac
22703 PG_CONFIG=$ac_pt_PG_CONFIG
22705 else
22706 PG_CONFIG="$ac_cv_path_PG_CONFIG"
22711 if test "${PG_CONFIG}" != No; then
22712 PGSQL_libdir=`${PG_CONFIG} --libdir`
22713 PGSQL_includedir=`${PG_CONFIG} --includedir`
22715 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
22716 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
22717 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720 ac_check_lib_save_LIBS=$LIBS
22721 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h. */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22729 /* Override any GCC internal prototype to avoid an error.
22730 Use char because int might match the return type of a GCC
22731 builtin and then its argument prototype would still apply. */
22732 #ifdef __cplusplus
22733 extern "C"
22734 #endif
22735 char PQexec ();
22737 main ()
22739 return PQexec ();
22741 return 0;
22743 _ACEOF
22744 rm -f conftest.$ac_objext conftest$ac_exeext
22745 if { (ac_try="$ac_link"
22746 case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_link") 2>conftest.er1
22752 ac_status=$?
22753 grep -v '^ *+' conftest.er1 >conftest.err
22754 rm -f conftest.er1
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest$ac_exeext &&
22761 $as_test_x conftest$ac_exeext; then
22762 ac_cv_lib_pq_PQexec=yes
22763 else
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_lib_pq_PQexec=no
22770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22771 conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22774 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
22775 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
22776 if test $ac_cv_lib_pq_PQexec = yes; then
22778 cat >>confdefs.h <<_ACEOF
22779 #define HAVE_PGSQL 1
22780 _ACEOF
22785 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
22786 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
22787 PGSQL_INCLUDE="-I${PGSQL_includedir}"
22788 PBX_PGSQL=1
22789 elif test ! -z "${PGSQL_MANDATORY}";
22790 then
22791 { echo "$as_me:$LINENO: ***" >&5
22792 echo "$as_me: ***" >&6;}
22793 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22794 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22795 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22796 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22797 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22798 echo "$as_me: *** including --without-postgres" >&6;}
22799 exit 1
22801 elif test ! -z "${PGSQL_MANDATORY}";
22802 then
22803 { echo "$as_me:$LINENO: ***" >&5
22804 echo "$as_me: ***" >&6;}
22805 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
22806 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
22807 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22808 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22809 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
22810 echo "$as_me: *** including --without-postgres" >&6;}
22811 exit 1
22815 if test "${USE_POPT}" != "no"; then
22816 pbxlibdir=""
22817 if test "x${POPT_DIR}" != "x"; then
22818 if test -d ${POPT_DIR}/lib; then
22819 pbxlibdir="-L${POPT_DIR}/lib"
22820 else
22821 pbxlibdir="-L${POPT_DIR}"
22824 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
22825 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
22826 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829 ac_check_lib_save_LIBS=$LIBS
22830 LIBS="-lpopt ${pbxlibdir} $LIBS"
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. */
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22841 #ifdef __cplusplus
22842 extern "C"
22843 #endif
22844 char poptStrerror ();
22846 main ()
22848 return poptStrerror ();
22850 return 0;
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_link") 2>conftest.er1
22861 ac_status=$?
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest$ac_exeext &&
22870 $as_test_x conftest$ac_exeext; then
22871 ac_cv_lib_popt_poptStrerror=yes
22872 else
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_cv_lib_popt_poptStrerror=no
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880 conftest$ac_exeext conftest.$ac_ext
22881 LIBS=$ac_check_lib_save_LIBS
22883 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
22884 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
22885 if test $ac_cv_lib_popt_poptStrerror = yes; then
22886 AST_POPT_FOUND=yes
22887 else
22888 AST_POPT_FOUND=no
22892 if test "${AST_POPT_FOUND}" = "yes"; then
22893 POPT_LIB="-lpopt "
22894 POPT_HEADER_FOUND="1"
22895 if test "x${POPT_DIR}" != "x"; then
22896 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
22897 POPT_INCLUDE="-I${POPT_DIR}/include"
22898 saved_cppflags="${CPPFLAGS}"
22899 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
22900 if test "xpopt.h" != "x" ; then
22901 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
22902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22903 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
22904 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
22905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22908 ac_res=`eval echo '${'$as_ac_Header'}'`
22909 { echo "$as_me:$LINENO: result: $ac_res" >&5
22910 echo "${ECHO_T}$ac_res" >&6; }
22911 else
22912 # Is the header compilable?
22913 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
22914 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h. */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 $ac_includes_default
22922 #include <${POPT_DIR}/include/popt.h>
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22932 ac_status=$?
22933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 ac_header_compiler=yes
22942 else
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 ac_header_compiler=no
22949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22951 echo "${ECHO_T}$ac_header_compiler" >&6; }
22953 # Is the header present?
22954 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
22955 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h. */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 #include <${POPT_DIR}/include/popt.h>
22963 _ACEOF
22964 if { (ac_try="$ac_cpp conftest.$ac_ext"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22971 ac_status=$?
22972 grep -v '^ *+' conftest.er1 >conftest.err
22973 rm -f conftest.er1
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } >/dev/null && {
22977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 }; then
22980 ac_header_preproc=yes
22981 else
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 ac_header_preproc=no
22988 rm -f conftest.err conftest.$ac_ext
22989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22990 echo "${ECHO_T}$ac_header_preproc" >&6; }
22992 # So? What about this header?
22993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22994 yes:no: )
22995 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22996 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
22998 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
22999 ac_header_preproc=yes
23001 no:yes:* )
23002 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
23003 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
23004 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
23005 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
23007 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
23009 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
23011 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
23012 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
23013 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
23016 esac
23017 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
23018 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
23019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022 eval "$as_ac_Header=\$ac_header_preproc"
23024 ac_res=`eval echo '${'$as_ac_Header'}'`
23025 { echo "$as_me:$LINENO: result: $ac_res" >&5
23026 echo "${ECHO_T}$ac_res" >&6; }
23029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23030 POPT_HEADER_FOUND=1
23031 else
23032 POPT_HEADER_FOUND=0
23037 CPPFLAGS="${saved_cppflags}"
23038 else
23039 if test "xpopt.h" != "x" ; then
23040 if test "${ac_cv_header_popt_h+set}" = set; then
23041 { echo "$as_me:$LINENO: checking for popt.h" >&5
23042 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23043 if test "${ac_cv_header_popt_h+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23048 else
23049 # Is the header compilable?
23050 { echo "$as_me:$LINENO: checking popt.h usability" >&5
23051 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h. */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23059 #include <popt.h>
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_header_compiler=yes
23079 else
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_header_compiler=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23088 echo "${ECHO_T}$ac_header_compiler" >&6; }
23090 # Is the header present?
23091 { echo "$as_me:$LINENO: checking popt.h presence" >&5
23092 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h. */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <popt.h>
23100 _ACEOF
23101 if { (ac_try="$ac_cpp conftest.$ac_ext"
23102 case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23105 esac
23106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23108 ac_status=$?
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } >/dev/null && {
23114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23116 }; then
23117 ac_header_preproc=yes
23118 else
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_header_preproc=no
23125 rm -f conftest.err conftest.$ac_ext
23126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23127 echo "${ECHO_T}$ac_header_preproc" >&6; }
23129 # So? What about this header?
23130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23131 yes:no: )
23132 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23133 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
23135 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
23136 ac_header_preproc=yes
23138 no:yes:* )
23139 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
23140 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
23141 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
23142 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
23143 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
23144 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
23145 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
23146 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23147 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
23148 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
23149 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
23150 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
23153 esac
23154 { echo "$as_me:$LINENO: checking for popt.h" >&5
23155 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
23156 if test "${ac_cv_header_popt_h+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159 ac_cv_header_popt_h=$ac_header_preproc
23161 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
23162 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
23165 if test $ac_cv_header_popt_h = yes; then
23166 POPT_HEADER_FOUND=1
23167 else
23168 POPT_HEADER_FOUND=0
23174 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
23175 if test ! -z "${POPT_MANDATORY}" ;
23176 then
23177 { echo "$as_me:$LINENO: ***" >&5
23178 echo "$as_me: ***" >&6;}
23179 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
23180 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
23181 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
23182 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
23183 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23184 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23185 exit 1
23187 POPT_LIB=""
23188 POPT_INCLUDE=""
23189 PBX_POPT=0
23190 else
23191 PBX_POPT=1
23193 cat >>confdefs.h <<_ACEOF
23194 #define HAVE_POPT 1
23195 _ACEOF
23198 elif test ! -z "${POPT_MANDATORY}";
23199 then
23200 { echo "$as_me:$LINENO: ***" >&5
23201 echo "$as_me: ***" >&6;}
23202 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
23203 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
23204 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23205 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23206 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
23207 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
23208 exit 1
23214 if test "${USE_PRI}" != "no"; then
23215 pbxlibdir=""
23216 if test "x${PRI_DIR}" != "x"; then
23217 if test -d ${PRI_DIR}/lib; then
23218 pbxlibdir="-L${PRI_DIR}/lib"
23219 else
23220 pbxlibdir="-L${PRI_DIR}"
23223 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
23224 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
23225 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
23226 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 else
23228 ac_check_lib_save_LIBS=$LIBS
23229 LIBS="-lpri ${pbxlibdir} $LIBS"
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23237 /* Override any GCC internal prototype to avoid an error.
23238 Use char because int might match the return type of a GCC
23239 builtin and then its argument prototype would still apply. */
23240 #ifdef __cplusplus
23241 extern "C"
23242 #endif
23243 char pri_call ();
23245 main ()
23247 return pri_call ();
23249 return 0;
23251 _ACEOF
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257 esac
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_link") 2>conftest.er1
23260 ac_status=$?
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest$ac_exeext &&
23269 $as_test_x conftest$ac_exeext; then
23270 ac_cv_lib_pri_pri_call=yes
23271 else
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 ac_cv_lib_pri_pri_call=no
23278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23279 conftest$ac_exeext conftest.$ac_ext
23280 LIBS=$ac_check_lib_save_LIBS
23282 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
23283 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
23284 if test $ac_cv_lib_pri_pri_call = yes; then
23285 AST_PRI_FOUND=yes
23286 else
23287 AST_PRI_FOUND=no
23291 if test "${AST_PRI_FOUND}" = "yes"; then
23292 PRI_LIB="-lpri "
23293 PRI_HEADER_FOUND="1"
23294 if test "x${PRI_DIR}" != "x"; then
23295 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
23296 PRI_INCLUDE="-I${PRI_DIR}/include"
23297 saved_cppflags="${CPPFLAGS}"
23298 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
23299 if test "xlibpri.h" != "x" ; then
23300 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
23301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23302 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23303 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 ac_res=`eval echo '${'$as_ac_Header'}'`
23308 { echo "$as_me:$LINENO: result: $ac_res" >&5
23309 echo "${ECHO_T}$ac_res" >&6; }
23310 else
23311 # Is the header compilable?
23312 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
23313 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 #include <${PRI_DIR}/include/libpri.h>
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23331 ac_status=$?
23332 grep -v '^ *+' conftest.er1 >conftest.err
23333 rm -f conftest.er1
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_header_compiler=yes
23341 else
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_header_compiler=no
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23350 echo "${ECHO_T}$ac_header_compiler" >&6; }
23352 # Is the header present?
23353 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
23354 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #include <${PRI_DIR}/include/libpri.h>
23362 _ACEOF
23363 if { (ac_try="$ac_cpp conftest.$ac_ext"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23370 ac_status=$?
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } >/dev/null && {
23376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 }; then
23379 ac_header_preproc=yes
23380 else
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_header_preproc=no
23387 rm -f conftest.err conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23389 echo "${ECHO_T}$ac_header_preproc" >&6; }
23391 # So? What about this header?
23392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23393 yes:no: )
23394 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23395 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23396 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
23397 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
23398 ac_header_preproc=yes
23400 no:yes:* )
23401 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
23402 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
23404 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
23406 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23408 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23409 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
23410 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
23411 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
23412 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
23415 esac
23416 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
23417 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
23418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421 eval "$as_ac_Header=\$ac_header_preproc"
23423 ac_res=`eval echo '${'$as_ac_Header'}'`
23424 { echo "$as_me:$LINENO: result: $ac_res" >&5
23425 echo "${ECHO_T}$ac_res" >&6; }
23428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23429 PRI_HEADER_FOUND=1
23430 else
23431 PRI_HEADER_FOUND=0
23436 CPPFLAGS="${saved_cppflags}"
23437 else
23438 if test "xlibpri.h" != "x" ; then
23439 if test "${ac_cv_header_libpri_h+set}" = set; then
23440 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23441 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23442 if test "${ac_cv_header_libpri_h+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23446 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23447 else
23448 # Is the header compilable?
23449 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
23450 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 $ac_includes_default
23458 #include <libpri.h>
23459 _ACEOF
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_header_compiler=yes
23478 else
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_compiler=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23487 echo "${ECHO_T}$ac_header_compiler" >&6; }
23489 # Is the header present?
23490 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
23491 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 #include <libpri.h>
23499 _ACEOF
23500 if { (ac_try="$ac_cpp conftest.$ac_ext"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23507 ac_status=$?
23508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } >/dev/null && {
23513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 }; then
23516 ac_header_preproc=yes
23517 else
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_header_preproc=no
23524 rm -f conftest.err conftest.$ac_ext
23525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23526 echo "${ECHO_T}$ac_header_preproc" >&6; }
23528 # So? What about this header?
23529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23530 yes:no: )
23531 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
23532 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23533 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
23534 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
23535 ac_header_preproc=yes
23537 no:yes:* )
23538 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
23539 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
23540 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
23541 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
23542 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
23543 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
23544 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
23545 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
23546 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
23547 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
23548 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
23549 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
23552 esac
23553 { echo "$as_me:$LINENO: checking for libpri.h" >&5
23554 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
23555 if test "${ac_cv_header_libpri_h+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 else
23558 ac_cv_header_libpri_h=$ac_header_preproc
23560 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
23561 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
23564 if test $ac_cv_header_libpri_h = yes; then
23565 PRI_HEADER_FOUND=1
23566 else
23567 PRI_HEADER_FOUND=0
23573 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
23574 if test ! -z "${PRI_MANDATORY}" ;
23575 then
23576 { echo "$as_me:$LINENO: ***" >&5
23577 echo "$as_me: ***" >&6;}
23578 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
23579 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
23580 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
23581 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
23582 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23583 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23584 exit 1
23586 PRI_LIB=""
23587 PRI_INCLUDE=""
23588 PBX_PRI=0
23589 else
23590 PBX_PRI=1
23592 cat >>confdefs.h <<_ACEOF
23593 #define HAVE_PRI 1
23594 _ACEOF
23597 elif test ! -z "${PRI_MANDATORY}";
23598 then
23599 { echo "$as_me:$LINENO: ***" >&5
23600 echo "$as_me: ***" >&6;}
23601 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
23602 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
23603 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23604 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23605 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
23606 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
23607 exit 1
23612 if test "${USE_PWLIB}" != "no"; then
23613 if test ! -z "${PWLIB_DIR}"; then
23614 PWLIBDIR="${PWLIB_DIR}"
23617 PWLIB_INCDIR=
23618 PWLIB_LIBDIR=
23619 if test "${PWLIBDIR:-unset}" != "unset" ; then
23620 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
23621 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
23622 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
23623 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626 test "$cross_compiling" = yes &&
23627 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23628 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23629 { (exit 1); exit 1; }; }
23630 if test -r "${PWLIBDIR}/version.h"; then
23631 eval "$as_ac_File=yes"
23632 else
23633 eval "$as_ac_File=no"
23636 ac_res=`eval echo '${'$as_ac_File'}'`
23637 { echo "$as_me:$LINENO: result: $ac_res" >&5
23638 echo "${ECHO_T}$ac_res" >&6; }
23639 if test `eval echo '${'$as_ac_File'}'` = yes; then
23640 HAS_PWLIB=1
23644 if test "${HAS_PWLIB:-unset}" = "unset" ; then
23645 if test "${OPENH323DIR:-unset}" != "unset"; then
23646 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
23647 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
23648 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
23649 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652 test "$cross_compiling" = yes &&
23653 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23654 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23655 { (exit 1); exit 1; }; }
23656 if test -r "${OPENH323DIR}/../pwlib/version.h"; then
23657 eval "$as_ac_File=yes"
23658 else
23659 eval "$as_ac_File=no"
23662 ac_res=`eval echo '${'$as_ac_File'}'`
23663 { echo "$as_me:$LINENO: result: $ac_res" >&5
23664 echo "${ECHO_T}$ac_res" >&6; }
23665 if test `eval echo '${'$as_ac_File'}'` = yes; then
23666 HAS_PWLIB=1
23670 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23671 PWLIBDIR="${OPENH323DIR}/../pwlib"
23672 else
23673 as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
23674 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
23675 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
23676 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679 test "$cross_compiling" = yes &&
23680 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23681 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23682 { (exit 1); exit 1; }; }
23683 if test -r "${HOME}/pwlib/include/ptlib.h"; then
23684 eval "$as_ac_File=yes"
23685 else
23686 eval "$as_ac_File=no"
23689 ac_res=`eval echo '${'$as_ac_File'}'`
23690 { echo "$as_me:$LINENO: result: $ac_res" >&5
23691 echo "${ECHO_T}$ac_res" >&6; }
23692 if test `eval echo '${'$as_ac_File'}'` = yes; then
23693 HAS_PWLIB=1
23696 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23697 PWLIBDIR="${HOME}/pwlib"
23698 else
23699 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
23700 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
23701 if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704 test "$cross_compiling" = yes &&
23705 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23706 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23707 { (exit 1); exit 1; }; }
23708 if test -r "/usr/local/include/ptlib.h"; then
23709 ac_cv_file__usr_local_include_ptlib_h=yes
23710 else
23711 ac_cv_file__usr_local_include_ptlib_h=no
23714 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
23715 echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6; }
23716 if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
23717 HAS_PWLIB=1
23720 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23721 # Extract the first word of "ptlib-config", so it can be a program name with args.
23722 set dummy ptlib-config; ac_word=$2
23723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23725 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23726 echo $ECHO_N "(cached) $ECHO_C" >&6
23727 else
23728 case $PTLIB_CONFIG in
23729 [\\/]* | ?:[\\/]*)
23730 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23734 for as_dir in /usr/local/bin
23736 IFS=$as_save_IFS
23737 test -z "$as_dir" && as_dir=.
23738 for ac_exec_ext in '' $ac_executable_extensions; do
23739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23740 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23742 break 2
23744 done
23745 done
23746 IFS=$as_save_IFS
23749 esac
23751 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23752 if test -n "$PTLIB_CONFIG"; then
23753 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23754 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23755 else
23756 { echo "$as_me:$LINENO: result: no" >&5
23757 echo "${ECHO_T}no" >&6; }
23761 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
23762 # Extract the first word of "ptlib-config", so it can be a program name with args.
23763 set dummy ptlib-config; ac_word=$2
23764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23766 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23768 else
23769 case $PTLIB_CONFIG in
23770 [\\/]* | ?:[\\/]*)
23771 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23775 for as_dir in /usr/local/share/pwlib/make
23777 IFS=$as_save_IFS
23778 test -z "$as_dir" && as_dir=.
23779 for ac_exec_ext in '' $ac_executable_extensions; do
23780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23781 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23783 break 2
23785 done
23786 done
23787 IFS=$as_save_IFS
23790 esac
23792 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23793 if test -n "$PTLIB_CONFIG"; then
23794 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23795 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23796 else
23797 { echo "$as_me:$LINENO: result: no" >&5
23798 echo "${ECHO_T}no" >&6; }
23803 PWLIB_INCDIR="/usr/local/include"
23804 PWLIB_LIBDIR="/usr/local/lib"
23805 else
23806 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
23807 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
23808 if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 else
23811 test "$cross_compiling" = yes &&
23812 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23813 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23814 { (exit 1); exit 1; }; }
23815 if test -r "/usr/include/ptlib.h"; then
23816 ac_cv_file__usr_include_ptlib_h=yes
23817 else
23818 ac_cv_file__usr_include_ptlib_h=no
23821 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
23822 echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6; }
23823 if test $ac_cv_file__usr_include_ptlib_h = yes; then
23824 HAS_PWLIB=1
23827 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23828 # Extract the first word of "ptlib-config", so it can be a program name with args.
23829 set dummy ptlib-config; ac_word=$2
23830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23832 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835 case $PTLIB_CONFIG in
23836 [\\/]* | ?:[\\/]*)
23837 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
23840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23841 for as_dir in /usr/share/pwlib/make
23843 IFS=$as_save_IFS
23844 test -z "$as_dir" && as_dir=.
23845 for ac_exec_ext in '' $ac_executable_extensions; do
23846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23847 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23849 break 2
23851 done
23852 done
23853 IFS=$as_save_IFS
23856 esac
23858 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
23859 if test -n "$PTLIB_CONFIG"; then
23860 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
23861 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
23862 else
23863 { echo "$as_me:$LINENO: result: no" >&5
23864 echo "${ECHO_T}no" >&6; }
23868 PWLIB_INCDIR="/usr/include"
23869 PWLIB_LIBDIR="/usr/lib"
23876 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
23877 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
23878 # exit
23881 if test "${HAS_PWLIB:-unset}" != "unset" ; then
23882 if test "${PWLIBDIR:-unset}" = "unset" ; then
23883 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
23884 PWLIBDIR=`$PTLIB_CONFIG --prefix`
23885 else
23886 echo "Cannot find ptlib-config - please install and try again"
23887 exit
23891 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
23892 PWLIBDIR="/usr/share/pwlib"
23893 PWLIB_INCDIR="/usr/include"
23894 PWLIB_LIBDIR="/usr/lib"
23896 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
23897 PWLIBDIR="/usr/local/share/pwlib"
23898 PWLIB_INCDIR="/usr/local/include"
23899 PWLIB_LIBDIR="/usr/local/lib"
23902 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
23903 PWLIB_INCDIR="${PWLIBDIR}/include"
23905 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
23906 PWLIB_LIBDIR="${PWLIBDIR}/lib"
23915 if test "${HAS_PWLIB:-unset}" != "unset"; then
23916 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
23917 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
23918 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
23919 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
23920 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
23921 let PWLIB_REQ=1*10000+9*100+2
23923 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
23924 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
23925 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
23926 { echo "$as_me:$LINENO: result: no" >&5
23927 echo "${ECHO_T}no" >&6; }
23928 unset HAS_PWLIB
23929 else
23930 { echo "$as_me:$LINENO: result: yes" >&5
23931 echo "${ECHO_T}yes" >&6; }
23936 if test "${HAS_PWLIB:-unset}" != "unset"; then
23938 PWLIB_OSTYPE=
23939 case "$host_os" in
23940 linux*) PWLIB_OSTYPE=linux ;
23942 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
23944 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
23945 ENDLDLIBS="-lossaudio" ;
23947 netbsd* ) PWLIB_OSTYPE=NetBSD ;
23948 ENDLDLIBS="-lossaudio" ;
23950 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
23952 darwin* ) PWLIB_OSTYPE=Darwin ;
23954 beos*) PWLIB_OSTYPE=beos ;
23955 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
23957 cygwin*) PWLIB_OSTYPE=cygwin ;
23959 mingw*) PWLIB_OSTYPE=mingw ;
23960 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
23961 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
23963 * ) PWLIB_OSTYPE="$host_os" ;
23964 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
23965 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
23967 esac
23969 PWLIB_MACHTYPE=
23970 case "$host_cpu" in
23971 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
23974 x86_64) PWLIB_MACHTYPE=x86_64 ;
23975 P_64BIT=1 ;
23976 LIB64=1 ;
23979 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
23980 P_64BIT=1 ;
23983 sparc ) PWLIB_MACHTYPE=sparc ;
23986 powerpc ) PWLIB_MACHTYPE=ppc ;
23989 ppc ) PWLIB_MACHTYPE=ppc ;
23992 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
23993 P_64BIT=1 ;
23994 LIB64=1 ;
23997 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
23998 P_64BIT=1 ;
23999 LIB64=1 ;
24002 ia64) PWLIB_MACHTYPE=ia64 ;
24003 P_64BIT=1 ;
24006 s390x) PWLIB_MACHTYPE=s390x ;
24007 P_64BIT=1 ;
24008 LIB64=1 ;
24011 s390) PWLIB_MACHTYPE=s390 ;
24014 * ) PWLIB_MACHTYPE="$host_cpu";
24015 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
24016 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
24017 esac
24019 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
24024 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
24027 if test "${HAS_PWLIB:-unset}" != "unset"; then
24028 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
24029 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
24031 saved_cppflags="${CPPFLAGS}"
24032 saved_libs="${LIBS}"
24033 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
24034 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
24036 ac_ext=cpp
24037 ac_cpp='$CXXCPP $CPPFLAGS'
24038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24043 cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h. */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 #include "ptlib.h"
24051 main ()
24053 BOOL q = PTime::IsDaylightSavings();
24055 return 0;
24057 _ACEOF
24058 rm -f conftest.$ac_objext conftest$ac_exeext
24059 if { (ac_try="$ac_link"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_link") 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_cxx_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest$ac_exeext &&
24075 $as_test_x conftest$ac_exeext; then
24076 { echo "$as_me:$LINENO: result: yes" >&5
24077 echo "${ECHO_T}yes" >&6; }
24078 ac_cv_lib_PWLIB="yes"
24080 else
24081 echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.$ac_ext >&5
24084 { echo "$as_me:$LINENO: result: no" >&5
24085 echo "${ECHO_T}no" >&6; }
24086 ac_cv_lib_PWLIB="no"
24091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24092 conftest$ac_exeext conftest.$ac_ext
24094 ac_ext=c
24095 ac_cpp='$CPP $CPPFLAGS'
24096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24101 LIBS="${saved_libs}"
24102 CPPFLAGS="${saved_cppflags}"
24104 if test "${ac_cv_lib_PWLIB}" = "yes"; then
24105 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
24106 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
24107 else
24108 PWLIB_LIB="-l${PLATFORM_PWLIB}"
24110 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
24111 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
24113 PBX_PWLIB=1
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE_PWLIB 1
24117 _ACEOF
24125 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
24126 { echo "$as_me:$LINENO: ***" >&5
24127 echo "$as_me: ***" >&6;}
24128 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
24129 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
24130 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24131 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24132 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
24133 echo "$as_me: *** including --without-pwlib" >&6;}
24134 exit 1
24137 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
24138 if test ! -z "${OPENH323_DIR}"; then
24139 OPENH323DIR="${OPENH323_DIR}"
24142 OPENH323_INCDIR=
24143 OPENH323_LIBDIR=
24144 if test "${OPENH323DIR:-unset}" != "unset" ; then
24145 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/version.h" | $as_tr_sh`
24146 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
24147 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
24148 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151 test "$cross_compiling" = yes &&
24152 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24153 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24154 { (exit 1); exit 1; }; }
24155 if test -r "${OPENH323DIR}/version.h"; then
24156 eval "$as_ac_File=yes"
24157 else
24158 eval "$as_ac_File=no"
24161 ac_res=`eval echo '${'$as_ac_File'}'`
24162 { echo "$as_me:$LINENO: result: $ac_res" >&5
24163 echo "${ECHO_T}$ac_res" >&6; }
24164 if test `eval echo '${'$as_ac_File'}'` = yes; then
24165 HAS_OPENH323=1
24169 if test "${HAS_OPENH323:-unset}" = "unset" ; then
24170 as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
24171 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
24172 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
24173 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176 test "$cross_compiling" = yes &&
24177 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24178 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24179 { (exit 1); exit 1; }; }
24180 if test -r "${PWLIBDIR}/../openh323/version.h"; then
24181 eval "$as_ac_File=yes"
24182 else
24183 eval "$as_ac_File=no"
24186 ac_res=`eval echo '${'$as_ac_File'}'`
24187 { echo "$as_me:$LINENO: result: $ac_res" >&5
24188 echo "${ECHO_T}$ac_res" >&6; }
24189 if test `eval echo '${'$as_ac_File'}'` = yes; then
24190 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
24193 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24194 OPENH323DIR="${PWLIBDIR}/../openh323"
24195 as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
24196 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
24197 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
24198 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24199 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 else
24201 test "$cross_compiling" = yes &&
24202 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24203 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24204 { (exit 1); exit 1; }; }
24205 if test -r "${OPENH323DIR}/include/h323.h"; then
24206 eval "$as_ac_File=yes"
24207 else
24208 eval "$as_ac_File=no"
24211 ac_res=`eval echo '${'$as_ac_File'}'`
24212 { echo "$as_me:$LINENO: result: $ac_res" >&5
24213 echo "${ECHO_T}$ac_res" >&6; }
24214 if test `eval echo '${'$as_ac_File'}'` = yes; then
24216 else
24217 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
24220 else
24221 as_ac_File=`echo "ac_cv_file_${HOME}/openh323/include/h323.h" | $as_tr_sh`
24222 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
24223 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
24224 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24226 else
24227 test "$cross_compiling" = yes &&
24228 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24229 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24230 { (exit 1); exit 1; }; }
24231 if test -r "${HOME}/openh323/include/h323.h"; then
24232 eval "$as_ac_File=yes"
24233 else
24234 eval "$as_ac_File=no"
24237 ac_res=`eval echo '${'$as_ac_File'}'`
24238 { echo "$as_me:$LINENO: result: $ac_res" >&5
24239 echo "${ECHO_T}$ac_res" >&6; }
24240 if test `eval echo '${'$as_ac_File'}'` = yes; then
24241 HAS_OPENH323=1
24244 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24245 OPENH323DIR="${HOME}/openh323"
24246 else
24247 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
24248 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
24249 if test "${ac_cv_file__usr_local_include_openh323_h323_h+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24251 else
24252 test "$cross_compiling" = yes &&
24253 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24254 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24255 { (exit 1); exit 1; }; }
24256 if test -r "/usr/local/include/openh323/h323.h"; then
24257 ac_cv_file__usr_local_include_openh323_h323_h=yes
24258 else
24259 ac_cv_file__usr_local_include_openh323_h323_h=no
24262 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_openh323_h323_h" >&5
24263 echo "${ECHO_T}$ac_cv_file__usr_local_include_openh323_h323_h" >&6; }
24264 if test $ac_cv_file__usr_local_include_openh323_h323_h = yes; then
24265 HAS_OPENH323=1
24268 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24269 OPENH323DIR="/usr/local/share/openh323"
24270 OPENH323_INCDIR="/usr/local/include/openh323"
24271 OPENH323_LIBDIR="/usr/local/lib"
24272 else
24273 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
24274 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
24275 if test "${ac_cv_file__usr_include_openh323_h323_h+set}" = set; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278 test "$cross_compiling" = yes &&
24279 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24280 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24281 { (exit 1); exit 1; }; }
24282 if test -r "/usr/include/openh323/h323.h"; then
24283 ac_cv_file__usr_include_openh323_h323_h=yes
24284 else
24285 ac_cv_file__usr_include_openh323_h323_h=no
24288 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_openh323_h323_h" >&5
24289 echo "${ECHO_T}$ac_cv_file__usr_include_openh323_h323_h" >&6; }
24290 if test $ac_cv_file__usr_include_openh323_h323_h = yes; then
24291 HAS_OPENH323=1
24294 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24295 OPENH323DIR="/usr/share/openh323"
24296 OPENH323_INCDIR="/usr/include/openh323"
24297 OPENH323_LIBDIR="/usr/lib"
24304 if test "${HAS_OPENH323:-unset}" != "unset" ; then
24305 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
24306 OPENH323_INCDIR="${OPENH323DIR}/include"
24308 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
24309 OPENH323_LIBDIR="${OPENH323DIR}/lib"
24318 if test "${HAS_OPENH323:-unset}" != "unset"; then
24319 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
24320 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
24321 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
24322 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
24323 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
24324 let OPENH323_REQ=1*10000+17*100+3
24326 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
24327 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
24328 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
24329 { echo "$as_me:$LINENO: result: no" >&5
24330 echo "${ECHO_T}no" >&6; }
24331 unset HAS_OPENH323
24332 else
24333 { echo "$as_me:$LINENO: result: yes" >&5
24334 echo "${ECHO_T}yes" >&6; }
24339 if test "${HAS_OPENH323:-unset}" != "unset"; then
24340 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
24341 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
24342 OPENH323_SUFFIX=
24343 files=`ls -l ${OPENH323_LIBDIR}/libh323_${PWLIB_PLATFORM}_*.so*`
24344 libfile=
24345 if test -n "$files"; then
24346 for f in $files; do
24347 if test -f $f -a ! -L $f; then
24348 libfile=`basename $f`
24349 break;
24351 done
24353 if test "${libfile:-unset}" != "unset"; then
24354 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/libh323_${PWLIB_PLATFORM}_\([^.]*\)\..*/\1/'"`
24356 case "${OPENH323_SUFFIX}" in
24358 OPENH323_BUILD="notrace";;
24360 OPENH323_BUILD="opt";;
24362 OPENH323_BUILD="debug";;
24364 OPENH323_BUILD="notrace";;
24365 esac
24366 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
24367 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
24373 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
24375 if test "${HAS_OPENH323:-unset}" != "unset"; then
24376 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
24377 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
24379 saved_cppflags="${CPPFLAGS}"
24380 saved_libs="${LIBS}"
24381 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
24382 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
24384 ac_ext=cpp
24385 ac_cpp='$CXXCPP $CPPFLAGS'
24386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24391 cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h. */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 #include "ptlib.h"
24398 #include "h323.h"
24399 #include "h323ep.h"
24401 main ()
24403 H323EndPoint ep = H323EndPoint();
24405 return 0;
24407 _ACEOF
24408 rm -f conftest.$ac_objext conftest$ac_exeext
24409 if { (ac_try="$ac_link"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24413 esac
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415 (eval "$ac_link") 2>conftest.er1
24416 ac_status=$?
24417 grep -v '^ *+' conftest.er1 >conftest.err
24418 rm -f conftest.er1
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } && {
24422 test -z "$ac_cxx_werror_flag" ||
24423 test ! -s conftest.err
24424 } && test -s conftest$ac_exeext &&
24425 $as_test_x conftest$ac_exeext; then
24426 { echo "$as_me:$LINENO: result: yes" >&5
24427 echo "${ECHO_T}yes" >&6; }
24428 ac_cv_lib_OPENH323="yes"
24430 else
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24434 { echo "$as_me:$LINENO: result: no" >&5
24435 echo "${ECHO_T}no" >&6; }
24436 ac_cv_lib_OPENH323="no"
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442 conftest$ac_exeext conftest.$ac_ext
24444 ac_ext=c
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451 LIBS="${saved_libs}"
24452 CPPFLAGS="${saved_cppflags}"
24454 if test "${ac_cv_lib_OPENH323}" = "yes"; then
24455 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
24456 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
24457 else
24458 OPENH323_LIB="-l${PLATFORM_OPENH323}"
24460 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
24461 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
24463 PBX_OPENH323=1
24465 cat >>confdefs.h <<\_ACEOF
24466 #define HAVE_OPENH323 1
24467 _ACEOF
24473 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
24474 { echo "$as_me:$LINENO: ***" >&5
24475 echo "$as_me: ***" >&6;}
24476 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
24477 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
24478 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24479 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24480 { echo "$as_me:$LINENO: *** including --without-h323" >&5
24481 echo "$as_me: *** including --without-h323" >&6;}
24482 exit 1
24486 ac_ext=cpp
24487 ac_cpp='$CXXCPP $CPPFLAGS'
24488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24493 if test "${USE_QT}" != "no"; then
24494 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
24495 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
24496 saved_libs="${LIBS}"
24497 saved_cppflags="${CPPFLAGS}"
24498 if test "x${QT_DIR}" != "x"; then
24499 LIBS="${LIBS} -L${QT_DIR}/lib"
24500 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24502 LIBS="${LIBS} -lqt"
24503 qtlib="qt"
24504 cat >conftest.$ac_ext <<_ACEOF
24506 /* confdefs.h. */
24507 _ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h. */
24511 #include <qt3/qdatetime.h>
24513 main ()
24515 QDate date();
24517 return 0;
24520 _ACEOF
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_link") 2>conftest.er1
24529 ac_status=$?
24530 grep -v '^ *+' conftest.er1 >conftest.err
24531 rm -f conftest.er1
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } && {
24535 test -z "$ac_cxx_werror_flag" ||
24536 test ! -s conftest.err
24537 } && test -s conftest$ac_exeext &&
24538 $as_test_x conftest$ac_exeext; then
24539 ac_cv_lib_qt_qt_date="yes"
24540 else
24541 echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24544 ac_cv_lib_qt_qt_date="no"
24547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24548 conftest$ac_exeext conftest.$ac_ext
24549 LIBS="${saved_libs}"
24550 CPPFLAGS="${saved_cppflags}"
24552 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
24553 saved_libs="${LIBS}"
24554 saved_cppflags="${CPPFLAGS}"
24555 if test "x${QT_DIR}" != "x"; then
24556 LIBS="${LIBS} -L${QT_DIR}/lib"
24557 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
24559 LIBS="${LIBS} -lqt-mt"
24560 qtlib="qt-mt"
24561 cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h. */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 #include <qt3/qdatetime.h>
24570 main ()
24572 QDate date();
24574 return 0;
24577 _ACEOF
24578 rm -f conftest.$ac_objext conftest$ac_exeext
24579 if { (ac_try="$ac_link"
24580 case "(($ac_try" in
24581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24583 esac
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585 (eval "$ac_link") 2>conftest.er1
24586 ac_status=$?
24587 grep -v '^ *+' conftest.er1 >conftest.err
24588 rm -f conftest.er1
24589 cat conftest.err >&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } && {
24592 test -z "$ac_cxx_werror_flag" ||
24593 test ! -s conftest.err
24594 } && test -s conftest$ac_exeext &&
24595 $as_test_x conftest$ac_exeext; then
24596 ac_cv_lib_qt_qt_date="yes"
24597 else
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_lib_qt_qt_date="no"
24604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24605 conftest$ac_exeext conftest.$ac_ext
24606 LIBS="${saved_libs}"
24607 CPPFLAGS="${saved_cppflags}"
24610 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24611 { echo "$as_me:$LINENO: result: yes" >&5
24612 echo "${ECHO_T}yes" >&6; }
24613 else
24614 { echo "$as_me:$LINENO: result: no" >&5
24615 echo "${ECHO_T}no" >&6; }
24618 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
24619 QT_LIB="-l${qtlib}"
24620 if test "${QT_DIR}" != ""; then
24621 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
24622 QT_INCLUDE="-I${QT_DIR}/include"
24624 PBX_QT=1
24626 cat >>confdefs.h <<\_ACEOF
24627 #define HAVE_QT 1
24628 _ACEOF
24630 if test -n "$ac_tool_prefix"; then
24631 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
24632 set dummy ${ac_tool_prefix}moc; ac_word=$2
24633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24635 if test "${ac_cv_path_QTMOC+set}" = set; then
24636 echo $ECHO_N "(cached) $ECHO_C" >&6
24637 else
24638 case $QTMOC in
24639 [\\/]* | ?:[\\/]*)
24640 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
24643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24644 for as_dir in $PATH
24646 IFS=$as_save_IFS
24647 test -z "$as_dir" && as_dir=.
24648 for ac_exec_ext in '' $ac_executable_extensions; do
24649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24650 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24652 break 2
24654 done
24655 done
24656 IFS=$as_save_IFS
24659 esac
24661 QTMOC=$ac_cv_path_QTMOC
24662 if test -n "$QTMOC"; then
24663 { echo "$as_me:$LINENO: result: $QTMOC" >&5
24664 echo "${ECHO_T}$QTMOC" >&6; }
24665 else
24666 { echo "$as_me:$LINENO: result: no" >&5
24667 echo "${ECHO_T}no" >&6; }
24672 if test -z "$ac_cv_path_QTMOC"; then
24673 ac_pt_QTMOC=$QTMOC
24674 # Extract the first word of "moc", so it can be a program name with args.
24675 set dummy moc; ac_word=$2
24676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24678 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
24679 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 else
24681 case $ac_pt_QTMOC in
24682 [\\/]* | ?:[\\/]*)
24683 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
24686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24687 for as_dir in $PATH
24689 IFS=$as_save_IFS
24690 test -z "$as_dir" && as_dir=.
24691 for ac_exec_ext in '' $ac_executable_extensions; do
24692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24693 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
24694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24695 break 2
24697 done
24698 done
24699 IFS=$as_save_IFS
24702 esac
24704 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
24705 if test -n "$ac_pt_QTMOC"; then
24706 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
24707 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
24708 else
24709 { echo "$as_me:$LINENO: result: no" >&5
24710 echo "${ECHO_T}no" >&6; }
24713 if test "x$ac_pt_QTMOC" = x; then
24714 QTMOC="No"
24715 else
24716 case $cross_compiling:$ac_tool_warned in
24717 yes:)
24718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24719 whose name does not start with the host triplet. If you think this
24720 configuration is useful to you, please write to autoconf@gnu.org." >&5
24721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24722 whose name does not start with the host triplet. If you think this
24723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24724 ac_tool_warned=yes ;;
24725 esac
24726 QTMOC=$ac_pt_QTMOC
24728 else
24729 QTMOC="$ac_cv_path_QTMOC"
24732 elif test ! -z "${QT_MANDATORY}";
24733 then
24734 { echo "$as_me:$LINENO: ***" >&5
24735 echo "$as_me: ***" >&6;}
24736 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
24737 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
24738 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24739 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24740 { echo "$as_me:$LINENO: *** including --without-qt." >&5
24741 echo "$as_me: *** including --without-qt." >&6;}
24742 exit 1
24746 ac_ext=c
24747 ac_cpp='$CPP $CPPFLAGS'
24748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24754 if test "${USE_RADIUS}" != "no"; then
24755 pbxlibdir=""
24756 if test "x${RADIUS_DIR}" != "x"; then
24757 if test -d ${RADIUS_DIR}/lib; then
24758 pbxlibdir="-L${RADIUS_DIR}/lib"
24759 else
24760 pbxlibdir="-L${RADIUS_DIR}"
24763 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
24764 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
24765 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768 ac_check_lib_save_LIBS=$LIBS
24769 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
24770 cat >conftest.$ac_ext <<_ACEOF
24771 /* confdefs.h. */
24772 _ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h. */
24777 /* Override any GCC internal prototype to avoid an error.
24778 Use char because int might match the return type of a GCC
24779 builtin and then its argument prototype would still apply. */
24780 #ifdef __cplusplus
24781 extern "C"
24782 #endif
24783 char rc_read_config ();
24785 main ()
24787 return rc_read_config ();
24789 return 0;
24791 _ACEOF
24792 rm -f conftest.$ac_objext conftest$ac_exeext
24793 if { (ac_try="$ac_link"
24794 case "(($ac_try" in
24795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796 *) ac_try_echo=$ac_try;;
24797 esac
24798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799 (eval "$ac_link") 2>conftest.er1
24800 ac_status=$?
24801 grep -v '^ *+' conftest.er1 >conftest.err
24802 rm -f conftest.er1
24803 cat conftest.err >&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } && {
24806 test -z "$ac_c_werror_flag" ||
24807 test ! -s conftest.err
24808 } && test -s conftest$ac_exeext &&
24809 $as_test_x conftest$ac_exeext; then
24810 ac_cv_lib_radiusclient_ng_rc_read_config=yes
24811 else
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 ac_cv_lib_radiusclient_ng_rc_read_config=no
24818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24819 conftest$ac_exeext conftest.$ac_ext
24820 LIBS=$ac_check_lib_save_LIBS
24822 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
24823 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
24824 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
24825 AST_RADIUS_FOUND=yes
24826 else
24827 AST_RADIUS_FOUND=no
24831 if test "${AST_RADIUS_FOUND}" = "yes"; then
24832 RADIUS_LIB="-lradiusclient-ng "
24833 RADIUS_HEADER_FOUND="1"
24834 if test "x${RADIUS_DIR}" != "x"; then
24835 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
24836 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
24837 saved_cppflags="${CPPFLAGS}"
24838 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
24839 if test "xradiusclient-ng.h" != "x" ; then
24840 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
24841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24843 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 ac_res=`eval echo '${'$as_ac_Header'}'`
24848 { echo "$as_me:$LINENO: result: $ac_res" >&5
24849 echo "${ECHO_T}$ac_res" >&6; }
24850 else
24851 # Is the header compilable?
24852 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
24853 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
24854 cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h. */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860 $ac_includes_default
24861 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (ac_try="$ac_compile"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24868 esac
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_compile") 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } && {
24877 test -z "$ac_c_werror_flag" ||
24878 test ! -s conftest.err
24879 } && test -s conftest.$ac_objext; then
24880 ac_header_compiler=yes
24881 else
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_header_compiler=no
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24890 echo "${ECHO_T}$ac_header_compiler" >&6; }
24892 # Is the header present?
24893 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
24894 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h. */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
24902 _ACEOF
24903 if { (ac_try="$ac_cpp conftest.$ac_ext"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24910 ac_status=$?
24911 grep -v '^ *+' conftest.er1 >conftest.err
24912 rm -f conftest.er1
24913 cat conftest.err >&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } >/dev/null && {
24916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24918 }; then
24919 ac_header_preproc=yes
24920 else
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 ac_header_preproc=no
24927 rm -f conftest.err conftest.$ac_ext
24928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24929 echo "${ECHO_T}$ac_header_preproc" >&6; }
24931 # So? What about this header?
24932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24933 yes:no: )
24934 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
24935 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24936 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
24937 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
24938 ac_header_preproc=yes
24940 no:yes:* )
24941 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
24942 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
24943 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
24944 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
24945 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
24946 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
24947 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
24948 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
24949 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
24950 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
24951 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
24952 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
24955 esac
24956 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
24957 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
24958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24960 else
24961 eval "$as_ac_Header=\$ac_header_preproc"
24963 ac_res=`eval echo '${'$as_ac_Header'}'`
24964 { echo "$as_me:$LINENO: result: $ac_res" >&5
24965 echo "${ECHO_T}$ac_res" >&6; }
24968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24969 RADIUS_HEADER_FOUND=1
24970 else
24971 RADIUS_HEADER_FOUND=0
24976 CPPFLAGS="${saved_cppflags}"
24977 else
24978 if test "xradiusclient-ng.h" != "x" ; then
24979 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24980 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
24981 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
24982 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
24983 echo $ECHO_N "(cached) $ECHO_C" >&6
24985 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
24986 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
24987 else
24988 # Is the header compilable?
24989 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
24990 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h. */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
24998 #include <radiusclient-ng.h>
24999 _ACEOF
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25005 esac
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007 (eval "$ac_compile") 2>conftest.er1
25008 ac_status=$?
25009 grep -v '^ *+' conftest.er1 >conftest.err
25010 rm -f conftest.er1
25011 cat conftest.err >&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } && {
25014 test -z "$ac_c_werror_flag" ||
25015 test ! -s conftest.err
25016 } && test -s conftest.$ac_objext; then
25017 ac_header_compiler=yes
25018 else
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 ac_header_compiler=no
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25027 echo "${ECHO_T}$ac_header_compiler" >&6; }
25029 # Is the header present?
25030 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
25031 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
25032 cat >conftest.$ac_ext <<_ACEOF
25033 /* confdefs.h. */
25034 _ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h. */
25038 #include <radiusclient-ng.h>
25039 _ACEOF
25040 if { (ac_try="$ac_cpp conftest.$ac_ext"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25047 ac_status=$?
25048 grep -v '^ *+' conftest.er1 >conftest.err
25049 rm -f conftest.er1
25050 cat conftest.err >&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } >/dev/null && {
25053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25055 }; then
25056 ac_header_preproc=yes
25057 else
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 ac_header_preproc=no
25064 rm -f conftest.err conftest.$ac_ext
25065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25066 echo "${ECHO_T}$ac_header_preproc" >&6; }
25068 # So? What about this header?
25069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25070 yes:no: )
25071 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
25072 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
25074 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
25075 ac_header_preproc=yes
25077 no:yes:* )
25078 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
25079 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
25081 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
25083 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
25084 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
25085 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
25086 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
25087 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
25088 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
25089 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
25092 esac
25093 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
25094 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
25095 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
25096 echo $ECHO_N "(cached) $ECHO_C" >&6
25097 else
25098 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
25100 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
25101 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
25104 if test $ac_cv_header_radiusclient_ng_h = yes; then
25105 RADIUS_HEADER_FOUND=1
25106 else
25107 RADIUS_HEADER_FOUND=0
25113 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
25114 if test ! -z "${RADIUS_MANDATORY}" ;
25115 then
25116 { echo "$as_me:$LINENO: ***" >&5
25117 echo "$as_me: ***" >&6;}
25118 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
25119 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
25120 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
25121 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
25122 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25123 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25124 exit 1
25126 RADIUS_LIB=""
25127 RADIUS_INCLUDE=""
25128 PBX_RADIUS=0
25129 else
25130 PBX_RADIUS=1
25132 cat >>confdefs.h <<_ACEOF
25133 #define HAVE_RADIUS 1
25134 _ACEOF
25137 elif test ! -z "${RADIUS_MANDATORY}";
25138 then
25139 { echo "$as_me:$LINENO: ***" >&5
25140 echo "$as_me: ***" >&6;}
25141 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
25142 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
25143 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25144 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25145 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
25146 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
25147 exit 1
25153 if test "${USE_SPEEX}" != "no"; then
25154 pbxlibdir=""
25155 if test "x${SPEEX_DIR}" != "x"; then
25156 if test -d ${SPEEX_DIR}/lib; then
25157 pbxlibdir="-L${SPEEX_DIR}/lib"
25158 else
25159 pbxlibdir="-L${SPEEX_DIR}"
25162 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
25163 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
25164 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167 ac_check_lib_save_LIBS=$LIBS
25168 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h. */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25179 #ifdef __cplusplus
25180 extern "C"
25181 #endif
25182 char speex_encode ();
25184 main ()
25186 return speex_encode ();
25188 return 0;
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198 (eval "$ac_link") 2>conftest.er1
25199 ac_status=$?
25200 grep -v '^ *+' conftest.er1 >conftest.err
25201 rm -f conftest.er1
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } && {
25205 test -z "$ac_c_werror_flag" ||
25206 test ! -s conftest.err
25207 } && test -s conftest$ac_exeext &&
25208 $as_test_x conftest$ac_exeext; then
25209 ac_cv_lib_speex_speex_encode=yes
25210 else
25211 echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25214 ac_cv_lib_speex_speex_encode=no
25217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25218 conftest$ac_exeext conftest.$ac_ext
25219 LIBS=$ac_check_lib_save_LIBS
25221 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
25222 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
25223 if test $ac_cv_lib_speex_speex_encode = yes; then
25224 AST_SPEEX_FOUND=yes
25225 else
25226 AST_SPEEX_FOUND=no
25230 if test "${AST_SPEEX_FOUND}" = "yes"; then
25231 SPEEX_LIB="-lspeex -lm"
25232 SPEEX_HEADER_FOUND="1"
25233 if test "x${SPEEX_DIR}" != "x"; then
25234 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
25235 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
25236 saved_cppflags="${CPPFLAGS}"
25237 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
25238 if test "xspeex/speex.h" != "x" ; then
25239 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
25240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25241 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25242 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 ac_res=`eval echo '${'$as_ac_Header'}'`
25247 { echo "$as_me:$LINENO: result: $ac_res" >&5
25248 echo "${ECHO_T}$ac_res" >&6; }
25249 else
25250 # Is the header compilable?
25251 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
25252 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
25253 cat >conftest.$ac_ext <<_ACEOF
25254 /* confdefs.h. */
25255 _ACEOF
25256 cat confdefs.h >>conftest.$ac_ext
25257 cat >>conftest.$ac_ext <<_ACEOF
25258 /* end confdefs.h. */
25259 $ac_includes_default
25260 #include <${SPEEX_DIR}/include/speex/speex.h>
25261 _ACEOF
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_compile") 2>conftest.er1
25270 ac_status=$?
25271 grep -v '^ *+' conftest.er1 >conftest.err
25272 rm -f conftest.er1
25273 cat conftest.err >&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } && {
25276 test -z "$ac_c_werror_flag" ||
25277 test ! -s conftest.err
25278 } && test -s conftest.$ac_objext; then
25279 ac_header_compiler=yes
25280 else
25281 echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25284 ac_header_compiler=no
25287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25289 echo "${ECHO_T}$ac_header_compiler" >&6; }
25291 # Is the header present?
25292 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
25293 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h. */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 #include <${SPEEX_DIR}/include/speex/speex.h>
25301 _ACEOF
25302 if { (ac_try="$ac_cpp conftest.$ac_ext"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25309 ac_status=$?
25310 grep -v '^ *+' conftest.er1 >conftest.err
25311 rm -f conftest.er1
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } >/dev/null && {
25315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25316 test ! -s conftest.err
25317 }; then
25318 ac_header_preproc=yes
25319 else
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_header_preproc=no
25326 rm -f conftest.err conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25328 echo "${ECHO_T}$ac_header_preproc" >&6; }
25330 # So? What about this header?
25331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25332 yes:no: )
25333 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25334 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25335 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
25336 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
25337 ac_header_preproc=yes
25339 no:yes:* )
25340 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
25341 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
25342 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
25343 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
25345 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
25346 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25347 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
25349 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
25350 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
25351 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
25354 esac
25355 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
25356 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
25357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 else
25360 eval "$as_ac_Header=\$ac_header_preproc"
25362 ac_res=`eval echo '${'$as_ac_Header'}'`
25363 { echo "$as_me:$LINENO: result: $ac_res" >&5
25364 echo "${ECHO_T}$ac_res" >&6; }
25367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25368 SPEEX_HEADER_FOUND=1
25369 else
25370 SPEEX_HEADER_FOUND=0
25375 CPPFLAGS="${saved_cppflags}"
25376 else
25377 if test "xspeex/speex.h" != "x" ; then
25378 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25379 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25380 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25381 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25385 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25386 else
25387 # Is the header compilable?
25388 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
25389 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
25390 cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h. */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h. */
25396 $ac_includes_default
25397 #include <speex/speex.h>
25398 _ACEOF
25399 rm -f conftest.$ac_objext
25400 if { (ac_try="$ac_compile"
25401 case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25404 esac
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406 (eval "$ac_compile") 2>conftest.er1
25407 ac_status=$?
25408 grep -v '^ *+' conftest.er1 >conftest.err
25409 rm -f conftest.er1
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } && {
25413 test -z "$ac_c_werror_flag" ||
25414 test ! -s conftest.err
25415 } && test -s conftest.$ac_objext; then
25416 ac_header_compiler=yes
25417 else
25418 echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.$ac_ext >&5
25421 ac_header_compiler=no
25424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25426 echo "${ECHO_T}$ac_header_compiler" >&6; }
25428 # Is the header present?
25429 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
25430 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h. */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25437 #include <speex/speex.h>
25438 _ACEOF
25439 if { (ac_try="$ac_cpp conftest.$ac_ext"
25440 case "(($ac_try" in
25441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25442 *) ac_try_echo=$ac_try;;
25443 esac
25444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25446 ac_status=$?
25447 grep -v '^ *+' conftest.er1 >conftest.err
25448 rm -f conftest.er1
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } >/dev/null && {
25452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25453 test ! -s conftest.err
25454 }; then
25455 ac_header_preproc=yes
25456 else
25457 echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25460 ac_header_preproc=no
25463 rm -f conftest.err conftest.$ac_ext
25464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25465 echo "${ECHO_T}$ac_header_preproc" >&6; }
25467 # So? What about this header?
25468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25469 yes:no: )
25470 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25471 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25472 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
25473 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
25474 ac_header_preproc=yes
25476 no:yes:* )
25477 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
25478 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
25479 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
25480 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
25482 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
25483 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
25484 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25485 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
25486 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
25487 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
25488 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
25491 esac
25492 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
25493 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
25494 if test "${ac_cv_header_speex_speex_h+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497 ac_cv_header_speex_speex_h=$ac_header_preproc
25499 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
25500 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
25503 if test $ac_cv_header_speex_speex_h = yes; then
25504 SPEEX_HEADER_FOUND=1
25505 else
25506 SPEEX_HEADER_FOUND=0
25512 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
25513 if test ! -z "${SPEEX_MANDATORY}" ;
25514 then
25515 { echo "$as_me:$LINENO: ***" >&5
25516 echo "$as_me: ***" >&6;}
25517 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
25518 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
25519 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
25520 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
25521 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25522 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25523 exit 1
25525 SPEEX_LIB=""
25526 SPEEX_INCLUDE=""
25527 PBX_SPEEX=0
25528 else
25529 PBX_SPEEX=1
25531 cat >>confdefs.h <<_ACEOF
25532 #define HAVE_SPEEX 1
25533 _ACEOF
25536 elif test ! -z "${SPEEX_MANDATORY}";
25537 then
25538 { echo "$as_me:$LINENO: ***" >&5
25539 echo "$as_me: ***" >&6;}
25540 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
25541 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
25542 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25543 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
25545 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
25546 exit 1
25552 if test "${USE_SQLITE}" != "no"; then
25553 pbxlibdir=""
25554 if test "x${SQLITE_DIR}" != "x"; then
25555 if test -d ${SQLITE_DIR}/lib; then
25556 pbxlibdir="-L${SQLITE_DIR}/lib"
25557 else
25558 pbxlibdir="-L${SQLITE_DIR}"
25561 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
25562 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
25563 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566 ac_check_lib_save_LIBS=$LIBS
25567 LIBS="-lsqlite ${pbxlibdir} $LIBS"
25568 cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h. */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25575 /* Override any GCC internal prototype to avoid an error.
25576 Use char because int might match the return type of a GCC
25577 builtin and then its argument prototype would still apply. */
25578 #ifdef __cplusplus
25579 extern "C"
25580 #endif
25581 char sqlite_exec ();
25583 main ()
25585 return sqlite_exec ();
25587 return 0;
25589 _ACEOF
25590 rm -f conftest.$ac_objext conftest$ac_exeext
25591 if { (ac_try="$ac_link"
25592 case "(($ac_try" in
25593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25594 *) ac_try_echo=$ac_try;;
25595 esac
25596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25597 (eval "$ac_link") 2>conftest.er1
25598 ac_status=$?
25599 grep -v '^ *+' conftest.er1 >conftest.err
25600 rm -f conftest.er1
25601 cat conftest.err >&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } && {
25604 test -z "$ac_c_werror_flag" ||
25605 test ! -s conftest.err
25606 } && test -s conftest$ac_exeext &&
25607 $as_test_x conftest$ac_exeext; then
25608 ac_cv_lib_sqlite_sqlite_exec=yes
25609 else
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ac_cv_lib_sqlite_sqlite_exec=no
25616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25617 conftest$ac_exeext conftest.$ac_ext
25618 LIBS=$ac_check_lib_save_LIBS
25620 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
25621 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
25622 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
25623 AST_SQLITE_FOUND=yes
25624 else
25625 AST_SQLITE_FOUND=no
25629 if test "${AST_SQLITE_FOUND}" = "yes"; then
25630 SQLITE_LIB="-lsqlite "
25631 SQLITE_HEADER_FOUND="1"
25632 if test "x${SQLITE_DIR}" != "x"; then
25633 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
25634 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
25635 saved_cppflags="${CPPFLAGS}"
25636 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
25637 if test "xsqlite.h" != "x" ; then
25638 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
25639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25640 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25641 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25645 ac_res=`eval echo '${'$as_ac_Header'}'`
25646 { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25648 else
25649 # Is the header compilable?
25650 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
25651 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
25652 cat >conftest.$ac_ext <<_ACEOF
25653 /* confdefs.h. */
25654 _ACEOF
25655 cat confdefs.h >>conftest.$ac_ext
25656 cat >>conftest.$ac_ext <<_ACEOF
25657 /* end confdefs.h. */
25658 $ac_includes_default
25659 #include <${SQLITE_DIR}/include/sqlite.h>
25660 _ACEOF
25661 rm -f conftest.$ac_objext
25662 if { (ac_try="$ac_compile"
25663 case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25666 esac
25667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25668 (eval "$ac_compile") 2>conftest.er1
25669 ac_status=$?
25670 grep -v '^ *+' conftest.er1 >conftest.err
25671 rm -f conftest.er1
25672 cat conftest.err >&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } && {
25675 test -z "$ac_c_werror_flag" ||
25676 test ! -s conftest.err
25677 } && test -s conftest.$ac_objext; then
25678 ac_header_compiler=yes
25679 else
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 ac_header_compiler=no
25686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25688 echo "${ECHO_T}$ac_header_compiler" >&6; }
25690 # Is the header present?
25691 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
25692 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
25693 cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h. */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25699 #include <${SQLITE_DIR}/include/sqlite.h>
25700 _ACEOF
25701 if { (ac_try="$ac_cpp conftest.$ac_ext"
25702 case "(($ac_try" in
25703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704 *) ac_try_echo=$ac_try;;
25705 esac
25706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25708 ac_status=$?
25709 grep -v '^ *+' conftest.er1 >conftest.err
25710 rm -f conftest.er1
25711 cat conftest.err >&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } >/dev/null && {
25714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25715 test ! -s conftest.err
25716 }; then
25717 ac_header_preproc=yes
25718 else
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25722 ac_header_preproc=no
25725 rm -f conftest.err conftest.$ac_ext
25726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25727 echo "${ECHO_T}$ac_header_preproc" >&6; }
25729 # So? What about this header?
25730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25731 yes:no: )
25732 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25733 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25734 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
25735 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
25736 ac_header_preproc=yes
25738 no:yes:* )
25739 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
25740 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
25741 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
25742 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
25743 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
25744 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
25745 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25746 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25747 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
25748 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
25750 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
25753 esac
25754 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
25755 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
25756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25758 else
25759 eval "$as_ac_Header=\$ac_header_preproc"
25761 ac_res=`eval echo '${'$as_ac_Header'}'`
25762 { echo "$as_me:$LINENO: result: $ac_res" >&5
25763 echo "${ECHO_T}$ac_res" >&6; }
25766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25767 SQLITE_HEADER_FOUND=1
25768 else
25769 SQLITE_HEADER_FOUND=0
25774 CPPFLAGS="${saved_cppflags}"
25775 else
25776 if test "xsqlite.h" != "x" ; then
25777 if test "${ac_cv_header_sqlite_h+set}" = set; then
25778 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25779 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25780 if test "${ac_cv_header_sqlite_h+set}" = set; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25783 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25784 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25785 else
25786 # Is the header compilable?
25787 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
25788 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h. */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 $ac_includes_default
25796 #include <sqlite.h>
25797 _ACEOF
25798 rm -f conftest.$ac_objext
25799 if { (ac_try="$ac_compile"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest.$ac_objext; then
25815 ac_header_compiler=yes
25816 else
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25820 ac_header_compiler=no
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25825 echo "${ECHO_T}$ac_header_compiler" >&6; }
25827 # Is the header present?
25828 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
25829 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
25830 cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h. */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 #include <sqlite.h>
25837 _ACEOF
25838 if { (ac_try="$ac_cpp conftest.$ac_ext"
25839 case "(($ac_try" in
25840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25841 *) ac_try_echo=$ac_try;;
25842 esac
25843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25845 ac_status=$?
25846 grep -v '^ *+' conftest.er1 >conftest.err
25847 rm -f conftest.er1
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } >/dev/null && {
25851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25853 }; then
25854 ac_header_preproc=yes
25855 else
25856 echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25859 ac_header_preproc=no
25862 rm -f conftest.err conftest.$ac_ext
25863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25864 echo "${ECHO_T}$ac_header_preproc" >&6; }
25866 # So? What about this header?
25867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25868 yes:no: )
25869 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
25870 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25871 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
25872 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
25873 ac_header_preproc=yes
25875 no:yes:* )
25876 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
25877 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
25878 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
25879 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
25880 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
25881 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
25883 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
25884 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
25885 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
25886 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
25887 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
25890 esac
25891 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
25892 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
25893 if test "${ac_cv_header_sqlite_h+set}" = set; then
25894 echo $ECHO_N "(cached) $ECHO_C" >&6
25895 else
25896 ac_cv_header_sqlite_h=$ac_header_preproc
25898 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
25899 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
25902 if test $ac_cv_header_sqlite_h = yes; then
25903 SQLITE_HEADER_FOUND=1
25904 else
25905 SQLITE_HEADER_FOUND=0
25911 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
25912 if test ! -z "${SQLITE_MANDATORY}" ;
25913 then
25914 { echo "$as_me:$LINENO: ***" >&5
25915 echo "$as_me: ***" >&6;}
25916 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
25917 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
25918 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
25919 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
25920 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25921 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25922 exit 1
25924 SQLITE_LIB=""
25925 SQLITE_INCLUDE=""
25926 PBX_SQLITE=0
25927 else
25928 PBX_SQLITE=1
25930 cat >>confdefs.h <<_ACEOF
25931 #define HAVE_SQLITE 1
25932 _ACEOF
25935 elif test ! -z "${SQLITE_MANDATORY}";
25936 then
25937 { echo "$as_me:$LINENO: ***" >&5
25938 echo "$as_me: ***" >&6;}
25939 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
25940 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
25941 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25942 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25943 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
25944 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
25945 exit 1
25951 if test "${USE_OPENSSL}" != "no"; then
25952 pbxlibdir=""
25953 if test "x${OPENSSL_DIR}" != "x"; then
25954 if test -d ${OPENSSL_DIR}/lib; then
25955 pbxlibdir="-L${OPENSSL_DIR}/lib"
25956 else
25957 pbxlibdir="-L${OPENSSL_DIR}"
25960 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
25961 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
25962 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 else
25965 ac_check_lib_save_LIBS=$LIBS
25966 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
25967 cat >conftest.$ac_ext <<_ACEOF
25968 /* confdefs.h. */
25969 _ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25974 /* Override any GCC internal prototype to avoid an error.
25975 Use char because int might match the return type of a GCC
25976 builtin and then its argument prototype would still apply. */
25977 #ifdef __cplusplus
25978 extern "C"
25979 #endif
25980 char ssl2_connect ();
25982 main ()
25984 return ssl2_connect ();
25986 return 0;
25988 _ACEOF
25989 rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_link") 2>conftest.er1
25997 ac_status=$?
25998 grep -v '^ *+' conftest.er1 >conftest.err
25999 rm -f conftest.er1
26000 cat conftest.err >&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
26005 } && test -s conftest$ac_exeext &&
26006 $as_test_x conftest$ac_exeext; then
26007 ac_cv_lib_ssl_ssl2_connect=yes
26008 else
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26012 ac_cv_lib_ssl_ssl2_connect=no
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26016 conftest$ac_exeext conftest.$ac_ext
26017 LIBS=$ac_check_lib_save_LIBS
26019 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
26020 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
26021 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
26022 AST_OPENSSL_FOUND=yes
26023 else
26024 AST_OPENSSL_FOUND=no
26028 if test "${AST_OPENSSL_FOUND}" = "yes"; then
26029 OPENSSL_LIB="-lssl -lcrypto"
26030 OPENSSL_HEADER_FOUND="1"
26031 if test "x${OPENSSL_DIR}" != "x"; then
26032 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
26033 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
26034 saved_cppflags="${CPPFLAGS}"
26035 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
26036 if test "xopenssl/ssl.h" != "x" ; then
26037 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
26038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26039 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26040 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26042 echo $ECHO_N "(cached) $ECHO_C" >&6
26044 ac_res=`eval echo '${'$as_ac_Header'}'`
26045 { echo "$as_me:$LINENO: result: $ac_res" >&5
26046 echo "${ECHO_T}$ac_res" >&6; }
26047 else
26048 # Is the header compilable?
26049 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
26050 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
26051 cat >conftest.$ac_ext <<_ACEOF
26052 /* confdefs.h. */
26053 _ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h. */
26057 $ac_includes_default
26058 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26059 _ACEOF
26060 rm -f conftest.$ac_objext
26061 if { (ac_try="$ac_compile"
26062 case "(($ac_try" in
26063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26065 esac
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_compile") 2>conftest.er1
26068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } && {
26074 test -z "$ac_c_werror_flag" ||
26075 test ! -s conftest.err
26076 } && test -s conftest.$ac_objext; then
26077 ac_header_compiler=yes
26078 else
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.$ac_ext >&5
26082 ac_header_compiler=no
26085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26087 echo "${ECHO_T}$ac_header_compiler" >&6; }
26089 # Is the header present?
26090 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
26091 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
26092 cat >conftest.$ac_ext <<_ACEOF
26093 /* confdefs.h. */
26094 _ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h. */
26098 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
26099 _ACEOF
26100 if { (ac_try="$ac_cpp conftest.$ac_ext"
26101 case "(($ac_try" in
26102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103 *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26107 ac_status=$?
26108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } >/dev/null && {
26113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26115 }; then
26116 ac_header_preproc=yes
26117 else
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 ac_header_preproc=no
26124 rm -f conftest.err conftest.$ac_ext
26125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26126 echo "${ECHO_T}$ac_header_preproc" >&6; }
26128 # So? What about this header?
26129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26130 yes:no: )
26131 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26132 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26133 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
26134 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
26135 ac_header_preproc=yes
26137 no:yes:* )
26138 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
26139 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
26140 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
26141 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
26143 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26145 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26146 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
26147 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
26149 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26152 esac
26153 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
26154 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
26155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26157 else
26158 eval "$as_ac_Header=\$ac_header_preproc"
26160 ac_res=`eval echo '${'$as_ac_Header'}'`
26161 { echo "$as_me:$LINENO: result: $ac_res" >&5
26162 echo "${ECHO_T}$ac_res" >&6; }
26165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26166 OPENSSL_HEADER_FOUND=1
26167 else
26168 OPENSSL_HEADER_FOUND=0
26173 CPPFLAGS="${saved_cppflags}"
26174 else
26175 if test "xopenssl/ssl.h" != "x" ; then
26176 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26177 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26178 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26179 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26182 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26183 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26184 else
26185 # Is the header compilable?
26186 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
26187 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
26188 cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h. */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26194 $ac_includes_default
26195 #include <openssl/ssl.h>
26196 _ACEOF
26197 rm -f conftest.$ac_objext
26198 if { (ac_try="$ac_compile"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26202 esac
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_compile") 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest.$ac_objext; then
26214 ac_header_compiler=yes
26215 else
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ac_header_compiler=no
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26224 echo "${ECHO_T}$ac_header_compiler" >&6; }
26226 # Is the header present?
26227 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
26228 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
26229 cat >conftest.$ac_ext <<_ACEOF
26230 /* confdefs.h. */
26231 _ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26235 #include <openssl/ssl.h>
26236 _ACEOF
26237 if { (ac_try="$ac_cpp conftest.$ac_ext"
26238 case "(($ac_try" in
26239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26241 esac
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26244 ac_status=$?
26245 grep -v '^ *+' conftest.er1 >conftest.err
26246 rm -f conftest.er1
26247 cat conftest.err >&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } >/dev/null && {
26250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26251 test ! -s conftest.err
26252 }; then
26253 ac_header_preproc=yes
26254 else
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_header_preproc=no
26261 rm -f conftest.err conftest.$ac_ext
26262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26263 echo "${ECHO_T}$ac_header_preproc" >&6; }
26265 # So? What about this header?
26266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26267 yes:no: )
26268 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26269 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
26271 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
26272 ac_header_preproc=yes
26274 no:yes:* )
26275 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
26276 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
26278 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
26279 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
26280 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
26282 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
26284 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
26285 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
26286 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
26289 esac
26290 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
26291 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
26292 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 else
26295 ac_cv_header_openssl_ssl_h=$ac_header_preproc
26297 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
26298 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
26301 if test $ac_cv_header_openssl_ssl_h = yes; then
26302 OPENSSL_HEADER_FOUND=1
26303 else
26304 OPENSSL_HEADER_FOUND=0
26310 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
26311 if test ! -z "${OPENSSL_MANDATORY}" ;
26312 then
26313 { echo "$as_me:$LINENO: ***" >&5
26314 echo "$as_me: ***" >&6;}
26315 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
26316 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
26317 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
26318 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
26319 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
26320 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
26321 exit 1
26323 OPENSSL_LIB=""
26324 OPENSSL_INCLUDE=""
26325 PBX_OPENSSL=0
26326 else
26327 PBX_OPENSSL=1
26329 cat >>confdefs.h <<_ACEOF
26330 #define HAVE_OPENSSL 1
26331 _ACEOF
26334 elif test ! -z "${OPENSSL_MANDATORY}";
26335 then
26336 { echo "$as_me:$LINENO: ***" >&5
26337 echo "$as_me: ***" >&6;}
26338 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
26339 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
26340 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26341 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26342 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
26343 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
26344 exit 1
26350 if test "${USE_FREETDS}" != "no"; then
26351 pbxlibdir=""
26352 if test "x${FREETDS_DIR}" != "x"; then
26353 if test -d ${FREETDS_DIR}/lib; then
26354 pbxlibdir="-L${FREETDS_DIR}/lib"
26355 else
26356 pbxlibdir="-L${FREETDS_DIR}"
26359 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
26360 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
26361 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364 ac_check_lib_save_LIBS=$LIBS
26365 LIBS="-ltds ${pbxlibdir} $LIBS"
26366 cat >conftest.$ac_ext <<_ACEOF
26367 /* confdefs.h. */
26368 _ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26373 /* Override any GCC internal prototype to avoid an error.
26374 Use char because int might match the return type of a GCC
26375 builtin and then its argument prototype would still apply. */
26376 #ifdef __cplusplus
26377 extern "C"
26378 #endif
26379 char tds_version ();
26381 main ()
26383 return tds_version ();
26385 return 0;
26387 _ACEOF
26388 rm -f conftest.$ac_objext conftest$ac_exeext
26389 if { (ac_try="$ac_link"
26390 case "(($ac_try" in
26391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392 *) ac_try_echo=$ac_try;;
26393 esac
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395 (eval "$ac_link") 2>conftest.er1
26396 ac_status=$?
26397 grep -v '^ *+' conftest.er1 >conftest.err
26398 rm -f conftest.er1
26399 cat conftest.err >&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); } && {
26402 test -z "$ac_c_werror_flag" ||
26403 test ! -s conftest.err
26404 } && test -s conftest$ac_exeext &&
26405 $as_test_x conftest$ac_exeext; then
26406 ac_cv_lib_tds_tds_version=yes
26407 else
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 ac_cv_lib_tds_tds_version=no
26414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26415 conftest$ac_exeext conftest.$ac_ext
26416 LIBS=$ac_check_lib_save_LIBS
26418 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
26419 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
26420 if test $ac_cv_lib_tds_tds_version = yes; then
26421 AST_FREETDS_FOUND=yes
26422 else
26423 AST_FREETDS_FOUND=no
26427 if test "${AST_FREETDS_FOUND}" = "yes"; then
26428 FREETDS_LIB="-ltds "
26429 FREETDS_HEADER_FOUND="1"
26430 if test "x${FREETDS_DIR}" != "x"; then
26431 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
26432 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
26433 saved_cppflags="${CPPFLAGS}"
26434 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
26435 if test "xtds.h" != "x" ; then
26436 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
26437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26438 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26439 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 ac_res=`eval echo '${'$as_ac_Header'}'`
26444 { echo "$as_me:$LINENO: result: $ac_res" >&5
26445 echo "${ECHO_T}$ac_res" >&6; }
26446 else
26447 # Is the header compilable?
26448 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
26449 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
26450 cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h. */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 $ac_includes_default
26457 #include <${FREETDS_DIR}/include/tds.h>
26458 _ACEOF
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26464 esac
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466 (eval "$ac_compile") 2>conftest.er1
26467 ac_status=$?
26468 grep -v '^ *+' conftest.er1 >conftest.err
26469 rm -f conftest.er1
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } && {
26473 test -z "$ac_c_werror_flag" ||
26474 test ! -s conftest.err
26475 } && test -s conftest.$ac_objext; then
26476 ac_header_compiler=yes
26477 else
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ac_header_compiler=no
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26486 echo "${ECHO_T}$ac_header_compiler" >&6; }
26488 # Is the header present?
26489 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
26490 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
26491 cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h. */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 #include <${FREETDS_DIR}/include/tds.h>
26498 _ACEOF
26499 if { (ac_try="$ac_cpp conftest.$ac_ext"
26500 case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26503 esac
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26506 ac_status=$?
26507 grep -v '^ *+' conftest.er1 >conftest.err
26508 rm -f conftest.er1
26509 cat conftest.err >&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); } >/dev/null && {
26512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26513 test ! -s conftest.err
26514 }; then
26515 ac_header_preproc=yes
26516 else
26517 echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26520 ac_header_preproc=no
26523 rm -f conftest.err conftest.$ac_ext
26524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26525 echo "${ECHO_T}$ac_header_preproc" >&6; }
26527 # So? What about this header?
26528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26529 yes:no: )
26530 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26531 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26532 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
26533 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
26534 ac_header_preproc=yes
26536 no:yes:* )
26537 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
26538 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
26540 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
26542 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
26544 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26545 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
26546 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
26547 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
26548 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
26551 esac
26552 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
26553 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
26554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26556 else
26557 eval "$as_ac_Header=\$ac_header_preproc"
26559 ac_res=`eval echo '${'$as_ac_Header'}'`
26560 { echo "$as_me:$LINENO: result: $ac_res" >&5
26561 echo "${ECHO_T}$ac_res" >&6; }
26564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26565 FREETDS_HEADER_FOUND=1
26566 else
26567 FREETDS_HEADER_FOUND=0
26572 CPPFLAGS="${saved_cppflags}"
26573 else
26574 if test "xtds.h" != "x" ; then
26575 if test "${ac_cv_header_tds_h+set}" = set; then
26576 { echo "$as_me:$LINENO: checking for tds.h" >&5
26577 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26578 if test "${ac_cv_header_tds_h+set}" = set; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26581 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26582 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26583 else
26584 # Is the header compilable?
26585 { echo "$as_me:$LINENO: checking tds.h usability" >&5
26586 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
26587 cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h. */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26593 $ac_includes_default
26594 #include <tds.h>
26595 _ACEOF
26596 rm -f conftest.$ac_objext
26597 if { (ac_try="$ac_compile"
26598 case "(($ac_try" in
26599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26601 esac
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_compile") 2>conftest.er1
26604 ac_status=$?
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } && {
26610 test -z "$ac_c_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest.$ac_objext; then
26613 ac_header_compiler=yes
26614 else
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ac_header_compiler=no
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6; }
26625 # Is the header present?
26626 { echo "$as_me:$LINENO: checking tds.h presence" >&5
26627 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h. */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 #include <tds.h>
26635 _ACEOF
26636 if { (ac_try="$ac_cpp conftest.$ac_ext"
26637 case "(($ac_try" in
26638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639 *) ac_try_echo=$ac_try;;
26640 esac
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26643 ac_status=$?
26644 grep -v '^ *+' conftest.er1 >conftest.err
26645 rm -f conftest.er1
26646 cat conftest.err >&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } >/dev/null && {
26649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26650 test ! -s conftest.err
26651 }; then
26652 ac_header_preproc=yes
26653 else
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_header_preproc=no
26660 rm -f conftest.err conftest.$ac_ext
26661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26662 echo "${ECHO_T}$ac_header_preproc" >&6; }
26664 # So? What about this header?
26665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26666 yes:no: )
26667 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
26668 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26669 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
26670 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
26671 ac_header_preproc=yes
26673 no:yes:* )
26674 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
26675 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
26677 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
26679 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
26681 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
26683 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
26685 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
26688 esac
26689 { echo "$as_me:$LINENO: checking for tds.h" >&5
26690 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
26691 if test "${ac_cv_header_tds_h+set}" = set; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26693 else
26694 ac_cv_header_tds_h=$ac_header_preproc
26696 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
26697 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
26700 if test $ac_cv_header_tds_h = yes; then
26701 FREETDS_HEADER_FOUND=1
26702 else
26703 FREETDS_HEADER_FOUND=0
26709 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
26710 if test ! -z "${FREETDS_MANDATORY}" ;
26711 then
26712 { echo "$as_me:$LINENO: ***" >&5
26713 echo "$as_me: ***" >&6;}
26714 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
26715 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
26716 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
26717 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
26718 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26719 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26720 exit 1
26722 FREETDS_LIB=""
26723 FREETDS_INCLUDE=""
26724 PBX_FREETDS=0
26725 else
26726 PBX_FREETDS=1
26728 cat >>confdefs.h <<_ACEOF
26729 #define HAVE_FREETDS 1
26730 _ACEOF
26733 elif test ! -z "${FREETDS_MANDATORY}";
26734 then
26735 { echo "$as_me:$LINENO: ***" >&5
26736 echo "$as_me: ***" >&6;}
26737 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
26738 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
26739 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26740 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26741 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
26742 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
26743 exit 1
26747 if test "${PBX_FREETDS}" != "0";
26748 then
26749 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
26750 *0.64*)
26751 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
26753 *0.63*)
26754 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
26756 *0.62*)
26757 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
26760 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
26762 esac
26766 if test "${USE_TERMCAP}" != "no"; then
26767 pbxlibdir=""
26768 if test "x${TERMCAP_DIR}" != "x"; then
26769 if test -d ${TERMCAP_DIR}/lib; then
26770 pbxlibdir="-L${TERMCAP_DIR}/lib"
26771 else
26772 pbxlibdir="-L${TERMCAP_DIR}"
26775 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26776 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
26777 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26779 else
26780 ac_check_lib_save_LIBS=$LIBS
26781 LIBS="-ltermcap ${pbxlibdir} $LIBS"
26782 cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h. */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26789 /* Override any GCC internal prototype to avoid an error.
26790 Use char because int might match the return type of a GCC
26791 builtin and then its argument prototype would still apply. */
26792 #ifdef __cplusplus
26793 extern "C"
26794 #endif
26795 char tgetent ();
26797 main ()
26799 return tgetent ();
26801 return 0;
26803 _ACEOF
26804 rm -f conftest.$ac_objext conftest$ac_exeext
26805 if { (ac_try="$ac_link"
26806 case "(($ac_try" in
26807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808 *) ac_try_echo=$ac_try;;
26809 esac
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811 (eval "$ac_link") 2>conftest.er1
26812 ac_status=$?
26813 grep -v '^ *+' conftest.er1 >conftest.err
26814 rm -f conftest.er1
26815 cat conftest.err >&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } && {
26818 test -z "$ac_c_werror_flag" ||
26819 test ! -s conftest.err
26820 } && test -s conftest$ac_exeext &&
26821 $as_test_x conftest$ac_exeext; then
26822 ac_cv_lib_termcap_tgetent=yes
26823 else
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ac_cv_lib_termcap_tgetent=no
26830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26831 conftest$ac_exeext conftest.$ac_ext
26832 LIBS=$ac_check_lib_save_LIBS
26834 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26835 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
26836 if test $ac_cv_lib_termcap_tgetent = yes; then
26837 AST_TERMCAP_FOUND=yes
26838 else
26839 AST_TERMCAP_FOUND=no
26843 if test "${AST_TERMCAP_FOUND}" = "yes"; then
26844 TERMCAP_LIB="-ltermcap "
26845 TERMCAP_HEADER_FOUND="1"
26846 if test "x${TERMCAP_DIR}" != "x"; then
26847 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
26848 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
26849 saved_cppflags="${CPPFLAGS}"
26850 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
26851 if test "x" != "x" ; then
26852 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
26853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26854 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26855 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26857 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 ac_res=`eval echo '${'$as_ac_Header'}'`
26860 { echo "$as_me:$LINENO: result: $ac_res" >&5
26861 echo "${ECHO_T}$ac_res" >&6; }
26862 else
26863 # Is the header compilable?
26864 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
26865 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
26866 cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h. */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 $ac_includes_default
26873 #include <${TERMCAP_DIR}/include/>
26874 _ACEOF
26875 rm -f conftest.$ac_objext
26876 if { (ac_try="$ac_compile"
26877 case "(($ac_try" in
26878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879 *) ac_try_echo=$ac_try;;
26880 esac
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882 (eval "$ac_compile") 2>conftest.er1
26883 ac_status=$?
26884 grep -v '^ *+' conftest.er1 >conftest.err
26885 rm -f conftest.er1
26886 cat conftest.err >&5
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } && {
26889 test -z "$ac_c_werror_flag" ||
26890 test ! -s conftest.err
26891 } && test -s conftest.$ac_objext; then
26892 ac_header_compiler=yes
26893 else
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26897 ac_header_compiler=no
26900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26902 echo "${ECHO_T}$ac_header_compiler" >&6; }
26904 # Is the header present?
26905 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
26906 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
26907 cat >conftest.$ac_ext <<_ACEOF
26908 /* confdefs.h. */
26909 _ACEOF
26910 cat confdefs.h >>conftest.$ac_ext
26911 cat >>conftest.$ac_ext <<_ACEOF
26912 /* end confdefs.h. */
26913 #include <${TERMCAP_DIR}/include/>
26914 _ACEOF
26915 if { (ac_try="$ac_cpp conftest.$ac_ext"
26916 case "(($ac_try" in
26917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918 *) ac_try_echo=$ac_try;;
26919 esac
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26922 ac_status=$?
26923 grep -v '^ *+' conftest.er1 >conftest.err
26924 rm -f conftest.er1
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } >/dev/null && {
26928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26929 test ! -s conftest.err
26930 }; then
26931 ac_header_preproc=yes
26932 else
26933 echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26936 ac_header_preproc=no
26939 rm -f conftest.err conftest.$ac_ext
26940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26941 echo "${ECHO_T}$ac_header_preproc" >&6; }
26943 # So? What about this header?
26944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26945 yes:no: )
26946 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26947 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
26949 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
26950 ac_header_preproc=yes
26952 no:yes:* )
26953 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
26954 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
26955 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
26956 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
26958 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26960 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
26962 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
26964 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26967 esac
26968 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
26969 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
26970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26972 else
26973 eval "$as_ac_Header=\$ac_header_preproc"
26975 ac_res=`eval echo '${'$as_ac_Header'}'`
26976 { echo "$as_me:$LINENO: result: $ac_res" >&5
26977 echo "${ECHO_T}$ac_res" >&6; }
26980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26981 TERMCAP_HEADER_FOUND=1
26982 else
26983 TERMCAP_HEADER_FOUND=0
26988 CPPFLAGS="${saved_cppflags}"
26989 else
26990 if test "x" != "x" ; then
26991 if test "${ac_cv_header_+set}" = set; then
26992 { echo "$as_me:$LINENO: checking for " >&5
26993 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26994 if test "${ac_cv_header_+set}" = set; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26998 echo "${ECHO_T}$ac_cv_header_" >&6; }
26999 else
27000 # Is the header compilable?
27001 { echo "$as_me:$LINENO: checking usability" >&5
27002 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27003 cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h. */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 $ac_includes_default
27010 #include <>
27011 _ACEOF
27012 rm -f conftest.$ac_objext
27013 if { (ac_try="$ac_compile"
27014 case "(($ac_try" in
27015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016 *) ac_try_echo=$ac_try;;
27017 esac
27018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27019 (eval "$ac_compile") 2>conftest.er1
27020 ac_status=$?
27021 grep -v '^ *+' conftest.er1 >conftest.err
27022 rm -f conftest.er1
27023 cat conftest.err >&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && {
27026 test -z "$ac_c_werror_flag" ||
27027 test ! -s conftest.err
27028 } && test -s conftest.$ac_objext; then
27029 ac_header_compiler=yes
27030 else
27031 echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.$ac_ext >&5
27034 ac_header_compiler=no
27037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27039 echo "${ECHO_T}$ac_header_compiler" >&6; }
27041 # Is the header present?
27042 { echo "$as_me:$LINENO: checking presence" >&5
27043 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27044 cat >conftest.$ac_ext <<_ACEOF
27045 /* confdefs.h. */
27046 _ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h. */
27050 #include <>
27051 _ACEOF
27052 if { (ac_try="$ac_cpp conftest.$ac_ext"
27053 case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27056 esac
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27059 ac_status=$?
27060 grep -v '^ *+' conftest.er1 >conftest.err
27061 rm -f conftest.er1
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } >/dev/null && {
27065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27066 test ! -s conftest.err
27067 }; then
27068 ac_header_preproc=yes
27069 else
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 ac_header_preproc=no
27076 rm -f conftest.err conftest.$ac_ext
27077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27078 echo "${ECHO_T}$ac_header_preproc" >&6; }
27080 # So? What about this header?
27081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27082 yes:no: )
27083 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27084 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27086 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27087 ac_header_preproc=yes
27089 no:yes:* )
27090 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27091 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27093 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27095 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27096 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27097 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27098 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27099 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27101 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27104 esac
27105 { echo "$as_me:$LINENO: checking for " >&5
27106 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27107 if test "${ac_cv_header_+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
27109 else
27110 ac_cv_header_=$ac_header_preproc
27112 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27113 echo "${ECHO_T}$ac_cv_header_" >&6; }
27116 if test $ac_cv_header_ = yes; then
27117 TERMCAP_HEADER_FOUND=1
27118 else
27119 TERMCAP_HEADER_FOUND=0
27125 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
27126 if test ! -z "${TERMCAP_MANDATORY}" ;
27127 then
27128 { echo "$as_me:$LINENO: ***" >&5
27129 echo "$as_me: ***" >&6;}
27130 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
27131 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
27132 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
27133 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
27134 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27135 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27136 exit 1
27138 TERMCAP_LIB=""
27139 TERMCAP_INCLUDE=""
27140 PBX_TERMCAP=0
27141 else
27142 PBX_TERMCAP=1
27144 cat >>confdefs.h <<_ACEOF
27145 #define HAVE_TERMCAP 1
27146 _ACEOF
27149 elif test ! -z "${TERMCAP_MANDATORY}";
27150 then
27151 { echo "$as_me:$LINENO: ***" >&5
27152 echo "$as_me: ***" >&6;}
27153 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
27154 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
27155 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27156 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27157 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
27158 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
27159 exit 1
27165 if test "${USE_TINFO}" != "no"; then
27166 pbxlibdir=""
27167 if test "x${TINFO_DIR}" != "x"; then
27168 if test -d ${TINFO_DIR}/lib; then
27169 pbxlibdir="-L${TINFO_DIR}/lib"
27170 else
27171 pbxlibdir="-L${TINFO_DIR}"
27174 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
27175 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
27176 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 else
27179 ac_check_lib_save_LIBS=$LIBS
27180 LIBS="-ltinfo ${pbxlibdir} $LIBS"
27181 cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h. */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27191 #ifdef __cplusplus
27192 extern "C"
27193 #endif
27194 char tgetent ();
27196 main ()
27198 return tgetent ();
27200 return 0;
27202 _ACEOF
27203 rm -f conftest.$ac_objext conftest$ac_exeext
27204 if { (ac_try="$ac_link"
27205 case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_link") 2>conftest.er1
27211 ac_status=$?
27212 grep -v '^ *+' conftest.er1 >conftest.err
27213 rm -f conftest.er1
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } && {
27217 test -z "$ac_c_werror_flag" ||
27218 test ! -s conftest.err
27219 } && test -s conftest$ac_exeext &&
27220 $as_test_x conftest$ac_exeext; then
27221 ac_cv_lib_tinfo_tgetent=yes
27222 else
27223 echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27226 ac_cv_lib_tinfo_tgetent=no
27229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27230 conftest$ac_exeext conftest.$ac_ext
27231 LIBS=$ac_check_lib_save_LIBS
27233 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
27234 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
27235 if test $ac_cv_lib_tinfo_tgetent = yes; then
27236 AST_TINFO_FOUND=yes
27237 else
27238 AST_TINFO_FOUND=no
27242 if test "${AST_TINFO_FOUND}" = "yes"; then
27243 TINFO_LIB="-ltinfo "
27244 TINFO_HEADER_FOUND="1"
27245 if test "x${TINFO_DIR}" != "x"; then
27246 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
27247 TINFO_INCLUDE="-I${TINFO_DIR}/include"
27248 saved_cppflags="${CPPFLAGS}"
27249 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
27250 if test "x" != "x" ; then
27251 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
27252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27253 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
27254 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
27255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27256 echo $ECHO_N "(cached) $ECHO_C" >&6
27258 ac_res=`eval echo '${'$as_ac_Header'}'`
27259 { echo "$as_me:$LINENO: result: $ac_res" >&5
27260 echo "${ECHO_T}$ac_res" >&6; }
27261 else
27262 # Is the header compilable?
27263 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
27264 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
27265 cat >conftest.$ac_ext <<_ACEOF
27266 /* confdefs.h. */
27267 _ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27271 $ac_includes_default
27272 #include <${TINFO_DIR}/include/>
27273 _ACEOF
27274 rm -f conftest.$ac_objext
27275 if { (ac_try="$ac_compile"
27276 case "(($ac_try" in
27277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278 *) ac_try_echo=$ac_try;;
27279 esac
27280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281 (eval "$ac_compile") 2>conftest.er1
27282 ac_status=$?
27283 grep -v '^ *+' conftest.er1 >conftest.err
27284 rm -f conftest.er1
27285 cat conftest.err >&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); } && {
27288 test -z "$ac_c_werror_flag" ||
27289 test ! -s conftest.err
27290 } && test -s conftest.$ac_objext; then
27291 ac_header_compiler=yes
27292 else
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27296 ac_header_compiler=no
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27301 echo "${ECHO_T}$ac_header_compiler" >&6; }
27303 # Is the header present?
27304 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
27305 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
27306 cat >conftest.$ac_ext <<_ACEOF
27307 /* confdefs.h. */
27308 _ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h. */
27312 #include <${TINFO_DIR}/include/>
27313 _ACEOF
27314 if { (ac_try="$ac_cpp conftest.$ac_ext"
27315 case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27321 ac_status=$?
27322 grep -v '^ *+' conftest.er1 >conftest.err
27323 rm -f conftest.er1
27324 cat conftest.err >&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); } >/dev/null && {
27327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27328 test ! -s conftest.err
27329 }; then
27330 ac_header_preproc=yes
27331 else
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27335 ac_header_preproc=no
27338 rm -f conftest.err conftest.$ac_ext
27339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27340 echo "${ECHO_T}$ac_header_preproc" >&6; }
27342 # So? What about this header?
27343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27344 yes:no: )
27345 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
27346 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
27348 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
27349 ac_header_preproc=yes
27351 no:yes:* )
27352 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
27353 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
27355 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
27357 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
27359 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
27361 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
27362 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
27363 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
27366 esac
27367 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
27368 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
27369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27370 echo $ECHO_N "(cached) $ECHO_C" >&6
27371 else
27372 eval "$as_ac_Header=\$ac_header_preproc"
27374 ac_res=`eval echo '${'$as_ac_Header'}'`
27375 { echo "$as_me:$LINENO: result: $ac_res" >&5
27376 echo "${ECHO_T}$ac_res" >&6; }
27379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27380 TINFO_HEADER_FOUND=1
27381 else
27382 TINFO_HEADER_FOUND=0
27387 CPPFLAGS="${saved_cppflags}"
27388 else
27389 if test "x" != "x" ; then
27390 if test "${ac_cv_header_+set}" = set; then
27391 { echo "$as_me:$LINENO: checking for " >&5
27392 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27393 if test "${ac_cv_header_+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27397 echo "${ECHO_T}$ac_cv_header_" >&6; }
27398 else
27399 # Is the header compilable?
27400 { echo "$as_me:$LINENO: checking usability" >&5
27401 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27402 cat >conftest.$ac_ext <<_ACEOF
27403 /* confdefs.h. */
27404 _ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27408 $ac_includes_default
27409 #include <>
27410 _ACEOF
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_compile") 2>conftest.er1
27419 ac_status=$?
27420 grep -v '^ *+' conftest.er1 >conftest.err
27421 rm -f conftest.er1
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } && {
27425 test -z "$ac_c_werror_flag" ||
27426 test ! -s conftest.err
27427 } && test -s conftest.$ac_objext; then
27428 ac_header_compiler=yes
27429 else
27430 echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27433 ac_header_compiler=no
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27438 echo "${ECHO_T}$ac_header_compiler" >&6; }
27440 # Is the header present?
27441 { echo "$as_me:$LINENO: checking presence" >&5
27442 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27443 cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h. */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 #include <>
27450 _ACEOF
27451 if { (ac_try="$ac_cpp conftest.$ac_ext"
27452 case "(($ac_try" in
27453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454 *) ac_try_echo=$ac_try;;
27455 esac
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27458 ac_status=$?
27459 grep -v '^ *+' conftest.er1 >conftest.err
27460 rm -f conftest.er1
27461 cat conftest.err >&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } >/dev/null && {
27464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27465 test ! -s conftest.err
27466 }; then
27467 ac_header_preproc=yes
27468 else
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ac_header_preproc=no
27475 rm -f conftest.err conftest.$ac_ext
27476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27477 echo "${ECHO_T}$ac_header_preproc" >&6; }
27479 # So? What about this header?
27480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27481 yes:no: )
27482 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27483 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27484 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27485 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27486 ac_header_preproc=yes
27488 no:yes:* )
27489 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27490 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27491 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27492 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27494 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27496 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27497 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27498 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27499 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27500 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27503 esac
27504 { echo "$as_me:$LINENO: checking for " >&5
27505 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27506 if test "${ac_cv_header_+set}" = set; then
27507 echo $ECHO_N "(cached) $ECHO_C" >&6
27508 else
27509 ac_cv_header_=$ac_header_preproc
27511 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27512 echo "${ECHO_T}$ac_cv_header_" >&6; }
27515 if test $ac_cv_header_ = yes; then
27516 TINFO_HEADER_FOUND=1
27517 else
27518 TINFO_HEADER_FOUND=0
27524 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
27525 if test ! -z "${TINFO_MANDATORY}" ;
27526 then
27527 { echo "$as_me:$LINENO: ***" >&5
27528 echo "$as_me: ***" >&6;}
27529 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
27530 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
27531 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
27532 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
27533 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27534 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27535 exit 1
27537 TINFO_LIB=""
27538 TINFO_INCLUDE=""
27539 PBX_TINFO=0
27540 else
27541 PBX_TINFO=1
27543 cat >>confdefs.h <<_ACEOF
27544 #define HAVE_TINFO 1
27545 _ACEOF
27548 elif test ! -z "${TINFO_MANDATORY}";
27549 then
27550 { echo "$as_me:$LINENO: ***" >&5
27551 echo "$as_me: ***" >&6;}
27552 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
27553 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
27554 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27555 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27556 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
27557 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
27558 exit 1
27563 if test "${host_os}" != "linux-gnu" ; then
27564 tonezone_extra="-lm"
27568 if test "${USE_TONEZONE}" != "no"; then
27569 pbxlibdir=""
27570 if test "x${TONEZONE_DIR}" != "x"; then
27571 if test -d ${TONEZONE_DIR}/lib; then
27572 pbxlibdir="-L${TONEZONE_DIR}/lib"
27573 else
27574 pbxlibdir="-L${TONEZONE_DIR}"
27577 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
27578 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
27579 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
27580 echo $ECHO_N "(cached) $ECHO_C" >&6
27581 else
27582 ac_check_lib_save_LIBS=$LIBS
27583 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
27584 cat >conftest.$ac_ext <<_ACEOF
27585 /* confdefs.h. */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27594 #ifdef __cplusplus
27595 extern "C"
27596 #endif
27597 char tone_zone_find ();
27599 main ()
27601 return tone_zone_find ();
27603 return 0;
27605 _ACEOF
27606 rm -f conftest.$ac_objext conftest$ac_exeext
27607 if { (ac_try="$ac_link"
27608 case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_link") 2>conftest.er1
27614 ac_status=$?
27615 grep -v '^ *+' conftest.er1 >conftest.err
27616 rm -f conftest.er1
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } && {
27620 test -z "$ac_c_werror_flag" ||
27621 test ! -s conftest.err
27622 } && test -s conftest$ac_exeext &&
27623 $as_test_x conftest$ac_exeext; then
27624 ac_cv_lib_tonezone_tone_zone_find=yes
27625 else
27626 echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27629 ac_cv_lib_tonezone_tone_zone_find=no
27632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27633 conftest$ac_exeext conftest.$ac_ext
27634 LIBS=$ac_check_lib_save_LIBS
27636 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
27637 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
27638 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
27639 AST_TONEZONE_FOUND=yes
27640 else
27641 AST_TONEZONE_FOUND=no
27645 if test "${AST_TONEZONE_FOUND}" = "yes"; then
27646 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
27647 TONEZONE_HEADER_FOUND="1"
27648 if test "x${TONEZONE_DIR}" != "x"; then
27649 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
27650 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
27651 saved_cppflags="${CPPFLAGS}"
27652 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
27653 if test "xzaptel/tonezone.h" != "x" ; then
27654 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
27655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27656 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27657 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27661 ac_res=`eval echo '${'$as_ac_Header'}'`
27662 { echo "$as_me:$LINENO: result: $ac_res" >&5
27663 echo "${ECHO_T}$ac_res" >&6; }
27664 else
27665 # Is the header compilable?
27666 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
27667 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
27668 cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h. */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 $ac_includes_default
27675 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27676 _ACEOF
27677 rm -f conftest.$ac_objext
27678 if { (ac_try="$ac_compile"
27679 case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_compile") 2>conftest.er1
27685 ac_status=$?
27686 grep -v '^ *+' conftest.er1 >conftest.err
27687 rm -f conftest.er1
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } && {
27691 test -z "$ac_c_werror_flag" ||
27692 test ! -s conftest.err
27693 } && test -s conftest.$ac_objext; then
27694 ac_header_compiler=yes
27695 else
27696 echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27699 ac_header_compiler=no
27702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27704 echo "${ECHO_T}$ac_header_compiler" >&6; }
27706 # Is the header present?
27707 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
27708 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
27709 cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h. */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
27716 _ACEOF
27717 if { (ac_try="$ac_cpp conftest.$ac_ext"
27718 case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27721 esac
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27724 ac_status=$?
27725 grep -v '^ *+' conftest.er1 >conftest.err
27726 rm -f conftest.er1
27727 cat conftest.err >&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } >/dev/null && {
27730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27731 test ! -s conftest.err
27732 }; then
27733 ac_header_preproc=yes
27734 else
27735 echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27738 ac_header_preproc=no
27741 rm -f conftest.err conftest.$ac_ext
27742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27743 echo "${ECHO_T}$ac_header_preproc" >&6; }
27745 # So? What about this header?
27746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27747 yes:no: )
27748 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27749 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27750 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
27751 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27752 ac_header_preproc=yes
27754 no:yes:* )
27755 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
27756 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
27757 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27758 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27759 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
27760 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27761 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27762 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27764 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27765 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27766 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27769 esac
27770 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
27771 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
27772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775 eval "$as_ac_Header=\$ac_header_preproc"
27777 ac_res=`eval echo '${'$as_ac_Header'}'`
27778 { echo "$as_me:$LINENO: result: $ac_res" >&5
27779 echo "${ECHO_T}$ac_res" >&6; }
27782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27783 TONEZONE_HEADER_FOUND=1
27784 else
27785 TONEZONE_HEADER_FOUND=0
27790 CPPFLAGS="${saved_cppflags}"
27791 else
27792 if test "xzaptel/tonezone.h" != "x" ; then
27793 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27794 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27795 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27796 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27797 echo $ECHO_N "(cached) $ECHO_C" >&6
27799 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27800 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27801 else
27802 # Is the header compilable?
27803 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
27804 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
27805 cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h. */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 $ac_includes_default
27812 #include <zaptel/tonezone.h>
27813 _ACEOF
27814 rm -f conftest.$ac_objext
27815 if { (ac_try="$ac_compile"
27816 case "(($ac_try" in
27817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27818 *) ac_try_echo=$ac_try;;
27819 esac
27820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27821 (eval "$ac_compile") 2>conftest.er1
27822 ac_status=$?
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } && {
27828 test -z "$ac_c_werror_flag" ||
27829 test ! -s conftest.err
27830 } && test -s conftest.$ac_objext; then
27831 ac_header_compiler=yes
27832 else
27833 echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27836 ac_header_compiler=no
27839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27841 echo "${ECHO_T}$ac_header_compiler" >&6; }
27843 # Is the header present?
27844 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
27845 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
27846 cat >conftest.$ac_ext <<_ACEOF
27847 /* confdefs.h. */
27848 _ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 #include <zaptel/tonezone.h>
27853 _ACEOF
27854 if { (ac_try="$ac_cpp conftest.$ac_ext"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27858 esac
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27861 ac_status=$?
27862 grep -v '^ *+' conftest.er1 >conftest.err
27863 rm -f conftest.er1
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } >/dev/null && {
27867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27868 test ! -s conftest.err
27869 }; then
27870 ac_header_preproc=yes
27871 else
27872 echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27875 ac_header_preproc=no
27878 rm -f conftest.err conftest.$ac_ext
27879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27880 echo "${ECHO_T}$ac_header_preproc" >&6; }
27882 # So? What about this header?
27883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27884 yes:no: )
27885 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
27886 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27887 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
27888 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
27889 ac_header_preproc=yes
27891 no:yes:* )
27892 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
27893 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
27895 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
27896 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
27897 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
27898 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
27899 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
27900 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
27901 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
27902 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
27903 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
27906 esac
27907 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
27908 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
27909 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
27914 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
27915 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
27918 if test $ac_cv_header_zaptel_tonezone_h = yes; then
27919 TONEZONE_HEADER_FOUND=1
27920 else
27921 TONEZONE_HEADER_FOUND=0
27927 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
27928 if test ! -z "${TONEZONE_MANDATORY}" ;
27929 then
27930 { echo "$as_me:$LINENO: ***" >&5
27931 echo "$as_me: ***" >&6;}
27932 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
27933 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
27934 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
27935 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
27936 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27937 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27938 exit 1
27940 TONEZONE_LIB=""
27941 TONEZONE_INCLUDE=""
27942 PBX_TONEZONE=0
27943 else
27944 PBX_TONEZONE=1
27946 cat >>confdefs.h <<_ACEOF
27947 #define HAVE_TONEZONE 1
27948 _ACEOF
27951 elif test ! -z "${TONEZONE_MANDATORY}";
27952 then
27953 { echo "$as_me:$LINENO: ***" >&5
27954 echo "$as_me: ***" >&6;}
27955 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
27956 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
27957 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27958 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27959 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
27960 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
27961 exit 1
27967 if test "${USE_VORBIS}" != "no"; then
27968 pbxlibdir=""
27969 if test "x${VORBIS_DIR}" != "x"; then
27970 if test -d ${VORBIS_DIR}/lib; then
27971 pbxlibdir="-L${VORBIS_DIR}/lib"
27972 else
27973 pbxlibdir="-L${VORBIS_DIR}"
27976 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
27977 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
27978 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27980 else
27981 ac_check_lib_save_LIBS=$LIBS
27982 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
27983 cat >conftest.$ac_ext <<_ACEOF
27984 /* confdefs.h. */
27985 _ACEOF
27986 cat confdefs.h >>conftest.$ac_ext
27987 cat >>conftest.$ac_ext <<_ACEOF
27988 /* end confdefs.h. */
27990 /* Override any GCC internal prototype to avoid an error.
27991 Use char because int might match the return type of a GCC
27992 builtin and then its argument prototype would still apply. */
27993 #ifdef __cplusplus
27994 extern "C"
27995 #endif
27996 char vorbis_info_init ();
27998 main ()
28000 return vorbis_info_init ();
28002 return 0;
28004 _ACEOF
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_link") 2>conftest.er1
28013 ac_status=$?
28014 grep -v '^ *+' conftest.er1 >conftest.err
28015 rm -f conftest.er1
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest$ac_exeext &&
28022 $as_test_x conftest$ac_exeext; then
28023 ac_cv_lib_vorbis_vorbis_info_init=yes
28024 else
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28028 ac_cv_lib_vorbis_vorbis_info_init=no
28031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28032 conftest$ac_exeext conftest.$ac_ext
28033 LIBS=$ac_check_lib_save_LIBS
28035 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
28036 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
28037 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
28038 AST_VORBIS_FOUND=yes
28039 else
28040 AST_VORBIS_FOUND=no
28044 if test "${AST_VORBIS_FOUND}" = "yes"; then
28045 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
28046 VORBIS_HEADER_FOUND="1"
28047 if test "x${VORBIS_DIR}" != "x"; then
28048 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
28049 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
28050 saved_cppflags="${CPPFLAGS}"
28051 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
28052 if test "xvorbis/codec.h" != "x" ; then
28053 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
28054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28055 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
28056 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
28057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28060 ac_res=`eval echo '${'$as_ac_Header'}'`
28061 { echo "$as_me:$LINENO: result: $ac_res" >&5
28062 echo "${ECHO_T}$ac_res" >&6; }
28063 else
28064 # Is the header compilable?
28065 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
28066 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
28067 cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h. */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h. */
28073 $ac_includes_default
28074 #include <${VORBIS_DIR}/include/vorbis/codec.h>
28075 _ACEOF
28076 rm -f conftest.$ac_objext
28077 if { (ac_try="$ac_compile"
28078 case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28081 esac
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_compile") 2>conftest.er1
28084 ac_status=$?
28085 grep -v '^ *+' conftest.er1 >conftest.err
28086 rm -f conftest.er1
28087 cat conftest.err >&5
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } && {
28090 test -z "$ac_c_werror_flag" ||
28091 test ! -s conftest.err
28092 } && test -s conftest.$ac_objext; then
28093 ac_header_compiler=yes
28094 else
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 ac_header_compiler=no
28101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28103 echo "${ECHO_T}$ac_header_compiler" >&6; }
28105 # Is the header present?
28106 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
28107 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
28108 cat >conftest.$ac_ext <<_ACEOF
28109 /* confdefs.h. */
28110 _ACEOF
28111 cat confdefs.h >>conftest.$ac_ext
28112 cat >>conftest.$ac_ext <<_ACEOF
28113 /* end confdefs.h. */
28114 #include <${VORBIS_DIR}/include/vorbis/codec.h>
28115 _ACEOF
28116 if { (ac_try="$ac_cpp conftest.$ac_ext"
28117 case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28120 esac
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28123 ac_status=$?
28124 grep -v '^ *+' conftest.er1 >conftest.err
28125 rm -f conftest.er1
28126 cat conftest.err >&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } >/dev/null && {
28129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28130 test ! -s conftest.err
28131 }; then
28132 ac_header_preproc=yes
28133 else
28134 echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.$ac_ext >&5
28137 ac_header_preproc=no
28140 rm -f conftest.err conftest.$ac_ext
28141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28142 echo "${ECHO_T}$ac_header_preproc" >&6; }
28144 # So? What about this header?
28145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28146 yes:no: )
28147 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
28148 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28149 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
28150 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
28151 ac_header_preproc=yes
28153 no:yes:* )
28154 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
28155 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
28156 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
28157 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
28158 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
28159 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
28160 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
28161 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
28162 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
28163 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
28164 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
28165 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
28168 esac
28169 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
28170 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
28171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28173 else
28174 eval "$as_ac_Header=\$ac_header_preproc"
28176 ac_res=`eval echo '${'$as_ac_Header'}'`
28177 { echo "$as_me:$LINENO: result: $ac_res" >&5
28178 echo "${ECHO_T}$ac_res" >&6; }
28181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28182 VORBIS_HEADER_FOUND=1
28183 else
28184 VORBIS_HEADER_FOUND=0
28189 CPPFLAGS="${saved_cppflags}"
28190 else
28191 if test "xvorbis/codec.h" != "x" ; then
28192 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28193 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
28194 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
28195 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28196 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
28199 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
28200 else
28201 # Is the header compilable?
28202 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
28203 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
28204 cat >conftest.$ac_ext <<_ACEOF
28205 /* confdefs.h. */
28206 _ACEOF
28207 cat confdefs.h >>conftest.$ac_ext
28208 cat >>conftest.$ac_ext <<_ACEOF
28209 /* end confdefs.h. */
28210 $ac_includes_default
28211 #include <vorbis/codec.h>
28212 _ACEOF
28213 rm -f conftest.$ac_objext
28214 if { (ac_try="$ac_compile"
28215 case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28218 esac
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_compile") 2>conftest.er1
28221 ac_status=$?
28222 grep -v '^ *+' conftest.er1 >conftest.err
28223 rm -f conftest.er1
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && {
28227 test -z "$ac_c_werror_flag" ||
28228 test ! -s conftest.err
28229 } && test -s conftest.$ac_objext; then
28230 ac_header_compiler=yes
28231 else
28232 echo "$as_me: failed program was:" >&5
28233 sed 's/^/| /' conftest.$ac_ext >&5
28235 ac_header_compiler=no
28238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28240 echo "${ECHO_T}$ac_header_compiler" >&6; }
28242 # Is the header present?
28243 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
28244 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
28245 cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h. */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 #include <vorbis/codec.h>
28252 _ACEOF
28253 if { (ac_try="$ac_cpp conftest.$ac_ext"
28254 case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28257 esac
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28260 ac_status=$?
28261 grep -v '^ *+' conftest.er1 >conftest.err
28262 rm -f conftest.er1
28263 cat conftest.err >&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } >/dev/null && {
28266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28267 test ! -s conftest.err
28268 }; then
28269 ac_header_preproc=yes
28270 else
28271 echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.$ac_ext >&5
28274 ac_header_preproc=no
28277 rm -f conftest.err conftest.$ac_ext
28278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28279 echo "${ECHO_T}$ac_header_preproc" >&6; }
28281 # So? What about this header?
28282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28283 yes:no: )
28284 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
28285 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28286 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
28287 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
28288 ac_header_preproc=yes
28290 no:yes:* )
28291 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
28292 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
28293 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
28294 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
28295 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
28296 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
28297 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
28298 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
28299 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
28300 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
28301 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
28302 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
28305 esac
28306 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
28307 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
28308 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311 ac_cv_header_vorbis_codec_h=$ac_header_preproc
28313 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
28314 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
28317 if test $ac_cv_header_vorbis_codec_h = yes; then
28318 VORBIS_HEADER_FOUND=1
28319 else
28320 VORBIS_HEADER_FOUND=0
28326 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
28327 if test ! -z "${VORBIS_MANDATORY}" ;
28328 then
28329 { echo "$as_me:$LINENO: ***" >&5
28330 echo "$as_me: ***" >&6;}
28331 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
28332 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
28333 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
28334 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
28335 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
28336 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
28337 exit 1
28339 VORBIS_LIB=""
28340 VORBIS_INCLUDE=""
28341 PBX_VORBIS=0
28342 else
28343 PBX_VORBIS=1
28345 cat >>confdefs.h <<_ACEOF
28346 #define HAVE_VORBIS 1
28347 _ACEOF
28350 elif test ! -z "${VORBIS_MANDATORY}";
28351 then
28352 { echo "$as_me:$LINENO: ***" >&5
28353 echo "$as_me: ***" >&6;}
28354 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
28355 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
28356 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28357 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28358 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
28359 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
28360 exit 1
28365 ac_ext=cpp
28366 ac_cpp='$CXXCPP $CPPFLAGS'
28367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28372 if test "${USE_VPB}" != "no"; then
28373 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
28374 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
28375 saved_libs="${LIBS}"
28376 saved_cppflags="${CPPFLAGS}"
28377 if test "x${VPB_DIR}" != "x"; then
28378 if test -d ${VPB_DIR}/lib; then
28379 vpblibdir=${VPB_DIR}/lib
28380 else
28381 vpblibdir=${VPB_DIR}
28383 LIBS="${LIBS} -L${vpblibdir}"
28384 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
28386 LIBS="${LIBS} -lvpb -lpthread"
28387 cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h. */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28394 #include <vpbapi.h>
28396 main ()
28398 int q = vpb_open(0,0);
28400 return 0;
28403 _ACEOF
28404 rm -f conftest.$ac_objext conftest$ac_exeext
28405 if { (ac_try="$ac_link"
28406 case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28409 esac
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_link") 2>conftest.er1
28412 ac_status=$?
28413 grep -v '^ *+' conftest.er1 >conftest.err
28414 rm -f conftest.er1
28415 cat conftest.err >&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_cxx_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest$ac_exeext &&
28421 $as_test_x conftest$ac_exeext; then
28422 { echo "$as_me:$LINENO: result: yes" >&5
28423 echo "${ECHO_T}yes" >&6; }
28424 ac_cv_lib_vpb_vpb_open="yes"
28426 else
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28430 { echo "$as_me:$LINENO: result: no" >&5
28431 echo "${ECHO_T}no" >&6; }
28432 ac_cv_lib_vpb_vpb_open="no"
28437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28438 conftest$ac_exeext conftest.$ac_ext
28439 LIBS="${saved_libs}"
28440 CPPFLAGS="${saved_cppflags}"
28441 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
28442 VPB_LIB="-lvpb"
28443 if test "${VPB_DIR}" != ""; then
28444 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
28445 VPB_INCLUDE="-I${VPB_DIR}/include"
28447 PBX_VPB=1
28449 cat >>confdefs.h <<\_ACEOF
28450 #define HAVE_VPB 1
28451 _ACEOF
28453 elif test ! -z "${VPB_MANDATORY}"; then
28454 { echo "$as_me:$LINENO: ***" >&5
28455 echo "$as_me: ***" >&6;}
28456 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
28457 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
28458 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28459 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28460 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
28461 echo "$as_me: *** including --without-vpb." >&6;}
28462 exit 1
28466 ac_ext=c
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28474 if test "${USE_ZLIB}" != "no"; then
28475 pbxlibdir=""
28476 if test "x${ZLIB_DIR}" != "x"; then
28477 if test -d ${ZLIB_DIR}/lib; then
28478 pbxlibdir="-L${ZLIB_DIR}/lib"
28479 else
28480 pbxlibdir="-L${ZLIB_DIR}"
28483 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
28484 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
28485 if test "${ac_cv_lib_z_compress+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488 ac_check_lib_save_LIBS=$LIBS
28489 LIBS="-lz ${pbxlibdir} $LIBS"
28490 cat >conftest.$ac_ext <<_ACEOF
28491 /* confdefs.h. */
28492 _ACEOF
28493 cat confdefs.h >>conftest.$ac_ext
28494 cat >>conftest.$ac_ext <<_ACEOF
28495 /* end confdefs.h. */
28497 /* Override any GCC internal prototype to avoid an error.
28498 Use char because int might match the return type of a GCC
28499 builtin and then its argument prototype would still apply. */
28500 #ifdef __cplusplus
28501 extern "C"
28502 #endif
28503 char compress ();
28505 main ()
28507 return compress ();
28509 return 0;
28511 _ACEOF
28512 rm -f conftest.$ac_objext conftest$ac_exeext
28513 if { (ac_try="$ac_link"
28514 case "(($ac_try" in
28515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28516 *) ac_try_echo=$ac_try;;
28517 esac
28518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28519 (eval "$ac_link") 2>conftest.er1
28520 ac_status=$?
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } && {
28526 test -z "$ac_c_werror_flag" ||
28527 test ! -s conftest.err
28528 } && test -s conftest$ac_exeext &&
28529 $as_test_x conftest$ac_exeext; then
28530 ac_cv_lib_z_compress=yes
28531 else
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28535 ac_cv_lib_z_compress=no
28538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28539 conftest$ac_exeext conftest.$ac_ext
28540 LIBS=$ac_check_lib_save_LIBS
28542 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28543 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
28544 if test $ac_cv_lib_z_compress = yes; then
28545 AST_ZLIB_FOUND=yes
28546 else
28547 AST_ZLIB_FOUND=no
28551 if test "${AST_ZLIB_FOUND}" = "yes"; then
28552 ZLIB_LIB="-lz "
28553 ZLIB_HEADER_FOUND="1"
28554 if test "x${ZLIB_DIR}" != "x"; then
28555 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
28556 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
28557 saved_cppflags="${CPPFLAGS}"
28558 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
28559 if test "xzlib.h" != "x" ; then
28560 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
28561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28562 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28563 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28567 ac_res=`eval echo '${'$as_ac_Header'}'`
28568 { echo "$as_me:$LINENO: result: $ac_res" >&5
28569 echo "${ECHO_T}$ac_res" >&6; }
28570 else
28571 # Is the header compilable?
28572 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
28573 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
28574 cat >conftest.$ac_ext <<_ACEOF
28575 /* confdefs.h. */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28580 $ac_includes_default
28581 #include <${ZLIB_DIR}/include/zlib.h>
28582 _ACEOF
28583 rm -f conftest.$ac_objext
28584 if { (ac_try="$ac_compile"
28585 case "(($ac_try" in
28586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587 *) ac_try_echo=$ac_try;;
28588 esac
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590 (eval "$ac_compile") 2>conftest.er1
28591 ac_status=$?
28592 grep -v '^ *+' conftest.er1 >conftest.err
28593 rm -f conftest.er1
28594 cat conftest.err >&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); } && {
28597 test -z "$ac_c_werror_flag" ||
28598 test ! -s conftest.err
28599 } && test -s conftest.$ac_objext; then
28600 ac_header_compiler=yes
28601 else
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28605 ac_header_compiler=no
28608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28610 echo "${ECHO_T}$ac_header_compiler" >&6; }
28612 # Is the header present?
28613 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
28614 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
28615 cat >conftest.$ac_ext <<_ACEOF
28616 /* confdefs.h. */
28617 _ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h. */
28621 #include <${ZLIB_DIR}/include/zlib.h>
28622 _ACEOF
28623 if { (ac_try="$ac_cpp conftest.$ac_ext"
28624 case "(($ac_try" in
28625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626 *) ac_try_echo=$ac_try;;
28627 esac
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28630 ac_status=$?
28631 grep -v '^ *+' conftest.er1 >conftest.err
28632 rm -f conftest.er1
28633 cat conftest.err >&5
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); } >/dev/null && {
28636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28637 test ! -s conftest.err
28638 }; then
28639 ac_header_preproc=yes
28640 else
28641 echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28644 ac_header_preproc=no
28647 rm -f conftest.err conftest.$ac_ext
28648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28649 echo "${ECHO_T}$ac_header_preproc" >&6; }
28651 # So? What about this header?
28652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28653 yes:no: )
28654 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28655 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28656 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
28657 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
28658 ac_header_preproc=yes
28660 no:yes:* )
28661 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
28662 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
28664 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
28665 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
28666 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
28667 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28668 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28669 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
28670 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
28671 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
28672 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
28675 esac
28676 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
28677 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
28678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28679 echo $ECHO_N "(cached) $ECHO_C" >&6
28680 else
28681 eval "$as_ac_Header=\$ac_header_preproc"
28683 ac_res=`eval echo '${'$as_ac_Header'}'`
28684 { echo "$as_me:$LINENO: result: $ac_res" >&5
28685 echo "${ECHO_T}$ac_res" >&6; }
28688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28689 ZLIB_HEADER_FOUND=1
28690 else
28691 ZLIB_HEADER_FOUND=0
28696 CPPFLAGS="${saved_cppflags}"
28697 else
28698 if test "xzlib.h" != "x" ; then
28699 if test "${ac_cv_header_zlib_h+set}" = set; then
28700 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28701 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28702 if test "${ac_cv_header_zlib_h+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28706 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28707 else
28708 # Is the header compilable?
28709 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28710 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28711 cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h. */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h. */
28717 $ac_includes_default
28718 #include <zlib.h>
28719 _ACEOF
28720 rm -f conftest.$ac_objext
28721 if { (ac_try="$ac_compile"
28722 case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_compile") 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && {
28734 test -z "$ac_c_werror_flag" ||
28735 test ! -s conftest.err
28736 } && test -s conftest.$ac_objext; then
28737 ac_header_compiler=yes
28738 else
28739 echo "$as_me: failed program was:" >&5
28740 sed 's/^/| /' conftest.$ac_ext >&5
28742 ac_header_compiler=no
28745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28747 echo "${ECHO_T}$ac_header_compiler" >&6; }
28749 # Is the header present?
28750 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28751 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28752 cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h. */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 #include <zlib.h>
28759 _ACEOF
28760 if { (ac_try="$ac_cpp conftest.$ac_ext"
28761 case "(($ac_try" in
28762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763 *) ac_try_echo=$ac_try;;
28764 esac
28765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28767 ac_status=$?
28768 grep -v '^ *+' conftest.er1 >conftest.err
28769 rm -f conftest.er1
28770 cat conftest.err >&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } >/dev/null && {
28773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28774 test ! -s conftest.err
28775 }; then
28776 ac_header_preproc=yes
28777 else
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28781 ac_header_preproc=no
28784 rm -f conftest.err conftest.$ac_ext
28785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28786 echo "${ECHO_T}$ac_header_preproc" >&6; }
28788 # So? What about this header?
28789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28790 yes:no: )
28791 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28792 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28793 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28794 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28795 ac_header_preproc=yes
28797 no:yes:* )
28798 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28799 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28801 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28802 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28803 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28805 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28806 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28807 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28809 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28812 esac
28813 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28814 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28815 if test "${ac_cv_header_zlib_h+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818 ac_cv_header_zlib_h=$ac_header_preproc
28820 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28821 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28824 if test $ac_cv_header_zlib_h = yes; then
28825 ZLIB_HEADER_FOUND=1
28826 else
28827 ZLIB_HEADER_FOUND=0
28833 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
28834 if test ! -z "${ZLIB_MANDATORY}" ;
28835 then
28836 { echo "$as_me:$LINENO: ***" >&5
28837 echo "$as_me: ***" >&6;}
28838 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
28839 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
28840 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
28841 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
28842 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28843 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28844 exit 1
28846 ZLIB_LIB=""
28847 ZLIB_INCLUDE=""
28848 PBX_ZLIB=0
28849 else
28850 PBX_ZLIB=1
28852 cat >>confdefs.h <<_ACEOF
28853 #define HAVE_ZLIB 1
28854 _ACEOF
28857 elif test ! -z "${ZLIB_MANDATORY}";
28858 then
28859 { echo "$as_me:$LINENO: ***" >&5
28860 echo "$as_me: ***" >&6;}
28861 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
28862 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
28863 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28864 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28865 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
28866 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
28867 exit 1
28872 if test "${USE_ZAPTEL}" != "no"; then
28873 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
28874 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
28875 saved_cppflags="${CPPFLAGS}"
28876 if test "x${ZAPTEL_DIR}" != "x"; then
28877 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28879 cat >conftest.$ac_ext <<_ACEOF
28881 /* confdefs.h. */
28882 _ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h. */
28886 #include <zaptel/zaptel.h>
28888 main ()
28890 int foo = ZT_DIAL_OP_CANCEL;
28892 return 0;
28895 _ACEOF
28896 rm -f conftest.$ac_objext
28897 if { (ac_try="$ac_compile"
28898 case "(($ac_try" in
28899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900 *) ac_try_echo=$ac_try;;
28901 esac
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903 (eval "$ac_compile") 2>conftest.er1
28904 ac_status=$?
28905 grep -v '^ *+' conftest.er1 >conftest.err
28906 rm -f conftest.er1
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } && {
28910 test -z "$ac_c_werror_flag" ||
28911 test ! -s conftest.err
28912 } && test -s conftest.$ac_objext; then
28913 { echo "$as_me:$LINENO: result: yes" >&5
28914 echo "${ECHO_T}yes" >&6; }
28915 ac_cv_zaptel_h="yes"
28917 else
28918 echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28921 { echo "$as_me:$LINENO: result: no" >&5
28922 echo "${ECHO_T}no" >&6; }
28923 ac_cv_zaptel_h="no"
28928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28929 CPPFLAGS="${saved_cppflags}"
28930 if test "${ac_cv_zaptel_h}" = "yes"; then
28931 if test "${ZAPTEL_DIR}" != ""; then
28932 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
28934 PBX_ZAPTEL=1
28936 cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_ZAPTEL 1
28938 _ACEOF
28940 elif test ! -z "${ZAPTEL_MANDATORY}";
28941 then
28942 { echo "$as_me:$LINENO: ***" >&5
28943 echo "$as_me: ***" >&6;}
28944 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
28945 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
28946 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28947 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28948 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
28949 echo "$as_me: *** including --without-zaptel." >&6;}
28950 exit 1
28954 if test "${PBX_ZAPTEL}" = 1; then
28955 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
28956 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
28957 saved_cppflags="${CPPFLAGS}"
28958 if test "x${ZAPTEL_DIR}" != "x"; then
28959 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
28961 cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h. */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 #include <zaptel/zaptel.h>
28970 main ()
28972 int foo = ZT_TONE_DTMF_BASE;
28974 return 0;
28977 _ACEOF
28978 rm -f conftest.$ac_objext
28979 if { (ac_try="$ac_compile"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28983 esac
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_compile") 2>conftest.er1
28986 ac_status=$?
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } && {
28992 test -z "$ac_c_werror_flag" ||
28993 test ! -s conftest.err
28994 } && test -s conftest.$ac_objext; then
28995 { echo "$as_me:$LINENO: result: yes" >&5
28996 echo "${ECHO_T}yes" >&6; }
28997 ac_cv_zaptel_vldtmf="yes"
28999 else
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 { echo "$as_me:$LINENO: result: no" >&5
29004 echo "${ECHO_T}no" >&6; }
29005 ac_cv_zaptel_vldtmf="no"
29010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29011 CPPFLAGS="${saved_cppflags}"
29012 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
29013 PBX_ZAPTEL_VLDTMF=1
29015 { echo "$as_me:$LINENO: checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h" >&5
29016 echo $ECHO_N "checking for ZT_TCOP_TRANSCODE in zaptel/zaptel.h... $ECHO_C" >&6; }
29017 saved_cppflags="${CPPFLAGS}"
29018 if test "x${ZAPTEL_DIR}" != "x"; then
29019 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
29021 cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h. */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 #include <zaptel/zaptel.h>
29030 main ()
29032 int foo = ZT_TCOP_TRANSCODE;
29034 return 0;
29037 _ACEOF
29038 rm -f conftest.$ac_objext
29039 if { (ac_try="$ac_compile"
29040 case "(($ac_try" in
29041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29043 esac
29044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045 (eval "$ac_compile") 2>conftest.er1
29046 ac_status=$?
29047 grep -v '^ *+' conftest.er1 >conftest.err
29048 rm -f conftest.er1
29049 cat conftest.err >&5
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); } && {
29052 test -z "$ac_c_werror_flag" ||
29053 test ! -s conftest.err
29054 } && test -s conftest.$ac_objext; then
29055 { echo "$as_me:$LINENO: result: yes" >&5
29056 echo "${ECHO_T}yes" >&6; }
29057 ac_cv_zaptel_transcode="yes"
29059 else
29060 echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29063 { echo "$as_me:$LINENO: result: no" >&5
29064 echo "${ECHO_T}no" >&6; }
29065 ac_cv_zaptel_transcode="no"
29070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29071 CPPFLAGS="${saved_cppflags}"
29072 if test "${ac_cv_zaptel_transcode}" = "yes"; then
29073 PBX_ZAPTEL_TRANSCODE=1
29079 EDITLINE_LIB=""
29080 if test "x$TERMCAP_LIB" != "x" ; then
29081 EDITLINE_LIB="$TERMCAP_LIB"
29082 elif test "x$TINFO_LIB" != "x" ; then
29083 EDITLINE_LIB="$TINFO_LIB"
29084 elif test "x$CURSES_LIB" != "x" ; then
29085 EDITLINE_LIB="$CURSES_LIB"
29086 elif test "x$NCURSES_LIB" != "x" ; then
29087 EDITLINE_LIB="$NCURSES_LIB"
29088 else
29089 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
29090 echo "$as_me: error: *** termcap support not found" >&2;}
29091 { (exit 1); exit 1; }; }
29095 if test "${ac_cv_header_h323_h+set}" = set; then
29096 { echo "$as_me:$LINENO: checking for h323.h" >&5
29097 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
29098 if test "${ac_cv_header_h323_h+set}" = set; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
29101 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
29102 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
29103 else
29104 # Is the header compilable?
29105 { echo "$as_me:$LINENO: checking h323.h usability" >&5
29106 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
29107 cat >conftest.$ac_ext <<_ACEOF
29108 /* confdefs.h. */
29109 _ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h. */
29113 $ac_includes_default
29114 #include <h323.h>
29115 _ACEOF
29116 rm -f conftest.$ac_objext
29117 if { (ac_try="$ac_compile"
29118 case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29121 esac
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_compile") 2>conftest.er1
29124 ac_status=$?
29125 grep -v '^ *+' conftest.er1 >conftest.err
29126 rm -f conftest.er1
29127 cat conftest.err >&5
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); } && {
29130 test -z "$ac_c_werror_flag" ||
29131 test ! -s conftest.err
29132 } && test -s conftest.$ac_objext; then
29133 ac_header_compiler=yes
29134 else
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29138 ac_header_compiler=no
29141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29143 echo "${ECHO_T}$ac_header_compiler" >&6; }
29145 # Is the header present?
29146 { echo "$as_me:$LINENO: checking h323.h presence" >&5
29147 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
29148 cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h. */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29154 #include <h323.h>
29155 _ACEOF
29156 if { (ac_try="$ac_cpp conftest.$ac_ext"
29157 case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29160 esac
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29163 ac_status=$?
29164 grep -v '^ *+' conftest.er1 >conftest.err
29165 rm -f conftest.er1
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } >/dev/null && {
29169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29170 test ! -s conftest.err
29171 }; then
29172 ac_header_preproc=yes
29173 else
29174 echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29177 ac_header_preproc=no
29180 rm -f conftest.err conftest.$ac_ext
29181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29182 echo "${ECHO_T}$ac_header_preproc" >&6; }
29184 # So? What about this header?
29185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29186 yes:no: )
29187 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
29188 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
29190 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
29191 ac_header_preproc=yes
29193 no:yes:* )
29194 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
29195 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
29197 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
29199 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
29201 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
29203 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
29205 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
29208 esac
29209 { echo "$as_me:$LINENO: checking for h323.h" >&5
29210 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
29211 if test "${ac_cv_header_h323_h+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29213 else
29214 ac_cv_header_h323_h=$ac_header_preproc
29216 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
29217 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
29220 if test $ac_cv_header_h323_h = yes; then
29221 PBX_H323=1
29222 else
29223 PBX_H323=0
29229 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
29230 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
29231 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
29232 echo $ECHO_N "(cached) $ECHO_C" >&6
29233 else
29234 cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h. */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29241 #include <linux/version.h>
29242 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
29243 #include <linux/compiler.h>
29244 #endif
29247 #include <linux/ixjuser.h>
29248 _ACEOF
29249 rm -f conftest.$ac_objext
29250 if { (ac_try="$ac_compile"
29251 case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_compile") 2>conftest.er1
29257 ac_status=$?
29258 grep -v '^ *+' conftest.er1 >conftest.err
29259 rm -f conftest.er1
29260 cat conftest.err >&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } && {
29263 test -z "$ac_c_werror_flag" ||
29264 test ! -s conftest.err
29265 } && test -s conftest.$ac_objext; then
29266 ac_cv_header_linux_ixjuser_h=yes
29267 else
29268 echo "$as_me: failed program was:" >&5
29269 sed 's/^/| /' conftest.$ac_ext >&5
29271 ac_cv_header_linux_ixjuser_h=no
29274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29276 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
29277 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
29278 if test $ac_cv_header_linux_ixjuser_h = yes; then
29279 PBX_IXJUSER=1
29280 else
29281 PBX_IXJUSER=0
29287 PBX_GTK=0
29288 if test -n "$ac_tool_prefix"; then
29289 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
29290 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
29291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29293 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29295 else
29296 if test -n "$GTKCONFIG"; then
29297 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
29298 else
29299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29300 for as_dir in $PATH
29302 IFS=$as_save_IFS
29303 test -z "$as_dir" && as_dir=.
29304 for ac_exec_ext in '' $ac_executable_extensions; do
29305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29306 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
29307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29308 break 2
29310 done
29311 done
29312 IFS=$as_save_IFS
29316 GTKCONFIG=$ac_cv_prog_GTKCONFIG
29317 if test -n "$GTKCONFIG"; then
29318 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
29319 echo "${ECHO_T}$GTKCONFIG" >&6; }
29320 else
29321 { echo "$as_me:$LINENO: result: no" >&5
29322 echo "${ECHO_T}no" >&6; }
29327 if test -z "$ac_cv_prog_GTKCONFIG"; then
29328 ac_ct_GTKCONFIG=$GTKCONFIG
29329 # Extract the first word of "gtk-config", so it can be a program name with args.
29330 set dummy gtk-config; ac_word=$2
29331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29333 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29335 else
29336 if test -n "$ac_ct_GTKCONFIG"; then
29337 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
29338 else
29339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29340 for as_dir in $PATH
29342 IFS=$as_save_IFS
29343 test -z "$as_dir" && as_dir=.
29344 for ac_exec_ext in '' $ac_executable_extensions; do
29345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29346 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
29347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29348 break 2
29350 done
29351 done
29352 IFS=$as_save_IFS
29356 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
29357 if test -n "$ac_ct_GTKCONFIG"; then
29358 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
29359 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
29360 else
29361 { echo "$as_me:$LINENO: result: no" >&5
29362 echo "${ECHO_T}no" >&6; }
29365 if test "x$ac_ct_GTKCONFIG" = x; then
29366 GTKCONFIG="No"
29367 else
29368 case $cross_compiling:$ac_tool_warned in
29369 yes:)
29370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29371 whose name does not start with the host triplet. If you think this
29372 configuration is useful to you, please write to autoconf@gnu.org." >&5
29373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29374 whose name does not start with the host triplet. If you think this
29375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29376 ac_tool_warned=yes ;;
29377 esac
29378 GTKCONFIG=$ac_ct_GTKCONFIG
29380 else
29381 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
29384 if test ! "x${GTKCONFIG}" = xNo; then
29385 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
29386 GTK_LIB=$(${GTKCONFIG} --libs gthread)
29387 PBX_GTK=1
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_GTK 1
29391 _ACEOF
29398 if test "${USE_CURL}" != "no"; then
29399 if test -n "$ac_tool_prefix"; then
29400 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
29401 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
29402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29404 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
29405 echo $ECHO_N "(cached) $ECHO_C" >&6
29406 else
29407 case $CURL_CONFIG in
29408 [\\/]* | ?:[\\/]*)
29409 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
29412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29413 for as_dir in $PATH
29415 IFS=$as_save_IFS
29416 test -z "$as_dir" && as_dir=.
29417 for ac_exec_ext in '' $ac_executable_extensions; do
29418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29419 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29421 break 2
29423 done
29424 done
29425 IFS=$as_save_IFS
29428 esac
29430 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
29431 if test -n "$CURL_CONFIG"; then
29432 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
29433 echo "${ECHO_T}$CURL_CONFIG" >&6; }
29434 else
29435 { echo "$as_me:$LINENO: result: no" >&5
29436 echo "${ECHO_T}no" >&6; }
29441 if test -z "$ac_cv_path_CURL_CONFIG"; then
29442 ac_pt_CURL_CONFIG=$CURL_CONFIG
29443 # Extract the first word of "curl-config", so it can be a program name with args.
29444 set dummy curl-config; ac_word=$2
29445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29447 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450 case $ac_pt_CURL_CONFIG in
29451 [\\/]* | ?:[\\/]*)
29452 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
29455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29456 for as_dir in $PATH
29458 IFS=$as_save_IFS
29459 test -z "$as_dir" && as_dir=.
29460 for ac_exec_ext in '' $ac_executable_extensions; do
29461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29462 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29464 break 2
29466 done
29467 done
29468 IFS=$as_save_IFS
29471 esac
29473 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
29474 if test -n "$ac_pt_CURL_CONFIG"; then
29475 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
29476 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
29477 else
29478 { echo "$as_me:$LINENO: result: no" >&5
29479 echo "${ECHO_T}no" >&6; }
29482 if test "x$ac_pt_CURL_CONFIG" = x; then
29483 CURL_CONFIG="No"
29484 else
29485 case $cross_compiling:$ac_tool_warned in
29486 yes:)
29487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29488 whose name does not start with the host triplet. If you think this
29489 configuration is useful to you, please write to autoconf@gnu.org." >&5
29490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29491 whose name does not start with the host triplet. If you think this
29492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29493 ac_tool_warned=yes ;;
29494 esac
29495 CURL_CONFIG=$ac_pt_CURL_CONFIG
29497 else
29498 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
29501 if test ! x"${CURL_CONFIG}" = xNo; then
29502 # check for version
29503 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
29504 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
29505 CURL_LIB=$(${CURL_CONFIG} --libs)
29506 PBX_CURL=1
29508 cat >>confdefs.h <<\_ACEOF
29509 #define HAVE_CURL 1
29510 _ACEOF
29516 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
29518 cat >confcache <<\_ACEOF
29519 # This file is a shell script that caches the results of configure
29520 # tests run on this system so they can be shared between configure
29521 # scripts and configure runs, see configure's option --config-cache.
29522 # It is not useful on other systems. If it contains results you don't
29523 # want to keep, you may remove or edit it.
29525 # config.status only pays attention to the cache file if you give it
29526 # the --recheck option to rerun configure.
29528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29530 # following values.
29532 _ACEOF
29534 # The following way of writing the cache mishandles newlines in values,
29535 # but we know of no workaround that is simple, portable, and efficient.
29536 # So, we kill variables containing newlines.
29537 # Ultrix sh set writes to stderr and can't be redirected directly,
29538 # and sets the high bit in the cache file unless we assign to the vars.
29540 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29541 eval ac_val=\$$ac_var
29542 case $ac_val in #(
29543 *${as_nl}*)
29544 case $ac_var in #(
29545 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29546 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29547 esac
29548 case $ac_var in #(
29549 _ | IFS | as_nl) ;; #(
29550 *) $as_unset $ac_var ;;
29551 esac ;;
29552 esac
29553 done
29555 (set) 2>&1 |
29556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29557 *${as_nl}ac_space=\ *)
29558 # `set' does not quote correctly, so add quotes (double-quote
29559 # substitution turns \\\\ into \\, and sed turns \\ into \).
29560 sed -n \
29561 "s/'/'\\\\''/g;
29562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29563 ;; #(
29565 # `set' quotes correctly as required by POSIX, so do not add quotes.
29566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29568 esac |
29569 sort
29571 sed '
29572 /^ac_cv_env_/b end
29573 t clear
29574 :clear
29575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29576 t end
29577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29578 :end' >>confcache
29579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29580 if test -w "$cache_file"; then
29581 test "x$cache_file" != "x/dev/null" &&
29582 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29583 echo "$as_me: updating cache $cache_file" >&6;}
29584 cat confcache >$cache_file
29585 else
29586 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29587 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29590 rm -f confcache
29592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29593 # Let make expand exec_prefix.
29594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29596 DEFS=-DHAVE_CONFIG_H
29598 ac_libobjs=
29599 ac_ltlibobjs=
29600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29601 # 1. Remove the extension, and $U if already installed.
29602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29603 ac_i=`echo "$ac_i" | sed "$ac_script"`
29604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29605 # will be set to the directory where LIBOBJS objects are built.
29606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29608 done
29609 LIBOBJS=$ac_libobjs
29611 LTLIBOBJS=$ac_ltlibobjs
29615 : ${CONFIG_STATUS=./config.status}
29616 ac_clean_files_save=$ac_clean_files
29617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29618 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29619 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29620 cat >$CONFIG_STATUS <<_ACEOF
29621 #! $SHELL
29622 # Generated by $as_me.
29623 # Run this file to recreate the current configuration.
29624 # Compiler output produced by configure, useful for debugging
29625 # configure, is in config.log if it exists.
29627 debug=false
29628 ac_cs_recheck=false
29629 ac_cs_silent=false
29630 SHELL=\${CONFIG_SHELL-$SHELL}
29631 _ACEOF
29633 cat >>$CONFIG_STATUS <<\_ACEOF
29634 ## --------------------- ##
29635 ## M4sh Initialization. ##
29636 ## --------------------- ##
29638 # Be more Bourne compatible
29639 DUALCASE=1; export DUALCASE # for MKS sh
29640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29641 emulate sh
29642 NULLCMD=:
29643 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29644 # is contrary to our usage. Disable this feature.
29645 alias -g '${1+"$@"}'='"$@"'
29646 setopt NO_GLOB_SUBST
29647 else
29648 case `(set -o) 2>/dev/null` in
29649 *posix*) set -o posix ;;
29650 esac
29657 # PATH needs CR
29658 # Avoid depending upon Character Ranges.
29659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29662 as_cr_digits='0123456789'
29663 as_cr_alnum=$as_cr_Letters$as_cr_digits
29665 # The user is always right.
29666 if test "${PATH_SEPARATOR+set}" != set; then
29667 echo "#! /bin/sh" >conf$$.sh
29668 echo "exit 0" >>conf$$.sh
29669 chmod +x conf$$.sh
29670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29671 PATH_SEPARATOR=';'
29672 else
29673 PATH_SEPARATOR=:
29675 rm -f conf$$.sh
29678 # Support unset when possible.
29679 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29680 as_unset=unset
29681 else
29682 as_unset=false
29686 # IFS
29687 # We need space, tab and new line, in precisely that order. Quoting is
29688 # there to prevent editors from complaining about space-tab.
29689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29690 # splitting by setting IFS to empty value.)
29691 as_nl='
29693 IFS=" "" $as_nl"
29695 # Find who we are. Look in the path if we contain no directory separator.
29696 case $0 in
29697 *[\\/]* ) as_myself=$0 ;;
29698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29699 for as_dir in $PATH
29701 IFS=$as_save_IFS
29702 test -z "$as_dir" && as_dir=.
29703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29704 done
29705 IFS=$as_save_IFS
29708 esac
29709 # We did not find ourselves, most probably we were run as `sh COMMAND'
29710 # in which case we are not to be found in the path.
29711 if test "x$as_myself" = x; then
29712 as_myself=$0
29714 if test ! -f "$as_myself"; then
29715 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29716 { (exit 1); exit 1; }
29719 # Work around bugs in pre-3.0 UWIN ksh.
29720 for as_var in ENV MAIL MAILPATH
29721 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29722 done
29723 PS1='$ '
29724 PS2='> '
29725 PS4='+ '
29727 # NLS nuisances.
29728 for as_var in \
29729 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29730 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29731 LC_TELEPHONE LC_TIME
29733 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29734 eval $as_var=C; export $as_var
29735 else
29736 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29738 done
29740 # Required to use basename.
29741 if expr a : '\(a\)' >/dev/null 2>&1 &&
29742 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29743 as_expr=expr
29744 else
29745 as_expr=false
29748 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29749 as_basename=basename
29750 else
29751 as_basename=false
29755 # Name of the executable.
29756 as_me=`$as_basename -- "$0" ||
29757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29758 X"$0" : 'X\(//\)$' \| \
29759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29760 echo X/"$0" |
29761 sed '/^.*\/\([^/][^/]*\)\/*$/{
29762 s//\1/
29765 /^X\/\(\/\/\)$/{
29766 s//\1/
29769 /^X\/\(\/\).*/{
29770 s//\1/
29773 s/.*/./; q'`
29775 # CDPATH.
29776 $as_unset CDPATH
29780 as_lineno_1=$LINENO
29781 as_lineno_2=$LINENO
29782 test "x$as_lineno_1" != "x$as_lineno_2" &&
29783 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29785 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29786 # uniformly replaced by the line number. The first 'sed' inserts a
29787 # line-number line after each line using $LINENO; the second 'sed'
29788 # does the real work. The second script uses 'N' to pair each
29789 # line-number line with the line containing $LINENO, and appends
29790 # trailing '-' during substitution so that $LINENO is not a special
29791 # case at line end.
29792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29793 # scripts with optimization help from Paolo Bonzini. Blame Lee
29794 # E. McMahon (1931-1989) for sed's syntax. :-)
29795 sed -n '
29797 /[$]LINENO/=
29798 ' <$as_myself |
29799 sed '
29800 s/[$]LINENO.*/&-/
29801 t lineno
29803 :lineno
29805 :loop
29806 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29807 t loop
29808 s/-\n.*//
29809 ' >$as_me.lineno &&
29810 chmod +x "$as_me.lineno" ||
29811 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29812 { (exit 1); exit 1; }; }
29814 # Don't try to exec as it changes $[0], causing all sort of problems
29815 # (the dirname of $[0] is not the place where we might find the
29816 # original and so on. Autoconf is especially sensitive to this).
29817 . "./$as_me.lineno"
29818 # Exit status is that of the last command.
29819 exit
29823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29824 as_dirname=dirname
29825 else
29826 as_dirname=false
29829 ECHO_C= ECHO_N= ECHO_T=
29830 case `echo -n x` in
29831 -n*)
29832 case `echo 'x\c'` in
29833 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29834 *) ECHO_C='\c';;
29835 esac;;
29837 ECHO_N='-n';;
29838 esac
29840 if expr a : '\(a\)' >/dev/null 2>&1 &&
29841 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29842 as_expr=expr
29843 else
29844 as_expr=false
29847 rm -f conf$$ conf$$.exe conf$$.file
29848 if test -d conf$$.dir; then
29849 rm -f conf$$.dir/conf$$.file
29850 else
29851 rm -f conf$$.dir
29852 mkdir conf$$.dir
29854 echo >conf$$.file
29855 if ln -s conf$$.file conf$$ 2>/dev/null; then
29856 as_ln_s='ln -s'
29857 # ... but there are two gotchas:
29858 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29859 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29860 # In both cases, we have to default to `cp -p'.
29861 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29862 as_ln_s='cp -p'
29863 elif ln conf$$.file conf$$ 2>/dev/null; then
29864 as_ln_s=ln
29865 else
29866 as_ln_s='cp -p'
29868 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29869 rmdir conf$$.dir 2>/dev/null
29871 if mkdir -p . 2>/dev/null; then
29872 as_mkdir_p=:
29873 else
29874 test -d ./-p && rmdir ./-p
29875 as_mkdir_p=false
29878 if test -x / >/dev/null 2>&1; then
29879 as_test_x='test -x'
29880 else
29881 if ls -dL / >/dev/null 2>&1; then
29882 as_ls_L_option=L
29883 else
29884 as_ls_L_option=
29886 as_test_x='
29887 eval sh -c '\''
29888 if test -d "$1"; then
29889 test -d "$1/.";
29890 else
29891 case $1 in
29892 -*)set "./$1";;
29893 esac;
29894 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29895 ???[sx]*):;;*)false;;esac;fi
29896 '\'' sh
29899 as_executable_p=$as_test_x
29901 # Sed expression to map a string onto a valid CPP name.
29902 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29904 # Sed expression to map a string onto a valid variable name.
29905 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29908 exec 6>&1
29910 # Save the log message, to keep $[0] and so on meaningful, and to
29911 # report actual input values of CONFIG_FILES etc. instead of their
29912 # values after options handling.
29913 ac_log="
29914 This file was extended by $as_me, which was
29915 generated by GNU Autoconf 2.61. Invocation command line was
29917 CONFIG_FILES = $CONFIG_FILES
29918 CONFIG_HEADERS = $CONFIG_HEADERS
29919 CONFIG_LINKS = $CONFIG_LINKS
29920 CONFIG_COMMANDS = $CONFIG_COMMANDS
29921 $ $0 $@
29923 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29926 _ACEOF
29928 cat >>$CONFIG_STATUS <<_ACEOF
29929 # Files that config.status was made for.
29930 config_files="$ac_config_files"
29931 config_headers="$ac_config_headers"
29933 _ACEOF
29935 cat >>$CONFIG_STATUS <<\_ACEOF
29936 ac_cs_usage="\
29937 \`$as_me' instantiates files from templates according to the
29938 current configuration.
29940 Usage: $0 [OPTIONS] [FILE]...
29942 -h, --help print this help, then exit
29943 -V, --version print version number and configuration settings, then exit
29944 -q, --quiet do not print progress messages
29945 -d, --debug don't remove temporary files
29946 --recheck update $as_me by reconfiguring in the same conditions
29947 --file=FILE[:TEMPLATE]
29948 instantiate the configuration file FILE
29949 --header=FILE[:TEMPLATE]
29950 instantiate the configuration header FILE
29952 Configuration files:
29953 $config_files
29955 Configuration headers:
29956 $config_headers
29958 Report bugs to <bug-autoconf@gnu.org>."
29960 _ACEOF
29961 cat >>$CONFIG_STATUS <<_ACEOF
29962 ac_cs_version="\\
29963 config.status
29964 configured by $0, generated by GNU Autoconf 2.61,
29965 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29967 Copyright (C) 2006 Free Software Foundation, Inc.
29968 This config.status script is free software; the Free Software Foundation
29969 gives unlimited permission to copy, distribute and modify it."
29971 ac_pwd='$ac_pwd'
29972 srcdir='$srcdir'
29973 INSTALL='$INSTALL'
29974 _ACEOF
29976 cat >>$CONFIG_STATUS <<\_ACEOF
29977 # If no file are specified by the user, then we need to provide default
29978 # value. By we need to know if files were specified by the user.
29979 ac_need_defaults=:
29980 while test $# != 0
29982 case $1 in
29983 --*=*)
29984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29985 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29986 ac_shift=:
29989 ac_option=$1
29990 ac_optarg=$2
29991 ac_shift=shift
29993 esac
29995 case $ac_option in
29996 # Handling of the options.
29997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29998 ac_cs_recheck=: ;;
29999 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30000 echo "$ac_cs_version"; exit ;;
30001 --debug | --debu | --deb | --de | --d | -d )
30002 debug=: ;;
30003 --file | --fil | --fi | --f )
30004 $ac_shift
30005 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30006 ac_need_defaults=false;;
30007 --header | --heade | --head | --hea )
30008 $ac_shift
30009 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30010 ac_need_defaults=false;;
30011 --he | --h)
30012 # Conflict between --help and --header
30013 { echo "$as_me: error: ambiguous option: $1
30014 Try \`$0 --help' for more information." >&2
30015 { (exit 1); exit 1; }; };;
30016 --help | --hel | -h )
30017 echo "$ac_cs_usage"; exit ;;
30018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30020 ac_cs_silent=: ;;
30022 # This is an error.
30023 -*) { echo "$as_me: error: unrecognized option: $1
30024 Try \`$0 --help' for more information." >&2
30025 { (exit 1); exit 1; }; } ;;
30027 *) ac_config_targets="$ac_config_targets $1"
30028 ac_need_defaults=false ;;
30030 esac
30031 shift
30032 done
30034 ac_configure_extra_args=
30036 if $ac_cs_silent; then
30037 exec 6>/dev/null
30038 ac_configure_extra_args="$ac_configure_extra_args --silent"
30041 _ACEOF
30042 cat >>$CONFIG_STATUS <<_ACEOF
30043 if \$ac_cs_recheck; then
30044 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30045 CONFIG_SHELL=$SHELL
30046 export CONFIG_SHELL
30047 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30050 _ACEOF
30051 cat >>$CONFIG_STATUS <<\_ACEOF
30052 exec 5>>config.log
30054 echo
30055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30056 ## Running $as_me. ##
30057 _ASBOX
30058 echo "$ac_log"
30059 } >&5
30061 _ACEOF
30062 cat >>$CONFIG_STATUS <<_ACEOF
30063 _ACEOF
30065 cat >>$CONFIG_STATUS <<\_ACEOF
30067 # Handling of arguments.
30068 for ac_config_target in $ac_config_targets
30070 case $ac_config_target in
30071 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
30072 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
30073 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
30074 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
30076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30078 { (exit 1); exit 1; }; };;
30079 esac
30080 done
30083 # If the user did not use the arguments to specify the items to instantiate,
30084 # then the envvar interface is used. Set only those that are not.
30085 # We use the long form for the default assignment because of an extremely
30086 # bizarre bug on SunOS 4.1.3.
30087 if $ac_need_defaults; then
30088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30092 # Have a temporary directory for convenience. Make it in the build tree
30093 # simply because there is no reason against having it here, and in addition,
30094 # creating and moving files from /tmp can sometimes cause problems.
30095 # Hook for its removal unless debugging.
30096 # Note that there is a small window in which the directory will not be cleaned:
30097 # after its creation but before its name has been assigned to `$tmp'.
30098 $debug ||
30100 tmp=
30101 trap 'exit_status=$?
30102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30104 trap '{ (exit 1); exit 1; }' 1 2 13 15
30106 # Create a (secure) tmp directory for tmp files.
30109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30110 test -n "$tmp" && test -d "$tmp"
30111 } ||
30113 tmp=./conf$$-$RANDOM
30114 (umask 077 && mkdir "$tmp")
30115 } ||
30117 echo "$me: cannot create a temporary directory in ." >&2
30118 { (exit 1); exit 1; }
30122 # Set up the sed scripts for CONFIG_FILES section.
30125 # No need to generate the scripts if there are no CONFIG_FILES.
30126 # This happens for instance when ./config.status config.h
30127 if test -n "$CONFIG_FILES"; then
30129 _ACEOF
30133 ac_delim='%!_!# '
30134 for ac_last_try in false false false false false :; do
30135 cat >conf$$subs.sed <<_ACEOF
30136 SHELL!$SHELL$ac_delim
30137 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30138 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30139 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30140 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30141 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30142 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30143 exec_prefix!$exec_prefix$ac_delim
30144 prefix!$prefix$ac_delim
30145 program_transform_name!$program_transform_name$ac_delim
30146 bindir!$bindir$ac_delim
30147 sbindir!$sbindir$ac_delim
30148 libexecdir!$libexecdir$ac_delim
30149 datarootdir!$datarootdir$ac_delim
30150 datadir!$datadir$ac_delim
30151 sysconfdir!$sysconfdir$ac_delim
30152 sharedstatedir!$sharedstatedir$ac_delim
30153 localstatedir!$localstatedir$ac_delim
30154 includedir!$includedir$ac_delim
30155 oldincludedir!$oldincludedir$ac_delim
30156 docdir!$docdir$ac_delim
30157 infodir!$infodir$ac_delim
30158 htmldir!$htmldir$ac_delim
30159 dvidir!$dvidir$ac_delim
30160 pdfdir!$pdfdir$ac_delim
30161 psdir!$psdir$ac_delim
30162 libdir!$libdir$ac_delim
30163 localedir!$localedir$ac_delim
30164 mandir!$mandir$ac_delim
30165 DEFS!$DEFS$ac_delim
30166 ECHO_C!$ECHO_C$ac_delim
30167 ECHO_N!$ECHO_N$ac_delim
30168 ECHO_T!$ECHO_T$ac_delim
30169 LIBS!$LIBS$ac_delim
30170 build_alias!$build_alias$ac_delim
30171 host_alias!$host_alias$ac_delim
30172 target_alias!$target_alias$ac_delim
30173 build!$build$ac_delim
30174 build_cpu!$build_cpu$ac_delim
30175 build_vendor!$build_vendor$ac_delim
30176 build_os!$build_os$ac_delim
30177 host!$host$ac_delim
30178 host_cpu!$host_cpu$ac_delim
30179 host_vendor!$host_vendor$ac_delim
30180 host_os!$host_os$ac_delim
30181 CC!$CC$ac_delim
30182 CFLAGS!$CFLAGS$ac_delim
30183 LDFLAGS!$LDFLAGS$ac_delim
30184 CPPFLAGS!$CPPFLAGS$ac_delim
30185 ac_ct_CC!$ac_ct_CC$ac_delim
30186 EXEEXT!$EXEEXT$ac_delim
30187 OBJEXT!$OBJEXT$ac_delim
30188 CPP!$CPP$ac_delim
30189 GREP!$GREP$ac_delim
30190 EGREP!$EGREP$ac_delim
30191 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
30192 BUILD_CPU!$BUILD_CPU$ac_delim
30193 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
30194 BUILD_OS!$BUILD_OS$ac_delim
30195 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
30196 HOST_CPU!$HOST_CPU$ac_delim
30197 HOST_VENDOR!$HOST_VENDOR$ac_delim
30198 HOST_OS!$HOST_OS$ac_delim
30199 OSARCH!$OSARCH$ac_delim
30200 UNAME!$UNAME$ac_delim
30201 PBX_OSREV!$PBX_OSREV$ac_delim
30202 CXX!$CXX$ac_delim
30203 LD!$LD$ac_delim
30204 RANLIB!$RANLIB$ac_delim
30205 AR!$AR$ac_delim
30206 CXXFLAGS!$CXXFLAGS$ac_delim
30207 ac_ct_CXX!$ac_ct_CXX$ac_delim
30208 CXXCPP!$CXXCPP$ac_delim
30209 SED!$SED$ac_delim
30210 AWK!$AWK$ac_delim
30211 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30212 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30213 INSTALL_DATA!$INSTALL_DATA$ac_delim
30214 LN_S!$LN_S$ac_delim
30215 GNU_MAKE!$GNU_MAKE$ac_delim
30216 GNU_LD!$GNU_LD$ac_delim
30217 FIND!$FIND$ac_delim
30218 COMPRESS!$COMPRESS$ac_delim
30219 BASENAME!$BASENAME$ac_delim
30220 ID!$ID$ac_delim
30221 DIRNAME!$DIRNAME$ac_delim
30222 LN!$LN$ac_delim
30223 DOT!$DOT$ac_delim
30224 STRIP!$STRIP$ac_delim
30225 WGET!$WGET$ac_delim
30226 FETCH!$FETCH$ac_delim
30227 DOWNLOAD!$DOWNLOAD$ac_delim
30228 acx_pthread_config!$acx_pthread_config$ac_delim
30229 PTHREAD_CC!$PTHREAD_CC$ac_delim
30230 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
30231 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
30232 AST_DEVMODE!$AST_DEVMODE$ac_delim
30233 _ACEOF
30235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30236 break
30237 elif $ac_last_try; then
30238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30240 { (exit 1); exit 1; }; }
30241 else
30242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30244 done
30246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30247 if test -n "$ac_eof"; then
30248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30249 ac_eof=`expr $ac_eof + 1`
30252 cat >>$CONFIG_STATUS <<_ACEOF
30253 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30255 _ACEOF
30256 sed '
30257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30258 s/^/s,@/; s/!/@,|#_!!_#|/
30261 s/'"$ac_delim"'$/,g/; t
30262 s/$/\\/; p
30263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30264 ' >>$CONFIG_STATUS <conf$$subs.sed
30265 rm -f conf$$subs.sed
30266 cat >>$CONFIG_STATUS <<_ACEOF
30267 CEOF$ac_eof
30268 _ACEOF
30271 ac_delim='%!_!# '
30272 for ac_last_try in false false false false false :; do
30273 cat >conf$$subs.sed <<_ACEOF
30274 ALSA_LIB!$ALSA_LIB$ac_delim
30275 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
30276 PBX_ALSA!$PBX_ALSA$ac_delim
30277 CURL_LIB!$CURL_LIB$ac_delim
30278 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
30279 PBX_CURL!$PBX_CURL$ac_delim
30280 CURSES_LIB!$CURSES_LIB$ac_delim
30281 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
30282 PBX_CURSES!$PBX_CURSES$ac_delim
30283 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
30284 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
30285 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
30286 GSM_LIB!$GSM_LIB$ac_delim
30287 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
30288 PBX_GSM!$PBX_GSM$ac_delim
30289 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
30290 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
30291 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
30292 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
30293 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
30294 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
30295 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
30296 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
30297 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
30298 KDE_LIB!$KDE_LIB$ac_delim
30299 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
30300 PBX_KDE!$PBX_KDE$ac_delim
30301 MISDN_LIB!$MISDN_LIB$ac_delim
30302 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
30303 PBX_MISDN!$PBX_MISDN$ac_delim
30304 NBS_LIB!$NBS_LIB$ac_delim
30305 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
30306 PBX_NBS!$PBX_NBS$ac_delim
30307 NCURSES_LIB!$NCURSES_LIB$ac_delim
30308 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
30309 PBX_NCURSES!$PBX_NCURSES$ac_delim
30310 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
30311 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
30312 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
30313 NEWT_LIB!$NEWT_LIB$ac_delim
30314 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
30315 PBX_NEWT!$PBX_NEWT$ac_delim
30316 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
30317 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
30318 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
30319 OGG_LIB!$OGG_LIB$ac_delim
30320 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
30321 PBX_OGG!$PBX_OGG$ac_delim
30322 OSPTK_LIB!$OSPTK_LIB$ac_delim
30323 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
30324 PBX_OSPTK!$PBX_OSPTK$ac_delim
30325 OSS_LIB!$OSS_LIB$ac_delim
30326 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
30327 PBX_OSS!$PBX_OSS$ac_delim
30328 POPT_LIB!$POPT_LIB$ac_delim
30329 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
30330 PBX_POPT!$PBX_POPT$ac_delim
30331 PGSQL_LIB!$PGSQL_LIB$ac_delim
30332 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
30333 PBX_PGSQL!$PBX_PGSQL$ac_delim
30334 PRI_LIB!$PRI_LIB$ac_delim
30335 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
30336 PBX_PRI!$PBX_PRI$ac_delim
30337 PWLIB_LIB!$PWLIB_LIB$ac_delim
30338 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
30339 PBX_PWLIB!$PBX_PWLIB$ac_delim
30340 OPENH323_LIB!$OPENH323_LIB$ac_delim
30341 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
30342 PBX_OPENH323!$PBX_OPENH323$ac_delim
30343 QT_LIB!$QT_LIB$ac_delim
30344 QT_INCLUDE!$QT_INCLUDE$ac_delim
30345 PBX_QT!$PBX_QT$ac_delim
30346 RADIUS_LIB!$RADIUS_LIB$ac_delim
30347 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
30348 PBX_RADIUS!$PBX_RADIUS$ac_delim
30349 SPEEX_LIB!$SPEEX_LIB$ac_delim
30350 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
30351 PBX_SPEEX!$PBX_SPEEX$ac_delim
30352 SQLITE_LIB!$SQLITE_LIB$ac_delim
30353 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
30354 PBX_SQLITE!$PBX_SQLITE$ac_delim
30355 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
30356 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
30357 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
30358 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
30359 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
30360 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
30361 FREETDS_LIB!$FREETDS_LIB$ac_delim
30362 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
30363 PBX_FREETDS!$PBX_FREETDS$ac_delim
30364 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
30365 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
30366 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
30367 TINFO_LIB!$TINFO_LIB$ac_delim
30368 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
30369 PBX_TINFO!$PBX_TINFO$ac_delim
30370 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
30371 _ACEOF
30373 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30374 break
30375 elif $ac_last_try; then
30376 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30377 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30378 { (exit 1); exit 1; }; }
30379 else
30380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30382 done
30384 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30385 if test -n "$ac_eof"; then
30386 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30387 ac_eof=`expr $ac_eof + 1`
30390 cat >>$CONFIG_STATUS <<_ACEOF
30391 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30393 _ACEOF
30394 sed '
30395 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30396 s/^/s,@/; s/!/@,|#_!!_#|/
30399 s/'"$ac_delim"'$/,g/; t
30400 s/$/\\/; p
30401 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30402 ' >>$CONFIG_STATUS <conf$$subs.sed
30403 rm -f conf$$subs.sed
30404 cat >>$CONFIG_STATUS <<_ACEOF
30405 CEOF$ac_eof
30406 _ACEOF
30409 ac_delim='%!_!# '
30410 for ac_last_try in false false false false false :; do
30411 cat >conf$$subs.sed <<_ACEOF
30412 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
30413 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
30414 VORBIS_LIB!$VORBIS_LIB$ac_delim
30415 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
30416 PBX_VORBIS!$PBX_VORBIS$ac_delim
30417 VPB_LIB!$VPB_LIB$ac_delim
30418 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
30419 PBX_VPB!$PBX_VPB$ac_delim
30420 ZLIB_LIB!$ZLIB_LIB$ac_delim
30421 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
30422 PBX_ZLIB!$PBX_ZLIB$ac_delim
30423 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
30424 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
30425 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
30426 ALLOCA!$ALLOCA$ac_delim
30427 LIBOBJS!$LIBOBJS$ac_delim
30428 POW_LIB!$POW_LIB$ac_delim
30429 GC_CFLAGS!$GC_CFLAGS$ac_delim
30430 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
30431 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
30432 KDEINIT!$KDEINIT$ac_delim
30433 KDEDIR!$KDEDIR$ac_delim
30434 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
30435 PG_CONFIG!$PG_CONFIG$ac_delim
30436 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
30437 PWLIBDIR!$PWLIBDIR$ac_delim
30438 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
30439 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
30440 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
30441 OPENH323DIR!$OPENH323DIR$ac_delim
30442 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
30443 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
30444 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
30445 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
30446 QTMOC!$QTMOC$ac_delim
30447 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
30448 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
30449 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
30450 PBX_H323!$PBX_H323$ac_delim
30451 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
30452 GTKCONFIG!$GTKCONFIG$ac_delim
30453 PBX_GTK!$PBX_GTK$ac_delim
30454 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
30455 GTK_LIB!$GTK_LIB$ac_delim
30456 CURL_CONFIG!$CURL_CONFIG$ac_delim
30457 LTLIBOBJS!$LTLIBOBJS$ac_delim
30458 _ACEOF
30460 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
30461 break
30462 elif $ac_last_try; then
30463 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30464 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30465 { (exit 1); exit 1; }; }
30466 else
30467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30469 done
30471 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30472 if test -n "$ac_eof"; then
30473 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30474 ac_eof=`expr $ac_eof + 1`
30477 cat >>$CONFIG_STATUS <<_ACEOF
30478 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30480 _ACEOF
30481 sed '
30482 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30483 s/^/s,@/; s/!/@,|#_!!_#|/
30486 s/'"$ac_delim"'$/,g/; t
30487 s/$/\\/; p
30488 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30489 ' >>$CONFIG_STATUS <conf$$subs.sed
30490 rm -f conf$$subs.sed
30491 cat >>$CONFIG_STATUS <<_ACEOF
30492 :end
30493 s/|#_!!_#|//g
30494 CEOF$ac_eof
30495 _ACEOF
30498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30500 # trailing colons and then remove the whole line if VPATH becomes empty
30501 # (actually we leave an empty line to preserve line numbers).
30502 if test "x$srcdir" = x.; then
30503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30504 s/:*\$(srcdir):*/:/
30505 s/:*\${srcdir}:*/:/
30506 s/:*@srcdir@:*/:/
30507 s/^\([^=]*=[ ]*\):*/\1/
30508 s/:*$//
30509 s/^[^=]*=[ ]*$//
30513 cat >>$CONFIG_STATUS <<\_ACEOF
30514 fi # test -n "$CONFIG_FILES"
30517 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
30519 case $ac_tag in
30520 :[FHLC]) ac_mode=$ac_tag; continue;;
30521 esac
30522 case $ac_mode$ac_tag in
30523 :[FHL]*:*);;
30524 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30525 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30526 { (exit 1); exit 1; }; };;
30527 :[FH]-) ac_tag=-:-;;
30528 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30529 esac
30530 ac_save_IFS=$IFS
30531 IFS=:
30532 set x $ac_tag
30533 IFS=$ac_save_IFS
30534 shift
30535 ac_file=$1
30536 shift
30538 case $ac_mode in
30539 :L) ac_source=$1;;
30540 :[FH])
30541 ac_file_inputs=
30542 for ac_f
30544 case $ac_f in
30545 -) ac_f="$tmp/stdin";;
30546 *) # Look for the file first in the build tree, then in the source tree
30547 # (if the path is not absolute). The absolute path cannot be DOS-style,
30548 # because $ac_f cannot contain `:'.
30549 test -f "$ac_f" ||
30550 case $ac_f in
30551 [\\/$]*) false;;
30552 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30553 esac ||
30554 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30555 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30556 { (exit 1); exit 1; }; };;
30557 esac
30558 ac_file_inputs="$ac_file_inputs $ac_f"
30559 done
30561 # Let's still pretend it is `configure' which instantiates (i.e., don't
30562 # use $as_me), people would be surprised to read:
30563 # /* config.h. Generated by config.status. */
30564 configure_input="Generated from "`IFS=:
30565 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30566 if test x"$ac_file" != x-; then
30567 configure_input="$ac_file. $configure_input"
30568 { echo "$as_me:$LINENO: creating $ac_file" >&5
30569 echo "$as_me: creating $ac_file" >&6;}
30572 case $ac_tag in
30573 *:-:* | *:-) cat >"$tmp/stdin";;
30574 esac
30576 esac
30578 ac_dir=`$as_dirname -- "$ac_file" ||
30579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30580 X"$ac_file" : 'X\(//\)[^/]' \| \
30581 X"$ac_file" : 'X\(//\)$' \| \
30582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30583 echo X"$ac_file" |
30584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30585 s//\1/
30588 /^X\(\/\/\)[^/].*/{
30589 s//\1/
30592 /^X\(\/\/\)$/{
30593 s//\1/
30596 /^X\(\/\).*/{
30597 s//\1/
30600 s/.*/./; q'`
30601 { as_dir="$ac_dir"
30602 case $as_dir in #(
30603 -*) as_dir=./$as_dir;;
30604 esac
30605 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30606 as_dirs=
30607 while :; do
30608 case $as_dir in #(
30609 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30610 *) as_qdir=$as_dir;;
30611 esac
30612 as_dirs="'$as_qdir' $as_dirs"
30613 as_dir=`$as_dirname -- "$as_dir" ||
30614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30615 X"$as_dir" : 'X\(//\)[^/]' \| \
30616 X"$as_dir" : 'X\(//\)$' \| \
30617 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30618 echo X"$as_dir" |
30619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30620 s//\1/
30623 /^X\(\/\/\)[^/].*/{
30624 s//\1/
30627 /^X\(\/\/\)$/{
30628 s//\1/
30631 /^X\(\/\).*/{
30632 s//\1/
30635 s/.*/./; q'`
30636 test -d "$as_dir" && break
30637 done
30638 test -z "$as_dirs" || eval "mkdir $as_dirs"
30639 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30640 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30641 { (exit 1); exit 1; }; }; }
30642 ac_builddir=.
30644 case "$ac_dir" in
30645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30648 # A ".." for each directory in $ac_dir_suffix.
30649 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30650 case $ac_top_builddir_sub in
30651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30653 esac ;;
30654 esac
30655 ac_abs_top_builddir=$ac_pwd
30656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30657 # for backward compatibility:
30658 ac_top_builddir=$ac_top_build_prefix
30660 case $srcdir in
30661 .) # We are building in place.
30662 ac_srcdir=.
30663 ac_top_srcdir=$ac_top_builddir_sub
30664 ac_abs_top_srcdir=$ac_pwd ;;
30665 [\\/]* | ?:[\\/]* ) # Absolute name.
30666 ac_srcdir=$srcdir$ac_dir_suffix;
30667 ac_top_srcdir=$srcdir
30668 ac_abs_top_srcdir=$srcdir ;;
30669 *) # Relative name.
30670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30671 ac_top_srcdir=$ac_top_build_prefix$srcdir
30672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30673 esac
30674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30677 case $ac_mode in
30680 # CONFIG_FILE
30683 case $INSTALL in
30684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30685 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30686 esac
30687 _ACEOF
30689 cat >>$CONFIG_STATUS <<\_ACEOF
30690 # If the template does not know about datarootdir, expand it.
30691 # FIXME: This hack should be removed a few years after 2.60.
30692 ac_datarootdir_hack=; ac_datarootdir_seen=
30694 case `sed -n '/datarootdir/ {
30698 /@datadir@/p
30699 /@docdir@/p
30700 /@infodir@/p
30701 /@localedir@/p
30702 /@mandir@/p
30703 ' $ac_file_inputs` in
30704 *datarootdir*) ac_datarootdir_seen=yes;;
30705 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30706 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30707 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30708 _ACEOF
30709 cat >>$CONFIG_STATUS <<_ACEOF
30710 ac_datarootdir_hack='
30711 s&@datadir@&$datadir&g
30712 s&@docdir@&$docdir&g
30713 s&@infodir@&$infodir&g
30714 s&@localedir@&$localedir&g
30715 s&@mandir@&$mandir&g
30716 s&\\\${datarootdir}&$datarootdir&g' ;;
30717 esac
30718 _ACEOF
30720 # Neutralize VPATH when `$srcdir' = `.'.
30721 # Shell code in configure.ac might set extrasub.
30722 # FIXME: do we really want to maintain this feature?
30723 cat >>$CONFIG_STATUS <<_ACEOF
30724 sed "$ac_vpsub
30725 $extrasub
30726 _ACEOF
30727 cat >>$CONFIG_STATUS <<\_ACEOF
30729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30730 s&@configure_input@&$configure_input&;t t
30731 s&@top_builddir@&$ac_top_builddir_sub&;t t
30732 s&@srcdir@&$ac_srcdir&;t t
30733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30734 s&@top_srcdir@&$ac_top_srcdir&;t t
30735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30736 s&@builddir@&$ac_builddir&;t t
30737 s&@abs_builddir@&$ac_abs_builddir&;t t
30738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30739 s&@INSTALL@&$ac_INSTALL&;t t
30740 $ac_datarootdir_hack
30741 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30744 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30746 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30747 which seems to be undefined. Please make sure it is defined." >&5
30748 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30749 which seems to be undefined. Please make sure it is defined." >&2;}
30751 rm -f "$tmp/stdin"
30752 case $ac_file in
30753 -) cat "$tmp/out"; rm -f "$tmp/out";;
30754 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30755 esac
30759 # CONFIG_HEADER
30761 _ACEOF
30763 # Transform confdefs.h into a sed script `conftest.defines', that
30764 # substitutes the proper values into config.h.in to produce config.h.
30765 rm -f conftest.defines conftest.tail
30766 # First, append a space to every undef/define line, to ease matching.
30767 echo 's/$/ /' >conftest.defines
30768 # Then, protect against being on the right side of a sed subst, or in
30769 # an unquoted here document, in config.status. If some macros were
30770 # called several times there might be several #defines for the same
30771 # symbol, which is useless. But do not sort them, since the last
30772 # AC_DEFINE must be honored.
30773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30774 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30775 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30776 # PARAMS is the parameter list in the macro definition--in most cases, it's
30777 # just an empty string.
30778 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30779 ac_dB='\\)[ (].*,\\1define\\2'
30780 ac_dC=' '
30781 ac_dD=' ,'
30783 uniq confdefs.h |
30784 sed -n '
30785 t rset
30786 :rset
30787 s/^[ ]*#[ ]*define[ ][ ]*//
30788 t ok
30791 s/[\\&,]/\\&/g
30792 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30793 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30794 ' >>conftest.defines
30796 # Remove the space that was appended to ease matching.
30797 # Then replace #undef with comments. This is necessary, for
30798 # example, in the case of _POSIX_SOURCE, which is predefined and required
30799 # on some systems where configure will not decide to define it.
30800 # (The regexp can be short, since the line contains either #define or #undef.)
30801 echo 's/ $//
30802 s,^[ #]*u.*,/* & */,' >>conftest.defines
30804 # Break up conftest.defines:
30805 ac_max_sed_lines=50
30807 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30808 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30809 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30810 # et cetera.
30811 ac_in='$ac_file_inputs'
30812 ac_out='"$tmp/out1"'
30813 ac_nxt='"$tmp/out2"'
30815 while :
30817 # Write a here document:
30818 cat >>$CONFIG_STATUS <<_ACEOF
30819 # First, check the format of the line:
30820 cat >"\$tmp/defines.sed" <<\\CEOF
30821 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30822 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30824 :def
30825 _ACEOF
30826 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30827 echo 'CEOF
30828 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30829 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30830 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30831 grep . conftest.tail >/dev/null || break
30832 rm -f conftest.defines
30833 mv conftest.tail conftest.defines
30834 done
30835 rm -f conftest.defines conftest.tail
30837 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30838 cat >>$CONFIG_STATUS <<\_ACEOF
30839 if test x"$ac_file" != x-; then
30840 echo "/* $configure_input */" >"$tmp/config.h"
30841 cat "$ac_result" >>"$tmp/config.h"
30842 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30843 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30844 echo "$as_me: $ac_file is unchanged" >&6;}
30845 else
30846 rm -f $ac_file
30847 mv "$tmp/config.h" $ac_file
30849 else
30850 echo "/* $configure_input */"
30851 cat "$ac_result"
30853 rm -f "$tmp/out12"
30857 esac
30859 done # for ac_tag
30862 { (exit 0); exit 0; }
30863 _ACEOF
30864 chmod +x $CONFIG_STATUS
30865 ac_clean_files=$ac_clean_files_save
30868 # configure is writing to config.log, and then calls config.status.
30869 # config.status does its own redirection, appending to config.log.
30870 # Unfortunately, on DOS this fails, as config.log is still kept open
30871 # by configure, so config.status won't be able to write to it; its
30872 # output is simply discarded. So we exec the FD to /dev/null,
30873 # effectively closing config.log, so it can be properly (re)opened and
30874 # appended to by config.status. When coming back to configure, we
30875 # need to make the FD available again.
30876 if test "$no_create" != yes; then
30877 ac_cs_success=:
30878 ac_config_status_args=
30879 test "$silent" = yes &&
30880 ac_config_status_args="$ac_config_status_args --quiet"
30881 exec 5>/dev/null
30882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30883 exec 5>>config.log
30884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30885 # would make configure fail if this is the last instruction.
30886 $ac_cs_success || { (exit 1); exit 1; }
30890 if test "x${silent}" != "xyes" ; then
30891 echo
30892 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
30893 echo " .\$7\$7.. .7\$\$7:. "
30894 echo " .\$\$:. ,\$7.7 "
30895 echo " .\$7. 7\$\$\$\$ .\$\$77 "
30896 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
30897 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
30898 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
30899 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
30900 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
30901 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
30902 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
30903 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
30904 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
30905 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
30906 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
30907 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
30908 echo " \$\$\$\$\$ \$\$\$ "
30909 echo " \$\$\$\$7. \$\$ (TM) "
30910 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
30911 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
30912 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
30913 echo
30916 { echo "$as_me:$LINENO: Package configured for: " >&5
30917 echo "$as_me: Package configured for: " >&6;}
30918 { echo "$as_me:$LINENO: OS type : $host_os" >&5
30919 echo "$as_me: OS type : $host_os" >&6;}
30920 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
30921 echo "$as_me: Host CPU : $host_cpu" >&6;}
30922 if test "${cross_compiling}" = "yes"; then
30923 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
30924 echo "$as_me: Cross Compilation = YES" >&6;}