The loop in the handler for the "core show locks" could potentially block for
[asterisk-bristuff.git] / configure
bloba6c8ccb87f194ec8658ba03a9b726e0a76d16292
1 #! /bin/sh
2 # From configure.ac Revision: 78166 .
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
691 CXXFLAGS
692 ac_ct_CXX
693 CXXCPP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 STRIP
703 GNU_LD
704 FIND
705 COMPRESS
706 BASENAME
708 DIRNAME
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 ALSA_DIR
722 PBX_ALSA
723 CURL_LIB
724 CURL_INCLUDE
725 CURL_DIR
726 PBX_CURL
727 CURSES_LIB
728 CURSES_INCLUDE
729 CURSES_DIR
730 PBX_CURSES
731 GNUTLS_LIB
732 GNUTLS_INCLUDE
733 GNUTLS_DIR
734 PBX_GNUTLS
735 GSM_LIB
736 GSM_INCLUDE
737 GSM_DIR
738 PBX_GSM
739 IKSEMEL_LIB
740 IKSEMEL_INCLUDE
741 IKSEMEL_DIR
742 PBX_IKSEMEL
743 IMAP_TK_LIB
744 IMAP_TK_INCLUDE
745 IMAP_TK_DIR
746 PBX_IMAP_TK
747 ISDNNET_LIB
748 ISDNNET_INCLUDE
749 ISDNNET_DIR
750 PBX_ISDNNET
751 KDE_LIB
752 KDE_INCLUDE
753 KDE_DIR
754 PBX_KDE
755 LTDL_LIB
756 LTDL_INCLUDE
757 LTDL_DIR
758 PBX_LTDL
759 MISDN_LIB
760 MISDN_INCLUDE
761 MISDN_DIR
762 PBX_MISDN
763 NBS_LIB
764 NBS_INCLUDE
765 NBS_DIR
766 PBX_NBS
767 NCURSES_LIB
768 NCURSES_INCLUDE
769 NCURSES_DIR
770 PBX_NCURSES
771 NETSNMP_LIB
772 NETSNMP_INCLUDE
773 NETSNMP_DIR
774 PBX_NETSNMP
775 NEWT_LIB
776 NEWT_INCLUDE
777 NEWT_DIR
778 PBX_NEWT
779 UNIXODBC_LIB
780 UNIXODBC_INCLUDE
781 UNIXODBC_DIR
782 PBX_UNIXODBC
783 OGG_LIB
784 OGG_INCLUDE
785 OGG_DIR
786 PBX_OGG
787 OSPTK_LIB
788 OSPTK_INCLUDE
789 OSPTK_DIR
790 PBX_OSPTK
791 OSS_LIB
792 OSS_INCLUDE
793 OSS_DIR
794 PBX_OSS
795 POPT_LIB
796 POPT_INCLUDE
797 POPT_DIR
798 PBX_POPT
799 PGSQL_LIB
800 PGSQL_INCLUDE
801 PGSQL_DIR
802 PBX_PGSQL
803 PRI_LIB
804 PRI_INCLUDE
805 PRI_DIR
806 PBX_PRI
807 PWLIB_LIB
808 PWLIB_INCLUDE
809 PWLIB_DIR
810 PBX_PWLIB
811 OPENH323_LIB
812 OPENH323_INCLUDE
813 OPENH323_DIR
814 PBX_OPENH323
815 QT_LIB
816 QT_INCLUDE
817 QT_DIR
818 PBX_QT
819 RADIUS_LIB
820 RADIUS_INCLUDE
821 RADIUS_DIR
822 PBX_RADIUS
823 SPEEX_LIB
824 SPEEX_INCLUDE
825 SPEEX_DIR
826 PBX_SPEEX
827 SQLITE_LIB
828 SQLITE_INCLUDE
829 SQLITE_DIR
830 PBX_SQLITE
831 SUPPSERV_LIB
832 SUPPSERV_INCLUDE
833 SUPPSERV_DIR
834 PBX_SUPPSERV
835 OPENSSL_LIB
836 OPENSSL_INCLUDE
837 OPENSSL_DIR
838 PBX_OPENSSL
839 FREETDS_LIB
840 FREETDS_INCLUDE
841 FREETDS_DIR
842 PBX_FREETDS
843 TERMCAP_LIB
844 TERMCAP_INCLUDE
845 TERMCAP_DIR
846 PBX_TERMCAP
847 TINFO_LIB
848 TINFO_INCLUDE
849 TINFO_DIR
850 PBX_TINFO
851 TONEZONE_LIB
852 TONEZONE_INCLUDE
853 TONEZONE_DIR
854 PBX_TONEZONE
855 USB_LIB
856 USB_INCLUDE
857 USB_DIR
858 PBX_USB
859 VORBIS_LIB
860 VORBIS_INCLUDE
861 VORBIS_DIR
862 PBX_VORBIS
863 VPB_LIB
864 VPB_INCLUDE
865 VPB_DIR
866 PBX_VPB
867 ZLIB_LIB
868 ZLIB_INCLUDE
869 ZLIB_DIR
870 PBX_ZLIB
871 ZAPTEL_LIB
872 ZAPTEL_INCLUDE
873 ZAPTEL_DIR
874 PBX_ZAPTEL
875 ALLOCA
876 LIBOBJS
877 POW_LIB
878 GC_CFLAGS
879 GC_LDFLAGS
880 AST_DECLARATION_AFTER_STATEMENT
881 GSM_INTERNAL
882 KDEINIT
883 KDEDIR
884 NETSNMP_CONFIG
885 PG_CONFIG
886 PTLIB_CONFIG
887 PWLIBDIR
888 PWLIB_INCDIR
889 PWLIB_LIBDIR
890 PWLIB_PLATFORM
891 OPENH323DIR
892 OPENH323_INCDIR
893 OPENH323_LIBDIR
894 OPENH323_SUFFIX
895 OPENH323_BUILD
896 QTMOC
897 PBX_ZAPTEL_VLDTMF
898 PBX_ZAPTEL_TRANSCODE
899 EDITLINE_LIB
900 PBX_H323
901 PBX_IXJUSER
902 GTKCONFIG
903 PBX_GTK
904 GTK_INCLUDE
905 GTK_LIB
906 PKGCONFIG
907 PBX_GTK2
908 GTK2_INCLUDE
909 GTK2_LIB
910 CURL_CONFIG
911 LTLIBOBJS'
912 ac_subst_files=''
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
923 CXXFLAGS
925 CXXCPP'
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 # The variables have the same names as the options, with
932 # dashes changed to underlines.
933 cache_file=/dev/null
934 exec_prefix=NONE
935 no_create=
936 no_recursion=
937 prefix=NONE
938 program_prefix=NONE
939 program_suffix=NONE
940 program_transform_name=s,x,x,
941 silent=
942 site=
943 srcdir=
944 verbose=
945 x_includes=NONE
946 x_libraries=NONE
948 # Installation directory options.
949 # These are left unexpanded so users can "make install exec_prefix=/foo"
950 # and all the variables that are supposed to be based on exec_prefix
951 # by default will actually change.
952 # Use braces instead of parens because sh, perl, etc. also accept them.
953 # (The list follows the same order as the GNU Coding Standards.)
954 bindir='${exec_prefix}/bin'
955 sbindir='${exec_prefix}/sbin'
956 libexecdir='${exec_prefix}/libexec'
957 datarootdir='${prefix}/share'
958 datadir='${datarootdir}'
959 sysconfdir='${prefix}/etc'
960 sharedstatedir='${prefix}/com'
961 localstatedir='${prefix}/var'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE}'
965 infodir='${datarootdir}/info'
966 htmldir='${docdir}'
967 dvidir='${docdir}'
968 pdfdir='${docdir}'
969 psdir='${docdir}'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
974 ac_prev=
975 ac_dashdash=
976 for ac_option
978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
980 eval $ac_prev=\$ac_option
981 ac_prev=
982 continue
985 case $ac_option in
986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 *) ac_optarg=yes ;;
988 esac
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
994 ac_dashdash=yes ;;
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 ac_prev=bindir ;;
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 bindir=$ac_optarg ;;
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1016 -datadir | --datadir | --datadi | --datad)
1017 ac_prev=datadir ;;
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1028 -disable-* | --disable-*)
1029 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035 eval enable_$ac_feature=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1054 eval enable_$ac_feature=\$ac_optarg ;;
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1134 no_create=yes ;;
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 ac_prev=sbindir ;;
1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 | --sbi=* | --sb=*)
1203 sbindir=$ac_optarg ;;
1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207 | --sharedst | --shareds | --shared | --share | --shar \
1208 | --sha | --sh)
1209 ac_prev=sharedstatedir ;;
1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 | --sha=* | --sh=*)
1214 sharedstatedir=$ac_optarg ;;
1216 -site | --site | --sit)
1217 ac_prev=site ;;
1218 -site=* | --site=* | --sit=*)
1219 site=$ac_optarg ;;
1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 ac_prev=srcdir ;;
1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224 srcdir=$ac_optarg ;;
1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227 | --syscon | --sysco | --sysc | --sys | --sy)
1228 ac_prev=sysconfdir ;;
1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231 sysconfdir=$ac_optarg ;;
1233 -target | --target | --targe | --targ | --tar | --ta | --t)
1234 ac_prev=target_alias ;;
1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236 target_alias=$ac_optarg ;;
1238 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 verbose=yes ;;
1241 -version | --version | --versio | --versi | --vers | -V)
1242 ac_init_version=: ;;
1244 -with-* | --with-*)
1245 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 { echo "$as_me: error: invalid package name: $ac_package" >&2
1249 { (exit 1); exit 1; }; }
1250 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251 eval with_$ac_package=\$ac_optarg ;;
1253 -without-* | --without-*)
1254 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid package name: $ac_package" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1260 eval with_$ac_package=no ;;
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) { echo "$as_me: error: unrecognized option: $ac_option
1281 Try \`$0 --help' for more information." >&2
1282 { (exit 1); exit 1; }; }
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290 { (exit 1); exit 1; }; }
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302 esac
1303 done
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 { echo "$as_me: error: missing argument to $ac_option" >&2
1308 { (exit 1); exit 1; }; }
1311 # Be sure to have absolute directory names.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val=\$$ac_var
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323 { (exit 1); exit 1; }; }
1324 done
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used." >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347 test "$silent" = yes && exec 6>/dev/null
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 { echo "$as_me: error: Working directory cannot be determined" >&2
1354 { (exit 1); exit 1; }; }
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 { echo "$as_me: error: pwd does not report name of working directory" >&2
1357 { (exit 1); exit 1; }; }
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$0" ||
1365 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$0" : 'X\(//\)[^/]' \| \
1367 X"$0" : 'X\(//\)$' \| \
1368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1369 echo X"$0" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1378 /^X\(\/\/\)$/{
1379 s//\1/
1382 /^X\(\/\).*/{
1383 s//\1/
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1391 else
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397 { (exit 1); exit 1; }; }
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402 { (exit 1); exit 1; }; }
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
1428 \`configure' configures this package to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1437 Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 [PREFIX]
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1481 _ACEOF
1483 cat <<\_ACEOF
1485 System types:
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 _ACEOF
1491 if test -n "$ac_init_help"; then
1493 cat <<\_ACEOF
1495 Optional Features:
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-dev-mode Turn on developer mode
1499 --disable-largefile omit support for large files
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1506 --with-curl=PATH use cURL files in PATH
1507 --with-curses=PATH use curses files in PATH
1508 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1509 PATH
1510 --with-gsm=PATH use GSM files in PATH , or 'internal'
1511 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1512 --with-imap=PATH use UW IMAP Toolkit files in PATH
1513 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1514 --with-kde=PATH use KDE files in PATH
1515 --with-ltdl=PATH use libtool files in PATH
1516 --with-misdn=PATH use mISDN User Library files in PATH
1517 --with-nbs=PATH use Network Broadcast Sound files in PATH
1518 --with-ncurses=PATH use ncurses files in PATH
1519 --with-netsnmp=PATH use Net-SNMP files in PATH
1520 --with-newt=PATH use newt files in PATH
1521 --with-odbc=PATH use unixODBC files in PATH
1522 --with-ogg=PATH use OGG files in PATH
1523 --with-osptk=PATH use OSP Toolkit files in PATH
1524 --with-oss=PATH use Open Sound System files in PATH
1525 --with-popt=PATH use popt files in PATH
1526 --with-postgres=PATH use PostgreSQL files in PATH
1527 --with-pri=PATH use ISDN PRI files in PATH
1528 --with-pwlib=PATH use PWlib files in PATH
1529 --with-h323=PATH use OpenH323 files in PATH
1530 --with-qt=PATH use Qt files in PATH
1531 --with-radius=PATH use Radius Client files in PATH
1532 --with-speex=PATH use Speex files in PATH
1533 --with-sqlite=PATH use SQLite files in PATH
1534 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1535 --with-ssl=PATH use OpenSSL files in PATH
1536 --with-tds=PATH use FreeTDS files in PATH
1537 --with-termcap=PATH use Termcap files in PATH
1538 --with-tinfo=PATH use Term Info files in PATH
1539 --with-tonezone=PATH use tonezone files in PATH
1540 --with-usb=PATH use usb files in PATH
1541 --with-vorbis=PATH use Vorbis files in PATH
1542 --with-vpb=PATH use Voicetronix API files in PATH
1543 --with-z=PATH use zlib files in PATH
1544 --with-zaptel=PATH use Zaptel files in PATH
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1554 CPP C preprocessor
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1557 CXXCPP C++ preprocessor
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 _ACEOF
1563 ac_status=$?
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" || continue
1570 ac_builddir=.
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 configure
1623 generated by GNU Autoconf 2.61
1625 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1630 "Asterisk"
1631 _ACEOF
1632 exit
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1638 It was created by $as_me, which was
1639 generated by GNU Autoconf 2.61. Invocation command line was
1641 $ $0 $@
1643 _ACEOF
1644 exec 5>>config.log
1646 cat <<_ASUNAME
1647 ## --------- ##
1648 ## Platform. ##
1649 ## --------- ##
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1660 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1661 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1664 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1665 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1666 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1668 _ASUNAME
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 echo "PATH: $as_dir"
1676 done
1677 IFS=$as_save_IFS
1679 } >&5
1681 cat >&5 <<_ACEOF
1684 ## ----------- ##
1685 ## Core tests. ##
1686 ## ----------- ##
1688 _ACEOF
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1696 ac_configure_args=
1697 ac_configure_args0=
1698 ac_configure_args1=
1699 ac_must_keep_next=false
1700 for ac_pass in 1 2
1702 for ac_arg
1704 case $ac_arg in
1705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707 | -silent | --silent | --silen | --sile | --sil)
1708 continue ;;
1709 *\'*)
1710 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 esac
1712 case $ac_pass in
1713 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1715 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716 if test $ac_must_keep_next = true; then
1717 ac_must_keep_next=false # Got value, back to normal.
1718 else
1719 case $ac_arg in
1720 *=* | --config-cache | -C | -disable-* | --disable-* \
1721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723 | -with-* | --with-* | -without-* | --without-* | --x)
1724 case "$ac_configure_args0 " in
1725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726 esac
1728 -* ) ac_must_keep_next=true ;;
1729 esac
1731 ac_configure_args="$ac_configure_args '$ac_arg'"
1733 esac
1734 done
1735 done
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log. We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745 # Save into config.log some information that might help in debugging.
1747 echo
1749 cat <<\_ASBOX
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1753 _ASBOX
1754 echo
1755 # The following way of writing the cache mishandles newlines in values,
1757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758 eval ac_val=\$$ac_var
1759 case $ac_val in #(
1760 *${as_nl}*)
1761 case $ac_var in #(
1762 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764 esac
1765 case $ac_var in #(
1766 _ | IFS | as_nl) ;; #(
1767 *) $as_unset $ac_var ;;
1768 esac ;;
1769 esac
1770 done
1771 (set) 2>&1 |
1772 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773 *${as_nl}ac_space=\ *)
1774 sed -n \
1775 "s/'\''/'\''\\\\'\'''\''/g;
1776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777 ;; #(
1779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1781 esac |
1782 sort
1784 echo
1786 cat <<\_ASBOX
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1790 _ASBOX
1791 echo
1792 for ac_var in $ac_subst_vars
1794 eval ac_val=\$$ac_var
1795 case $ac_val in
1796 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 esac
1798 echo "$ac_var='\''$ac_val'\''"
1799 done | sort
1800 echo
1802 if test -n "$ac_subst_files"; then
1803 cat <<\_ASBOX
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1807 _ASBOX
1808 echo
1809 for ac_var in $ac_subst_files
1811 eval ac_val=\$$ac_var
1812 case $ac_val in
1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 esac
1815 echo "$ac_var='\''$ac_val'\''"
1816 done | sort
1817 echo
1820 if test -s confdefs.h; then
1821 cat <<\_ASBOX
1822 ## ----------- ##
1823 ## confdefs.h. ##
1824 ## ----------- ##
1825 _ASBOX
1826 echo
1827 cat confdefs.h
1828 echo
1830 test "$ac_signal" != 0 &&
1831 echo "$as_me: caught signal $ac_signal"
1832 echo "$as_me: exit $exit_status"
1833 } >&5
1834 rm -f core *.core core.conftest.* &&
1835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836 exit $exit_status
1838 for ac_signal in 1 2 13 15; do
1839 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 done
1841 ac_signal=0
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1846 # Predefined preprocessor variables.
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 _ACEOF
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 _ACEOF
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 _ACEOF
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 _ACEOF
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer explicitly selected file to automatically selected ones.
1875 if test -n "$CONFIG_SITE"; then
1876 set x "$CONFIG_SITE"
1877 elif test "x$prefix" != xNONE; then
1878 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 else
1880 set x "$ac_default_prefix/share/config.site" \
1881 "$ac_default_prefix/etc/config.site"
1883 shift
1884 for ac_site_file
1886 if test -r "$ac_site_file"; then
1887 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1890 . "$ac_site_file"
1892 done
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 echo "$as_me: loading cache $cache_file" >&6;}
1900 case $cache_file in
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";;
1903 esac
1905 else
1906 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 echo "$as_me: creating cache $cache_file" >&6;}
1908 >$cache_file
1911 ac_header_list="$ac_header_list sys/time.h"
1912 ac_header_list="$ac_header_list unistd.h"
1913 ac_func_list="$ac_func_list alarm"
1914 ac_header_list="$ac_header_list utime.h"
1915 # Check that the precious variables saved in the cache have kept the same
1916 # value.
1917 ac_cache_corrupted=false
1918 for ac_var in $ac_precious_vars; do
1919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1920 eval ac_new_set=\$ac_env_${ac_var}_set
1921 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1922 eval ac_new_val=\$ac_env_${ac_var}_value
1923 case $ac_old_set,$ac_new_set in
1924 set,)
1925 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1926 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1927 ac_cache_corrupted=: ;;
1928 ,set)
1929 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1932 ,);;
1934 if test "x$ac_old_val" != "x$ac_new_val"; then
1935 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1936 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1937 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1938 echo "$as_me: former value: $ac_old_val" >&2;}
1939 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1940 echo "$as_me: current value: $ac_new_val" >&2;}
1941 ac_cache_corrupted=:
1942 fi;;
1943 esac
1944 # Pass precious variables to config.status.
1945 if test "$ac_new_set" = set; then
1946 case $ac_new_val in
1947 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 *) ac_arg=$ac_var=$ac_new_val ;;
1949 esac
1950 case " $ac_configure_args " in
1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1953 esac
1955 done
1956 if $ac_cache_corrupted; then
1957 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1958 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1959 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1960 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1961 { (exit 1); exit 1; }; }
1980 ac_ext=c
1981 ac_cpp='$CPP $CPPFLAGS'
1982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988 # cross-compile macros
1989 ac_aux_dir=
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991 if test -f "$ac_dir/install-sh"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1994 break
1995 elif test -f "$ac_dir/install.sh"; then
1996 ac_aux_dir=$ac_dir
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1998 break
1999 elif test -f "$ac_dir/shtool"; then
2000 ac_aux_dir=$ac_dir
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2002 break
2004 done
2005 if test -z "$ac_aux_dir"; then
2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008 { (exit 1); exit 1; }; }
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024 { (exit 1); exit 1; }; }
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037 { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2047 *-*-*) ;;
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050 { (exit 1); exit 1; }; };;
2051 esac
2052 build=$ac_cv_build
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_build
2055 shift
2056 build_cpu=$1
2057 build_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 build_os=$*
2062 IFS=$ac_save_IFS
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test "x$host_alias" = x; then
2072 ac_cv_host=$ac_cv_build
2073 else
2074 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2083 case $ac_cv_host in
2084 *-*-*) ;;
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087 { (exit 1); exit 1; }; };;
2088 esac
2089 host=$ac_cv_host
2090 ac_save_IFS=$IFS; IFS='-'
2091 set x $ac_cv_host
2092 shift
2093 host_cpu=$1
2094 host_vendor=$2
2095 shift; shift
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2098 host_os=$*
2099 IFS=$ac_save_IFS
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2104 # check existence of the package
2107 # specify output header file
2108 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2115 cat >>confdefs.h <<\_ACEOF
2116 #define _GNU_SOURCE 1
2117 _ACEOF
2120 ac_ext=c
2121 ac_cpp='$CPP $CPPFLAGS'
2122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2147 done
2148 done
2149 IFS=$as_save_IFS
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155 { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2164 if test -z "$ac_cv_prog_CC"; then
2165 ac_ct_CC=$CC
2166 # Extract the first word of "gcc", so it can be a program name with args.
2167 set dummy gcc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$ac_ct_CC"; then
2174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 ac_cv_prog_ac_ct_CC="gcc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2187 done
2188 done
2189 IFS=$as_save_IFS
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6; }
2197 else
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2202 if test "x$ac_ct_CC" = x; then
2203 CC=""
2204 else
2205 case $cross_compiling:$ac_tool_warned in
2206 yes:)
2207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2208 whose name does not start with the host triplet. If you think this
2209 configuration is useful to you, please write to autoconf@gnu.org." >&5
2210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213 ac_tool_warned=yes ;;
2214 esac
2215 CC=$ac_ct_CC
2217 else
2218 CC="$ac_cv_prog_CC"
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2224 set dummy ${ac_tool_prefix}cc; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_CC="${ac_tool_prefix}cc"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2244 done
2245 done
2246 IFS=$as_save_IFS
2250 CC=$ac_cv_prog_CC
2251 if test -n "$CC"; then
2252 { echo "$as_me:$LINENO: result: $CC" >&5
2253 echo "${ECHO_T}$CC" >&6; }
2254 else
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2262 if test -z "$CC"; then
2263 # Extract the first word of "cc", so it can be a program name with args.
2264 set dummy cc; ac_word=$2
2265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2272 else
2273 ac_prog_rejected=no
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2282 ac_prog_rejected=yes
2283 continue
2285 ac_cv_prog_CC="cc"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2291 IFS=$as_save_IFS
2293 if test $ac_prog_rejected = yes; then
2294 # We found a bogon in the path, so make sure we never use it.
2295 set dummy $ac_cv_prog_CC
2296 shift
2297 if test $# != 0; then
2298 # We chose a different compiler from the bogus one.
2299 # However, it has the same basename, so the bogon will be chosen
2300 # first if we set CC to just the basename; use the full file name.
2301 shift
2302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2307 CC=$ac_cv_prog_CC
2308 if test -n "$CC"; then
2309 { echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2318 if test -z "$CC"; then
2319 if test -n "$ac_tool_prefix"; then
2320 for ac_prog in cl.exe
2322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2345 IFS=$as_save_IFS
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2359 test -n "$CC" && break
2360 done
2362 if test -z "$CC"; then
2363 ac_ct_CC=$CC
2364 for ac_prog in cl.exe
2366 # Extract the first word of "$ac_prog", so it can be a program name with args.
2367 set dummy $ac_prog; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373 if test -n "$ac_ct_CC"; then
2374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2383 ac_cv_prog_ac_ct_CC="$ac_prog"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2387 done
2388 done
2389 IFS=$as_save_IFS
2393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2394 if test -n "$ac_ct_CC"; then
2395 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2396 echo "${ECHO_T}$ac_ct_CC" >&6; }
2397 else
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2403 test -n "$ac_ct_CC" && break
2404 done
2406 if test "x$ac_ct_CC" = x; then
2407 CC=""
2408 else
2409 case $cross_compiling:$ac_tool_warned in
2410 yes:)
2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412 whose name does not start with the host triplet. If you think this
2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417 ac_tool_warned=yes ;;
2418 esac
2419 CC=$ac_ct_CC
2426 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: no acceptable C compiler found in \$PATH
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2432 # Provide some information about the compiler.
2433 echo "$as_me:$LINENO: checking for C compiler version" >&5
2434 ac_compiler=`set X $ac_compile; echo $2`
2435 { (ac_try="$ac_compiler --version >&5"
2436 case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439 esac
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441 (eval "$ac_compiler --version >&5") 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }
2445 { (ac_try="$ac_compiler -v >&5"
2446 case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compiler -v >&5") 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }
2455 { (ac_try="$ac_compiler -V >&5"
2456 case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compiler -V >&5") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2466 cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h. */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2474 main ()
2478 return 0;
2480 _ACEOF
2481 ac_clean_files_save=$ac_clean_files
2482 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2483 # Try to create an executable without -o first, disregard a.out.
2484 # It will help us diagnose broken compilers, and finding out an intuition
2485 # of exeext.
2486 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2487 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2488 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2490 # List of possible output files, starting from the most likely.
2491 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2492 # only as a last resort. b.out is created by i960 compilers.
2493 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2495 # The IRIX 6 linker writes into existing files which may not be
2496 # executable, retaining their permissions. Remove them first so a
2497 # subsequent execution test works.
2498 ac_rmfiles=
2499 for ac_file in $ac_files
2501 case $ac_file in
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2504 esac
2505 done
2506 rm -f $ac_rmfiles
2508 if { (ac_try="$ac_link_default"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_link_default") 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2521 # so that the user can short-circuit this test for compilers unknown to
2522 # Autoconf.
2523 for ac_file in $ac_files ''
2525 test -f "$ac_file" || continue
2526 case $ac_file in
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2529 [ab].out )
2530 # We found the default executable, but exeext='' is most
2531 # certainly right.
2532 break;;
2533 *.* )
2534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2535 then :; else
2536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2538 # We set ac_cv_exeext here because the later test for it is not
2539 # safe: cross compilers may not add the suffix if given an `-o'
2540 # argument, so we may need to know it at that point already.
2541 # Even if this section looks crufty: it has the advantage of
2542 # actually working.
2543 break;;
2545 break;;
2546 esac
2547 done
2548 test "$ac_cv_exeext" = no && ac_cv_exeext=
2550 else
2551 ac_file=''
2554 { echo "$as_me:$LINENO: result: $ac_file" >&5
2555 echo "${ECHO_T}$ac_file" >&6; }
2556 if test -z "$ac_file"; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&2;}
2564 { (exit 77); exit 77; }; }
2567 ac_exeext=$ac_cv_exeext
2569 # Check that the compiler produces executables we can run. If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2572 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2573 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2574 # If not cross compiling, check that we can run a simple program.
2575 if test "$cross_compiling" != yes; then
2576 if { ac_try='./$ac_file'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 cross_compiling=no
2587 else
2588 if test "$cross_compiling" = maybe; then
2589 cross_compiling=yes
2590 else
2591 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&5
2594 echo "$as_me: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2601 { echo "$as_me:$LINENO: result: yes" >&5
2602 echo "${ECHO_T}yes" >&6; }
2604 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2605 ac_clean_files=$ac_clean_files_save
2606 # Check that the compiler produces executables we can run. If not, either
2607 # the compiler is broken, or we cross compile.
2608 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2610 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611 echo "${ECHO_T}$cross_compiling" >&6; }
2613 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2615 if { (ac_try="$ac_link"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_link") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2626 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2627 # work properly (i.e., refer to `conftest.exe'), while it won't with
2628 # `rm'.
2629 for ac_file in conftest.exe conftest conftest.*; do
2630 test -f "$ac_file" || continue
2631 case $ac_file in
2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 break;;
2635 * ) break;;
2636 esac
2637 done
2638 else
2639 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2646 rm -f conftest$ac_cv_exeext
2647 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2652 ac_exeext=$EXEEXT
2653 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2655 if test "${ac_cv_objext+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2666 main ()
2670 return 0;
2672 _ACEOF
2673 rm -f conftest.o conftest.obj
2674 if { (ac_try="$ac_compile"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compile") 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; then
2684 for ac_file in conftest.o conftest.obj conftest.*; do
2685 test -f "$ac_file" || continue;
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691 done
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2696 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2705 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 echo "${ECHO_T}$ac_cv_objext" >&6; }
2707 OBJEXT=$ac_cv_objext
2708 ac_objext=$OBJEXT
2709 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2722 main ()
2724 #ifndef __GNUC__
2725 choke me
2726 #endif
2729 return 0;
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 ac_compiler_gnu=no
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2761 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2763 GCC=`test $ac_compiler_gnu = yes && echo yes`
2764 ac_test_CFLAGS=${CFLAGS+set}
2765 ac_save_CFLAGS=$CFLAGS
2766 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_cc_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 ac_save_c_werror_flag=$ac_c_werror_flag
2772 ac_c_werror_flag=yes
2773 ac_cv_prog_cc_g=no
2774 CFLAGS="-g"
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h. */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2783 main ()
2787 return 0;
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (ac_try="$ac_compile"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_compile") 2>conftest.er1
2798 ac_status=$?
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && {
2804 test -z "$ac_c_werror_flag" ||
2805 test ! -s conftest.err
2806 } && test -s conftest.$ac_objext; then
2807 ac_cv_prog_cc_g=yes
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 CFLAGS=""
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2821 main ()
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 ac_c_werror_flag=$ac_save_c_werror_flag
2851 CFLAGS="-g"
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } && {
2881 test -z "$ac_c_werror_flag" ||
2882 test ! -s conftest.err
2883 } && test -s conftest.$ac_objext; then
2884 ac_cv_prog_cc_g=yes
2885 else
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_c_werror_flag=$ac_save_c_werror_flag
2901 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2903 if test "$ac_test_CFLAGS" = set; then
2904 CFLAGS=$ac_save_CFLAGS
2905 elif test $ac_cv_prog_cc_g = yes; then
2906 if test "$GCC" = yes; then
2907 CFLAGS="-g -O2"
2908 else
2909 CFLAGS="-g"
2911 else
2912 if test "$GCC" = yes; then
2913 CFLAGS="-O2"
2914 else
2915 CFLAGS=
2918 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2919 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_cc_c89+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 ac_cv_prog_cc_c89=no
2924 ac_save_CC=$CC
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <stdarg.h>
2932 #include <stdio.h>
2933 #include <sys/types.h>
2934 #include <sys/stat.h>
2935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2936 struct buf { int x; };
2937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938 static char *e (p, i)
2939 char **p;
2940 int i;
2942 return p[i];
2944 static char *f (char * (*g) (char **, int), char **p, ...)
2946 char *s;
2947 va_list v;
2948 va_start (v,p);
2949 s = g (p, va_arg (v,int));
2950 va_end (v);
2951 return s;
2954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2955 function prototypes and stuff, but not '\xHH' hex character constants.
2956 These don't provoke an error unfortunately, instead are silently treated
2957 as 'x'. The following induces an error, until -std is added to get
2958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2959 array size at least. It's necessary to write '\x00'==0 to get something
2960 that's true only with -std. */
2961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2964 inside strings and character constants. */
2965 #define FOO(x) 'x'
2966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2968 int test (int i, double x);
2969 struct s1 {int (*f) (int a);};
2970 struct s2 {int (*f) (double a);};
2971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2972 int argc;
2973 char **argv;
2975 main ()
2977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2979 return 0;
2981 _ACEOF
2982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2985 CC="$ac_save_CC $ac_arg"
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 ac_cv_prog_cc_c89=$ac_arg
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext
3012 test "x$ac_cv_prog_cc_c89" != "xno" && break
3013 done
3014 rm -f conftest.$ac_ext
3015 CC=$ac_save_CC
3018 # AC_CACHE_VAL
3019 case "x$ac_cv_prog_cc_c89" in
3021 { echo "$as_me:$LINENO: result: none needed" >&5
3022 echo "${ECHO_T}none needed" >&6; } ;;
3023 xno)
3024 { echo "$as_me:$LINENO: result: unsupported" >&5
3025 echo "${ECHO_T}unsupported" >&6; } ;;
3027 CC="$CC $ac_cv_prog_cc_c89"
3028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3029 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3030 esac
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3047 # On Suns, sometimes $CPP names a directory.
3048 if test -n "$CPP" && test -d "$CPP"; then
3049 CPP=
3051 if test -z "$CPP"; then
3052 if test "${ac_cv_prog_CPP+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 # Double quotes because CPP needs to be expanded
3056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078 Syntax error
3079 _ACEOF
3080 if { (ac_try="$ac_cpp conftest.$ac_ext"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null && {
3093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 }; then
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 # Broken: fails on valid input.
3102 continue
3105 rm -f conftest.err conftest.$ac_ext
3107 # OK, works on sane cases. Now check whether nonexistent headers
3108 # can be detected and how.
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <ac_nonexistent.h>
3116 _ACEOF
3117 if { (ac_try="$ac_cpp conftest.$ac_ext"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } >/dev/null && {
3130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 }; then
3133 # Broken: success on invalid input.
3134 continue
3135 else
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 # Passes both tests.
3140 ac_preproc_ok=:
3141 break
3144 rm -f conftest.err conftest.$ac_ext
3146 done
3147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3148 rm -f conftest.err conftest.$ac_ext
3149 if $ac_preproc_ok; then
3150 break
3153 done
3154 ac_cv_prog_CPP=$CPP
3157 CPP=$ac_cv_prog_CPP
3158 else
3159 ac_cv_prog_CPP=$CPP
3161 { echo "$as_me:$LINENO: result: $CPP" >&5
3162 echo "${ECHO_T}$CPP" >&6; }
3163 ac_preproc_ok=false
3164 for ac_c_preproc_warn_flag in '' yes
3166 # Use a header file that comes with gcc, so configuring glibc
3167 # with a fresh cross-compiler works.
3168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169 # <limits.h> exists even on freestanding compilers.
3170 # On the NeXT, cc -E runs the code through the compiler's parser,
3171 # not just through cpp. "Syntax error" is here to catch this case.
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3178 #ifdef __STDC__
3179 # include <limits.h>
3180 #else
3181 # include <assert.h>
3182 #endif
3183 Syntax error
3184 _ACEOF
3185 if { (ac_try="$ac_cpp conftest.$ac_ext"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null && {
3198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 }; then
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 # Broken: fails on valid input.
3207 continue
3210 rm -f conftest.err conftest.$ac_ext
3212 # OK, works on sane cases. Now check whether nonexistent headers
3213 # can be detected and how.
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220 #include <ac_nonexistent.h>
3221 _ACEOF
3222 if { (ac_try="$ac_cpp conftest.$ac_ext"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } >/dev/null && {
3235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 }; then
3238 # Broken: success on invalid input.
3239 continue
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 # Passes both tests.
3245 ac_preproc_ok=:
3246 break
3249 rm -f conftest.err conftest.$ac_ext
3251 done
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3256 else
3257 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3260 See \`config.log' for more details." >&2;}
3261 { (exit 1); exit 1; }; }
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3272 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_GREP+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 # Extract the first word of "grep ggrep" to use in msg output
3277 if test -z "$GREP"; then
3278 set dummy grep ggrep; ac_prog_name=$2
3279 if test "${ac_cv_path_GREP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 ac_path_GREP_found=false
3283 # Loop through the user's path and test for each of PROGNAME-LIST
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_prog in grep ggrep; do
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3293 # Check for GNU ac_path_GREP and select it if it is found.
3294 # Check for GNU $ac_path_GREP
3295 case `"$ac_path_GREP" --version 2>&1` in
3296 *GNU*)
3297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3299 ac_count=0
3300 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3301 while :
3303 cat "conftest.in" "conftest.in" >"conftest.tmp"
3304 mv "conftest.tmp" "conftest.in"
3305 cp "conftest.in" "conftest.nl"
3306 echo 'GREP' >> "conftest.nl"
3307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3309 ac_count=`expr $ac_count + 1`
3310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3311 # Best one so far, save it but keep looking for a better one
3312 ac_cv_path_GREP="$ac_path_GREP"
3313 ac_path_GREP_max=$ac_count
3315 # 10*(2^10) chars as input seems more than enough
3316 test $ac_count -gt 10 && break
3317 done
3318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3319 esac
3322 $ac_path_GREP_found && break 3
3323 done
3324 done
3326 done
3327 IFS=$as_save_IFS
3332 GREP="$ac_cv_path_GREP"
3333 if test -z "$GREP"; then
3334 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3335 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3336 { (exit 1); exit 1; }; }
3339 else
3340 ac_cv_path_GREP=$GREP
3345 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3346 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3347 GREP="$ac_cv_path_GREP"
3350 { echo "$as_me:$LINENO: checking for egrep" >&5
3351 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3352 if test "${ac_cv_path_EGREP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3356 then ac_cv_path_EGREP="$GREP -E"
3357 else
3358 # Extract the first word of "egrep" to use in msg output
3359 if test -z "$EGREP"; then
3360 set dummy egrep; ac_prog_name=$2
3361 if test "${ac_cv_path_EGREP+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 ac_path_EGREP_found=false
3365 # Loop through the user's path and test for each of PROGNAME-LIST
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_prog in egrep; do
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3374 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3375 # Check for GNU ac_path_EGREP and select it if it is found.
3376 # Check for GNU $ac_path_EGREP
3377 case `"$ac_path_EGREP" --version 2>&1` in
3378 *GNU*)
3379 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3381 ac_count=0
3382 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3383 while :
3385 cat "conftest.in" "conftest.in" >"conftest.tmp"
3386 mv "conftest.tmp" "conftest.in"
3387 cp "conftest.in" "conftest.nl"
3388 echo 'EGREP' >> "conftest.nl"
3389 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3391 ac_count=`expr $ac_count + 1`
3392 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3393 # Best one so far, save it but keep looking for a better one
3394 ac_cv_path_EGREP="$ac_path_EGREP"
3395 ac_path_EGREP_max=$ac_count
3397 # 10*(2^10) chars as input seems more than enough
3398 test $ac_count -gt 10 && break
3399 done
3400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3401 esac
3404 $ac_path_EGREP_found && break 3
3405 done
3406 done
3408 done
3409 IFS=$as_save_IFS
3414 EGREP="$ac_cv_path_EGREP"
3415 if test -z "$EGREP"; then
3416 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3417 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3418 { (exit 1); exit 1; }; }
3421 else
3422 ac_cv_path_EGREP=$EGREP
3428 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3429 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3430 EGREP="$ac_cv_path_EGREP"
3434 { echo "$as_me:$LINENO: checking for AIX" >&5
3435 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #ifdef _AIX
3444 #endif
3446 _ACEOF
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 $EGREP "yes" >/dev/null 2>&1; then
3449 { echo "$as_me:$LINENO: result: yes" >&5
3450 echo "${ECHO_T}yes" >&6; }
3451 cat >>confdefs.h <<\_ACEOF
3452 #define _ALL_SOURCE 1
3453 _ACEOF
3455 else
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3459 rm -f conftest*
3462 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3463 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3464 if test "${ac_cv_header_stdc+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <stdlib.h>
3474 #include <stdarg.h>
3475 #include <string.h>
3476 #include <float.h>
3479 main ()
3483 return 0;
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compile") 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && {
3500 test -z "$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 } && test -s conftest.$ac_objext; then
3503 ac_cv_header_stdc=yes
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 ac_cv_header_stdc=no
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 if test $ac_cv_header_stdc = yes; then
3514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <string.h>
3523 _ACEOF
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525 $EGREP "memchr" >/dev/null 2>&1; then
3527 else
3528 ac_cv_header_stdc=no
3530 rm -f conftest*
3534 if test $ac_cv_header_stdc = yes; then
3535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h. */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #include <stdlib.h>
3544 _ACEOF
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 $EGREP "free" >/dev/null 2>&1; then
3548 else
3549 ac_cv_header_stdc=no
3551 rm -f conftest*
3555 if test $ac_cv_header_stdc = yes; then
3556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3557 if test "$cross_compiling" = yes; then
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <ctype.h>
3567 #include <stdlib.h>
3568 #if ((' ' & 0x0FF) == 0x020)
3569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3571 #else
3572 # define ISLOWER(c) \
3573 (('a' <= (c) && (c) <= 'i') \
3574 || ('j' <= (c) && (c) <= 'r') \
3575 || ('s' <= (c) && (c) <= 'z'))
3576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3577 #endif
3579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3581 main ()
3583 int i;
3584 for (i = 0; i < 256; i++)
3585 if (XOR (islower (i), ISLOWER (i))
3586 || toupper (i) != TOUPPER (i))
3587 return 2;
3588 return 0;
3590 _ACEOF
3591 rm -f conftest$ac_exeext
3592 if { (ac_try="$ac_link"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_link") 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3602 { (case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_try") 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3612 else
3613 echo "$as_me: program exited with status $ac_status" >&5
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ( exit $ac_status )
3618 ac_cv_header_stdc=no
3620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3626 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3627 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3628 if test $ac_cv_header_stdc = yes; then
3630 cat >>confdefs.h <<\_ACEOF
3631 #define STDC_HEADERS 1
3632 _ACEOF
3636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3647 inttypes.h stdint.h unistd.h
3649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 $ac_includes_default
3663 #include <$ac_header>
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
3682 eval "$as_ac_Header=yes"
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 eval "$as_ac_Header=no"
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_res=`eval echo '${'$as_ac_Header'}'`
3693 { echo "$as_me:$LINENO: result: $ac_res" >&5
3694 echo "${ECHO_T}$ac_res" >&6; }
3695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3696 cat >>confdefs.h <<_ACEOF
3697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3698 _ACEOF
3702 done
3705 if test "${ac_cv_header_minix_config_h+set}" = set; then
3706 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3707 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3708 if test "${ac_cv_header_minix_config_h+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3712 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3713 else
3714 # Is the header compilable?
3715 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3716 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723 $ac_includes_default
3724 #include <minix/config.h>
3725 _ACEOF
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_header_compiler=yes
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 ac_header_compiler=no
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3753 echo "${ECHO_T}$ac_header_compiler" >&6; }
3755 # Is the header present?
3756 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3757 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 #include <minix/config.h>
3765 _ACEOF
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3767 case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null && {
3779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 }; then
3782 ac_header_preproc=yes
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 ac_header_preproc=no
3790 rm -f conftest.err conftest.$ac_ext
3791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3792 echo "${ECHO_T}$ac_header_preproc" >&6; }
3794 # So? What about this header?
3795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3796 yes:no: )
3797 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3798 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3800 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3801 ac_header_preproc=yes
3803 no:yes:* )
3804 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3805 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3807 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3808 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3809 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3810 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3811 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3812 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3813 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3815 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3818 esac
3819 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3820 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3821 if test "${ac_cv_header_minix_config_h+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 ac_cv_header_minix_config_h=$ac_header_preproc
3826 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3827 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3830 if test $ac_cv_header_minix_config_h = yes; then
3831 MINIX=yes
3832 else
3833 MINIX=
3837 if test "$MINIX" = yes; then
3839 cat >>confdefs.h <<\_ACEOF
3840 #define _POSIX_SOURCE 1
3841 _ACEOF
3844 cat >>confdefs.h <<\_ACEOF
3845 #define _POSIX_1_SOURCE 2
3846 _ACEOF
3849 cat >>confdefs.h <<\_ACEOF
3850 #define _MINIX 1
3851 _ACEOF
3865 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3866 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3867 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 # define __EXTENSIONS__ 1
3878 $ac_includes_default
3880 main ()
3884 return 0;
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_compile") 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } && {
3901 test -z "$ac_c_werror_flag" ||
3902 test ! -s conftest.err
3903 } && test -s conftest.$ac_objext; then
3904 ac_cv_safe_to_define___extensions__=yes
3905 else
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 ac_cv_safe_to_define___extensions__=no
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3915 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3916 test $ac_cv_safe_to_define___extensions__ = yes &&
3917 cat >>confdefs.h <<\_ACEOF
3918 #define __EXTENSIONS__ 1
3919 _ACEOF
3921 cat >>confdefs.h <<\_ACEOF
3922 #define _POSIX_PTHREAD_SEMANTICS 1
3923 _ACEOF
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _TANDEM_SOURCE 1
3927 _ACEOF
3929 # note- does not work on FreeBSD
3931 case "${host_os}" in
3932 freebsd*)
3933 ac_default_prefix=/usr/local
3934 CPPFLAGS=-I/usr/local/include
3935 LDFLAGS=-L/usr/local/lib
3938 ac_default_prefix=/usr
3939 if test ${sysconfdir} = '${prefix}/etc'; then
3940 sysconfdir=/etc
3942 if test ${mandir} = '${prefix}/man'; then
3943 mandir=/usr/share/man
3946 esac
3948 if test ${localstatedir} = '${prefix}/var'; then
3949 localstatedir=/var
3952 BUILD_PLATFORM=${build}
3953 BUILD_CPU=${build_cpu}
3954 BUILD_VENDOR=${build_vendor}
3955 BUILD_OS=${build_os}
3962 HOST_PLATFORM=${host}
3963 HOST_CPU=${host_cpu}
3964 HOST_VENDOR=${host_vendor}
3965 HOST_OS=${host_os}
3972 case "${host_os}" in
3973 freebsd*)
3974 OSARCH=FreeBSD
3976 netbsd*)
3977 OSARCH=NetBSD
3979 openbsd*)
3980 OSARCH=OpenBSD
3982 solaris*)
3983 OSARCH=SunOS
3986 OSARCH=${HOST_OS}
3988 esac
3992 # check for uname
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}uname; ac_word=$2
3996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_UNAME+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 case $UNAME in
4002 [\\/]* | ?:[\\/]*)
4003 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4017 done
4018 done
4019 IFS=$as_save_IFS
4022 esac
4024 UNAME=$ac_cv_path_UNAME
4025 if test -n "$UNAME"; then
4026 { echo "$as_me:$LINENO: result: $UNAME" >&5
4027 echo "${ECHO_T}$UNAME" >&6; }
4028 else
4029 { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4035 if test -z "$ac_cv_path_UNAME"; then
4036 ac_pt_UNAME=$UNAME
4037 # Extract the first word of "uname", so it can be a program name with args.
4038 set dummy uname; ac_word=$2
4039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4041 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 case $ac_pt_UNAME in
4045 [\\/]* | ?:[\\/]*)
4046 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4060 done
4061 done
4062 IFS=$as_save_IFS
4065 esac
4067 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4068 if test -n "$ac_pt_UNAME"; then
4069 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4070 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4071 else
4072 { echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6; }
4076 if test "x$ac_pt_UNAME" = x; then
4077 UNAME="No"
4078 else
4079 case $cross_compiling:$ac_tool_warned in
4080 yes:)
4081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4082 whose name does not start with the host triplet. If you think this
4083 configuration is useful to you, please write to autoconf@gnu.org." >&5
4084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4085 whose name does not start with the host triplet. If you think this
4086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4087 ac_tool_warned=yes ;;
4088 esac
4089 UNAME=$ac_pt_UNAME
4091 else
4092 UNAME="$ac_cv_path_UNAME"
4095 if test ! x"${UNAME}" = xNo; then
4096 PBX_OSREV=$(${UNAME} -r)
4106 # cross-compile checks
4107 if test "${cross_compiling}" = "yes";
4108 then
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4114 if test "${ac_cv_prog_CC+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4133 IFS=$as_save_IFS
4137 CC=$ac_cv_prog_CC
4138 if test -n "$CC"; then
4139 { echo "$as_me:$LINENO: result: $CC" >&5
4140 echo "${ECHO_T}$CC" >&6; }
4141 else
4142 { echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6; }
4148 if test -z "$ac_cv_prog_CC"; then
4149 ac_ct_CC=$CC
4150 # Extract the first word of "gcc", so it can be a program name with args.
4151 set dummy gcc; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if test -n "$ac_ct_CC"; then
4158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_prog_ac_ct_CC="gcc"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4173 IFS=$as_save_IFS
4177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178 if test -n "$ac_ct_CC"; then
4179 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4180 echo "${ECHO_T}$ac_ct_CC" >&6; }
4181 else
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4186 if test "x$ac_ct_CC" = x; then
4187 CC=":"
4188 else
4189 case $cross_compiling:$ac_tool_warned in
4190 yes:)
4191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4192 whose name does not start with the host triplet. If you think this
4193 configuration is useful to you, please write to autoconf@gnu.org." >&5
4194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4195 whose name does not start with the host triplet. If you think this
4196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4197 ac_tool_warned=yes ;;
4198 esac
4199 CC=$ac_ct_CC
4201 else
4202 CC="$ac_cv_prog_CC"
4205 if test -n "$ac_tool_prefix"; then
4206 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4207 set dummy ${ac_tool_prefix}g++; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_CXX+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 if test -n "$CXX"; then
4214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 CXX=$ac_cv_prog_CXX
4234 if test -n "$CXX"; then
4235 { echo "$as_me:$LINENO: result: $CXX" >&5
4236 echo "${ECHO_T}$CXX" >&6; }
4237 else
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4244 if test -z "$ac_cv_prog_CXX"; then
4245 ac_ct_CXX=$CXX
4246 # Extract the first word of "g++", so it can be a program name with args.
4247 set dummy g++; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 if test -n "$ac_ct_CXX"; then
4254 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_ac_ct_CXX="g++"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4269 IFS=$as_save_IFS
4273 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4274 if test -n "$ac_ct_CXX"; then
4275 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4276 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4277 else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4282 if test "x$ac_ct_CXX" = x; then
4283 CXX=":"
4284 else
4285 case $cross_compiling:$ac_tool_warned in
4286 yes:)
4287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4288 whose name does not start with the host triplet. If you think this
4289 configuration is useful to you, please write to autoconf@gnu.org." >&5
4290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4291 whose name does not start with the host triplet. If you think this
4292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4293 ac_tool_warned=yes ;;
4294 esac
4295 CXX=$ac_ct_CXX
4297 else
4298 CXX="$ac_cv_prog_CXX"
4301 if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}ld; ac_word=$2
4304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4306 if test "${ac_cv_prog_LD+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 if test -n "$LD"; then
4310 ac_cv_prog_LD="$LD" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_LD="${ac_tool_prefix}ld"
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 LD=$ac_cv_prog_LD
4330 if test -n "$LD"; then
4331 { echo "$as_me:$LINENO: result: $LD" >&5
4332 echo "${ECHO_T}$LD" >&6; }
4333 else
4334 { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4340 if test -z "$ac_cv_prog_LD"; then
4341 ac_ct_LD=$LD
4342 # Extract the first word of "ld", so it can be a program name with args.
4343 set dummy ld; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -n "$ac_ct_LD"; then
4350 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_LD="ld"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4370 if test -n "$ac_ct_LD"; then
4371 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4372 echo "${ECHO_T}$ac_ct_LD" >&6; }
4373 else
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4378 if test "x$ac_ct_LD" = x; then
4379 LD=":"
4380 else
4381 case $cross_compiling:$ac_tool_warned in
4382 yes:)
4383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4384 whose name does not start with the host triplet. If you think this
4385 configuration is useful to you, please write to autoconf@gnu.org." >&5
4386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4387 whose name does not start with the host triplet. If you think this
4388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4389 ac_tool_warned=yes ;;
4390 esac
4391 LD=$ac_ct_LD
4393 else
4394 LD="$ac_cv_prog_LD"
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_RANLIB+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 if test -n "$RANLIB"; then
4406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 RANLIB=$ac_cv_prog_RANLIB
4426 if test -n "$RANLIB"; then
4427 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4428 echo "${ECHO_T}$RANLIB" >&6; }
4429 else
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4436 if test -z "$ac_cv_prog_RANLIB"; then
4437 ac_ct_RANLIB=$RANLIB
4438 # Extract the first word of "ranlib", so it can be a program name with args.
4439 set dummy ranlib; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 if test -n "$ac_ct_RANLIB"; then
4446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_RANLIB="ranlib"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4466 if test -n "$ac_ct_RANLIB"; then
4467 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4468 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4469 else
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4474 if test "x$ac_ct_RANLIB" = x; then
4475 RANLIB=":"
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478 yes:)
4479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4480 whose name does not start with the host triplet. If you think this
4481 configuration is useful to you, please write to autoconf@gnu.org." >&5
4482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4483 whose name does not start with the host triplet. If you think this
4484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 RANLIB=$ac_ct_RANLIB
4489 else
4490 RANLIB="$ac_cv_prog_RANLIB"
4495 # Checks for programs.
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 if test -n "$ac_tool_prefix"; then
4502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4503 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506 if test "${ac_cv_prog_CC+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 if test -n "$CC"; then
4510 ac_cv_prog_CC="$CC" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4525 IFS=$as_save_IFS
4529 CC=$ac_cv_prog_CC
4530 if test -n "$CC"; then
4531 { echo "$as_me:$LINENO: result: $CC" >&5
4532 echo "${ECHO_T}$CC" >&6; }
4533 else
4534 { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4540 if test -z "$ac_cv_prog_CC"; then
4541 ac_ct_CC=$CC
4542 # Extract the first word of "gcc", so it can be a program name with args.
4543 set dummy gcc; ac_word=$2
4544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if test -n "$ac_ct_CC"; then
4550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_ac_ct_CC="gcc"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4565 IFS=$as_save_IFS
4569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4570 if test -n "$ac_ct_CC"; then
4571 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4572 echo "${ECHO_T}$ac_ct_CC" >&6; }
4573 else
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4578 if test "x$ac_ct_CC" = x; then
4579 CC=""
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582 yes:)
4583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4584 whose name does not start with the host triplet. If you think this
4585 configuration is useful to you, please write to autoconf@gnu.org." >&5
4586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4587 whose name does not start with the host triplet. If you think this
4588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4589 ac_tool_warned=yes ;;
4590 esac
4591 CC=$ac_ct_CC
4593 else
4594 CC="$ac_cv_prog_CC"
4597 if test -z "$CC"; then
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}cc; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_CC+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 if test -n "$CC"; then
4607 ac_cv_prog_CC="$CC" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_CC="${ac_tool_prefix}cc"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 CC=$ac_cv_prog_CC
4627 if test -n "$CC"; then
4628 { echo "$as_me:$LINENO: result: $CC" >&5
4629 echo "${ECHO_T}$CC" >&6; }
4630 else
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4638 if test -z "$CC"; then
4639 # Extract the first word of "cc", so it can be a program name with args.
4640 set dummy cc; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4648 else
4649 ac_prog_rejected=no
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4658 ac_prog_rejected=yes
4659 continue
4661 ac_cv_prog_CC="cc"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4665 done
4666 done
4667 IFS=$as_save_IFS
4669 if test $ac_prog_rejected = yes; then
4670 # We found a bogon in the path, so make sure we never use it.
4671 set dummy $ac_cv_prog_CC
4672 shift
4673 if test $# != 0; then
4674 # We chose a different compiler from the bogus one.
4675 # However, it has the same basename, so the bogon will be chosen
4676 # first if we set CC to just the basename; use the full file name.
4677 shift
4678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4683 CC=$ac_cv_prog_CC
4684 if test -n "$CC"; then
4685 { echo "$as_me:$LINENO: result: $CC" >&5
4686 echo "${ECHO_T}$CC" >&6; }
4687 else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4694 if test -z "$CC"; then
4695 if test -n "$ac_tool_prefix"; then
4696 for ac_prog in cl.exe
4698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_prog_CC+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 if test -n "$CC"; then
4706 ac_cv_prog_CC="$CC" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4721 IFS=$as_save_IFS
4725 CC=$ac_cv_prog_CC
4726 if test -n "$CC"; then
4727 { echo "$as_me:$LINENO: result: $CC" >&5
4728 echo "${ECHO_T}$CC" >&6; }
4729 else
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4735 test -n "$CC" && break
4736 done
4738 if test -z "$CC"; then
4739 ac_ct_CC=$CC
4740 for ac_prog in cl.exe
4742 # Extract the first word of "$ac_prog", so it can be a program name with args.
4743 set dummy $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_ac_ct_CC+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 if test -n "$ac_ct_CC"; then
4750 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4770 if test -n "$ac_ct_CC"; then
4771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4772 echo "${ECHO_T}$ac_ct_CC" >&6; }
4773 else
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4779 test -n "$ac_ct_CC" && break
4780 done
4782 if test "x$ac_ct_CC" = x; then
4783 CC=""
4784 else
4785 case $cross_compiling:$ac_tool_warned in
4786 yes:)
4787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&5
4790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4791 whose name does not start with the host triplet. If you think this
4792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4793 ac_tool_warned=yes ;;
4794 esac
4795 CC=$ac_ct_CC
4802 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4803 See \`config.log' for more details." >&5
4804 echo "$as_me: error: no acceptable C compiler found in \$PATH
4805 See \`config.log' for more details." >&2;}
4806 { (exit 1); exit 1; }; }
4808 # Provide some information about the compiler.
4809 echo "$as_me:$LINENO: checking for C compiler version" >&5
4810 ac_compiler=`set X $ac_compile; echo $2`
4811 { (ac_try="$ac_compiler --version >&5"
4812 case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815 esac
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817 (eval "$ac_compiler --version >&5") 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }
4821 { (ac_try="$ac_compiler -v >&5"
4822 case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_compiler -v >&5") 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }
4831 { (ac_try="$ac_compiler -V >&5"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compiler -V >&5") 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }
4842 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4843 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4844 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4855 main ()
4857 #ifndef __GNUC__
4858 choke me
4859 #endif
4862 return 0;
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (ac_try="$ac_compile"
4867 case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4882 ac_compiler_gnu=yes
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_compiler_gnu=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4894 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4895 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4896 GCC=`test $ac_compiler_gnu = yes && echo yes`
4897 ac_test_CFLAGS=${CFLAGS+set}
4898 ac_save_CFLAGS=$CFLAGS
4899 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4900 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4901 if test "${ac_cv_prog_cc_g+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 ac_save_c_werror_flag=$ac_c_werror_flag
4905 ac_c_werror_flag=yes
4906 ac_cv_prog_cc_g=no
4907 CFLAGS="-g"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4916 main ()
4920 return 0;
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4940 ac_cv_prog_cc_g=yes
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 CFLAGS=""
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_c_werror_flag=$ac_save_c_werror_flag
4984 CFLAGS="-g"
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4993 main ()
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (ac_try="$ac_compile"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_compile") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest.$ac_objext; then
5017 ac_cv_prog_cc_g=yes
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 ac_c_werror_flag=$ac_save_c_werror_flag
5034 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5035 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5036 if test "$ac_test_CFLAGS" = set; then
5037 CFLAGS=$ac_save_CFLAGS
5038 elif test $ac_cv_prog_cc_g = yes; then
5039 if test "$GCC" = yes; then
5040 CFLAGS="-g -O2"
5041 else
5042 CFLAGS="-g"
5044 else
5045 if test "$GCC" = yes; then
5046 CFLAGS="-O2"
5047 else
5048 CFLAGS=
5051 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5052 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_cc_c89+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 ac_cv_prog_cc_c89=no
5057 ac_save_CC=$CC
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <stdarg.h>
5065 #include <stdio.h>
5066 #include <sys/types.h>
5067 #include <sys/stat.h>
5068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5069 struct buf { int x; };
5070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5071 static char *e (p, i)
5072 char **p;
5073 int i;
5075 return p[i];
5077 static char *f (char * (*g) (char **, int), char **p, ...)
5079 char *s;
5080 va_list v;
5081 va_start (v,p);
5082 s = g (p, va_arg (v,int));
5083 va_end (v);
5084 return s;
5087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5088 function prototypes and stuff, but not '\xHH' hex character constants.
5089 These don't provoke an error unfortunately, instead are silently treated
5090 as 'x'. The following induces an error, until -std is added to get
5091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5092 array size at least. It's necessary to write '\x00'==0 to get something
5093 that's true only with -std. */
5094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5097 inside strings and character constants. */
5098 #define FOO(x) 'x'
5099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5101 int test (int i, double x);
5102 struct s1 {int (*f) (int a);};
5103 struct s2 {int (*f) (double a);};
5104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5105 int argc;
5106 char **argv;
5108 main ()
5110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5112 return 0;
5114 _ACEOF
5115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5118 CC="$ac_save_CC $ac_arg"
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5121 case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_prog_cc_c89=$ac_arg
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5144 rm -f core conftest.err conftest.$ac_objext
5145 test "x$ac_cv_prog_cc_c89" != "xno" && break
5146 done
5147 rm -f conftest.$ac_ext
5148 CC=$ac_save_CC
5151 # AC_CACHE_VAL
5152 case "x$ac_cv_prog_cc_c89" in
5154 { echo "$as_me:$LINENO: result: none needed" >&5
5155 echo "${ECHO_T}none needed" >&6; } ;;
5156 xno)
5157 { echo "$as_me:$LINENO: result: unsupported" >&5
5158 echo "${ECHO_T}unsupported" >&6; } ;;
5160 CC="$CC $ac_cv_prog_cc_c89"
5161 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5162 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5163 esac
5166 ac_ext=c
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 ac_ext=cpp
5173 ac_cpp='$CXXCPP $CPPFLAGS'
5174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5177 if test -z "$CXX"; then
5178 if test -n "$CCC"; then
5179 CXX=$CCC
5180 else
5181 if test -n "$ac_tool_prefix"; then
5182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_prog_CXX+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 if test -n "$CXX"; then
5192 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 CXX=$ac_cv_prog_CXX
5212 if test -n "$CXX"; then
5213 { echo "$as_me:$LINENO: result: $CXX" >&5
5214 echo "${ECHO_T}$CXX" >&6; }
5215 else
5216 { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5221 test -n "$CXX" && break
5222 done
5224 if test -z "$CXX"; then
5225 ac_ct_CXX=$CXX
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_prog", so it can be a program name with args.
5229 set dummy $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_ac_ct_CXX+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 if test -n "$ac_ct_CXX"; then
5236 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5256 if test -n "$ac_ct_CXX"; then
5257 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5258 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5259 else
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5265 test -n "$ac_ct_CXX" && break
5266 done
5268 if test "x$ac_ct_CXX" = x; then
5269 CXX="g++"
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet. If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&5
5276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5277 whose name does not start with the host triplet. If you think this
5278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5279 ac_tool_warned=yes ;;
5280 esac
5281 CXX=$ac_ct_CXX
5287 # Provide some information about the compiler.
5288 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5289 ac_compiler=`set X $ac_compile; echo $2`
5290 { (ac_try="$ac_compiler --version >&5"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compiler --version >&5") 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }
5300 { (ac_try="$ac_compiler -v >&5"
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compiler -v >&5") 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310 { (ac_try="$ac_compiler -V >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler -V >&5") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5321 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5322 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5323 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5334 main ()
5336 #ifndef __GNUC__
5337 choke me
5338 #endif
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_cxx_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.$ac_objext; then
5361 ac_compiler_gnu=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_compiler_gnu=no
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5373 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5374 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5375 GXX=`test $ac_compiler_gnu = yes && echo yes`
5376 ac_test_CXXFLAGS=${CXXFLAGS+set}
5377 ac_save_CXXFLAGS=$CXXFLAGS
5378 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5379 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_cxx_g+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5384 ac_cxx_werror_flag=yes
5385 ac_cv_prog_cxx_g=no
5386 CXXFLAGS="-g"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5395 main ()
5399 return 0;
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5404 case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compile") 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && {
5416 test -z "$ac_cxx_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest.$ac_objext; then
5419 ac_cv_prog_cxx_g=yes
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 CXXFLAGS=""
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5433 main ()
5437 return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5463 CXXFLAGS="-g"
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5472 main ()
5476 return 0;
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_cxx_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 ac_cv_prog_cxx_g=yes
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5514 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5515 if test "$ac_test_CXXFLAGS" = set; then
5516 CXXFLAGS=$ac_save_CXXFLAGS
5517 elif test $ac_cv_prog_cxx_g = yes; then
5518 if test "$GXX" = yes; then
5519 CXXFLAGS="-g -O2"
5520 else
5521 CXXFLAGS="-g"
5523 else
5524 if test "$GXX" = yes; then
5525 CXXFLAGS="-O2"
5526 else
5527 CXXFLAGS=
5530 ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536 ac_ext=c
5537 ac_cpp='$CPP $CPPFLAGS'
5538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5542 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5543 # On Suns, sometimes $CPP names a directory.
5544 if test -n "$CPP" && test -d "$CPP"; then
5545 CPP=
5547 if test -z "$CPP"; then
5548 if test "${ac_cv_prog_CPP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 # Double quotes because CPP needs to be expanded
5552 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5554 ac_preproc_ok=false
5555 for ac_c_preproc_warn_flag in '' yes
5557 # Use a header file that comes with gcc, so configuring glibc
5558 # with a fresh cross-compiler works.
5559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5560 # <limits.h> exists even on freestanding compilers.
5561 # On the NeXT, cc -E runs the code through the compiler's parser,
5562 # not just through cpp. "Syntax error" is here to catch this case.
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 #ifdef __STDC__
5570 # include <limits.h>
5571 #else
5572 # include <assert.h>
5573 #endif
5574 Syntax error
5575 _ACEOF
5576 if { (ac_try="$ac_cpp conftest.$ac_ext"
5577 case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null && {
5589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 }; then
5593 else
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.$ac_ext >&5
5597 # Broken: fails on valid input.
5598 continue
5601 rm -f conftest.err conftest.$ac_ext
5603 # OK, works on sane cases. Now check whether nonexistent headers
5604 # can be detected and how.
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <ac_nonexistent.h>
5612 _ACEOF
5613 if { (ac_try="$ac_cpp conftest.$ac_ext"
5614 case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } >/dev/null && {
5626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5627 test ! -s conftest.err
5628 }; then
5629 # Broken: success on invalid input.
5630 continue
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 # Passes both tests.
5636 ac_preproc_ok=:
5637 break
5640 rm -f conftest.err conftest.$ac_ext
5642 done
5643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5644 rm -f conftest.err conftest.$ac_ext
5645 if $ac_preproc_ok; then
5646 break
5649 done
5650 ac_cv_prog_CPP=$CPP
5653 CPP=$ac_cv_prog_CPP
5654 else
5655 ac_cv_prog_CPP=$CPP
5657 { echo "$as_me:$LINENO: result: $CPP" >&5
5658 echo "${ECHO_T}$CPP" >&6; }
5659 ac_preproc_ok=false
5660 for ac_c_preproc_warn_flag in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679 Syntax error
5680 _ACEOF
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } >/dev/null && {
5694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 }; then
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 # Broken: fails on valid input.
5703 continue
5706 rm -f conftest.err conftest.$ac_ext
5708 # OK, works on sane cases. Now check whether nonexistent headers
5709 # can be detected and how.
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <ac_nonexistent.h>
5717 _ACEOF
5718 if { (ac_try="$ac_cpp conftest.$ac_ext"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } >/dev/null && {
5731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 }; then
5734 # Broken: success on invalid input.
5735 continue
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 # Passes both tests.
5741 ac_preproc_ok=:
5742 break
5745 rm -f conftest.err conftest.$ac_ext
5747 done
5748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5749 rm -f conftest.err conftest.$ac_ext
5750 if $ac_preproc_ok; then
5752 else
5753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5754 See \`config.log' for more details." >&5
5755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5756 See \`config.log' for more details." >&2;}
5757 { (exit 1); exit 1; }; }
5760 ac_ext=c
5761 ac_cpp='$CPP $CPPFLAGS'
5762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766 ac_ext=cpp
5767 ac_cpp='$CXXCPP $CPPFLAGS'
5768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5771 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5772 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5773 if test -z "$CXXCPP"; then
5774 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 # Double quotes because CXXCPP needs to be expanded
5778 for CXXCPP in "$CXX -E" "/lib/cpp"
5780 ac_preproc_ok=false
5781 for ac_cxx_preproc_warn_flag in '' yes
5783 # Use a header file that comes with gcc, so configuring glibc
5784 # with a fresh cross-compiler works.
5785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 # <limits.h> exists even on freestanding compilers.
5787 # On the NeXT, cc -E runs the code through the compiler's parser,
5788 # not just through cpp. "Syntax error" is here to catch this case.
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #ifdef __STDC__
5796 # include <limits.h>
5797 #else
5798 # include <assert.h>
5799 #endif
5800 Syntax error
5801 _ACEOF
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null && {
5815 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5816 test ! -s conftest.err
5817 }; then
5819 else
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 # Broken: fails on valid input.
5824 continue
5827 rm -f conftest.err conftest.$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5838 _ACEOF
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5840 case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } >/dev/null && {
5852 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5853 test ! -s conftest.err
5854 }; then
5855 # Broken: success on invalid input.
5856 continue
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Passes both tests.
5862 ac_preproc_ok=:
5863 break
5866 rm -f conftest.err conftest.$ac_ext
5868 done
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5872 break
5875 done
5876 ac_cv_prog_CXXCPP=$CXXCPP
5879 CXXCPP=$ac_cv_prog_CXXCPP
5880 else
5881 ac_cv_prog_CXXCPP=$CXXCPP
5883 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5884 echo "${ECHO_T}$CXXCPP" >&6; }
5885 ac_preproc_ok=false
5886 for ac_cxx_preproc_warn_flag in '' yes
5888 # Use a header file that comes with gcc, so configuring glibc
5889 # with a fresh cross-compiler works.
5890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 # <limits.h> exists even on freestanding compilers.
5892 # On the NeXT, cc -E runs the code through the compiler's parser,
5893 # not just through cpp. "Syntax error" is here to catch this case.
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #ifdef __STDC__
5901 # include <limits.h>
5902 #else
5903 # include <assert.h>
5904 #endif
5905 Syntax error
5906 _ACEOF
5907 if { (ac_try="$ac_cpp conftest.$ac_ext"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null && {
5920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5921 test ! -s conftest.err
5922 }; then
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 # Broken: fails on valid input.
5929 continue
5932 rm -f conftest.err conftest.$ac_ext
5934 # OK, works on sane cases. Now check whether nonexistent headers
5935 # can be detected and how.
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #include <ac_nonexistent.h>
5943 _ACEOF
5944 if { (ac_try="$ac_cpp conftest.$ac_ext"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } >/dev/null && {
5957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5958 test ! -s conftest.err
5959 }; then
5960 # Broken: success on invalid input.
5961 continue
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 # Passes both tests.
5967 ac_preproc_ok=:
5968 break
5971 rm -f conftest.err conftest.$ac_ext
5973 done
5974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975 rm -f conftest.err conftest.$ac_ext
5976 if $ac_preproc_ok; then
5978 else
5979 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5980 See \`config.log' for more details." >&5
5981 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5982 See \`config.log' for more details." >&2;}
5983 { (exit 1); exit 1; }; }
5986 ac_ext=c
5987 ac_cpp='$CPP $CPPFLAGS'
5988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
5993 # the developers regenerating the configure script don't have to install libtool.
5994 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5995 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_SED+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6000 for ac_i in 1 2 3 4 5 6 7; do
6001 ac_script="$ac_script$as_nl$ac_script"
6002 done
6003 echo "$ac_script" | sed 99q >conftest.sed
6004 $as_unset ac_script || ac_script=
6005 # Extract the first word of "sed gsed" to use in msg output
6006 if test -z "$SED"; then
6007 set dummy sed gsed; ac_prog_name=$2
6008 if test "${ac_cv_path_SED+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 ac_path_SED_found=false
6012 # Loop through the user's path and test for each of PROGNAME-LIST
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_prog in sed gsed; do
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6022 # Check for GNU ac_path_SED and select it if it is found.
6023 # Check for GNU $ac_path_SED
6024 case `"$ac_path_SED" --version 2>&1` in
6025 *GNU*)
6026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6028 ac_count=0
6029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6030 while :
6032 cat "conftest.in" "conftest.in" >"conftest.tmp"
6033 mv "conftest.tmp" "conftest.in"
6034 cp "conftest.in" "conftest.nl"
6035 echo '' >> "conftest.nl"
6036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6038 ac_count=`expr $ac_count + 1`
6039 if test $ac_count -gt ${ac_path_SED_max-0}; then
6040 # Best one so far, save it but keep looking for a better one
6041 ac_cv_path_SED="$ac_path_SED"
6042 ac_path_SED_max=$ac_count
6044 # 10*(2^10) chars as input seems more than enough
6045 test $ac_count -gt 10 && break
6046 done
6047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6048 esac
6051 $ac_path_SED_found && break 3
6052 done
6053 done
6055 done
6056 IFS=$as_save_IFS
6061 SED="$ac_cv_path_SED"
6062 if test -z "$SED"; then
6063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6064 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6065 { (exit 1); exit 1; }; }
6068 else
6069 ac_cv_path_SED=$SED
6073 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6074 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6075 SED="$ac_cv_path_SED"
6076 rm -f conftest.sed
6078 { echo "$as_me:$LINENO: checking for egrep" >&5
6079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_egrep+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6084 then ac_cv_prog_egrep='grep -E'
6085 else ac_cv_prog_egrep='egrep'
6088 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6089 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6090 EGREP=$ac_cv_prog_egrep
6094 # Check whether --with-gnu-ld was given.
6095 if test "${with_gnu_ld+set}" = set; then
6096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6097 else
6098 with_gnu_ld=no
6101 ac_prog=ld
6102 if test "$GCC" = yes; then
6103 # Check if gcc -print-prog-name=ld gives a path.
6104 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6105 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6106 case $host in
6107 *-*-mingw*)
6108 # gcc leaves a trailing carriage return which upsets mingw
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112 esac
6113 case $ac_prog in
6114 # Accept absolute paths.
6115 [\\/]* | ?:[\\/]*)
6116 re_direlt='/[^/][^/]*/\.\./'
6117 # Canonicalize the pathname of ld
6118 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6120 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6121 done
6122 test -z "$LD" && LD="$ac_prog"
6125 # If it fails, then pretend we aren't using GCC.
6126 ac_prog=ld
6129 # If it is relative, then search for the first ld in PATH.
6130 with_gnu_ld=unknown
6132 esac
6133 elif test "$with_gnu_ld" = yes; then
6134 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6135 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6136 else
6137 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6138 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6140 if test "${lt_cv_path_LD+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 if test -z "$LD"; then
6144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6145 for ac_dir in $PATH; do
6146 IFS="$lt_save_ifs"
6147 test -z "$ac_dir" && ac_dir=.
6148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6149 lt_cv_path_LD="$ac_dir/$ac_prog"
6150 # Check to see if the program is GNU ld. I'd rather use --version,
6151 # but apparently some variants of GNU ld only accept -v.
6152 # Break only if it was the GNU/non-GNU ld that we prefer.
6153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6154 *GNU* | *'with BFD'*)
6155 test "$with_gnu_ld" != no && break
6158 test "$with_gnu_ld" != yes && break
6160 esac
6162 done
6163 IFS="$lt_save_ifs"
6164 else
6165 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6169 LD="$lt_cv_path_LD"
6170 if test -n "$LD"; then
6171 { echo "$as_me:$LINENO: result: $LD" >&5
6172 echo "${ECHO_T}$LD" >&6; }
6173 else
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6177 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6178 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6179 { (exit 1); exit 1; }; }
6180 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6181 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6182 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6186 case `$LD -v 2>&1 </dev/null` in
6187 *GNU* | *'with BFD'*)
6188 lt_cv_prog_gnu_ld=yes
6191 lt_cv_prog_gnu_ld=no
6193 esac
6195 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6196 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6197 with_gnu_ld=$lt_cv_prog_gnu_ld
6199 # note - does not work on freebsd
6200 for ac_prog in gawk mawk nawk awk
6202 # Extract the first word of "$ac_prog", so it can be a program name with args.
6203 set dummy $ac_prog; ac_word=$2
6204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_AWK+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if test -n "$AWK"; then
6210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_AWK="$ac_prog"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6225 IFS=$as_save_IFS
6229 AWK=$ac_cv_prog_AWK
6230 if test -n "$AWK"; then
6231 { echo "$as_me:$LINENO: result: $AWK" >&5
6232 echo "${ECHO_T}$AWK" >&6; }
6233 else
6234 { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6239 test -n "$AWK" && break
6240 done
6242 # Find a good install program. We prefer a C program (faster),
6243 # so one script is as good as another. But avoid the broken or
6244 # incompatible versions:
6245 # SysV /etc/install, /usr/sbin/install
6246 # SunOS /usr/etc/install
6247 # IRIX /sbin/install
6248 # AIX /bin/install
6249 # AmigaOS /C/install, which installs bootblocks on floppy discs
6250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6253 # OS/2's system install, which has a completely different semantic
6254 # ./install, which can be erroneously created by make from ./install.sh.
6255 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6256 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6257 if test -z "$INSTALL"; then
6258 if test "${ac_cv_path_install+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 # Account for people who put trailing slashes in PATH elements.
6267 case $as_dir/ in
6268 ./ | .// | /cC/* | \
6269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6270 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6271 /usr/ucb/* ) ;;
6273 # OSF1 and SCO ODT 3.0 have their own names for install.
6274 # Don't use installbsd from OSF since it installs stuff as root
6275 # by default.
6276 for ac_prog in ginstall scoinst install; do
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6279 if test $ac_prog = install &&
6280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6281 # AIX install. It has an incompatible calling convention.
6283 elif test $ac_prog = install &&
6284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6285 # program-specific install script used by HP pwplus--don't use.
6287 else
6288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6289 break 3
6292 done
6293 done
6295 esac
6296 done
6297 IFS=$as_save_IFS
6301 if test "${ac_cv_path_install+set}" = set; then
6302 INSTALL=$ac_cv_path_install
6303 else
6304 # As a last resort, use the slow shell script. Don't cache a
6305 # value for INSTALL within a source directory, because that will
6306 # break other packages using the cache if that directory is
6307 # removed, or if the value is a relative name.
6308 INSTALL=$ac_install_sh
6311 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6312 echo "${ECHO_T}$INSTALL" >&6; }
6314 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6315 # It thinks the first close brace ends the variable substitution.
6316 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6318 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6320 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6322 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6323 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6324 LN_S=$as_ln_s
6325 if test "$LN_S" = "ln -s"; then
6326 { echo "$as_me:$LINENO: result: yes" >&5
6327 echo "${ECHO_T}yes" >&6; }
6328 else
6329 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6330 echo "${ECHO_T}no, using $LN_S" >&6; }
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_prog_RANLIB+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 if test -n "$RANLIB"; then
6342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6361 RANLIB=$ac_cv_prog_RANLIB
6362 if test -n "$RANLIB"; then
6363 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6364 echo "${ECHO_T}$RANLIB" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6372 if test -z "$ac_cv_prog_RANLIB"; then
6373 ac_ct_RANLIB=$RANLIB
6374 # Extract the first word of "ranlib", so it can be a program name with args.
6375 set dummy ranlib; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 if test -n "$ac_ct_RANLIB"; then
6382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_ac_ct_RANLIB="ranlib"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6395 done
6396 done
6397 IFS=$as_save_IFS
6401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6402 if test -n "$ac_ct_RANLIB"; then
6403 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6404 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6405 else
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6410 if test "x$ac_ct_RANLIB" = x; then
6411 RANLIB=":"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6416 whose name does not start with the host triplet. If you think this
6417 configuration is useful to you, please write to autoconf@gnu.org." >&5
6418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6419 whose name does not start with the host triplet. If you think this
6420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 RANLIB=$ac_ct_RANLIB
6425 else
6426 RANLIB="$ac_cv_prog_RANLIB"
6429 { echo "$as_me:$LINENO: checking for GNU make" >&5
6430 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6431 if test "${GNU_MAKE+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 GNU_MAKE='Not Found' ;
6435 GNU_MAKE_VERSION_MAJOR=0 ;
6436 GNU_MAKE_VERSION_MINOR=0 ;
6437 for a in make gmake gnumake ; do
6438 if test -z "$a" ; then continue ; fi ;
6439 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6440 GNU_MAKE=$a ;
6441 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6442 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6443 break;
6445 done ;
6448 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6449 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6450 if test "x$GNU_MAKE" = "xNot Found" ; then
6451 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6452 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6453 { (exit 1); exit 1; }; }
6454 exit 1
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_STRIP+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 case $STRIP in
6468 [\\/]* | ?:[\\/]*)
6469 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6483 done
6484 done
6485 IFS=$as_save_IFS
6488 esac
6490 STRIP=$ac_cv_path_STRIP
6491 if test -n "$STRIP"; then
6492 { echo "$as_me:$LINENO: result: $STRIP" >&5
6493 echo "${ECHO_T}$STRIP" >&6; }
6494 else
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6501 if test -z "$ac_cv_path_STRIP"; then
6502 ac_pt_STRIP=$STRIP
6503 # Extract the first word of "strip", so it can be a program name with args.
6504 set dummy strip; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 case $ac_pt_STRIP in
6511 [\\/]* | ?:[\\/]*)
6512 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6526 done
6527 done
6528 IFS=$as_save_IFS
6531 esac
6533 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6534 if test -n "$ac_pt_STRIP"; then
6535 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6536 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6537 else
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6542 if test "x$ac_pt_STRIP" = x; then
6543 STRIP=":"
6544 else
6545 case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6548 whose name does not start with the host triplet. If you think this
6549 configuration is useful to you, please write to autoconf@gnu.org." >&5
6550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6551 whose name does not start with the host triplet. If you think this
6552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555 STRIP=$ac_pt_STRIP
6557 else
6558 STRIP="$ac_cv_path_STRIP"
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_AR+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 case $AR in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6587 IFS=$as_save_IFS
6590 esac
6592 AR=$ac_cv_path_AR
6593 if test -n "$AR"; then
6594 { echo "$as_me:$LINENO: result: $AR" >&5
6595 echo "${ECHO_T}$AR" >&6; }
6596 else
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6603 if test -z "$ac_cv_path_AR"; then
6604 ac_pt_AR=$AR
6605 # Extract the first word of "ar", so it can be a program name with args.
6606 set dummy ar; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 case $ac_pt_AR in
6613 [\\/]* | ?:[\\/]*)
6614 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6628 done
6629 done
6630 IFS=$as_save_IFS
6633 esac
6635 ac_pt_AR=$ac_cv_path_ac_pt_AR
6636 if test -n "$ac_pt_AR"; then
6637 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6638 echo "${ECHO_T}$ac_pt_AR" >&6; }
6639 else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6644 if test "x$ac_pt_AR" = x; then
6645 AR=":"
6646 else
6647 case $cross_compiling:$ac_tool_warned in
6648 yes:)
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657 AR=$ac_pt_AR
6659 else
6660 AR="$ac_cv_path_AR"
6664 GNU_LD=0
6665 if test "x$with_gnu_ld" = "xyes" ; then
6666 GNU_LD=1
6670 # Extract the first word of "grep", so it can be a program name with args.
6671 set dummy grep; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_path_GREP+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 case $GREP in
6678 [\\/]* | ?:[\\/]*)
6679 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6693 done
6694 done
6695 IFS=$as_save_IFS
6697 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6699 esac
6701 GREP=$ac_cv_path_GREP
6702 if test -n "$GREP"; then
6703 { echo "$as_me:$LINENO: result: $GREP" >&5
6704 echo "${ECHO_T}$GREP" >&6; }
6705 else
6706 { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6711 # Extract the first word of "find", so it can be a program name with args.
6712 set dummy find; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_FIND+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 case $FIND in
6719 [\\/]* | ?:[\\/]*)
6720 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6734 done
6735 done
6736 IFS=$as_save_IFS
6738 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6740 esac
6742 FIND=$ac_cv_path_FIND
6743 if test -n "$FIND"; then
6744 { echo "$as_me:$LINENO: result: $FIND" >&5
6745 echo "${ECHO_T}$FIND" >&6; }
6746 else
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6752 # Extract the first word of "compress", so it can be a program name with args.
6753 set dummy compress; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_COMPRESS+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 case $COMPRESS in
6760 [\\/]* | ?:[\\/]*)
6761 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6775 done
6776 done
6777 IFS=$as_save_IFS
6779 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6781 esac
6783 COMPRESS=$ac_cv_path_COMPRESS
6784 if test -n "$COMPRESS"; then
6785 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6786 echo "${ECHO_T}$COMPRESS" >&6; }
6787 else
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6793 # Extract the first word of "basename", so it can be a program name with args.
6794 set dummy basename; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_BASENAME+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 case $BASENAME in
6801 [\\/]* | ?:[\\/]*)
6802 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6816 done
6817 done
6818 IFS=$as_save_IFS
6820 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6822 esac
6824 BASENAME=$ac_cv_path_BASENAME
6825 if test -n "$BASENAME"; then
6826 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6827 echo "${ECHO_T}$BASENAME" >&6; }
6828 else
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6834 # Extract the first word of "id", so it can be a program name with args.
6835 set dummy id; ac_word=$2
6836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838 if test "${ac_cv_path_ID+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 case $ID in
6842 [\\/]* | ?:[\\/]*)
6843 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6857 done
6858 done
6859 IFS=$as_save_IFS
6861 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6863 esac
6865 ID=$ac_cv_path_ID
6866 if test -n "$ID"; then
6867 { echo "$as_me:$LINENO: result: $ID" >&5
6868 echo "${ECHO_T}$ID" >&6; }
6869 else
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6875 # Extract the first word of "dirname", so it can be a program name with args.
6876 set dummy dirname; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_DIRNAME+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 case $DIRNAME in
6883 [\\/]* | ?:[\\/]*)
6884 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6898 done
6899 done
6900 IFS=$as_save_IFS
6902 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6904 esac
6906 DIRNAME=$ac_cv_path_DIRNAME
6907 if test -n "$DIRNAME"; then
6908 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6909 echo "${ECHO_T}$DIRNAME" >&6; }
6910 else
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6916 # Extract the first word of "sh", so it can be a program name with args.
6917 set dummy sh; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_path_SHELL+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 case $SHELL in
6924 [\\/]* | ?:[\\/]*)
6925 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6939 done
6940 done
6941 IFS=$as_save_IFS
6943 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
6945 esac
6947 SHELL=$ac_cv_path_SHELL
6948 if test -n "$SHELL"; then
6949 { echo "$as_me:$LINENO: result: $SHELL" >&5
6950 echo "${ECHO_T}$SHELL" >&6; }
6951 else
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6957 # Extract the first word of "ln", so it can be a program name with args.
6958 set dummy ln; ac_word=$2
6959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961 if test "${ac_cv_path_LN+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 case $LN in
6965 [\\/]* | ?:[\\/]*)
6966 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
6977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6980 done
6981 done
6982 IFS=$as_save_IFS
6984 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
6986 esac
6988 LN=$ac_cv_path_LN
6989 if test -n "$LN"; then
6990 { echo "$as_me:$LINENO: result: $LN" >&5
6991 echo "${ECHO_T}$LN" >&6; }
6992 else
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6998 # Extract the first word of "dot", so it can be a program name with args.
6999 set dummy dot; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_DOT+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 case $DOT in
7006 [\\/]* | ?:[\\/]*)
7007 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7025 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7027 esac
7029 DOT=$ac_cv_path_DOT
7030 if test -n "$DOT"; then
7031 { echo "$as_me:$LINENO: result: $DOT" >&5
7032 echo "${ECHO_T}$DOT" >&6; }
7033 else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7039 # Extract the first word of "wget", so it can be a program name with args.
7040 set dummy wget; ac_word=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_path_WGET+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 case $WGET in
7047 [\\/]* | ?:[\\/]*)
7048 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7062 done
7063 done
7064 IFS=$as_save_IFS
7066 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7068 esac
7070 WGET=$ac_cv_path_WGET
7071 if test -n "$WGET"; then
7072 { echo "$as_me:$LINENO: result: $WGET" >&5
7073 echo "${ECHO_T}$WGET" >&6; }
7074 else
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7080 if test "${WGET}" != ":" ; then
7081 DOWNLOAD=${WGET}
7082 else
7083 # Extract the first word of "fetch", so it can be a program name with args.
7084 set dummy fetch; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_FETCH+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 case $FETCH in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7110 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7112 esac
7114 FETCH=$ac_cv_path_FETCH
7115 if test -n "$FETCH"; then
7116 { echo "$as_me:$LINENO: result: $FETCH" >&5
7117 echo "${ECHO_T}$FETCH" >&6; }
7118 else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 DOWNLOAD=${FETCH}
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137 acx_pthread_ok=no
7139 # We used to check for pthread.h first, but this fails if pthread.h
7140 # requires special compiler flags (e.g. on True64 or Sequent).
7141 # It gets checked for in the link test anyway.
7143 # First of all, check if the user has set any of the PTHREAD_LIBS,
7144 # etcetera environment variables, and if threads linking works using
7145 # them:
7146 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7147 save_CFLAGS="$CFLAGS"
7148 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7149 save_LIBS="$LIBS"
7150 LIBS="$PTHREAD_LIBS $LIBS"
7151 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7152 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 char pthread_join ();
7168 main ()
7170 return pthread_join ();
7172 return 0;
7174 _ACEOF
7175 rm -f conftest.$ac_objext conftest$ac_exeext
7176 if { (ac_try="$ac_link"
7177 case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_link") 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && {
7189 test -z "$ac_c_werror_flag" ||
7190 test ! -s conftest.err
7191 } && test -s conftest$ac_exeext &&
7192 $as_test_x conftest$ac_exeext; then
7193 acx_pthread_ok=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7202 conftest$ac_exeext conftest.$ac_ext
7203 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7204 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7205 if test x"$acx_pthread_ok" = xno; then
7206 PTHREAD_LIBS=""
7207 PTHREAD_CFLAGS=""
7209 LIBS="$save_LIBS"
7210 CFLAGS="$save_CFLAGS"
7213 # We must check for the threads library under a number of different
7214 # names; the ordering is very important because some systems
7215 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7216 # libraries is broken (non-POSIX).
7218 # Create a list of thread flags to try. Items starting with a "-" are
7219 # C compiler flags, and other items are library names, except for "none"
7220 # which indicates that we try without any flags at all, and "pthread-config"
7221 # which is a program returning the flags for the Pth emulation library.
7223 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7225 # The ordering *is* (sometimes) important. Some notes on the
7226 # individual items follow:
7228 # pthreads: AIX (must check this before -lpthread)
7229 # none: in case threads are in libc; should be tried before -Kthread and
7230 # other compiler flags to prevent continual compiler warnings
7231 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7232 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7233 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7234 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7235 # -pthreads: Solaris/gcc
7236 # -mthreads: Mingw32/gcc, Lynx/gcc
7237 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7238 # doesn't hurt to check since this sometimes defines pthreads too;
7239 # also defines -D_REENTRANT)
7240 # ... -mt is also the pthreads flag for HP/aCC
7241 # pthread: Linux, etcetera
7242 # --thread-safe: KAI C++
7243 # pthread-config: use pthread-config program (for GNU Pth library)
7245 case "${host_cpu}-${host_os}" in
7246 *solaris*)
7248 # On Solaris (at least, for some versions), libc contains stubbed
7249 # (non-functional) versions of the pthreads routines, so link-based
7250 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7251 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7252 # a function called by this macro, so we could check for that, but
7253 # who knows whether they'll stub that too in a future libc.) So,
7254 # we'll just look for -pthreads and -lpthread first:
7256 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7258 esac
7260 if test x"$acx_pthread_ok" = xno; then
7261 for flag in $acx_pthread_flags; do
7263 case $flag in
7264 none)
7265 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7266 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7270 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7271 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7272 PTHREAD_CFLAGS="$flag"
7275 pthread-config)
7276 # Extract the first word of "pthread-config", so it can be a program name with args.
7277 set dummy pthread-config; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 if test -n "$acx_pthread_config"; then
7284 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_prog_acx_pthread_config="yes"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7297 done
7298 done
7299 IFS=$as_save_IFS
7301 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7304 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7305 if test -n "$acx_pthread_config"; then
7306 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7307 echo "${ECHO_T}$acx_pthread_config" >&6; }
7308 else
7309 { echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6; }
7314 if test x"$acx_pthread_config" = xno; then continue; fi
7315 PTHREAD_CFLAGS="`pthread-config --cflags`"
7316 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7320 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7321 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7322 PTHREAD_LIBS="-l$flag"
7324 esac
7326 save_LIBS="$LIBS"
7327 save_CFLAGS="$CFLAGS"
7328 LIBS="$PTHREAD_LIBS $LIBS"
7329 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7331 # Check for various functions. We must include pthread.h,
7332 # since some functions may be macros. (On the Sequent, we
7333 # need a special flag -Kthread to make this header compile.)
7334 # We check for pthread_join because it is in -lpthread on IRIX
7335 # while pthread_create is in libc. We check for pthread_attr_init
7336 # due to DEC craziness with -lpthreads. We check for
7337 # pthread_cleanup_push because it is one of the few pthread
7338 # functions on Solaris that doesn't have a non-functional libc stub.
7339 # We try pthread_create on general principles.
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <pthread.h>
7348 main ()
7350 pthread_t th; pthread_join(th, 0);
7351 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7352 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7354 return 0;
7356 _ACEOF
7357 rm -f conftest.$ac_objext conftest$ac_exeext
7358 if { (ac_try="$ac_link"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_link") 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest$ac_exeext &&
7374 $as_test_x conftest$ac_exeext; then
7375 acx_pthread_ok=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7384 conftest$ac_exeext conftest.$ac_ext
7386 LIBS="$save_LIBS"
7387 CFLAGS="$save_CFLAGS"
7389 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7390 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7391 if test "x$acx_pthread_ok" = xyes; then
7392 break;
7395 PTHREAD_LIBS=""
7396 PTHREAD_CFLAGS=""
7397 done
7400 # Various other checks:
7401 if test "x$acx_pthread_ok" = xyes; then
7402 save_LIBS="$LIBS"
7403 LIBS="$PTHREAD_LIBS $LIBS"
7404 save_CFLAGS="$CFLAGS"
7405 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7407 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7408 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7409 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7410 attr_name=unknown
7411 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7412 cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h. */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7418 #include <pthread.h>
7420 main ()
7422 int attr=$attr; return attr;
7424 return 0;
7426 _ACEOF
7427 rm -f conftest.$ac_objext conftest$ac_exeext
7428 if { (ac_try="$ac_link"
7429 case "(($ac_try" in
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_link") 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest$ac_exeext &&
7444 $as_test_x conftest$ac_exeext; then
7445 attr_name=$attr; break
7446 else
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7454 conftest$ac_exeext conftest.$ac_ext
7455 done
7456 { echo "$as_me:$LINENO: result: $attr_name" >&5
7457 echo "${ECHO_T}$attr_name" >&6; }
7458 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7460 cat >>confdefs.h <<_ACEOF
7461 #define PTHREAD_CREATE_JOINABLE $attr_name
7462 _ACEOF
7466 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7467 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7468 flag=no
7469 case "${host_cpu}-${host_os}" in
7470 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7471 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7472 esac
7473 { echo "$as_me:$LINENO: result: ${flag}" >&5
7474 echo "${ECHO_T}${flag}" >&6; }
7475 if test "x$flag" != xno; then
7476 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7479 LIBS="$save_LIBS"
7480 CFLAGS="$save_CFLAGS"
7482 # More AIX lossage: must compile with xlc_r or cc_r
7483 if test x"$GCC" != xyes; then
7484 for ac_prog in xlc_r cc_r
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 if test -n "$PTHREAD_CC"; then
7494 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503 ac_cv_prog_PTHREAD_CC="$ac_prog"
7504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7507 done
7508 done
7509 IFS=$as_save_IFS
7513 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7514 if test -n "$PTHREAD_CC"; then
7515 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7516 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7517 else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7523 test -n "$PTHREAD_CC" && break
7524 done
7525 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7527 else
7528 PTHREAD_CC=$CC
7530 else
7531 PTHREAD_CC="$CC"
7538 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7539 if test x"$acx_pthread_ok" = xyes; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define HAVE_PTHREAD 1
7543 _ACEOF
7546 else
7547 acx_pthread_ok=no
7550 ac_ext=c
7551 ac_cpp='$CPP $CPPFLAGS'
7552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558 ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7565 # Check whether --enable-dev-mode was given.
7566 if test "${enable_dev_mode+set}" = set; then
7567 enableval=$enable_dev_mode; case "${enableval}" in
7568 y|ye|yes) AST_DEVMODE=yes ;;
7569 n|no) AST_DEVMODE=no ;;
7570 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7571 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7572 { (exit 1); exit 1; }; } ;;
7573 esac
7578 # package option names should be in alphabetical order
7579 # by the --with option name, to make things easier for the users :-)
7582 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7583 ALSA_OPTION="asound"
7585 # Check whether --with-asound was given.
7586 if test "${with_asound+set}" = set; then
7587 withval=$with_asound;
7588 case ${withval} in
7589 n|no)
7590 USE_ALSA=no
7592 y|ye|yes)
7593 ALSA_MANDATORY="yes"
7596 ALSA_DIR="${withval}"
7597 ALSA_MANDATORY="yes"
7599 esac
7603 PBX_ALSA=0
7610 CURL_DESCRIP="cURL"
7611 CURL_OPTION="curl"
7613 # Check whether --with-curl was given.
7614 if test "${with_curl+set}" = set; then
7615 withval=$with_curl;
7616 case ${withval} in
7617 n|no)
7618 USE_CURL=no
7620 y|ye|yes)
7621 CURL_MANDATORY="yes"
7624 CURL_DIR="${withval}"
7625 CURL_MANDATORY="yes"
7627 esac
7631 PBX_CURL=0
7638 CURSES_DESCRIP="curses"
7639 CURSES_OPTION="curses"
7641 # Check whether --with-curses was given.
7642 if test "${with_curses+set}" = set; then
7643 withval=$with_curses;
7644 case ${withval} in
7645 n|no)
7646 USE_CURSES=no
7648 y|ye|yes)
7649 CURSES_MANDATORY="yes"
7652 CURSES_DIR="${withval}"
7653 CURSES_MANDATORY="yes"
7655 esac
7659 PBX_CURSES=0
7666 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7667 GNUTLS_OPTION="gnutls"
7669 # Check whether --with-gnutls was given.
7670 if test "${with_gnutls+set}" = set; then
7671 withval=$with_gnutls;
7672 case ${withval} in
7673 n|no)
7674 USE_GNUTLS=no
7676 y|ye|yes)
7677 GNUTLS_MANDATORY="yes"
7680 GNUTLS_DIR="${withval}"
7681 GNUTLS_MANDATORY="yes"
7683 esac
7687 PBX_GNUTLS=0
7694 GSM_DESCRIP="GSM"
7695 GSM_OPTION="gsm"
7697 # Check whether --with-gsm was given.
7698 if test "${with_gsm+set}" = set; then
7699 withval=$with_gsm;
7700 case ${withval} in
7701 n|no)
7702 USE_GSM=no
7704 y|ye|yes)
7705 GSM_MANDATORY="yes"
7708 GSM_DIR="${withval}"
7709 GSM_MANDATORY="yes"
7711 esac
7715 PBX_GSM=0
7722 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7723 IKSEMEL_OPTION="iksemel"
7725 # Check whether --with-iksemel was given.
7726 if test "${with_iksemel+set}" = set; then
7727 withval=$with_iksemel;
7728 case ${withval} in
7729 n|no)
7730 USE_IKSEMEL=no
7732 y|ye|yes)
7733 IKSEMEL_MANDATORY="yes"
7736 IKSEMEL_DIR="${withval}"
7737 IKSEMEL_MANDATORY="yes"
7739 esac
7743 PBX_IKSEMEL=0
7750 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7751 IMAP_TK_OPTION="imap"
7753 # Check whether --with-imap was given.
7754 if test "${with_imap+set}" = set; then
7755 withval=$with_imap;
7756 case ${withval} in
7757 n|no)
7758 USE_IMAP_TK=no
7760 y|ye|yes)
7761 IMAP_TK_MANDATORY="yes"
7764 IMAP_TK_DIR="${withval}"
7765 IMAP_TK_MANDATORY="yes"
7767 esac
7771 PBX_IMAP_TK=0
7778 ISDNNET_DESCRIP="ISDN4Linux Library"
7779 ISDNNET_OPTION="isdnnet"
7781 # Check whether --with-isdnnet was given.
7782 if test "${with_isdnnet+set}" = set; then
7783 withval=$with_isdnnet;
7784 case ${withval} in
7785 n|no)
7786 USE_ISDNNET=no
7788 y|ye|yes)
7789 ISDNNET_MANDATORY="yes"
7792 ISDNNET_DIR="${withval}"
7793 ISDNNET_MANDATORY="yes"
7795 esac
7799 PBX_ISDNNET=0
7806 KDE_DESCRIP="KDE"
7807 KDE_OPTION="kde"
7809 # Check whether --with-kde was given.
7810 if test "${with_kde+set}" = set; then
7811 withval=$with_kde;
7812 case ${withval} in
7813 n|no)
7814 USE_KDE=no
7816 y|ye|yes)
7817 KDE_MANDATORY="yes"
7820 KDE_DIR="${withval}"
7821 KDE_MANDATORY="yes"
7823 esac
7827 PBX_KDE=0
7834 LTDL_DESCRIP="libtool"
7835 LTDL_OPTION="ltdl"
7837 # Check whether --with-ltdl was given.
7838 if test "${with_ltdl+set}" = set; then
7839 withval=$with_ltdl;
7840 case ${withval} in
7841 n|no)
7842 USE_LTDL=no
7844 y|ye|yes)
7845 LTDL_MANDATORY="yes"
7848 LTDL_DIR="${withval}"
7849 LTDL_MANDATORY="yes"
7851 esac
7855 PBX_LTDL=0
7862 MISDN_DESCRIP="mISDN User Library"
7863 MISDN_OPTION="misdn"
7865 # Check whether --with-misdn was given.
7866 if test "${with_misdn+set}" = set; then
7867 withval=$with_misdn;
7868 case ${withval} in
7869 n|no)
7870 USE_MISDN=no
7872 y|ye|yes)
7873 MISDN_MANDATORY="yes"
7876 MISDN_DIR="${withval}"
7877 MISDN_MANDATORY="yes"
7879 esac
7883 PBX_MISDN=0
7890 NBS_DESCRIP="Network Broadcast Sound"
7891 NBS_OPTION="nbs"
7893 # Check whether --with-nbs was given.
7894 if test "${with_nbs+set}" = set; then
7895 withval=$with_nbs;
7896 case ${withval} in
7897 n|no)
7898 USE_NBS=no
7900 y|ye|yes)
7901 NBS_MANDATORY="yes"
7904 NBS_DIR="${withval}"
7905 NBS_MANDATORY="yes"
7907 esac
7911 PBX_NBS=0
7918 NCURSES_DESCRIP="ncurses"
7919 NCURSES_OPTION="ncurses"
7921 # Check whether --with-ncurses was given.
7922 if test "${with_ncurses+set}" = set; then
7923 withval=$with_ncurses;
7924 case ${withval} in
7925 n|no)
7926 USE_NCURSES=no
7928 y|ye|yes)
7929 NCURSES_MANDATORY="yes"
7932 NCURSES_DIR="${withval}"
7933 NCURSES_MANDATORY="yes"
7935 esac
7939 PBX_NCURSES=0
7946 NETSNMP_DESCRIP="Net-SNMP"
7947 NETSNMP_OPTION="netsnmp"
7949 # Check whether --with-netsnmp was given.
7950 if test "${with_netsnmp+set}" = set; then
7951 withval=$with_netsnmp;
7952 case ${withval} in
7953 n|no)
7954 USE_NETSNMP=no
7956 y|ye|yes)
7957 NETSNMP_MANDATORY="yes"
7960 NETSNMP_DIR="${withval}"
7961 NETSNMP_MANDATORY="yes"
7963 esac
7967 PBX_NETSNMP=0
7974 NEWT_DESCRIP="newt"
7975 NEWT_OPTION="newt"
7977 # Check whether --with-newt was given.
7978 if test "${with_newt+set}" = set; then
7979 withval=$with_newt;
7980 case ${withval} in
7981 n|no)
7982 USE_NEWT=no
7984 y|ye|yes)
7985 NEWT_MANDATORY="yes"
7988 NEWT_DIR="${withval}"
7989 NEWT_MANDATORY="yes"
7991 esac
7995 PBX_NEWT=0
8002 UNIXODBC_DESCRIP="unixODBC"
8003 UNIXODBC_OPTION="odbc"
8005 # Check whether --with-odbc was given.
8006 if test "${with_odbc+set}" = set; then
8007 withval=$with_odbc;
8008 case ${withval} in
8009 n|no)
8010 USE_UNIXODBC=no
8012 y|ye|yes)
8013 UNIXODBC_MANDATORY="yes"
8016 UNIXODBC_DIR="${withval}"
8017 UNIXODBC_MANDATORY="yes"
8019 esac
8023 PBX_UNIXODBC=0
8030 OGG_DESCRIP="OGG"
8031 OGG_OPTION="ogg"
8033 # Check whether --with-ogg was given.
8034 if test "${with_ogg+set}" = set; then
8035 withval=$with_ogg;
8036 case ${withval} in
8037 n|no)
8038 USE_OGG=no
8040 y|ye|yes)
8041 OGG_MANDATORY="yes"
8044 OGG_DIR="${withval}"
8045 OGG_MANDATORY="yes"
8047 esac
8051 PBX_OGG=0
8058 OSPTK_DESCRIP="OSP Toolkit"
8059 OSPTK_OPTION="osptk"
8061 # Check whether --with-osptk was given.
8062 if test "${with_osptk+set}" = set; then
8063 withval=$with_osptk;
8064 case ${withval} in
8065 n|no)
8066 USE_OSPTK=no
8068 y|ye|yes)
8069 OSPTK_MANDATORY="yes"
8072 OSPTK_DIR="${withval}"
8073 OSPTK_MANDATORY="yes"
8075 esac
8079 PBX_OSPTK=0
8086 OSS_DESCRIP="Open Sound System"
8087 OSS_OPTION="oss"
8089 # Check whether --with-oss was given.
8090 if test "${with_oss+set}" = set; then
8091 withval=$with_oss;
8092 case ${withval} in
8093 n|no)
8094 USE_OSS=no
8096 y|ye|yes)
8097 OSS_MANDATORY="yes"
8100 OSS_DIR="${withval}"
8101 OSS_MANDATORY="yes"
8103 esac
8107 PBX_OSS=0
8114 POPT_DESCRIP="popt"
8115 POPT_OPTION="popt"
8117 # Check whether --with-popt was given.
8118 if test "${with_popt+set}" = set; then
8119 withval=$with_popt;
8120 case ${withval} in
8121 n|no)
8122 USE_POPT=no
8124 y|ye|yes)
8125 POPT_MANDATORY="yes"
8128 POPT_DIR="${withval}"
8129 POPT_MANDATORY="yes"
8131 esac
8135 PBX_POPT=0
8142 PGSQL_DESCRIP="PostgreSQL"
8143 PGSQL_OPTION="postgres"
8145 # Check whether --with-postgres was given.
8146 if test "${with_postgres+set}" = set; then
8147 withval=$with_postgres;
8148 case ${withval} in
8149 n|no)
8150 USE_PGSQL=no
8152 y|ye|yes)
8153 PGSQL_MANDATORY="yes"
8156 PGSQL_DIR="${withval}"
8157 PGSQL_MANDATORY="yes"
8159 esac
8163 PBX_PGSQL=0
8170 PRI_DESCRIP="ISDN PRI"
8171 PRI_OPTION="pri"
8173 # Check whether --with-pri was given.
8174 if test "${with_pri+set}" = set; then
8175 withval=$with_pri;
8176 case ${withval} in
8177 n|no)
8178 USE_PRI=no
8180 y|ye|yes)
8181 PRI_MANDATORY="yes"
8184 PRI_DIR="${withval}"
8185 PRI_MANDATORY="yes"
8187 esac
8191 PBX_PRI=0
8198 PWLIB_DESCRIP="PWlib"
8199 PWLIB_OPTION="pwlib"
8201 # Check whether --with-pwlib was given.
8202 if test "${with_pwlib+set}" = set; then
8203 withval=$with_pwlib;
8204 case ${withval} in
8205 n|no)
8206 USE_PWLIB=no
8208 y|ye|yes)
8209 PWLIB_MANDATORY="yes"
8212 PWLIB_DIR="${withval}"
8213 PWLIB_MANDATORY="yes"
8215 esac
8219 PBX_PWLIB=0
8226 OPENH323_DESCRIP="OpenH323"
8227 OPENH323_OPTION="h323"
8229 # Check whether --with-h323 was given.
8230 if test "${with_h323+set}" = set; then
8231 withval=$with_h323;
8232 case ${withval} in
8233 n|no)
8234 USE_OPENH323=no
8236 y|ye|yes)
8237 OPENH323_MANDATORY="yes"
8240 OPENH323_DIR="${withval}"
8241 OPENH323_MANDATORY="yes"
8243 esac
8247 PBX_OPENH323=0
8254 QT_DESCRIP="Qt"
8255 QT_OPTION="qt"
8257 # Check whether --with-qt was given.
8258 if test "${with_qt+set}" = set; then
8259 withval=$with_qt;
8260 case ${withval} in
8261 n|no)
8262 USE_QT=no
8264 y|ye|yes)
8265 QT_MANDATORY="yes"
8268 QT_DIR="${withval}"
8269 QT_MANDATORY="yes"
8271 esac
8275 PBX_QT=0
8282 RADIUS_DESCRIP="Radius Client"
8283 RADIUS_OPTION="radius"
8285 # Check whether --with-radius was given.
8286 if test "${with_radius+set}" = set; then
8287 withval=$with_radius;
8288 case ${withval} in
8289 n|no)
8290 USE_RADIUS=no
8292 y|ye|yes)
8293 RADIUS_MANDATORY="yes"
8296 RADIUS_DIR="${withval}"
8297 RADIUS_MANDATORY="yes"
8299 esac
8303 PBX_RADIUS=0
8310 SPEEX_DESCRIP="Speex"
8311 SPEEX_OPTION="speex"
8313 # Check whether --with-speex was given.
8314 if test "${with_speex+set}" = set; then
8315 withval=$with_speex;
8316 case ${withval} in
8317 n|no)
8318 USE_SPEEX=no
8320 y|ye|yes)
8321 SPEEX_MANDATORY="yes"
8324 SPEEX_DIR="${withval}"
8325 SPEEX_MANDATORY="yes"
8327 esac
8331 PBX_SPEEX=0
8338 SQLITE_DESCRIP="SQLite"
8339 SQLITE_OPTION="sqlite"
8341 # Check whether --with-sqlite was given.
8342 if test "${with_sqlite+set}" = set; then
8343 withval=$with_sqlite;
8344 case ${withval} in
8345 n|no)
8346 USE_SQLITE=no
8348 y|ye|yes)
8349 SQLITE_MANDATORY="yes"
8352 SQLITE_DIR="${withval}"
8353 SQLITE_MANDATORY="yes"
8355 esac
8359 PBX_SQLITE=0
8366 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8367 SUPPSERV_OPTION="suppserv"
8369 # Check whether --with-suppserv was given.
8370 if test "${with_suppserv+set}" = set; then
8371 withval=$with_suppserv;
8372 case ${withval} in
8373 n|no)
8374 USE_SUPPSERV=no
8376 y|ye|yes)
8377 SUPPSERV_MANDATORY="yes"
8380 SUPPSERV_DIR="${withval}"
8381 SUPPSERV_MANDATORY="yes"
8383 esac
8387 PBX_SUPPSERV=0
8394 OPENSSL_DESCRIP="OpenSSL"
8395 OPENSSL_OPTION="ssl"
8397 # Check whether --with-ssl was given.
8398 if test "${with_ssl+set}" = set; then
8399 withval=$with_ssl;
8400 case ${withval} in
8401 n|no)
8402 USE_OPENSSL=no
8404 y|ye|yes)
8405 OPENSSL_MANDATORY="yes"
8408 OPENSSL_DIR="${withval}"
8409 OPENSSL_MANDATORY="yes"
8411 esac
8415 PBX_OPENSSL=0
8422 FREETDS_DESCRIP="FreeTDS"
8423 FREETDS_OPTION="tds"
8425 # Check whether --with-tds was given.
8426 if test "${with_tds+set}" = set; then
8427 withval=$with_tds;
8428 case ${withval} in
8429 n|no)
8430 USE_FREETDS=no
8432 y|ye|yes)
8433 FREETDS_MANDATORY="yes"
8436 FREETDS_DIR="${withval}"
8437 FREETDS_MANDATORY="yes"
8439 esac
8443 PBX_FREETDS=0
8450 TERMCAP_DESCRIP="Termcap"
8451 TERMCAP_OPTION="termcap"
8453 # Check whether --with-termcap was given.
8454 if test "${with_termcap+set}" = set; then
8455 withval=$with_termcap;
8456 case ${withval} in
8457 n|no)
8458 USE_TERMCAP=no
8460 y|ye|yes)
8461 TERMCAP_MANDATORY="yes"
8464 TERMCAP_DIR="${withval}"
8465 TERMCAP_MANDATORY="yes"
8467 esac
8471 PBX_TERMCAP=0
8478 TINFO_DESCRIP="Term Info"
8479 TINFO_OPTION="tinfo"
8481 # Check whether --with-tinfo was given.
8482 if test "${with_tinfo+set}" = set; then
8483 withval=$with_tinfo;
8484 case ${withval} in
8485 n|no)
8486 USE_TINFO=no
8488 y|ye|yes)
8489 TINFO_MANDATORY="yes"
8492 TINFO_DIR="${withval}"
8493 TINFO_MANDATORY="yes"
8495 esac
8499 PBX_TINFO=0
8506 TONEZONE_DESCRIP="tonezone"
8507 TONEZONE_OPTION="tonezone"
8509 # Check whether --with-tonezone was given.
8510 if test "${with_tonezone+set}" = set; then
8511 withval=$with_tonezone;
8512 case ${withval} in
8513 n|no)
8514 USE_TONEZONE=no
8516 y|ye|yes)
8517 TONEZONE_MANDATORY="yes"
8520 TONEZONE_DIR="${withval}"
8521 TONEZONE_MANDATORY="yes"
8523 esac
8527 PBX_TONEZONE=0
8534 USB_DESCRIP="usb"
8535 USB_OPTION="usb"
8537 # Check whether --with-usb was given.
8538 if test "${with_usb+set}" = set; then
8539 withval=$with_usb;
8540 case ${withval} in
8541 n|no)
8542 USE_USB=no
8544 y|ye|yes)
8545 USB_MANDATORY="yes"
8548 USB_DIR="${withval}"
8549 USB_MANDATORY="yes"
8551 esac
8555 PBX_USB=0
8562 VORBIS_DESCRIP="Vorbis"
8563 VORBIS_OPTION="vorbis"
8565 # Check whether --with-vorbis was given.
8566 if test "${with_vorbis+set}" = set; then
8567 withval=$with_vorbis;
8568 case ${withval} in
8569 n|no)
8570 USE_VORBIS=no
8572 y|ye|yes)
8573 VORBIS_MANDATORY="yes"
8576 VORBIS_DIR="${withval}"
8577 VORBIS_MANDATORY="yes"
8579 esac
8583 PBX_VORBIS=0
8590 VPB_DESCRIP="Voicetronix API"
8591 VPB_OPTION="vpb"
8593 # Check whether --with-vpb was given.
8594 if test "${with_vpb+set}" = set; then
8595 withval=$with_vpb;
8596 case ${withval} in
8597 n|no)
8598 USE_VPB=no
8600 y|ye|yes)
8601 VPB_MANDATORY="yes"
8604 VPB_DIR="${withval}"
8605 VPB_MANDATORY="yes"
8607 esac
8611 PBX_VPB=0
8618 ZLIB_DESCRIP="zlib"
8619 ZLIB_OPTION="z"
8621 # Check whether --with-z was given.
8622 if test "${with_z+set}" = set; then
8623 withval=$with_z;
8624 case ${withval} in
8625 n|no)
8626 USE_ZLIB=no
8628 y|ye|yes)
8629 ZLIB_MANDATORY="yes"
8632 ZLIB_DIR="${withval}"
8633 ZLIB_MANDATORY="yes"
8635 esac
8639 PBX_ZLIB=0
8646 ZAPTEL_DESCRIP="Zaptel"
8647 ZAPTEL_OPTION="zaptel"
8649 # Check whether --with-zaptel was given.
8650 if test "${with_zaptel+set}" = set; then
8651 withval=$with_zaptel;
8652 case ${withval} in
8653 n|no)
8654 USE_ZAPTEL=no
8656 y|ye|yes)
8657 ZAPTEL_MANDATORY="yes"
8660 ZAPTEL_DIR="${withval}"
8661 ZAPTEL_MANDATORY="yes"
8663 esac
8667 PBX_ZAPTEL=0
8674 # check for basic system features and functionality before
8675 # checking for package libraries
8677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8678 # for constant arguments. Useless!
8679 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8680 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8681 if test "${ac_cv_working_alloca_h+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 #include <alloca.h>
8692 main ()
8694 char *p = (char *) alloca (2 * sizeof (int));
8695 if (p) return 0;
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (ac_try="$ac_link"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_link") 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest$ac_exeext &&
8717 $as_test_x conftest$ac_exeext; then
8718 ac_cv_working_alloca_h=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_working_alloca_h=no
8726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8727 conftest$ac_exeext conftest.$ac_ext
8729 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8730 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8731 if test $ac_cv_working_alloca_h = yes; then
8733 cat >>confdefs.h <<\_ACEOF
8734 #define HAVE_ALLOCA_H 1
8735 _ACEOF
8739 { echo "$as_me:$LINENO: checking for alloca" >&5
8740 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8741 if test "${ac_cv_func_alloca_works+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 #ifdef __GNUC__
8751 # define alloca __builtin_alloca
8752 #else
8753 # ifdef _MSC_VER
8754 # include <malloc.h>
8755 # define alloca _alloca
8756 # else
8757 # ifdef HAVE_ALLOCA_H
8758 # include <alloca.h>
8759 # else
8760 # ifdef _AIX
8761 #pragma alloca
8762 # else
8763 # ifndef alloca /* predefined by HP cc +Olibcalls */
8764 char *alloca ();
8765 # endif
8766 # endif
8767 # endif
8768 # endif
8769 #endif
8772 main ()
8774 char *p = (char *) alloca (1);
8775 if (p) return 0;
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext conftest$ac_exeext
8781 if { (ac_try="$ac_link"
8782 case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_link") 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest$ac_exeext &&
8797 $as_test_x conftest$ac_exeext; then
8798 ac_cv_func_alloca_works=yes
8799 else
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_cv_func_alloca_works=no
8806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807 conftest$ac_exeext conftest.$ac_ext
8809 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8812 if test $ac_cv_func_alloca_works = yes; then
8814 cat >>confdefs.h <<\_ACEOF
8815 #define HAVE_ALLOCA 1
8816 _ACEOF
8818 else
8819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8820 # that cause trouble. Some versions do not even contain alloca or
8821 # contain a buggy version. If you still want to use their alloca,
8822 # use ar to extract alloca.o from them instead of compiling alloca.c.
8824 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8826 cat >>confdefs.h <<\_ACEOF
8827 #define C_ALLOCA 1
8828 _ACEOF
8831 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8833 if test "${ac_cv_os_cray+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h. */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8842 #if defined CRAY && ! defined CRAY2
8843 webecray
8844 #else
8845 wenotbecray
8846 #endif
8848 _ACEOF
8849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8850 $EGREP "webecray" >/dev/null 2>&1; then
8851 ac_cv_os_cray=yes
8852 else
8853 ac_cv_os_cray=no
8855 rm -f conftest*
8858 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8859 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8860 if test $ac_cv_os_cray = yes; then
8861 for ac_func in _getb67 GETB67 getb67; do
8862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h. */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8876 #define $ac_func innocuous_$ac_func
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char $ac_func (); below.
8880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8881 <limits.h> exists even on freestanding compilers. */
8883 #ifdef __STDC__
8884 # include <limits.h>
8885 #else
8886 # include <assert.h>
8887 #endif
8889 #undef $ac_func
8891 /* Override any GCC internal prototype to avoid an error.
8892 Use char because int might match the return type of a GCC
8893 builtin and then its argument prototype would still apply. */
8894 #ifdef __cplusplus
8895 extern "C"
8896 #endif
8897 char $ac_func ();
8898 /* The GNU C library defines this for functions which it implements
8899 to always fail with ENOSYS. Some functions are actually named
8900 something starting with __ and the normal name is an alias. */
8901 #if defined __stub_$ac_func || defined __stub___$ac_func
8902 choke me
8903 #endif
8906 main ()
8908 return $ac_func ();
8910 return 0;
8912 _ACEOF
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_link") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest$ac_exeext &&
8930 $as_test_x conftest$ac_exeext; then
8931 eval "$as_ac_var=yes"
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 eval "$as_ac_var=no"
8939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8940 conftest$ac_exeext conftest.$ac_ext
8942 ac_res=`eval echo '${'$as_ac_var'}'`
8943 { echo "$as_me:$LINENO: result: $ac_res" >&5
8944 echo "${ECHO_T}$ac_res" >&6; }
8945 if test `eval echo '${'$as_ac_var'}'` = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define CRAY_STACKSEG_END $ac_func
8949 _ACEOF
8951 break
8954 done
8957 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8958 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8959 if test "${ac_cv_c_stack_direction+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 if test "$cross_compiling" = yes; then
8963 ac_cv_c_stack_direction=0
8964 else
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8973 find_stack_direction ()
8975 static char *addr = 0;
8976 auto char dummy;
8977 if (addr == 0)
8979 addr = &dummy;
8980 return find_stack_direction ();
8982 else
8983 return (&dummy > addr) ? 1 : -1;
8987 main ()
8989 return find_stack_direction () < 0;
8991 _ACEOF
8992 rm -f conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8994 case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_link") 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9006 esac
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_c_stack_direction=1
9013 else
9014 echo "$as_me: program exited with status $ac_status" >&5
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ( exit $ac_status )
9019 ac_cv_c_stack_direction=-1
9021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9027 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9029 cat >>confdefs.h <<_ACEOF
9030 #define STACK_DIRECTION $ac_cv_c_stack_direction
9031 _ACEOF
9041 ac_header_dirent=no
9042 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9043 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9044 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9045 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 #include <sys/types.h>
9056 #include <$ac_hdr>
9059 main ()
9061 if ((DIR *) 0)
9062 return 0;
9064 return 0;
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (ac_try="$ac_compile"
9069 case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_compile") 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest.$ac_objext; then
9084 eval "$as_ac_Header=yes"
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 eval "$as_ac_Header=no"
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 ac_res=`eval echo '${'$as_ac_Header'}'`
9095 { echo "$as_me:$LINENO: result: $ac_res" >&5
9096 echo "${ECHO_T}$ac_res" >&6; }
9097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9098 cat >>confdefs.h <<_ACEOF
9099 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9100 _ACEOF
9102 ac_header_dirent=$ac_hdr; break
9105 done
9106 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9107 if test $ac_header_dirent = dirent.h; then
9108 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9109 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9110 if test "${ac_cv_search_opendir+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113 ac_func_search_save_LIBS=$LIBS
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h. */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 char opendir ();
9129 main ()
9131 return opendir ();
9133 return 0;
9135 _ACEOF
9136 for ac_lib in '' dir; do
9137 if test -z "$ac_lib"; then
9138 ac_res="none required"
9139 else
9140 ac_res=-l$ac_lib
9141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (ac_try="$ac_link"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_link") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest$ac_exeext &&
9160 $as_test_x conftest$ac_exeext; then
9161 ac_cv_search_opendir=$ac_res
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9170 conftest$ac_exeext
9171 if test "${ac_cv_search_opendir+set}" = set; then
9172 break
9174 done
9175 if test "${ac_cv_search_opendir+set}" = set; then
9177 else
9178 ac_cv_search_opendir=no
9180 rm conftest.$ac_ext
9181 LIBS=$ac_func_search_save_LIBS
9183 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9184 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9185 ac_res=$ac_cv_search_opendir
9186 if test "$ac_res" != no; then
9187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9191 else
9192 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9194 if test "${ac_cv_search_opendir+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197 ac_func_search_save_LIBS=$LIBS
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9205 /* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char opendir ();
9213 main ()
9215 return opendir ();
9217 return 0;
9219 _ACEOF
9220 for ac_lib in '' x; do
9221 if test -z "$ac_lib"; then
9222 ac_res="none required"
9223 else
9224 ac_res=-l$ac_lib
9225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (ac_try="$ac_link"
9229 case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_link") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest$ac_exeext &&
9244 $as_test_x conftest$ac_exeext; then
9245 ac_cv_search_opendir=$ac_res
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9254 conftest$ac_exeext
9255 if test "${ac_cv_search_opendir+set}" = set; then
9256 break
9258 done
9259 if test "${ac_cv_search_opendir+set}" = set; then
9261 else
9262 ac_cv_search_opendir=no
9264 rm conftest.$ac_ext
9265 LIBS=$ac_func_search_save_LIBS
9267 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9268 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9269 ac_res=$ac_cv_search_opendir
9270 if test "$ac_res" != no; then
9271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9277 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9278 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9279 if test "${ac_cv_header_stdc+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 #include <stdlib.h>
9289 #include <stdarg.h>
9290 #include <string.h>
9291 #include <float.h>
9294 main ()
9298 return 0;
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (ac_try="$ac_compile"
9303 case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && {
9315 test -z "$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 } && test -s conftest.$ac_objext; then
9318 ac_cv_header_stdc=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_cv_header_stdc=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 if test $ac_cv_header_stdc = yes; then
9329 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #include <string.h>
9338 _ACEOF
9339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9340 $EGREP "memchr" >/dev/null 2>&1; then
9342 else
9343 ac_cv_header_stdc=no
9345 rm -f conftest*
9349 if test $ac_cv_header_stdc = yes; then
9350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 #include <stdlib.h>
9359 _ACEOF
9360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9361 $EGREP "free" >/dev/null 2>&1; then
9363 else
9364 ac_cv_header_stdc=no
9366 rm -f conftest*
9370 if test $ac_cv_header_stdc = yes; then
9371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9372 if test "$cross_compiling" = yes; then
9374 else
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <ctype.h>
9382 #include <stdlib.h>
9383 #if ((' ' & 0x0FF) == 0x020)
9384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9386 #else
9387 # define ISLOWER(c) \
9388 (('a' <= (c) && (c) <= 'i') \
9389 || ('j' <= (c) && (c) <= 'r') \
9390 || ('s' <= (c) && (c) <= 'z'))
9391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9392 #endif
9394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9396 main ()
9398 int i;
9399 for (i = 0; i < 256; i++)
9400 if (XOR (islower (i), ISLOWER (i))
9401 || toupper (i) != TOUPPER (i))
9402 return 2;
9403 return 0;
9405 _ACEOF
9406 rm -f conftest$ac_exeext
9407 if { (ac_try="$ac_link"
9408 case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_link") 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9417 { (case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_try") 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9427 else
9428 echo "$as_me: program exited with status $ac_status" >&5
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ( exit $ac_status )
9433 ac_cv_header_stdc=no
9435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9441 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9442 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9443 if test $ac_cv_header_stdc = yes; then
9445 cat >>confdefs.h <<\_ACEOF
9446 #define STDC_HEADERS 1
9447 _ACEOF
9451 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9452 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9453 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h. */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 #include <sys/types.h>
9463 #include <sys/wait.h>
9464 #ifndef WEXITSTATUS
9465 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9466 #endif
9467 #ifndef WIFEXITED
9468 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9469 #endif
9472 main ()
9474 int s;
9475 wait (&s);
9476 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9478 return 0;
9480 _ACEOF
9481 rm -f conftest.$ac_objext
9482 if { (ac_try="$ac_compile"
9483 case "(($ac_try" in
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_compile") 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest.$ac_objext; then
9498 ac_cv_header_sys_wait_h=yes
9499 else
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_cv_header_sys_wait_h=no
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9509 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9510 if test $ac_cv_header_sys_wait_h = yes; then
9512 cat >>confdefs.h <<\_ACEOF
9513 #define HAVE_SYS_WAIT_H 1
9514 _ACEOF
9541 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
9543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 ac_res=`eval echo '${'$as_ac_Header'}'`
9551 { echo "$as_me:$LINENO: result: $ac_res" >&5
9552 echo "${ECHO_T}$ac_res" >&6; }
9553 else
9554 # Is the header compilable?
9555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 #include <$ac_header>
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 ac_header_compiler=yes
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_header_compiler=no
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6; }
9595 # Is the header present?
9596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <$ac_header>
9605 _ACEOF
9606 if { (ac_try="$ac_cpp conftest.$ac_ext"
9607 case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } >/dev/null && {
9619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 }; then
9622 ac_header_preproc=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_header_preproc=no
9630 rm -f conftest.err conftest.$ac_ext
9631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9632 echo "${ECHO_T}$ac_header_preproc" >&6; }
9634 # So? What about this header?
9635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9636 yes:no: )
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9641 ac_header_preproc=yes
9643 no:yes:* )
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9658 esac
9659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664 eval "$as_ac_Header=\$ac_header_preproc"
9666 ac_res=`eval echo '${'$as_ac_Header'}'`
9667 { echo "$as_me:$LINENO: result: $ac_res" >&5
9668 echo "${ECHO_T}$ac_res" >&6; }
9671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9672 cat >>confdefs.h <<_ACEOF
9673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9674 _ACEOF
9678 done
9681 # Check whether --enable-largefile was given.
9682 if test "${enable_largefile+set}" = set; then
9683 enableval=$enable_largefile;
9686 if test "$enable_largefile" != no; then
9688 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9689 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9690 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693 ac_cv_sys_largefile_CC=no
9694 if test "$GCC" != yes; then
9695 ac_save_CC=$CC
9696 while :; do
9697 # IRIX 6.2 and later do not support large files by default,
9698 # so use the C compiler's -n32 option if that helps.
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 #include <sys/types.h>
9706 /* Check that off_t can represent 2**63 - 1 correctly.
9707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9708 since some C++ compilers masquerading as C compilers
9709 incorrectly reject 9223372036854775807. */
9710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9712 && LARGE_OFF_T % 2147483647 == 1)
9713 ? 1 : -1];
9715 main ()
9719 return 0;
9721 _ACEOF
9722 rm -f conftest.$ac_objext
9723 if { (ac_try="$ac_compile"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_compile") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest.$ac_objext; then
9739 break
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9747 rm -f core conftest.err conftest.$ac_objext
9748 CC="$CC -n32"
9749 rm -f conftest.$ac_objext
9750 if { (ac_try="$ac_compile"
9751 case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_compile") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest.$ac_objext; then
9766 ac_cv_sys_largefile_CC=' -n32'; break
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9774 rm -f core conftest.err conftest.$ac_objext
9775 break
9776 done
9777 CC=$ac_save_CC
9778 rm -f conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9782 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9783 if test "$ac_cv_sys_largefile_CC" != no; then
9784 CC=$CC$ac_cv_sys_largefile_CC
9787 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9788 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9789 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 while :; do
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 #include <sys/types.h>
9800 /* Check that off_t can represent 2**63 - 1 correctly.
9801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9802 since some C++ compilers masquerading as C compilers
9803 incorrectly reject 9223372036854775807. */
9804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9806 && LARGE_OFF_T % 2147483647 == 1)
9807 ? 1 : -1];
9809 main ()
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (ac_try="$ac_compile"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_compile") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.$ac_objext; then
9833 ac_cv_sys_file_offset_bits=no; break
9834 else
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 #define _FILE_OFFSET_BITS 64
9849 #include <sys/types.h>
9850 /* Check that off_t can represent 2**63 - 1 correctly.
9851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9852 since some C++ compilers masquerading as C compilers
9853 incorrectly reject 9223372036854775807. */
9854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9856 && LARGE_OFF_T % 2147483647 == 1)
9857 ? 1 : -1];
9859 main ()
9863 return 0;
9865 _ACEOF
9866 rm -f conftest.$ac_objext
9867 if { (ac_try="$ac_compile"
9868 case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_compile") 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } && {
9880 test -z "$ac_c_werror_flag" ||
9881 test ! -s conftest.err
9882 } && test -s conftest.$ac_objext; then
9883 ac_cv_sys_file_offset_bits=64; break
9884 else
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 ac_cv_sys_file_offset_bits=unknown
9893 break
9894 done
9896 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9897 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9898 case $ac_cv_sys_file_offset_bits in #(
9899 no | unknown) ;;
9901 cat >>confdefs.h <<_ACEOF
9902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9903 _ACEOF
9905 esac
9906 rm -f conftest*
9907 if test $ac_cv_sys_file_offset_bits = unknown; then
9908 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9910 if test "${ac_cv_sys_large_files+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 while :; do
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <sys/types.h>
9921 /* Check that off_t can represent 2**63 - 1 correctly.
9922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9923 since some C++ compilers masquerading as C compilers
9924 incorrectly reject 9223372036854775807. */
9925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9927 && LARGE_OFF_T % 2147483647 == 1)
9928 ? 1 : -1];
9930 main ()
9934 return 0;
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9939 case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_compile") 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest.$ac_objext; then
9954 ac_cv_sys_large_files=no; break
9955 else
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 #define _LARGE_FILES 1
9970 #include <sys/types.h>
9971 /* Check that off_t can represent 2**63 - 1 correctly.
9972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9973 since some C++ compilers masquerading as C compilers
9974 incorrectly reject 9223372036854775807. */
9975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9977 && LARGE_OFF_T % 2147483647 == 1)
9978 ? 1 : -1];
9980 main ()
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.$ac_objext; then
10004 ac_cv_sys_large_files=1; break
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 ac_cv_sys_large_files=unknown
10014 break
10015 done
10017 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10018 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10019 case $ac_cv_sys_large_files in #(
10020 no | unknown) ;;
10022 cat >>confdefs.h <<_ACEOF
10023 #define _LARGE_FILES $ac_cv_sys_large_files
10024 _ACEOF
10026 esac
10027 rm -f conftest*
10032 # Checks for typedefs, structures, and compiler characteristics.
10033 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10034 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10035 if test "${ac_cv_header_stdbool_h+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h. */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10045 #include <stdbool.h>
10046 #ifndef bool
10047 "error: bool is not defined"
10048 #endif
10049 #ifndef false
10050 "error: false is not defined"
10051 #endif
10052 #if false
10053 "error: false is not 0"
10054 #endif
10055 #ifndef true
10056 "error: true is not defined"
10057 #endif
10058 #if true != 1
10059 "error: true is not 1"
10060 #endif
10061 #ifndef __bool_true_false_are_defined
10062 "error: __bool_true_false_are_defined is not defined"
10063 #endif
10065 struct s { _Bool s: 1; _Bool t; } s;
10067 char a[true == 1 ? 1 : -1];
10068 char b[false == 0 ? 1 : -1];
10069 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10070 char d[(bool) 0.5 == true ? 1 : -1];
10071 bool e = &s;
10072 char f[(_Bool) 0.0 == false ? 1 : -1];
10073 char g[true];
10074 char h[sizeof (_Bool)];
10075 char i[sizeof s.t];
10076 enum { j = false, k = true, l = false * true, m = true * 256 };
10077 _Bool n[m];
10078 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10079 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10080 # if defined __xlc__ || defined __GNUC__
10081 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10082 reported by James Lemley on 2005-10-05; see
10083 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10084 This test is not quite right, since xlc is allowed to
10085 reject this program, as the initializer for xlcbug is
10086 not one of the forms that C requires support for.
10087 However, doing the test right would require a runtime
10088 test, and that would make cross-compilation harder.
10089 Let us hope that IBM fixes the xlc bug, and also adds
10090 support for this kind of constant expression. In the
10091 meantime, this test will reject xlc, which is OK, since
10092 our stdbool.h substitute should suffice. We also test
10093 this with GCC, where it should work, to detect more
10094 quickly whether someone messes up the test in the
10095 future. */
10096 char digs[] = "0123456789";
10097 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10098 # endif
10099 /* Catch a bug in an HP-UX C compiler. See
10100 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10101 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10103 _Bool q = true;
10104 _Bool *pq = &q;
10107 main ()
10110 *pq |= q;
10111 *pq |= ! q;
10112 /* Refer to every declared value, to avoid compiler optimizations. */
10113 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10114 + !m + !n + !o + !p + !q + !pq);
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (ac_try="$ac_compile"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_compile") 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest.$ac_objext; then
10137 ac_cv_header_stdbool_h=yes
10138 else
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 ac_cv_header_stdbool_h=no
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10148 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10149 { echo "$as_me:$LINENO: checking for _Bool" >&5
10150 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10151 if test "${ac_cv_type__Bool+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 $ac_includes_default
10161 typedef _Bool ac__type_new_;
10163 main ()
10165 if ((ac__type_new_ *) 0)
10166 return 0;
10167 if (sizeof (ac__type_new_))
10168 return 0;
10170 return 0;
10172 _ACEOF
10173 rm -f conftest.$ac_objext
10174 if { (ac_try="$ac_compile"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_compile") 2>conftest.er1
10181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest.$ac_objext; then
10190 ac_cv_type__Bool=yes
10191 else
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 ac_cv_type__Bool=no
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10201 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10202 if test $ac_cv_type__Bool = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE__BOOL 1
10206 _ACEOF
10211 if test $ac_cv_header_stdbool_h = yes; then
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_STDBOOL_H 1
10215 _ACEOF
10219 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10220 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10221 if test "${ac_cv_c_const+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10232 main ()
10234 /* FIXME: Include the comments suggested by Paul. */
10235 #ifndef __cplusplus
10236 /* Ultrix mips cc rejects this. */
10237 typedef int charset[2];
10238 const charset cs;
10239 /* SunOS 4.1.1 cc rejects this. */
10240 char const *const *pcpcc;
10241 char **ppc;
10242 /* NEC SVR4.0.2 mips cc rejects this. */
10243 struct point {int x, y;};
10244 static struct point const zero = {0,0};
10245 /* AIX XL C 1.02.0.0 rejects this.
10246 It does not let you subtract one const X* pointer from another in
10247 an arm of an if-expression whose if-part is not a constant
10248 expression */
10249 const char *g = "string";
10250 pcpcc = &g + (g ? g-g : 0);
10251 /* HPUX 7.0 cc rejects these. */
10252 ++pcpcc;
10253 ppc = (char**) pcpcc;
10254 pcpcc = (char const *const *) ppc;
10255 { /* SCO 3.2v4 cc rejects this. */
10256 char *t;
10257 char const *s = 0 ? (char *) 0 : (char const *) 0;
10259 *t++ = 0;
10260 if (s) return 0;
10262 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10263 int x[] = {25, 17};
10264 const int *foo = &x[0];
10265 ++foo;
10267 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10268 typedef const int *iptr;
10269 iptr p = 0;
10270 ++p;
10272 { /* AIX XL C 1.02.0.0 rejects this saying
10273 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10274 struct s { int j; const int *ap[3]; };
10275 struct s *b; b->j = 5;
10277 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10278 const int foo = 10;
10279 if (!foo) return 0;
10281 return !cs[0] && !zero.x;
10282 #endif
10285 return 0;
10287 _ACEOF
10288 rm -f conftest.$ac_objext
10289 if { (ac_try="$ac_compile"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_compile") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest.$ac_objext; then
10305 ac_cv_c_const=yes
10306 else
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_c_const=no
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10316 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10317 if test $ac_cv_c_const = no; then
10319 cat >>confdefs.h <<\_ACEOF
10320 #define const
10321 _ACEOF
10325 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10326 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10327 if test "${ac_cv_type_uid_t+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h. */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 #include <sys/types.h>
10338 _ACEOF
10339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10340 $EGREP "uid_t" >/dev/null 2>&1; then
10341 ac_cv_type_uid_t=yes
10342 else
10343 ac_cv_type_uid_t=no
10345 rm -f conftest*
10348 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10349 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10350 if test $ac_cv_type_uid_t = no; then
10352 cat >>confdefs.h <<\_ACEOF
10353 #define uid_t int
10354 _ACEOF
10357 cat >>confdefs.h <<\_ACEOF
10358 #define gid_t int
10359 _ACEOF
10363 { echo "$as_me:$LINENO: checking for inline" >&5
10364 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10365 if test "${ac_cv_c_inline+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 ac_cv_c_inline=no
10369 for ac_kw in inline __inline__ __inline; do
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 #ifndef __cplusplus
10377 typedef int foo_t;
10378 static $ac_kw foo_t static_foo () {return 0; }
10379 $ac_kw foo_t foo () {return 0; }
10380 #endif
10382 _ACEOF
10383 rm -f conftest.$ac_objext
10384 if { (ac_try="$ac_compile"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_compile") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest.$ac_objext; then
10400 ac_cv_c_inline=$ac_kw
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10409 test "$ac_cv_c_inline" != no && break
10410 done
10413 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10414 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10417 case $ac_cv_c_inline in
10418 inline | yes) ;;
10420 case $ac_cv_c_inline in
10421 no) ac_val=;;
10422 *) ac_val=$ac_cv_c_inline;;
10423 esac
10424 cat >>confdefs.h <<_ACEOF
10425 #ifndef __cplusplus
10426 #define inline $ac_val
10427 #endif
10428 _ACEOF
10430 esac
10432 { echo "$as_me:$LINENO: checking for mode_t" >&5
10433 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10434 if test "${ac_cv_type_mode_t+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437 cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h. */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 $ac_includes_default
10444 typedef mode_t ac__type_new_;
10446 main ()
10448 if ((ac__type_new_ *) 0)
10449 return 0;
10450 if (sizeof (ac__type_new_))
10451 return 0;
10453 return 0;
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_compile") 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest.$ac_objext; then
10473 ac_cv_type_mode_t=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_cv_type_mode_t=no
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10484 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10485 if test $ac_cv_type_mode_t = yes; then
10487 else
10489 cat >>confdefs.h <<_ACEOF
10490 #define mode_t int
10491 _ACEOF
10495 { echo "$as_me:$LINENO: checking for off_t" >&5
10496 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10497 if test "${ac_cv_type_off_t+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 typedef off_t ac__type_new_;
10509 main ()
10511 if ((ac__type_new_ *) 0)
10512 return 0;
10513 if (sizeof (ac__type_new_))
10514 return 0;
10516 return 0;
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_compile") 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest.$ac_objext; then
10536 ac_cv_type_off_t=yes
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_cv_type_off_t=no
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10547 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10548 if test $ac_cv_type_off_t = yes; then
10550 else
10552 cat >>confdefs.h <<_ACEOF
10553 #define off_t long int
10554 _ACEOF
10558 { echo "$as_me:$LINENO: checking for pid_t" >&5
10559 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10560 if test "${ac_cv_type_pid_t+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 $ac_includes_default
10570 typedef pid_t ac__type_new_;
10572 main ()
10574 if ((ac__type_new_ *) 0)
10575 return 0;
10576 if (sizeof (ac__type_new_))
10577 return 0;
10579 return 0;
10581 _ACEOF
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_cv_type_pid_t=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_cv_type_pid_t=no
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10610 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10611 if test $ac_cv_type_pid_t = yes; then
10613 else
10615 cat >>confdefs.h <<_ACEOF
10616 #define pid_t int
10617 _ACEOF
10621 { echo "$as_me:$LINENO: checking for size_t" >&5
10622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10623 if test "${ac_cv_type_size_t+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10633 typedef size_t ac__type_new_;
10635 main ()
10637 if ((ac__type_new_ *) 0)
10638 return 0;
10639 if (sizeof (ac__type_new_))
10640 return 0;
10642 return 0;
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } && {
10659 test -z "$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 } && test -s conftest.$ac_objext; then
10662 ac_cv_type_size_t=yes
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_type_size_t=no
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10673 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10674 if test $ac_cv_type_size_t = yes; then
10676 else
10678 cat >>confdefs.h <<_ACEOF
10679 #define size_t unsigned int
10680 _ACEOF
10684 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10685 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10686 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10697 main ()
10699 static struct stat ac_aggr;
10700 if (ac_aggr.st_blksize)
10701 return 0;
10703 return 0;
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10723 ac_cv_member_struct_stat_st_blksize=yes
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 $ac_includes_default
10736 main ()
10738 static struct stat ac_aggr;
10739 if (sizeof ac_aggr.st_blksize)
10740 return 0;
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.$ac_objext; then
10762 ac_cv_member_struct_stat_st_blksize=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_cv_member_struct_stat_st_blksize=no
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10776 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10777 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10779 cat >>confdefs.h <<_ACEOF
10780 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10781 _ACEOF
10786 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10787 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10788 if test "${ac_cv_header_time+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <sys/types.h>
10798 #include <sys/time.h>
10799 #include <time.h>
10802 main ()
10804 if ((struct tm *) 0)
10805 return 0;
10807 return 0;
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (ac_try="$ac_compile"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_compile") 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && {
10824 test -z "$ac_c_werror_flag" ||
10825 test ! -s conftest.err
10826 } && test -s conftest.$ac_objext; then
10827 ac_cv_header_time=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_cv_header_time=no
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10838 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10839 if test $ac_cv_header_time = yes; then
10841 cat >>confdefs.h <<\_ACEOF
10842 #define TIME_WITH_SYS_TIME 1
10843 _ACEOF
10847 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10848 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10849 if test "${ac_cv_struct_tm+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <sys/types.h>
10859 #include <time.h>
10862 main ()
10864 struct tm tm;
10865 int *p = &tm.tm_sec;
10866 return !p;
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_compile") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 } && test -s conftest.$ac_objext; then
10888 ac_cv_struct_tm=time.h
10889 else
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_struct_tm=sys/time.h
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10899 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10900 if test $ac_cv_struct_tm = sys/time.h; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define TM_IN_SYS_TIME 1
10904 _ACEOF
10908 { echo "$as_me:$LINENO: checking for working volatile" >&5
10909 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10910 if test "${ac_cv_c_volatile+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10921 main ()
10924 volatile int x;
10925 int * volatile y = (int *) 0;
10926 return !x && !y;
10928 return 0;
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } && {
10945 test -z "$ac_c_werror_flag" ||
10946 test ! -s conftest.err
10947 } && test -s conftest.$ac_objext; then
10948 ac_cv_c_volatile=yes
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 ac_cv_c_volatile=no
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10959 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
10960 if test $ac_cv_c_volatile = no; then
10962 cat >>confdefs.h <<\_ACEOF
10963 #define volatile
10964 _ACEOF
10968 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10969 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10970 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h. */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10979 $ac_includes_default
10980 typedef ptrdiff_t ac__type_new_;
10982 main ()
10984 if ((ac__type_new_ *) 0)
10985 return 0;
10986 if (sizeof (ac__type_new_))
10987 return 0;
10989 return 0;
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_compile") 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest.$ac_objext; then
11009 ac_cv_type_ptrdiff_t=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_cv_type_ptrdiff_t=no
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11020 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11021 if test $ac_cv_type_ptrdiff_t = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define HAVE_PTRDIFF_T 1
11025 _ACEOF
11031 # Checks for library functions.
11033 for ac_header in unistd.h
11035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 ac_res=`eval echo '${'$as_ac_Header'}'`
11043 { echo "$as_me:$LINENO: result: $ac_res" >&5
11044 echo "${ECHO_T}$ac_res" >&6; }
11045 else
11046 # Is the header compilable?
11047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 $ac_includes_default
11056 #include <$ac_header>
11057 _ACEOF
11058 rm -f conftest.$ac_objext
11059 if { (ac_try="$ac_compile"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_compile") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && {
11072 test -z "$ac_c_werror_flag" ||
11073 test ! -s conftest.err
11074 } && test -s conftest.$ac_objext; then
11075 ac_header_compiler=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_header_compiler=no
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11085 echo "${ECHO_T}$ac_header_compiler" >&6; }
11087 # Is the header present?
11088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <$ac_header>
11097 _ACEOF
11098 if { (ac_try="$ac_cpp conftest.$ac_ext"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } >/dev/null && {
11111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 }; then
11114 ac_header_preproc=yes
11115 else
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_preproc=no
11122 rm -f conftest.err conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11124 echo "${ECHO_T}$ac_header_preproc" >&6; }
11126 # So? What about this header?
11127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11128 yes:no: )
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11133 ac_header_preproc=yes
11135 no:yes:* )
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11150 esac
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 eval "$as_ac_Header=\$ac_header_preproc"
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11166 _ACEOF
11170 done
11172 { echo "$as_me:$LINENO: checking for working chown" >&5
11173 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11174 if test "${ac_cv_func_chown_works+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 if test "$cross_compiling" = yes; then
11178 ac_cv_func_chown_works=no
11179 else
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 $ac_includes_default
11187 #include <fcntl.h>
11190 main ()
11192 char *f = "conftest.chown";
11193 struct stat before, after;
11195 if (creat (f, 0600) < 0)
11196 return 1;
11197 if (stat (f, &before) < 0)
11198 return 1;
11199 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11200 return 1;
11201 if (stat (f, &after) < 0)
11202 return 1;
11203 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11206 return 0;
11208 _ACEOF
11209 rm -f conftest$ac_exeext
11210 if { (ac_try="$ac_link"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_link") 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_cv_func_chown_works=yes
11230 else
11231 echo "$as_me: program exited with status $ac_status" >&5
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ( exit $ac_status )
11236 ac_cv_func_chown_works=no
11238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11242 rm -f conftest.chown
11245 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11246 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11247 if test $ac_cv_func_chown_works = yes; then
11249 cat >>confdefs.h <<\_ACEOF
11250 #define HAVE_CHOWN 1
11251 _ACEOF
11255 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11256 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11257 if test "${ac_cv_func_closedir_void+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260 if test "$cross_compiling" = yes; then
11261 ac_cv_func_closedir_void=yes
11262 else
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h. */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269 $ac_includes_default
11270 #include <$ac_header_dirent>
11271 #ifndef __cplusplus
11272 int closedir ();
11273 #endif
11276 main ()
11278 return closedir (opendir (".")) != 0;
11280 return 0;
11282 _ACEOF
11283 rm -f conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_link") 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297 esac
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_try") 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_cv_func_closedir_void=no
11304 else
11305 echo "$as_me: program exited with status $ac_status" >&5
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ( exit $ac_status )
11310 ac_cv_func_closedir_void=yes
11312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11318 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11319 if test $ac_cv_func_closedir_void = yes; then
11321 cat >>confdefs.h <<\_ACEOF
11322 #define CLOSEDIR_VOID 1
11323 _ACEOF
11327 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11328 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11329 if test "${ac_cv_lib_error_at_line+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h. */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #include <error.h>
11340 main ()
11342 error_at_line (0, 0, "", 0, "an error occurred");
11344 return 0;
11346 _ACEOF
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (ac_try="$ac_link"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_link") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest$ac_exeext &&
11364 $as_test_x conftest$ac_exeext; then
11365 ac_cv_lib_error_at_line=yes
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_cv_lib_error_at_line=no
11373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374 conftest$ac_exeext conftest.$ac_ext
11376 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11377 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11378 if test $ac_cv_lib_error_at_line = no; then
11379 case " $LIBOBJS " in
11380 *" error.$ac_objext "* ) ;;
11381 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11383 esac
11388 for ac_header in vfork.h
11390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 ac_res=`eval echo '${'$as_ac_Header'}'`
11398 { echo "$as_me:$LINENO: result: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11400 else
11401 # Is the header compilable?
11402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 $ac_includes_default
11411 #include <$ac_header>
11412 _ACEOF
11413 rm -f conftest.$ac_objext
11414 if { (ac_try="$ac_compile"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_compile") 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } && {
11427 test -z "$ac_c_werror_flag" ||
11428 test ! -s conftest.err
11429 } && test -s conftest.$ac_objext; then
11430 ac_header_compiler=yes
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 ac_header_compiler=no
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11440 echo "${ECHO_T}$ac_header_compiler" >&6; }
11442 # Is the header present?
11443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <$ac_header>
11452 _ACEOF
11453 if { (ac_try="$ac_cpp conftest.$ac_ext"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } >/dev/null && {
11466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 }; then
11469 ac_header_preproc=yes
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_header_preproc=no
11477 rm -f conftest.err conftest.$ac_ext
11478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11479 echo "${ECHO_T}$ac_header_preproc" >&6; }
11481 # So? What about this header?
11482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11483 yes:no: )
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11488 ac_header_preproc=yes
11490 no:yes:* )
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11505 esac
11506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511 eval "$as_ac_Header=\$ac_header_preproc"
11513 ac_res=`eval echo '${'$as_ac_Header'}'`
11514 { echo "$as_me:$LINENO: result: $ac_res" >&5
11515 echo "${ECHO_T}$ac_res" >&6; }
11518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11519 cat >>confdefs.h <<_ACEOF
11520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521 _ACEOF
11525 done
11529 for ac_func in fork vfork
11531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11545 #define $ac_func innocuous_$ac_func
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func (); below.
11549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11550 <limits.h> exists even on freestanding compilers. */
11552 #ifdef __STDC__
11553 # include <limits.h>
11554 #else
11555 # include <assert.h>
11556 #endif
11558 #undef $ac_func
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char $ac_func ();
11567 /* The GNU C library defines this for functions which it implements
11568 to always fail with ENOSYS. Some functions are actually named
11569 something starting with __ and the normal name is an alias. */
11570 #if defined __stub_$ac_func || defined __stub___$ac_func
11571 choke me
11572 #endif
11575 main ()
11577 return $ac_func ();
11579 return 0;
11581 _ACEOF
11582 rm -f conftest.$ac_objext conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } && {
11596 test -z "$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11598 } && test -s conftest$ac_exeext &&
11599 $as_test_x conftest$ac_exeext; then
11600 eval "$as_ac_var=yes"
11601 else
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 eval "$as_ac_var=no"
11608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11609 conftest$ac_exeext conftest.$ac_ext
11611 ac_res=`eval echo '${'$as_ac_var'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 _ACEOF
11620 done
11622 if test "x$ac_cv_func_fork" = xyes; then
11623 { echo "$as_me:$LINENO: checking for working fork" >&5
11624 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11625 if test "${ac_cv_func_fork_works+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 if test "$cross_compiling" = yes; then
11629 ac_cv_func_fork_works=cross
11630 else
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 $ac_includes_default
11639 main ()
11642 /* By Ruediger Kuhlmann. */
11643 return fork () < 0;
11646 return 0;
11648 _ACEOF
11649 rm -f conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_link") 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_func_fork_works=yes
11670 else
11671 echo "$as_me: program exited with status $ac_status" >&5
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ( exit $ac_status )
11676 ac_cv_func_fork_works=no
11678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11684 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11686 else
11687 ac_cv_func_fork_works=$ac_cv_func_fork
11689 if test "x$ac_cv_func_fork_works" = xcross; then
11690 case $host in
11691 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11692 # Override, as these systems have only a dummy fork() stub
11693 ac_cv_func_fork_works=no
11696 ac_cv_func_fork_works=yes
11698 esac
11699 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11700 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11702 ac_cv_func_vfork_works=$ac_cv_func_vfork
11703 if test "x$ac_cv_func_vfork" = xyes; then
11704 { echo "$as_me:$LINENO: checking for working vfork" >&5
11705 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11706 if test "${ac_cv_func_vfork_works+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 if test "$cross_compiling" = yes; then
11710 ac_cv_func_vfork_works=cross
11711 else
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h. */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 /* Thanks to Paul Eggert for this test. */
11719 $ac_includes_default
11720 #include <sys/wait.h>
11721 #ifdef HAVE_VFORK_H
11722 # include <vfork.h>
11723 #endif
11724 /* On some sparc systems, changes by the child to local and incoming
11725 argument registers are propagated back to the parent. The compiler
11726 is told about this with #include <vfork.h>, but some compilers
11727 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11728 static variable whose address is put into a register that is
11729 clobbered by the vfork. */
11730 static void
11731 #ifdef __cplusplus
11732 sparc_address_test (int arg)
11733 # else
11734 sparc_address_test (arg) int arg;
11735 #endif
11737 static pid_t child;
11738 if (!child) {
11739 child = vfork ();
11740 if (child < 0) {
11741 perror ("vfork");
11742 _exit(2);
11744 if (!child) {
11745 arg = getpid();
11746 write(-1, "", 0);
11747 _exit (arg);
11753 main ()
11755 pid_t parent = getpid ();
11756 pid_t child;
11758 sparc_address_test (0);
11760 child = vfork ();
11762 if (child == 0) {
11763 /* Here is another test for sparc vfork register problems. This
11764 test uses lots of local variables, at least as many local
11765 variables as main has allocated so far including compiler
11766 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11767 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11768 reuse the register of parent for one of the local variables,
11769 since it will think that parent can't possibly be used any more
11770 in this routine. Assigning to the local variable will thus
11771 munge parent in the parent process. */
11772 pid_t
11773 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11774 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11775 /* Convince the compiler that p..p7 are live; otherwise, it might
11776 use the same hardware register for all 8 local variables. */
11777 if (p != p1 || p != p2 || p != p3 || p != p4
11778 || p != p5 || p != p6 || p != p7)
11779 _exit(1);
11781 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11782 from child file descriptors. If the child closes a descriptor
11783 before it execs or exits, this munges the parent's descriptor
11784 as well. Test for this by closing stdout in the child. */
11785 _exit(close(fileno(stdout)) != 0);
11786 } else {
11787 int status;
11788 struct stat st;
11790 while (wait(&status) != child)
11792 return (
11793 /* Was there some problem with vforking? */
11794 child < 0
11796 /* Did the child fail? (This shouldn't happen.) */
11797 || status
11799 /* Did the vfork/compiler bug occur? */
11800 || parent != getpid()
11802 /* Did the file descriptor bug occur? */
11803 || fstat(fileno(stdout), &st) != 0
11807 _ACEOF
11808 rm -f conftest$ac_exeext
11809 if { (ac_try="$ac_link"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_link") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11819 { (case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_try") 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_func_vfork_works=yes
11829 else
11830 echo "$as_me: program exited with status $ac_status" >&5
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 ( exit $ac_status )
11835 ac_cv_func_vfork_works=no
11837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11843 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11846 if test "x$ac_cv_func_fork_works" = xcross; then
11847 ac_cv_func_vfork_works=$ac_cv_func_vfork
11848 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11849 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11852 if test "x$ac_cv_func_vfork_works" = xyes; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define HAVE_WORKING_VFORK 1
11856 _ACEOF
11858 else
11860 cat >>confdefs.h <<\_ACEOF
11861 #define vfork fork
11862 _ACEOF
11865 if test "x$ac_cv_func_fork_works" = xyes; then
11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_WORKING_FORK 1
11869 _ACEOF
11873 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11874 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11875 if test "${ac_cv_sys_largefile_source+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878 while :; do
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 #include <sys/types.h> /* for off_t */
11886 #include <stdio.h>
11888 main ()
11890 int (*fp) (FILE *, off_t, int) = fseeko;
11891 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11893 return 0;
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11914 ac_cv_sys_largefile_source=no; break
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 #define _LARGEFILE_SOURCE 1
11931 #include <sys/types.h> /* for off_t */
11932 #include <stdio.h>
11934 main ()
11936 int (*fp) (FILE *, off_t, int) = fseeko;
11937 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11939 return 0;
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest$ac_exeext &&
11959 $as_test_x conftest$ac_exeext; then
11960 ac_cv_sys_largefile_source=1; break
11961 else
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969 conftest$ac_exeext conftest.$ac_ext
11970 ac_cv_sys_largefile_source=unknown
11971 break
11972 done
11974 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11975 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
11976 case $ac_cv_sys_largefile_source in #(
11977 no | unknown) ;;
11979 cat >>confdefs.h <<_ACEOF
11980 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11981 _ACEOF
11983 esac
11984 rm -f conftest*
11986 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11987 # in glibc 2.1.3, but that breaks too many other things.
11988 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11989 if test $ac_cv_sys_largefile_source != unknown; then
11991 cat >>confdefs.h <<\_ACEOF
11992 #define HAVE_FSEEKO 1
11993 _ACEOF
11997 if test $ac_cv_c_compiler_gnu = yes; then
11998 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_pattern="Autoconf.*'x'"
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 #include <sgtty.h>
12011 Autoconf TIOCGETP
12012 _ACEOF
12013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12014 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12015 ac_cv_prog_gcc_traditional=yes
12016 else
12017 ac_cv_prog_gcc_traditional=no
12019 rm -f conftest*
12022 if test $ac_cv_prog_gcc_traditional = no; then
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 #include <termio.h>
12030 Autoconf TCGETA
12031 _ACEOF
12032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12033 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12034 ac_cv_prog_gcc_traditional=yes
12036 rm -f conftest*
12040 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12041 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12042 if test $ac_cv_prog_gcc_traditional = yes; then
12043 CC="$CC -traditional"
12047 # XXX: these are commented out until we determine whether it matters if our malloc()
12048 # acts exactly like glibc's or not
12049 # AC_FUNC_MALLOC
12050 # AC_FUNC_REALLOC
12051 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12052 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12053 if test "${ac_cv_func_memcmp_working+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 if test "$cross_compiling" = yes; then
12057 ac_cv_func_memcmp_working=no
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12067 main ()
12070 /* Some versions of memcmp are not 8-bit clean. */
12071 char c0 = '\100', c1 = '\200', c2 = '\201';
12072 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12073 return 1;
12075 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12076 or more and with at least one buffer not starting on a 4-byte boundary.
12077 William Lewis provided this test program. */
12079 char foo[21];
12080 char bar[21];
12081 int i;
12082 for (i = 0; i < 4; i++)
12084 char *a = foo + i;
12085 char *b = bar + i;
12086 strcpy (a, "--------01111111");
12087 strcpy (b, "--------10000000");
12088 if (memcmp (a, b, 16) >= 0)
12089 return 1;
12091 return 0;
12095 return 0;
12097 _ACEOF
12098 rm -f conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_func_memcmp_working=yes
12119 else
12120 echo "$as_me: program exited with status $ac_status" >&5
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ( exit $ac_status )
12125 ac_cv_func_memcmp_working=no
12127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12132 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12133 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12134 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12135 *" memcmp.$ac_objext "* ) ;;
12136 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12138 esac
12145 for ac_header in $ac_header_list
12147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_res=`eval echo '${'$as_ac_Header'}'`
12155 { echo "$as_me:$LINENO: result: $ac_res" >&5
12156 echo "${ECHO_T}$ac_res" >&6; }
12157 else
12158 # Is the header compilable?
12159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h. */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 $ac_includes_default
12168 #include <$ac_header>
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest.$ac_objext; then
12187 ac_header_compiler=yes
12188 else
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_header_compiler=no
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12197 echo "${ECHO_T}$ac_header_compiler" >&6; }
12199 # Is the header present?
12200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 #include <$ac_header>
12209 _ACEOF
12210 if { (ac_try="$ac_cpp conftest.$ac_ext"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } >/dev/null && {
12223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 }; then
12226 ac_header_preproc=yes
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_preproc=no
12234 rm -f conftest.err conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236 echo "${ECHO_T}$ac_header_preproc" >&6; }
12238 # So? What about this header?
12239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12240 yes:no: )
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12245 ac_header_preproc=yes
12247 no:yes:* )
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12262 esac
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 eval "$as_ac_Header=\$ac_header_preproc"
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271 { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12282 done
12292 for ac_func in $ac_func_list
12294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12308 #define $ac_func innocuous_$ac_func
12310 /* System header to define __stub macros and hopefully few prototypes,
12311 which can conflict with char $ac_func (); below.
12312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12313 <limits.h> exists even on freestanding compilers. */
12315 #ifdef __STDC__
12316 # include <limits.h>
12317 #else
12318 # include <assert.h>
12319 #endif
12321 #undef $ac_func
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char $ac_func ();
12330 /* The GNU C library defines this for functions which it implements
12331 to always fail with ENOSYS. Some functions are actually named
12332 something starting with __ and the normal name is an alias. */
12333 #if defined __stub_$ac_func || defined __stub___$ac_func
12334 choke me
12335 #endif
12338 main ()
12340 return $ac_func ();
12342 return 0;
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (ac_try="$ac_link"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_link") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest$ac_exeext &&
12362 $as_test_x conftest$ac_exeext; then
12363 eval "$as_ac_var=yes"
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 eval "$as_ac_var=no"
12371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12372 conftest$ac_exeext conftest.$ac_ext
12374 ac_res=`eval echo '${'$as_ac_var'}'`
12375 { echo "$as_me:$LINENO: result: $ac_res" >&5
12376 echo "${ECHO_T}$ac_res" >&6; }
12377 if test `eval echo '${'$as_ac_var'}'` = yes; then
12378 cat >>confdefs.h <<_ACEOF
12379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12380 _ACEOF
12383 done
12401 { echo "$as_me:$LINENO: checking for working mktime" >&5
12402 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
12403 if test "${ac_cv_func_working_mktime+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406 if test "$cross_compiling" = yes; then
12407 ac_cv_func_working_mktime=no
12408 else
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 /* Test program from Paul Eggert and Tony Leneis. */
12416 #ifdef TIME_WITH_SYS_TIME
12417 # include <sys/time.h>
12418 # include <time.h>
12419 #else
12420 # ifdef HAVE_SYS_TIME_H
12421 # include <sys/time.h>
12422 # else
12423 # include <time.h>
12424 # endif
12425 #endif
12427 #include <stdlib.h>
12429 #ifdef HAVE_UNISTD_H
12430 # include <unistd.h>
12431 #endif
12433 #ifndef HAVE_ALARM
12434 # define alarm(X) /* empty */
12435 #endif
12437 /* Work around redefinition to rpl_putenv by other config tests. */
12438 #undef putenv
12440 static time_t time_t_max;
12441 static time_t time_t_min;
12443 /* Values we'll use to set the TZ environment variable. */
12444 static char *tz_strings[] = {
12445 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12446 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12448 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12450 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12451 Based on a problem report from Andreas Jaeger. */
12452 static int
12453 spring_forward_gap ()
12455 /* glibc (up to about 1998-10-07) failed this test. */
12456 struct tm tm;
12458 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12459 instead of "TZ=America/Vancouver" in order to detect the bug even
12460 on systems that don't support the Olson extension, or don't have the
12461 full zoneinfo tables installed. */
12462 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12464 tm.tm_year = 98;
12465 tm.tm_mon = 3;
12466 tm.tm_mday = 5;
12467 tm.tm_hour = 2;
12468 tm.tm_min = 0;
12469 tm.tm_sec = 0;
12470 tm.tm_isdst = -1;
12471 return mktime (&tm) != (time_t) -1;
12474 static int
12475 mktime_test1 (now)
12476 time_t now;
12478 struct tm *lt;
12479 return ! (lt = localtime (&now)) || mktime (lt) == now;
12482 static int
12483 mktime_test (now)
12484 time_t now;
12486 return (mktime_test1 (now)
12487 && mktime_test1 ((time_t) (time_t_max - now))
12488 && mktime_test1 ((time_t) (time_t_min + now)));
12491 static int
12492 irix_6_4_bug ()
12494 /* Based on code from Ariel Faigon. */
12495 struct tm tm;
12496 tm.tm_year = 96;
12497 tm.tm_mon = 3;
12498 tm.tm_mday = 0;
12499 tm.tm_hour = 0;
12500 tm.tm_min = 0;
12501 tm.tm_sec = 0;
12502 tm.tm_isdst = -1;
12503 mktime (&tm);
12504 return tm.tm_mon == 2 && tm.tm_mday == 31;
12507 static int
12508 bigtime_test (j)
12509 int j;
12511 struct tm tm;
12512 time_t now;
12513 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12514 now = mktime (&tm);
12515 if (now != (time_t) -1)
12517 struct tm *lt = localtime (&now);
12518 if (! (lt
12519 && lt->tm_year == tm.tm_year
12520 && lt->tm_mon == tm.tm_mon
12521 && lt->tm_mday == tm.tm_mday
12522 && lt->tm_hour == tm.tm_hour
12523 && lt->tm_min == tm.tm_min
12524 && lt->tm_sec == tm.tm_sec
12525 && lt->tm_yday == tm.tm_yday
12526 && lt->tm_wday == tm.tm_wday
12527 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12528 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12529 return 0;
12531 return 1;
12534 static int
12535 year_2050_test ()
12537 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12538 ignoring leap seconds. */
12539 unsigned long int answer = 2527315200UL;
12541 struct tm tm;
12542 time_t t;
12543 tm.tm_year = 2050 - 1900;
12544 tm.tm_mon = 2 - 1;
12545 tm.tm_mday = 1;
12546 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12547 tm.tm_isdst = -1;
12549 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12550 instead of "TZ=America/Vancouver" in order to detect the bug even
12551 on systems that don't support the Olson extension, or don't have the
12552 full zoneinfo tables installed. */
12553 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12555 t = mktime (&tm);
12557 /* Check that the result is either a failure, or close enough
12558 to the correct answer that we can assume the discrepancy is
12559 due to leap seconds. */
12560 return (t == (time_t) -1
12561 || (0 < t && answer - 120 <= t && t <= answer + 120));
12565 main ()
12567 time_t t, delta;
12568 int i, j;
12570 /* This test makes some buggy mktime implementations loop.
12571 Give up after 60 seconds; a mktime slower than that
12572 isn't worth using anyway. */
12573 alarm (60);
12575 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12576 continue;
12577 time_t_max--;
12578 if ((time_t) -1 < 0)
12579 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12580 continue;
12581 delta = time_t_max / 997; /* a suitable prime number */
12582 for (i = 0; i < N_STRINGS; i++)
12584 if (tz_strings[i])
12585 putenv (tz_strings[i]);
12587 for (t = 0; t <= time_t_max - delta; t += delta)
12588 if (! mktime_test (t))
12589 return 1;
12590 if (! (mktime_test ((time_t) 1)
12591 && mktime_test ((time_t) (60 * 60))
12592 && mktime_test ((time_t) (60 * 60 * 24))))
12593 return 1;
12595 for (j = 1; 0 < j; j *= 2)
12596 if (! bigtime_test (j))
12597 return 1;
12598 if (! bigtime_test (j - 1))
12599 return 1;
12601 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12603 _ACEOF
12604 rm -f conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615 { (case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_try") 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_cv_func_working_mktime=yes
12625 else
12626 echo "$as_me: program exited with status $ac_status" >&5
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ( exit $ac_status )
12631 ac_cv_func_working_mktime=no
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12638 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12639 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12640 if test $ac_cv_func_working_mktime = no; then
12641 case " $LIBOBJS " in
12642 *" mktime.$ac_objext "* ) ;;
12643 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12645 esac
12651 for ac_header in stdlib.h unistd.h
12653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 ac_res=`eval echo '${'$as_ac_Header'}'`
12661 { echo "$as_me:$LINENO: result: $ac_res" >&5
12662 echo "${ECHO_T}$ac_res" >&6; }
12663 else
12664 # Is the header compilable?
12665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 $ac_includes_default
12674 #include <$ac_header>
12675 _ACEOF
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_compile") 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && {
12690 test -z "$ac_c_werror_flag" ||
12691 test ! -s conftest.err
12692 } && test -s conftest.$ac_objext; then
12693 ac_header_compiler=yes
12694 else
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_header_compiler=no
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12703 echo "${ECHO_T}$ac_header_compiler" >&6; }
12705 # Is the header present?
12706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 #include <$ac_header>
12715 _ACEOF
12716 if { (ac_try="$ac_cpp conftest.$ac_ext"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } >/dev/null && {
12729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12730 test ! -s conftest.err
12731 }; then
12732 ac_header_preproc=yes
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_header_preproc=no
12740 rm -f conftest.err conftest.$ac_ext
12741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12742 echo "${ECHO_T}$ac_header_preproc" >&6; }
12744 # So? What about this header?
12745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12746 yes:no: )
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12751 ac_header_preproc=yes
12753 no:yes:* )
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12768 esac
12769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 eval "$as_ac_Header=\$ac_header_preproc"
12776 ac_res=`eval echo '${'$as_ac_Header'}'`
12777 { echo "$as_me:$LINENO: result: $ac_res" >&5
12778 echo "${ECHO_T}$ac_res" >&6; }
12781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12782 cat >>confdefs.h <<_ACEOF
12783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12784 _ACEOF
12788 done
12791 for ac_func in getpagesize
12793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12807 #define $ac_func innocuous_$ac_func
12809 /* System header to define __stub macros and hopefully few prototypes,
12810 which can conflict with char $ac_func (); below.
12811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12812 <limits.h> exists even on freestanding compilers. */
12814 #ifdef __STDC__
12815 # include <limits.h>
12816 #else
12817 # include <assert.h>
12818 #endif
12820 #undef $ac_func
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 char $ac_func ();
12829 /* The GNU C library defines this for functions which it implements
12830 to always fail with ENOSYS. Some functions are actually named
12831 something starting with __ and the normal name is an alias. */
12832 #if defined __stub_$ac_func || defined __stub___$ac_func
12833 choke me
12834 #endif
12837 main ()
12839 return $ac_func ();
12841 return 0;
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (ac_try="$ac_link"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_link") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest$ac_exeext &&
12861 $as_test_x conftest$ac_exeext; then
12862 eval "$as_ac_var=yes"
12863 else
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 eval "$as_ac_var=no"
12870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12871 conftest$ac_exeext conftest.$ac_ext
12873 ac_res=`eval echo '${'$as_ac_var'}'`
12874 { echo "$as_me:$LINENO: result: $ac_res" >&5
12875 echo "${ECHO_T}$ac_res" >&6; }
12876 if test `eval echo '${'$as_ac_var'}'` = yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12879 _ACEOF
12882 done
12884 { echo "$as_me:$LINENO: checking for working mmap" >&5
12885 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12886 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889 if test "$cross_compiling" = yes; then
12890 ac_cv_func_mmap_fixed_mapped=no
12891 else
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 $ac_includes_default
12899 /* malloc might have been renamed as rpl_malloc. */
12900 #undef malloc
12902 /* Thanks to Mike Haertel and Jim Avera for this test.
12903 Here is a matrix of mmap possibilities:
12904 mmap private not fixed
12905 mmap private fixed at somewhere currently unmapped
12906 mmap private fixed at somewhere already mapped
12907 mmap shared not fixed
12908 mmap shared fixed at somewhere currently unmapped
12909 mmap shared fixed at somewhere already mapped
12910 For private mappings, we should verify that changes cannot be read()
12911 back from the file, nor mmap's back from the file at a different
12912 address. (There have been systems where private was not correctly
12913 implemented like the infamous i386 svr4.0, and systems where the
12914 VM page cache was not coherent with the file system buffer cache
12915 like early versions of FreeBSD and possibly contemporary NetBSD.)
12916 For shared mappings, we should conversely verify that changes get
12917 propagated back to all the places they're supposed to be.
12919 Grep wants private fixed already mapped.
12920 The main things grep needs to know about mmap are:
12921 * does it exist and is it safe to write into the mmap'd area
12922 * how to use it (BSD variants) */
12924 #include <fcntl.h>
12925 #include <sys/mman.h>
12927 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12928 char *malloc ();
12929 #endif
12931 /* This mess was copied from the GNU getpagesize.h. */
12932 #ifndef HAVE_GETPAGESIZE
12933 /* Assume that all systems that can run configure have sys/param.h. */
12934 # ifndef HAVE_SYS_PARAM_H
12935 # define HAVE_SYS_PARAM_H 1
12936 # endif
12938 # ifdef _SC_PAGESIZE
12939 # define getpagesize() sysconf(_SC_PAGESIZE)
12940 # else /* no _SC_PAGESIZE */
12941 # ifdef HAVE_SYS_PARAM_H
12942 # include <sys/param.h>
12943 # ifdef EXEC_PAGESIZE
12944 # define getpagesize() EXEC_PAGESIZE
12945 # else /* no EXEC_PAGESIZE */
12946 # ifdef NBPG
12947 # define getpagesize() NBPG * CLSIZE
12948 # ifndef CLSIZE
12949 # define CLSIZE 1
12950 # endif /* no CLSIZE */
12951 # else /* no NBPG */
12952 # ifdef NBPC
12953 # define getpagesize() NBPC
12954 # else /* no NBPC */
12955 # ifdef PAGESIZE
12956 # define getpagesize() PAGESIZE
12957 # endif /* PAGESIZE */
12958 # endif /* no NBPC */
12959 # endif /* no NBPG */
12960 # endif /* no EXEC_PAGESIZE */
12961 # else /* no HAVE_SYS_PARAM_H */
12962 # define getpagesize() 8192 /* punt totally */
12963 # endif /* no HAVE_SYS_PARAM_H */
12964 # endif /* no _SC_PAGESIZE */
12966 #endif /* no HAVE_GETPAGESIZE */
12969 main ()
12971 char *data, *data2, *data3;
12972 int i, pagesize;
12973 int fd;
12975 pagesize = getpagesize ();
12977 /* First, make a file with some known garbage in it. */
12978 data = (char *) malloc (pagesize);
12979 if (!data)
12980 return 1;
12981 for (i = 0; i < pagesize; ++i)
12982 *(data + i) = rand ();
12983 umask (0);
12984 fd = creat ("conftest.mmap", 0600);
12985 if (fd < 0)
12986 return 1;
12987 if (write (fd, data, pagesize) != pagesize)
12988 return 1;
12989 close (fd);
12991 /* Next, try to mmap the file at a fixed address which already has
12992 something else allocated at it. If we can, also make sure that
12993 we see the same garbage. */
12994 fd = open ("conftest.mmap", O_RDWR);
12995 if (fd < 0)
12996 return 1;
12997 data2 = (char *) malloc (2 * pagesize);
12998 if (!data2)
12999 return 1;
13000 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13001 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13002 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13003 return 1;
13004 for (i = 0; i < pagesize; ++i)
13005 if (*(data + i) != *(data2 + i))
13006 return 1;
13008 /* Finally, make sure that changes to the mapped area do not
13009 percolate back to the file as seen by read(). (This is a bug on
13010 some variants of i386 svr4.0.) */
13011 for (i = 0; i < pagesize; ++i)
13012 *(data2 + i) = *(data2 + i) + 1;
13013 data3 = (char *) malloc (pagesize);
13014 if (!data3)
13015 return 1;
13016 if (read (fd, data3, pagesize) != pagesize)
13017 return 1;
13018 for (i = 0; i < pagesize; ++i)
13019 if (*(data + i) != *(data3 + i))
13020 return 1;
13021 close (fd);
13022 return 0;
13024 _ACEOF
13025 rm -f conftest$ac_exeext
13026 if { (ac_try="$ac_link"
13027 case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_link") 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_func_mmap_fixed_mapped=yes
13046 else
13047 echo "$as_me: program exited with status $ac_status" >&5
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13051 ( exit $ac_status )
13052 ac_cv_func_mmap_fixed_mapped=no
13054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13059 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13060 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13063 cat >>confdefs.h <<\_ACEOF
13064 #define HAVE_MMAP 1
13065 _ACEOF
13068 rm -f conftest.mmap
13072 for ac_header in sys/select.h sys/socket.h
13074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 ac_res=`eval echo '${'$as_ac_Header'}'`
13082 { echo "$as_me:$LINENO: result: $ac_res" >&5
13083 echo "${ECHO_T}$ac_res" >&6; }
13084 else
13085 # Is the header compilable?
13086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13095 #include <$ac_header>
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (ac_try="$ac_compile"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102 esac
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_compile") 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } && {
13111 test -z "$ac_c_werror_flag" ||
13112 test ! -s conftest.err
13113 } && test -s conftest.$ac_objext; then
13114 ac_header_compiler=yes
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 ac_header_compiler=no
13122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13124 echo "${ECHO_T}$ac_header_compiler" >&6; }
13126 # Is the header present?
13127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h. */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 #include <$ac_header>
13136 _ACEOF
13137 if { (ac_try="$ac_cpp conftest.$ac_ext"
13138 case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } >/dev/null && {
13150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13151 test ! -s conftest.err
13152 }; then
13153 ac_header_preproc=yes
13154 else
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ac_header_preproc=no
13161 rm -f conftest.err conftest.$ac_ext
13162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13163 echo "${ECHO_T}$ac_header_preproc" >&6; }
13165 # So? What about this header?
13166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13167 yes:no: )
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13172 ac_header_preproc=yes
13174 no:yes:* )
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13189 esac
13190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195 eval "$as_ac_Header=\$ac_header_preproc"
13197 ac_res=`eval echo '${'$as_ac_Header'}'`
13198 { echo "$as_me:$LINENO: result: $ac_res" >&5
13199 echo "${ECHO_T}$ac_res" >&6; }
13202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13203 cat >>confdefs.h <<_ACEOF
13204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13205 _ACEOF
13209 done
13211 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13212 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13213 if test "${ac_cv_func_select_args+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13217 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13218 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13226 #ifdef HAVE_SYS_SELECT_H
13227 # include <sys/select.h>
13228 #endif
13229 #ifdef HAVE_SYS_SOCKET_H
13230 # include <sys/socket.h>
13231 #endif
13234 main ()
13236 extern int select ($ac_arg1,
13237 $ac_arg234, $ac_arg234, $ac_arg234,
13238 $ac_arg5);
13240 return 0;
13242 _ACEOF
13243 rm -f conftest.$ac_objext
13244 if { (ac_try="$ac_compile"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_compile") 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } && {
13257 test -z "$ac_c_werror_flag" ||
13258 test ! -s conftest.err
13259 } && test -s conftest.$ac_objext; then
13260 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269 done
13270 done
13271 done
13272 # Provide a safe default value.
13273 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13276 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13277 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13278 ac_save_IFS=$IFS; IFS=','
13279 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13280 IFS=$ac_save_IFS
13281 shift
13283 cat >>confdefs.h <<_ACEOF
13284 #define SELECT_TYPE_ARG1 $1
13285 _ACEOF
13288 cat >>confdefs.h <<_ACEOF
13289 #define SELECT_TYPE_ARG234 ($2)
13290 _ACEOF
13293 cat >>confdefs.h <<_ACEOF
13294 #define SELECT_TYPE_ARG5 ($3)
13295 _ACEOF
13297 rm -f conftest*
13299 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13300 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13301 if test "$ac_cv_prog_cc_c89" != no; then
13302 { echo "$as_me:$LINENO: result: yes" >&5
13303 echo "${ECHO_T}yes" >&6; }
13305 cat >>confdefs.h <<\_ACEOF
13306 #define PROTOTYPES 1
13307 _ACEOF
13310 cat >>confdefs.h <<\_ACEOF
13311 #define __PROTOTYPES 1
13312 _ACEOF
13314 else
13315 { echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6; }
13319 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13320 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13321 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324 ac_cv_func_setvbuf_reversed=no
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13331 #include <stdio.h>
13332 # ifdef PROTOTYPES
13333 int (setvbuf) (FILE *, int, char *, size_t);
13334 # endif
13336 main ()
13338 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13340 return 0;
13342 _ACEOF
13343 rm -f conftest.$ac_objext conftest$ac_exeext
13344 if { (ac_try="$ac_link"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_link") 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && {
13357 test -z "$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 } && test -s conftest$ac_exeext &&
13360 $as_test_x conftest$ac_exeext; then
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h. */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13367 #include <stdio.h>
13368 # ifdef PROTOTYPES
13369 int (setvbuf) (FILE *, int, char *, size_t);
13370 # endif
13372 main ()
13374 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13376 return 0;
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_link") 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && {
13393 test -z "$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 } && test -s conftest$ac_exeext &&
13396 $as_test_x conftest$ac_exeext; then
13397 # It compiles and links either way, so it must not be declared
13398 # with a prototype and most likely this is a K&R C compiler.
13399 # Try running it.
13400 if test "$cross_compiling" = yes; then
13401 : # Assume setvbuf is not reversed when cross-compiling.
13402 else
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13411 main ()
13413 /* This call has the arguments reversed.
13414 A reversed system may check and see that the address of buf
13415 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13416 char buf;
13417 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13418 return 1;
13419 putchar ('\r');
13420 return 0; /* Non-reversed systems SEGV here. */
13422 return 0;
13424 _ACEOF
13425 rm -f conftest$ac_exeext
13426 if { (ac_try="$ac_link"
13427 case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_link") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_func_setvbuf_reversed=yes
13446 else
13447 echo "$as_me: program exited with status $ac_status" >&5
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13456 ac_cv_func_setvbuf_reversed=yes
13457 else
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13465 conftest$ac_exeext conftest.$ac_ext
13466 else
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13474 conftest$ac_exeext conftest.$ac_ext
13476 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13477 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13478 if test $ac_cv_func_setvbuf_reversed = yes; then
13480 cat >>confdefs.h <<\_ACEOF
13481 #define SETVBUF_REVERSED 1
13482 _ACEOF
13486 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13487 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13488 if test "${ac_cv_type_signal+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <sys/types.h>
13498 #include <signal.h>
13501 main ()
13503 return *(signal (0, 0)) (0) == 1;
13505 return 0;
13507 _ACEOF
13508 rm -f conftest.$ac_objext
13509 if { (ac_try="$ac_compile"
13510 case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_compile") 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && {
13522 test -z "$ac_c_werror_flag" ||
13523 test ! -s conftest.err
13524 } && test -s conftest.$ac_objext; then
13525 ac_cv_type_signal=int
13526 else
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 ac_cv_type_signal=void
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13536 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13538 cat >>confdefs.h <<_ACEOF
13539 #define RETSIGTYPE $ac_cv_type_signal
13540 _ACEOF
13543 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13544 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13545 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 else
13548 rm -f conftest.sym conftest.file
13549 echo >conftest.file
13550 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13551 if test "$cross_compiling" = yes; then
13552 ac_cv_func_lstat_dereferences_slashed_symlink=no
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13562 main ()
13564 struct stat sbuf;
13565 /* Linux will dereference the symlink and fail.
13566 That is better in the sense that it means we will not
13567 have to compile and use the lstat wrapper. */
13568 return lstat ("conftest.sym/", &sbuf) == 0;
13570 return 0;
13572 _ACEOF
13573 rm -f conftest$ac_exeext
13574 if { (ac_try="$ac_link"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13594 else
13595 echo "$as_me: program exited with status $ac_status" >&5
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ( exit $ac_status )
13600 ac_cv_func_lstat_dereferences_slashed_symlink=no
13602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13606 else
13607 # If the `ln -s' command failed, then we probably don't even
13608 # have an lstat function.
13609 ac_cv_func_lstat_dereferences_slashed_symlink=no
13611 rm -f conftest.sym conftest.file
13614 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13615 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13617 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13619 cat >>confdefs.h <<_ACEOF
13620 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13621 _ACEOF
13624 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13625 case " $LIBOBJS " in
13626 *" lstat.$ac_objext "* ) ;;
13627 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13629 esac
13633 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13634 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13635 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638 if test "$cross_compiling" = yes; then
13639 ac_cv_func_stat_empty_string_bug=yes
13640 else
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 $ac_includes_default
13649 main ()
13651 struct stat sbuf;
13652 return stat ("", &sbuf) == 0;
13654 return 0;
13656 _ACEOF
13657 rm -f conftest$ac_exeext
13658 if { (ac_try="$ac_link"
13659 case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662 esac
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_link") 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_func_stat_empty_string_bug=no
13678 else
13679 echo "$as_me: program exited with status $ac_status" >&5
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ( exit $ac_status )
13684 ac_cv_func_stat_empty_string_bug=yes
13686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13692 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13693 if test $ac_cv_func_stat_empty_string_bug = yes; then
13694 case " $LIBOBJS " in
13695 *" stat.$ac_objext "* ) ;;
13696 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13698 esac
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_STAT_EMPTY_STRING_BUG 1
13703 _ACEOF
13707 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13708 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13709 if test "${ac_cv_func_strcoll_works+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 if test "$cross_compiling" = yes; then
13713 ac_cv_func_strcoll_works=no
13714 else
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13723 main ()
13725 return (strcoll ("abc", "def") >= 0 ||
13726 strcoll ("ABC", "DEF") >= 0 ||
13727 strcoll ("123", "456") >= 0)
13729 return 0;
13731 _ACEOF
13732 rm -f conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13743 { (case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_try") 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_func_strcoll_works=yes
13753 else
13754 echo "$as_me: program exited with status $ac_status" >&5
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ( exit $ac_status )
13759 ac_cv_func_strcoll_works=no
13761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13767 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13768 if test $ac_cv_func_strcoll_works = yes; then
13770 cat >>confdefs.h <<\_ACEOF
13771 #define HAVE_STRCOLL 1
13772 _ACEOF
13777 for ac_func in strftime
13779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13793 #define $ac_func innocuous_$ac_func
13795 /* System header to define __stub macros and hopefully few prototypes,
13796 which can conflict with char $ac_func (); below.
13797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13798 <limits.h> exists even on freestanding compilers. */
13800 #ifdef __STDC__
13801 # include <limits.h>
13802 #else
13803 # include <assert.h>
13804 #endif
13806 #undef $ac_func
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char $ac_func ();
13815 /* The GNU C library defines this for functions which it implements
13816 to always fail with ENOSYS. Some functions are actually named
13817 something starting with __ and the normal name is an alias. */
13818 #if defined __stub_$ac_func || defined __stub___$ac_func
13819 choke me
13820 #endif
13823 main ()
13825 return $ac_func ();
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } && {
13844 test -z "$ac_c_werror_flag" ||
13845 test ! -s conftest.err
13846 } && test -s conftest$ac_exeext &&
13847 $as_test_x conftest$ac_exeext; then
13848 eval "$as_ac_var=yes"
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 eval "$as_ac_var=no"
13856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13857 conftest$ac_exeext conftest.$ac_ext
13859 ac_res=`eval echo '${'$as_ac_var'}'`
13860 { echo "$as_me:$LINENO: result: $ac_res" >&5
13861 echo "${ECHO_T}$ac_res" >&6; }
13862 if test `eval echo '${'$as_ac_var'}'` = yes; then
13863 cat >>confdefs.h <<_ACEOF
13864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13865 _ACEOF
13867 else
13868 # strftime is in -lintl on SCO UNIX.
13869 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13870 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-lintl $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char strftime ();
13891 main ()
13893 return strftime ();
13895 return 0;
13897 _ACEOF
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_intl_strftime=yes
13917 else
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ac_cv_lib_intl_strftime=no
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13929 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13930 if test $ac_cv_lib_intl_strftime = yes; then
13931 cat >>confdefs.h <<\_ACEOF
13932 #define HAVE_STRFTIME 1
13933 _ACEOF
13935 LIBS="-lintl $LIBS"
13939 done
13941 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13942 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13943 if test "${ac_cv_func_strnlen_working+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946 if test "$cross_compiling" = yes; then
13947 ac_cv_func_strnlen_working=no
13948 else
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h. */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 $ac_includes_default
13957 main ()
13960 #define S "foobar"
13961 #define S_LEN (sizeof S - 1)
13963 /* At least one implementation is buggy: that of AIX 4.3 would
13964 give strnlen (S, 1) == 3. */
13966 int i;
13967 for (i = 0; i < S_LEN + 1; ++i)
13969 int expected = i <= S_LEN ? i : S_LEN;
13970 if (strnlen (S, i) != expected)
13971 return 1;
13973 return 0;
13976 return 0;
13978 _ACEOF
13979 rm -f conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_func_strnlen_working=yes
14000 else
14001 echo "$as_me: program exited with status $ac_status" >&5
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ( exit $ac_status )
14006 ac_cv_func_strnlen_working=no
14008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14013 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14014 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14015 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14016 *" strnlen.$ac_objext "* ) ;;
14017 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14019 esac
14022 { echo "$as_me:$LINENO: checking for working strtod" >&5
14023 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14024 if test "${ac_cv_func_strtod+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027 if test "$cross_compiling" = yes; then
14028 ac_cv_func_strtod=no
14029 else
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 $ac_includes_default
14038 #ifndef strtod
14039 double strtod ();
14040 #endif
14042 main()
14045 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14046 char *string = " +69";
14047 char *term;
14048 double value;
14049 value = strtod (string, &term);
14050 if (value != 69 || term != (string + 4))
14051 return 1;
14055 /* Under Solaris 2.4, strtod returns the wrong value for the
14056 terminating character under some conditions. */
14057 char *string = "NaN";
14058 char *term;
14059 strtod (string, &term);
14060 if (term != string && *(term - 1) == 0)
14061 return 1;
14063 return 0;
14066 _ACEOF
14067 rm -f conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_func_strtod=yes
14088 else
14089 echo "$as_me: program exited with status $ac_status" >&5
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ( exit $ac_status )
14094 ac_cv_func_strtod=no
14096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14101 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14102 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14103 if test $ac_cv_func_strtod = no; then
14104 case " $LIBOBJS " in
14105 *" strtod.$ac_objext "* ) ;;
14106 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14108 esac
14110 { echo "$as_me:$LINENO: checking for pow" >&5
14111 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14112 if test "${ac_cv_func_pow+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14123 #define pow innocuous_pow
14125 /* System header to define __stub macros and hopefully few prototypes,
14126 which can conflict with char pow (); below.
14127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14128 <limits.h> exists even on freestanding compilers. */
14130 #ifdef __STDC__
14131 # include <limits.h>
14132 #else
14133 # include <assert.h>
14134 #endif
14136 #undef pow
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char pow ();
14145 /* The GNU C library defines this for functions which it implements
14146 to always fail with ENOSYS. Some functions are actually named
14147 something starting with __ and the normal name is an alias. */
14148 #if defined __stub_pow || defined __stub___pow
14149 choke me
14150 #endif
14153 main ()
14155 return pow ();
14157 return 0;
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (ac_try="$ac_link"
14162 case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_link") 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest$ac_exeext &&
14177 $as_test_x conftest$ac_exeext; then
14178 ac_cv_func_pow=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_cv_func_pow=no
14186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14187 conftest$ac_exeext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14190 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14192 if test $ac_cv_func_pow = no; then
14193 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14194 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14195 if test "${ac_cv_lib_m_pow+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198 ac_check_lib_save_LIBS=$LIBS
14199 LIBS="-lm $LIBS"
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14207 /* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply. */
14210 #ifdef __cplusplus
14211 extern "C"
14212 #endif
14213 char pow ();
14215 main ()
14217 return pow ();
14219 return 0;
14221 _ACEOF
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (ac_try="$ac_link"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_link") 2>conftest.er1
14230 ac_status=$?
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } && {
14236 test -z "$ac_c_werror_flag" ||
14237 test ! -s conftest.err
14238 } && test -s conftest$ac_exeext &&
14239 $as_test_x conftest$ac_exeext; then
14240 ac_cv_lib_m_pow=yes
14241 else
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 ac_cv_lib_m_pow=no
14248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14249 conftest$ac_exeext conftest.$ac_ext
14250 LIBS=$ac_check_lib_save_LIBS
14252 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14253 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14254 if test $ac_cv_lib_m_pow = yes; then
14255 POW_LIB=-lm
14256 else
14257 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14258 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14273 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14274 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14275 if test "${ac_cv_func_utime_null+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 rm -f conftest.data; >conftest.data
14279 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14280 if test "$cross_compiling" = yes; then
14281 ac_cv_func_utime_null=no
14282 else
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h. */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 $ac_includes_default
14290 #ifdef HAVE_UTIME_H
14291 # include <utime.h>
14292 #endif
14294 main ()
14296 struct stat s, t;
14297 return ! (stat ("conftest.data", &s) == 0
14298 && utime ("conftest.data", 0) == 0
14299 && stat ("conftest.data", &t) == 0
14300 && t.st_mtime >= s.st_mtime
14301 && t.st_mtime - s.st_mtime < 120);
14303 return 0;
14305 _ACEOF
14306 rm -f conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_link") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_func_utime_null=yes
14327 else
14328 echo "$as_me: program exited with status $ac_status" >&5
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ( exit $ac_status )
14333 ac_cv_func_utime_null=no
14335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14341 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14342 if test $ac_cv_func_utime_null = yes; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define HAVE_UTIME_NULL 1
14346 _ACEOF
14349 rm -f conftest.data
14352 for ac_func in vprintf
14354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14368 #define $ac_func innocuous_$ac_func
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char $ac_func (); below.
14372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14373 <limits.h> exists even on freestanding compilers. */
14375 #ifdef __STDC__
14376 # include <limits.h>
14377 #else
14378 # include <assert.h>
14379 #endif
14381 #undef $ac_func
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char $ac_func ();
14390 /* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
14393 #if defined __stub_$ac_func || defined __stub___$ac_func
14394 choke me
14395 #endif
14398 main ()
14400 return $ac_func ();
14402 return 0;
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 eval "$as_ac_var=yes"
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 eval "$as_ac_var=no"
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
14434 ac_res=`eval echo '${'$as_ac_var'}'`
14435 { echo "$as_me:$LINENO: result: $ac_res" >&5
14436 echo "${ECHO_T}$ac_res" >&6; }
14437 if test `eval echo '${'$as_ac_var'}'` = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14440 _ACEOF
14442 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14443 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14444 if test "${ac_cv_func__doprnt+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14455 #define _doprnt innocuous__doprnt
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char _doprnt (); below.
14459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 <limits.h> exists even on freestanding compilers. */
14462 #ifdef __STDC__
14463 # include <limits.h>
14464 #else
14465 # include <assert.h>
14466 #endif
14468 #undef _doprnt
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14473 #ifdef __cplusplus
14474 extern "C"
14475 #endif
14476 char _doprnt ();
14477 /* The GNU C library defines this for functions which it implements
14478 to always fail with ENOSYS. Some functions are actually named
14479 something starting with __ and the normal name is an alias. */
14480 #if defined __stub__doprnt || defined __stub____doprnt
14481 choke me
14482 #endif
14485 main ()
14487 return _doprnt ();
14489 return 0;
14491 _ACEOF
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } && {
14506 test -z "$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest$ac_exeext &&
14509 $as_test_x conftest$ac_exeext; then
14510 ac_cv_func__doprnt=yes
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_cv_func__doprnt=no
14518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14519 conftest$ac_exeext conftest.$ac_ext
14521 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14522 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14523 if test $ac_cv_func__doprnt = yes; then
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_DOPRNT 1
14527 _ACEOF
14532 done
14584 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 strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
14586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14600 #define $ac_func innocuous_$ac_func
14602 /* System header to define __stub macros and hopefully few prototypes,
14603 which can conflict with char $ac_func (); below.
14604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14605 <limits.h> exists even on freestanding compilers. */
14607 #ifdef __STDC__
14608 # include <limits.h>
14609 #else
14610 # include <assert.h>
14611 #endif
14613 #undef $ac_func
14615 /* Override any GCC internal prototype to avoid an error.
14616 Use char because int might match the return type of a GCC
14617 builtin and then its argument prototype would still apply. */
14618 #ifdef __cplusplus
14619 extern "C"
14620 #endif
14621 char $ac_func ();
14622 /* The GNU C library defines this for functions which it implements
14623 to always fail with ENOSYS. Some functions are actually named
14624 something starting with __ and the normal name is an alias. */
14625 #if defined __stub_$ac_func || defined __stub___$ac_func
14626 choke me
14627 #endif
14630 main ()
14632 return $ac_func ();
14634 return 0;
14636 _ACEOF
14637 rm -f conftest.$ac_objext conftest$ac_exeext
14638 if { (ac_try="$ac_link"
14639 case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_link") 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } && {
14651 test -z "$ac_c_werror_flag" ||
14652 test ! -s conftest.err
14653 } && test -s conftest$ac_exeext &&
14654 $as_test_x conftest$ac_exeext; then
14655 eval "$as_ac_var=yes"
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 eval "$as_ac_var=no"
14663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14664 conftest$ac_exeext conftest.$ac_ext
14666 ac_res=`eval echo '${'$as_ac_var'}'`
14667 { echo "$as_me:$LINENO: result: $ac_res" >&5
14668 echo "${ECHO_T}$ac_res" >&6; }
14669 if test `eval echo '${'$as_ac_var'}'` = yes; then
14670 cat >>confdefs.h <<_ACEOF
14671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14672 _ACEOF
14675 done
14678 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14679 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14680 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14681 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684 ac_func_search_save_LIBS=$LIBS
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14692 /* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
14695 #ifdef __cplusplus
14696 extern "C"
14697 #endif
14698 char gethostbyname_r ();
14700 main ()
14702 return gethostbyname_r ();
14704 return 0;
14706 _ACEOF
14707 for ac_lib in '' socket nsl; do
14708 if test -z "$ac_lib"; then
14709 ac_res="none required"
14710 else
14711 ac_res=-l$ac_lib
14712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14714 rm -f conftest.$ac_objext conftest$ac_exeext
14715 if { (ac_try="$ac_link"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_link") 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } && {
14728 test -z "$ac_c_werror_flag" ||
14729 test ! -s conftest.err
14730 } && test -s conftest$ac_exeext &&
14731 $as_test_x conftest$ac_exeext; then
14732 ac_cv_search_gethostbyname_r=$ac_res
14733 else
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14741 conftest$ac_exeext
14742 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14743 break
14745 done
14746 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14748 else
14749 ac_cv_search_gethostbyname_r=no
14751 rm conftest.$ac_ext
14752 LIBS=$ac_func_search_save_LIBS
14754 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14755 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14756 ac_res=$ac_cv_search_gethostbyname_r
14757 if test "$ac_res" != no; then
14758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14763 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14764 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14765 cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h. */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <stdlib.h>
14772 #include <netdb.h>
14774 main ()
14776 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14778 return 0;
14780 _ACEOF
14781 rm -f conftest.$ac_objext conftest$ac_exeext
14782 if { (ac_try="$ac_link"
14783 case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_link") 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
14797 } && test -s conftest$ac_exeext &&
14798 $as_test_x conftest$ac_exeext; then
14799 { echo "$as_me:$LINENO: result: yes" >&5
14800 echo "${ECHO_T}yes" >&6; }
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_GETHOSTBYNAME_R_6 1
14804 _ACEOF
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 { echo "$as_me:$LINENO: result: no" >&5
14811 echo "${ECHO_T}no" >&6; }
14815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14816 conftest$ac_exeext conftest.$ac_ext
14818 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14819 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h. */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 #include <stdlib.h>
14827 #include <netdb.h>
14829 main ()
14831 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14833 return 0;
14835 _ACEOF
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (ac_try="$ac_link"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_link") 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest$ac_exeext &&
14853 $as_test_x conftest$ac_exeext; then
14854 { echo "$as_me:$LINENO: result: yes" >&5
14855 echo "${ECHO_T}yes" >&6; }
14857 cat >>confdefs.h <<\_ACEOF
14858 #define HAVE_GETHOSTBYNAME_R_5 1
14859 _ACEOF
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 { echo "$as_me:$LINENO: result: no" >&5
14866 echo "${ECHO_T}no" >&6; }
14870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14871 conftest$ac_exeext conftest.$ac_ext
14873 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14874 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <pthread.h>
14883 main ()
14885 int foo = PTHREAD_RWLOCK_INITIALIZER;
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_link") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && {
14904 test -z "$ac_c_werror_flag" ||
14905 test ! -s conftest.err
14906 } && test -s conftest$ac_exeext &&
14907 $as_test_x conftest$ac_exeext; then
14908 { echo "$as_me:$LINENO: result: yes" >&5
14909 echo "${ECHO_T}yes" >&6; }
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14913 _ACEOF
14915 else
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14919 { echo "$as_me:$LINENO: result: no" >&5
14920 echo "${ECHO_T}no" >&6; }
14924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14925 conftest$ac_exeext conftest.$ac_ext
14927 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14928 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <pthread.h>
14937 main ()
14939 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14941 return 0;
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (ac_try="$ac_link"
14946 case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_link") 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && {
14958 test -z "$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 } && test -s conftest$ac_exeext &&
14961 $as_test_x conftest$ac_exeext; then
14962 { echo "$as_me:$LINENO: result: yes" >&5
14963 echo "${ECHO_T}yes" >&6; }
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14967 _ACEOF
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 { echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6; }
14978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14979 conftest$ac_exeext conftest.$ac_ext
14981 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14982 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h. */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14991 main ()
14993 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14995 return 0;
14997 _ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (ac_try="$ac_link"
15000 case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003 esac
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_link") 2>conftest.er1
15006 ac_status=$?
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } && {
15012 test -z "$ac_c_werror_flag" ||
15013 test ! -s conftest.err
15014 } && test -s conftest$ac_exeext &&
15015 $as_test_x conftest$ac_exeext; then
15016 { echo "$as_me:$LINENO: result: yes" >&5
15017 echo "${ECHO_T}yes" >&6; }
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_GCC_ATOMICS 1
15021 _ACEOF
15023 else
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 { echo "$as_me:$LINENO: result: no" >&5
15028 echo "${ECHO_T}no" >&6; }
15032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15033 conftest$ac_exeext conftest.$ac_ext
15036 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
15037 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 static int __attribute__((pure)) test(void) {}
15046 main ()
15050 return 0;
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (ac_try="$ac_compile"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_compile") 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest.$ac_objext; then
15070 { echo "$as_me:$LINENO: result: yes" >&5
15071 echo "${ECHO_T}yes" >&6; }
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_ATTRIBUTE_pure 1
15075 _ACEOF
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 { echo "$as_me:$LINENO: result: no" >&5
15082 echo "${ECHO_T}no" >&6; }
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
15089 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 static int __attribute__((malloc)) test(void) {}
15098 main ()
15102 return 0;
15104 _ACEOF
15105 rm -f conftest.$ac_objext
15106 if { (ac_try="$ac_compile"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_compile") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && {
15119 test -z "$ac_c_werror_flag" ||
15120 test ! -s conftest.err
15121 } && test -s conftest.$ac_objext; then
15122 { echo "$as_me:$LINENO: result: yes" >&5
15123 echo "${ECHO_T}yes" >&6; }
15125 cat >>confdefs.h <<_ACEOF
15126 #define HAVE_ATTRIBUTE_malloc 1
15127 _ACEOF
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 { echo "$as_me:$LINENO: result: no" >&5
15134 echo "${ECHO_T}no" >&6; }
15137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15141 echo $ECHO_N "checking for compiler 'attribute const' support... $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 static int __attribute__((const)) test(void) {}
15150 main ()
15154 return 0;
15156 _ACEOF
15157 rm -f conftest.$ac_objext
15158 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
15174 { echo "$as_me:$LINENO: result: yes" >&5
15175 echo "${ECHO_T}yes" >&6; }
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_ATTRIBUTE_const 1
15179 _ACEOF
15181 else
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 { echo "$as_me:$LINENO: result: no" >&5
15186 echo "${ECHO_T}no" >&6; }
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15193 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 static int __attribute__((unused)) test(void) {}
15202 main ()
15206 return 0;
15208 _ACEOF
15209 rm -f conftest.$ac_objext
15210 if { (ac_try="$ac_compile"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_compile") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest.$ac_objext; then
15226 { echo "$as_me:$LINENO: result: yes" >&5
15227 echo "${ECHO_T}yes" >&6; }
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_ATTRIBUTE_unused 1
15231 _ACEOF
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 { echo "$as_me:$LINENO: result: no" >&5
15238 echo "${ECHO_T}no" >&6; }
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15245 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 static int __attribute__((always_inline)) test(void) {}
15254 main ()
15258 return 0;
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 { echo "$as_me:$LINENO: result: yes" >&5
15279 echo "${ECHO_T}yes" >&6; }
15281 cat >>confdefs.h <<_ACEOF
15282 #define HAVE_ATTRIBUTE_always_inline 1
15283 _ACEOF
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 { echo "$as_me:$LINENO: result: no" >&5
15290 echo "${ECHO_T}no" >&6; }
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15297 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15298 saved_CFLAGS="${CFLAGS}"
15299 CFLAGS="${CFLAGS} -ffunction-sections"
15300 cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h. */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15308 main ()
15310 int x = 1;
15312 return 0;
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (ac_try="$ac_compile"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_compile") 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } && {
15329 test -z "$ac_c_werror_flag" ||
15330 test ! -s conftest.err
15331 } && test -s conftest.$ac_objext; then
15332 { echo "$as_me:$LINENO: result: yes" >&5
15333 echo "${ECHO_T}yes" >&6; }
15334 saved_LDFLAGS="${LDFLAGS}"
15335 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15336 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15337 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15346 main ()
15348 int x = 1;
15350 return 0;
15352 _ACEOF
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (ac_try="$ac_link"
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_link") 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_exeext &&
15370 $as_test_x conftest$ac_exeext; then
15371 { echo "$as_me:$LINENO: result: yes" >&5
15372 echo "${ECHO_T}yes" >&6; }
15373 GC_CFLAGS="-ffunction-sections"
15374 GC_LDFLAGS="-Wl,--gc-sections"
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 { echo "$as_me:$LINENO: result: no" >&5
15380 echo "${ECHO_T}no" >&6; }
15384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15386 LDFLAGS="${saved_LDFLAGS}"
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 { echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6; }
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 CFLAGS="${saved_CFLAGS}"
15401 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15402 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15403 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15404 { echo "$as_me:$LINENO: result: yes" >&5
15405 echo "${ECHO_T}yes" >&6; }
15406 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15407 else
15408 { echo "$as_me:$LINENO: result: no" >&5
15409 echo "${ECHO_T}no" >&6; }
15410 AST_DECLARATION_AFTER_STATEMENT=
15414 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15415 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15416 cat >conftest.$ac_ext <<_ACEOF
15417 /* confdefs.h. */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15422 #include <resolv.h>
15424 main ()
15426 int foo = res_ninit(NULL);
15428 return 0;
15430 _ACEOF
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (ac_try="$ac_link"
15433 case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436 esac
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_link") 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } && {
15445 test -z "$ac_c_werror_flag" ||
15446 test ! -s conftest.err
15447 } && test -s conftest$ac_exeext &&
15448 $as_test_x conftest$ac_exeext; then
15449 { echo "$as_me:$LINENO: result: yes" >&5
15450 echo "${ECHO_T}yes" >&6; }
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE_RES_NINIT 1
15454 _ACEOF
15456 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15457 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <resolv.h>
15466 main ()
15468 int foo = res_ndestroy(NULL);
15470 return 0;
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (ac_try="$ac_link"
15475 case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478 esac
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_link") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest$ac_exeext &&
15490 $as_test_x conftest$ac_exeext; then
15491 { echo "$as_me:$LINENO: result: yes" >&5
15492 echo "${ECHO_T}yes" >&6; }
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_RES_NDESTROY 1
15496 _ACEOF
15498 else
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 { echo "$as_me:$LINENO: result: no" >&5
15503 echo "${ECHO_T}no" >&6; }
15507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15508 conftest$ac_exeext conftest.$ac_ext
15509 else
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 { echo "$as_me:$LINENO: result: no" >&5
15514 echo "${ECHO_T}no" >&6; }
15518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15519 conftest$ac_exeext conftest.$ac_ext
15521 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15522 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h. */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <dlfcn.h>
15531 main ()
15533 int foo = RTLD_NOLOAD;
15535 return 0;
15537 _ACEOF
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (ac_try="$ac_link"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_link") 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } && {
15552 test -z "$ac_c_werror_flag" ||
15553 test ! -s conftest.err
15554 } && test -s conftest$ac_exeext &&
15555 $as_test_x conftest$ac_exeext; then
15556 { echo "$as_me:$LINENO: result: yes" >&5
15557 echo "${ECHO_T}yes" >&6; }
15559 cat >>confdefs.h <<\_ACEOF
15560 #define HAVE_RTLD_NOLOAD 1
15561 _ACEOF
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 { echo "$as_me:$LINENO: result: no" >&5
15568 echo "${ECHO_T}no" >&6; }
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573 conftest$ac_exeext conftest.$ac_ext
15575 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15576 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <netinet/in.h>
15585 main ()
15587 int foo = IP_MTU_DISCOVER;
15589 return 0;
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>conftest.er1
15600 ac_status=$?
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && {
15606 test -z "$ac_c_werror_flag" ||
15607 test ! -s conftest.err
15608 } && test -s conftest$ac_exeext &&
15609 $as_test_x conftest$ac_exeext; then
15610 { echo "$as_me:$LINENO: result: yes" >&5
15611 echo "${ECHO_T}yes" >&6; }
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_IP_MTU_DISCOVER 1
15615 _ACEOF
15617 else
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 { echo "$as_me:$LINENO: result: no" >&5
15622 echo "${ECHO_T}no" >&6; }
15626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15627 conftest$ac_exeext conftest.$ac_ext
15629 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15630 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15631 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15632 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15636 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15637 else
15638 # Is the header compilable?
15639 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15640 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15641 cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h. */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 $ac_includes_default
15648 #include <libkern/OSAtomic.h>
15649 _ACEOF
15650 rm -f conftest.$ac_objext
15651 if { (ac_try="$ac_compile"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 ac_header_compiler=yes
15668 else
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_header_compiler=no
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15677 echo "${ECHO_T}$ac_header_compiler" >&6; }
15679 # Is the header present?
15680 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15681 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 #include <libkern/OSAtomic.h>
15689 _ACEOF
15690 if { (ac_try="$ac_cpp conftest.$ac_ext"
15691 case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } >/dev/null && {
15703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15704 test ! -s conftest.err
15705 }; then
15706 ac_header_preproc=yes
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ac_header_preproc=no
15714 rm -f conftest.err conftest.$ac_ext
15715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15716 echo "${ECHO_T}$ac_header_preproc" >&6; }
15718 # So? What about this header?
15719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15720 yes:no: )
15721 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15722 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15724 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15725 ac_header_preproc=yes
15727 no:yes:* )
15728 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15729 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15731 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15733 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15735 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15737 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15739 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15742 esac
15743 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15744 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15745 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15750 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15754 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_OSX_ATOMICS 1
15758 _ACEOF
15764 { echo "$as_me:$LINENO: checking for int" >&5
15765 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15766 if test "${ac_cv_type_int+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 $ac_includes_default
15776 typedef int ac__type_new_;
15778 main ()
15780 if ((ac__type_new_ *) 0)
15781 return 0;
15782 if (sizeof (ac__type_new_))
15783 return 0;
15785 return 0;
15787 _ACEOF
15788 rm -f conftest.$ac_objext
15789 if { (ac_try="$ac_compile"
15790 case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_compile") 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } && {
15802 test -z "$ac_c_werror_flag" ||
15803 test ! -s conftest.err
15804 } && test -s conftest.$ac_objext; then
15805 ac_cv_type_int=yes
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_cv_type_int=no
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15816 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15818 # The cast to long int works around a bug in the HP C Compiler
15819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15821 # This bug is HP SR number 8606223364.
15822 { echo "$as_me:$LINENO: checking size of int" >&5
15823 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15824 if test "${ac_cv_sizeof_int+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827 if test "$cross_compiling" = yes; then
15828 # Depending upon the size, compute the lo and hi bounds.
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h. */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15836 typedef int ac__type_sizeof_;
15838 main ()
15840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15841 test_array [0] = 0
15844 return 0;
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_lo=0 ac_mid=0
15865 while :; do
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 $ac_includes_default
15873 typedef int ac__type_sizeof_;
15875 main ()
15877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15878 test_array [0] = 0
15881 return 0;
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (ac_try="$ac_compile"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15889 esac
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_compile") 2>conftest.er1
15892 ac_status=$?
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } && {
15898 test -z "$ac_c_werror_flag" ||
15899 test ! -s conftest.err
15900 } && test -s conftest.$ac_objext; then
15901 ac_hi=$ac_mid; break
15902 else
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_lo=`expr $ac_mid + 1`
15907 if test $ac_lo -le $ac_mid; then
15908 ac_lo= ac_hi=
15909 break
15911 ac_mid=`expr 2 '*' $ac_mid + 1`
15914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15915 done
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 $ac_includes_default
15927 typedef int ac__type_sizeof_;
15929 main ()
15931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15932 test_array [0] = 0
15935 return 0;
15937 _ACEOF
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943 esac
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_compile") 2>conftest.er1
15946 ac_status=$?
15947 grep -v '^ *+' conftest.er1 >conftest.err
15948 rm -f conftest.er1
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest.$ac_objext; then
15955 ac_hi=-1 ac_mid=-1
15956 while :; do
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 $ac_includes_default
15964 typedef int ac__type_sizeof_;
15966 main ()
15968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15969 test_array [0] = 0
15972 return 0;
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (ac_try="$ac_compile"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest.$ac_objext; then
15992 ac_lo=$ac_mid; break
15993 else
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 ac_hi=`expr '(' $ac_mid ')' - 1`
15998 if test $ac_mid -le $ac_hi; then
15999 ac_lo= ac_hi=
16000 break
16002 ac_mid=`expr 2 '*' $ac_mid`
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 done
16007 else
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_lo= ac_hi=
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 # Binary search between lo and hi bounds.
16019 while test "x$ac_lo" != "x$ac_hi"; do
16020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h. */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16028 typedef int ac__type_sizeof_;
16030 main ()
16032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16033 test_array [0] = 0
16036 return 0;
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest.$ac_objext; then
16056 ac_hi=$ac_mid
16057 else
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 ac_lo=`expr '(' $ac_mid ')' + 1`
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 done
16066 case $ac_lo in
16067 ?*) ac_cv_sizeof_int=$ac_lo;;
16068 '') if test "$ac_cv_type_int" = yes; then
16069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16070 See \`config.log' for more details." >&5
16071 echo "$as_me: error: cannot compute sizeof (int)
16072 See \`config.log' for more details." >&2;}
16073 { (exit 77); exit 77; }; }
16074 else
16075 ac_cv_sizeof_int=0
16076 fi ;;
16077 esac
16078 else
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 $ac_includes_default
16086 typedef int ac__type_sizeof_;
16087 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16088 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16089 #include <stdio.h>
16090 #include <stdlib.h>
16092 main ()
16095 FILE *f = fopen ("conftest.val", "w");
16096 if (! f)
16097 return 1;
16098 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16100 long int i = longval ();
16101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16102 return 1;
16103 fprintf (f, "%ld\n", i);
16105 else
16107 unsigned long int i = ulongval ();
16108 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16109 return 1;
16110 fprintf (f, "%lu\n", i);
16112 return ferror (f) || fclose (f) != 0;
16115 return 0;
16117 _ACEOF
16118 rm -f conftest$ac_exeext
16119 if { (ac_try="$ac_link"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_link") 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16129 { (case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16132 esac
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_try") 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_cv_sizeof_int=`cat conftest.val`
16139 else
16140 echo "$as_me: program exited with status $ac_status" >&5
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 ( exit $ac_status )
16145 if test "$ac_cv_type_int" = yes; then
16146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16147 See \`config.log' for more details." >&5
16148 echo "$as_me: error: cannot compute sizeof (int)
16149 See \`config.log' for more details." >&2;}
16150 { (exit 77); exit 77; }; }
16151 else
16152 ac_cv_sizeof_int=0
16155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16157 rm -f conftest.val
16159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16160 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16164 cat >>confdefs.h <<_ACEOF
16165 #define SIZEOF_INT $ac_cv_sizeof_int
16166 _ACEOF
16170 # do the package library checks now
16173 if test "${USE_ALSA}" != "no"; then
16174 pbxlibdir=""
16175 if test "x${ALSA_DIR}" != "x"; then
16176 if test -d ${ALSA_DIR}/lib; then
16177 pbxlibdir="-L${ALSA_DIR}/lib"
16178 else
16179 pbxlibdir="-L${ALSA_DIR}"
16182 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16183 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16184 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16196 /* Override any GCC internal prototype to avoid an error.
16197 Use char because int might match the return type of a GCC
16198 builtin and then its argument prototype would still apply. */
16199 #ifdef __cplusplus
16200 extern "C"
16201 #endif
16202 char snd_spcm_init ();
16204 main ()
16206 return snd_spcm_init ();
16208 return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (ac_try="$ac_link"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_link") 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } && {
16225 test -z "$ac_c_werror_flag" ||
16226 test ! -s conftest.err
16227 } && test -s conftest$ac_exeext &&
16228 $as_test_x conftest$ac_exeext; then
16229 ac_cv_lib_asound_snd_spcm_init=yes
16230 else
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_cv_lib_asound_snd_spcm_init=no
16237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16238 conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16241 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16242 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16243 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16244 AST_ALSA_FOUND=yes
16245 else
16246 AST_ALSA_FOUND=no
16250 if test "${AST_ALSA_FOUND}" = "yes"; then
16251 ALSA_LIB="-lasound -lm -ldl"
16252 ALSA_HEADER_FOUND="1"
16253 if test "x${ALSA_DIR}" != "x"; then
16254 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16255 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16256 saved_cppflags="${CPPFLAGS}"
16257 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16258 if test "xalsa/asoundlib.h" != "x" ; then
16259 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16262 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 ac_res=`eval echo '${'$as_ac_Header'}'`
16267 { echo "$as_me:$LINENO: result: $ac_res" >&5
16268 echo "${ECHO_T}$ac_res" >&6; }
16269 else
16270 # Is the header compilable?
16271 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16272 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16273 cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h. */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 $ac_includes_default
16280 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16281 _ACEOF
16282 rm -f conftest.$ac_objext
16283 if { (ac_try="$ac_compile"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_compile") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest.$ac_objext; then
16299 ac_header_compiler=yes
16300 else
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_compiler=no
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16309 echo "${ECHO_T}$ac_header_compiler" >&6; }
16311 # Is the header present?
16312 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16313 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h. */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16321 _ACEOF
16322 if { (ac_try="$ac_cpp conftest.$ac_ext"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } >/dev/null && {
16335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 }; then
16338 ac_header_preproc=yes
16339 else
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_header_preproc=no
16346 rm -f conftest.err conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348 echo "${ECHO_T}$ac_header_preproc" >&6; }
16350 # So? What about this header?
16351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16352 yes:no: )
16353 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16354 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16356 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16357 ac_header_preproc=yes
16359 no:yes:* )
16360 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16361 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16363 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16365 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16367 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16369 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16371 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16374 esac
16375 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16376 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380 eval "$as_ac_Header=\$ac_header_preproc"
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383 { echo "$as_me:$LINENO: result: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16388 ALSA_HEADER_FOUND=1
16389 else
16390 ALSA_HEADER_FOUND=0
16395 CPPFLAGS="${saved_cppflags}"
16396 else
16397 if test "xalsa/asoundlib.h" != "x" ; then
16398 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16399 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16400 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16401 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16405 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16406 else
16407 # Is the header compilable?
16408 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16409 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h. */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 $ac_includes_default
16417 #include <alsa/asoundlib.h>
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (ac_try="$ac_compile"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && {
16433 test -z "$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16435 } && test -s conftest.$ac_objext; then
16436 ac_header_compiler=yes
16437 else
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_compiler=no
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446 echo "${ECHO_T}$ac_header_compiler" >&6; }
16448 # Is the header present?
16449 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16450 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h. */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 #include <alsa/asoundlib.h>
16458 _ACEOF
16459 if { (ac_try="$ac_cpp conftest.$ac_ext"
16460 case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null && {
16472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16473 test ! -s conftest.err
16474 }; then
16475 ac_header_preproc=yes
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_header_preproc=no
16483 rm -f conftest.err conftest.$ac_ext
16484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 echo "${ECHO_T}$ac_header_preproc" >&6; }
16487 # So? What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16489 yes:no: )
16490 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16491 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16493 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16494 ac_header_preproc=yes
16496 no:yes:* )
16497 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16498 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16500 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16502 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16504 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16506 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16508 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16511 esac
16512 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16513 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16514 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16519 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16520 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16523 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16524 ALSA_HEADER_FOUND=1
16525 else
16526 ALSA_HEADER_FOUND=0
16532 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16533 if test -n "${ALSA_MANDATORY}" ;
16534 then
16535 { echo "$as_me:$LINENO: ***" >&5
16536 echo "$as_me: ***" >&6;}
16537 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16538 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16539 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16540 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16541 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16542 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16543 exit 1
16545 ALSA_LIB=""
16546 ALSA_INCLUDE=""
16547 PBX_ALSA=0
16548 else
16549 PBX_ALSA=1
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_ALSA 1
16553 _ACEOF
16556 elif test -n "${ALSA_MANDATORY}";
16557 then
16558 { echo "$as_me:$LINENO: ***" >&5
16559 echo "$as_me: ***" >&6;}
16560 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16561 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16562 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16563 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16564 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16565 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16566 exit 1
16572 if test "${USE_CURSES}" != "no"; then
16573 pbxlibdir=""
16574 if test "x${CURSES_DIR}" != "x"; then
16575 if test -d ${CURSES_DIR}/lib; then
16576 pbxlibdir="-L${CURSES_DIR}/lib"
16577 else
16578 pbxlibdir="-L${CURSES_DIR}"
16581 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16582 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16583 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586 ac_check_lib_save_LIBS=$LIBS
16587 LIBS="-lcurses ${pbxlibdir} $LIBS"
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16598 #ifdef __cplusplus
16599 extern "C"
16600 #endif
16601 char initscr ();
16603 main ()
16605 return initscr ();
16607 return 0;
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext &&
16627 $as_test_x conftest$ac_exeext; then
16628 ac_cv_lib_curses_initscr=yes
16629 else
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_cv_lib_curses_initscr=no
16636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16637 conftest$ac_exeext conftest.$ac_ext
16638 LIBS=$ac_check_lib_save_LIBS
16640 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16641 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16642 if test $ac_cv_lib_curses_initscr = yes; then
16643 AST_CURSES_FOUND=yes
16644 else
16645 AST_CURSES_FOUND=no
16649 if test "${AST_CURSES_FOUND}" = "yes"; then
16650 CURSES_LIB="-lcurses "
16651 CURSES_HEADER_FOUND="1"
16652 if test "x${CURSES_DIR}" != "x"; then
16653 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16654 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16655 saved_cppflags="${CPPFLAGS}"
16656 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16657 if test "xcurses.h" != "x" ; then
16658 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16660 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16661 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 ac_res=`eval echo '${'$as_ac_Header'}'`
16666 { echo "$as_me:$LINENO: result: $ac_res" >&5
16667 echo "${ECHO_T}$ac_res" >&6; }
16668 else
16669 # Is the header compilable?
16670 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16671 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h. */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 $ac_includes_default
16679 #include <${CURSES_DIR}/include/curses.h>
16680 _ACEOF
16681 rm -f conftest.$ac_objext
16682 if { (ac_try="$ac_compile"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_compile") 2>conftest.er1
16689 ac_status=$?
16690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } && {
16695 test -z "$ac_c_werror_flag" ||
16696 test ! -s conftest.err
16697 } && test -s conftest.$ac_objext; then
16698 ac_header_compiler=yes
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_header_compiler=no
16706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16708 echo "${ECHO_T}$ac_header_compiler" >&6; }
16710 # Is the header present?
16711 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16712 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 #include <${CURSES_DIR}/include/curses.h>
16720 _ACEOF
16721 if { (ac_try="$ac_cpp conftest.$ac_ext"
16722 case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16728 ac_status=$?
16729 grep -v '^ *+' conftest.er1 >conftest.err
16730 rm -f conftest.er1
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } >/dev/null && {
16734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16735 test ! -s conftest.err
16736 }; then
16737 ac_header_preproc=yes
16738 else
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ac_header_preproc=no
16745 rm -f conftest.err conftest.$ac_ext
16746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16747 echo "${ECHO_T}$ac_header_preproc" >&6; }
16749 # So? What about this header?
16750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16751 yes:no: )
16752 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16753 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16755 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16756 ac_header_preproc=yes
16758 no:yes:* )
16759 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16760 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16762 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16764 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16766 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16768 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16770 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16773 esac
16774 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16775 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779 eval "$as_ac_Header=\$ac_header_preproc"
16781 ac_res=`eval echo '${'$as_ac_Header'}'`
16782 { echo "$as_me:$LINENO: result: $ac_res" >&5
16783 echo "${ECHO_T}$ac_res" >&6; }
16786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16787 CURSES_HEADER_FOUND=1
16788 else
16789 CURSES_HEADER_FOUND=0
16794 CPPFLAGS="${saved_cppflags}"
16795 else
16796 if test "xcurses.h" != "x" ; then
16797 if test "${ac_cv_header_curses_h+set}" = set; then
16798 { echo "$as_me:$LINENO: checking for curses.h" >&5
16799 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16800 if test "${ac_cv_header_curses_h+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16804 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16805 else
16806 # Is the header compilable?
16807 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16808 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16816 #include <curses.h>
16817 _ACEOF
16818 rm -f conftest.$ac_objext
16819 if { (ac_try="$ac_compile"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_compile") 2>conftest.er1
16826 ac_status=$?
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && {
16832 test -z "$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16834 } && test -s conftest.$ac_objext; then
16835 ac_header_compiler=yes
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_header_compiler=no
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16845 echo "${ECHO_T}$ac_header_compiler" >&6; }
16847 # Is the header present?
16848 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16849 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <curses.h>
16857 _ACEOF
16858 if { (ac_try="$ac_cpp conftest.$ac_ext"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } >/dev/null && {
16871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 }; then
16874 ac_header_preproc=yes
16875 else
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_header_preproc=no
16882 rm -f conftest.err conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16884 echo "${ECHO_T}$ac_header_preproc" >&6; }
16886 # So? What about this header?
16887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16888 yes:no: )
16889 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16890 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16891 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16892 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16893 ac_header_preproc=yes
16895 no:yes:* )
16896 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16897 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16899 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16901 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16903 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16905 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16907 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16910 esac
16911 { echo "$as_me:$LINENO: checking for curses.h" >&5
16912 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16913 if test "${ac_cv_header_curses_h+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916 ac_cv_header_curses_h=$ac_header_preproc
16918 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16919 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16922 if test $ac_cv_header_curses_h = yes; then
16923 CURSES_HEADER_FOUND=1
16924 else
16925 CURSES_HEADER_FOUND=0
16931 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16932 if test -n "${CURSES_MANDATORY}" ;
16933 then
16934 { echo "$as_me:$LINENO: ***" >&5
16935 echo "$as_me: ***" >&6;}
16936 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16937 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16938 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16939 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16940 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16941 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16942 exit 1
16944 CURSES_LIB=""
16945 CURSES_INCLUDE=""
16946 PBX_CURSES=0
16947 else
16948 PBX_CURSES=1
16950 cat >>confdefs.h <<_ACEOF
16951 #define HAVE_CURSES 1
16952 _ACEOF
16955 elif test -n "${CURSES_MANDATORY}";
16956 then
16957 { echo "$as_me:$LINENO: ***" >&5
16958 echo "$as_me: ***" >&6;}
16959 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16960 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16961 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16962 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16963 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16964 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16965 exit 1
16970 GSM_INTERNAL="yes"
16972 GSM_SYSTEM="yes"
16973 if test "${USE_GSM}" != "no"; then
16974 if test "${GSM_DIR}" = "internal"; then
16975 GSM_SYSTEM="no"
16976 elif test "${GSM_DIR}" != ""; then
16977 GSM_INTERNAL="no"
16979 if test "${GSM_SYSTEM}" = "yes"; then
16980 gsmlibdir=""
16981 if test "x${GSM_DIR}" != "x"; then
16982 if test -d ${GSM_DIR}/lib; then
16983 gsmlibdir="-L${GSM_DIR}/lib"
16984 else
16985 gsmlibdir="-L${GSM_DIR}"
16988 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
16989 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
16990 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993 ac_check_lib_save_LIBS=$LIBS
16994 LIBS="-lgsm ${gsmlibdir} $LIBS"
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17002 /* Override any GCC internal prototype to avoid an error.
17003 Use char because int might match the return type of a GCC
17004 builtin and then its argument prototype would still apply. */
17005 #ifdef __cplusplus
17006 extern "C"
17007 #endif
17008 char gsm_create ();
17010 main ()
17012 return gsm_create ();
17014 return 0;
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (ac_try="$ac_link"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_link") 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest$ac_exeext &&
17034 $as_test_x conftest$ac_exeext; then
17035 ac_cv_lib_gsm_gsm_create=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ac_cv_lib_gsm_gsm_create=no
17043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17044 conftest$ac_exeext conftest.$ac_ext
17045 LIBS=$ac_check_lib_save_LIBS
17047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17048 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17049 if test $ac_cv_lib_gsm_gsm_create = yes; then
17051 cat >>confdefs.h <<_ACEOF
17052 #define HAVE_GSM 1
17053 _ACEOF
17057 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17058 if test "x${GSM_DIR}" != "x" ; then
17059 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17061 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17062 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 ac_res=`eval echo '${'$as_ac_Header'}'`
17067 { echo "$as_me:$LINENO: result: $ac_res" >&5
17068 echo "${ECHO_T}$ac_res" >&6; }
17069 else
17070 # Is the header compilable?
17071 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17072 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 $ac_includes_default
17080 #include <${GSM_DIR}/include/gsm.h>
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_compile") 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest.$ac_objext; then
17099 ac_header_compiler=yes
17100 else
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_header_compiler=no
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17109 echo "${ECHO_T}$ac_header_compiler" >&6; }
17111 # Is the header present?
17112 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17113 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h. */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 #include <${GSM_DIR}/include/gsm.h>
17121 _ACEOF
17122 if { (ac_try="$ac_cpp conftest.$ac_ext"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17129 ac_status=$?
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } >/dev/null && {
17135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17136 test ! -s conftest.err
17137 }; then
17138 ac_header_preproc=yes
17139 else
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ac_header_preproc=no
17146 rm -f conftest.err conftest.$ac_ext
17147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17148 echo "${ECHO_T}$ac_header_preproc" >&6; }
17150 # So? What about this header?
17151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17152 yes:no: )
17153 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17154 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17155 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17156 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17157 ac_header_preproc=yes
17159 no:yes:* )
17160 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17161 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17163 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17164 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17165 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17167 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17169 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17171 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17174 esac
17175 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17176 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180 eval "$as_ac_Header=\$ac_header_preproc"
17182 ac_res=`eval echo '${'$as_ac_Header'}'`
17183 { echo "$as_me:$LINENO: result: $ac_res" >&5
17184 echo "${ECHO_T}$ac_res" >&6; }
17187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17188 GSM_HEADER_FOUND=1
17189 else
17190 GSM_HEADER_FOUND=0
17194 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17196 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17197 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 ac_res=`eval echo '${'$as_ac_Header'}'`
17202 { echo "$as_me:$LINENO: result: $ac_res" >&5
17203 echo "${ECHO_T}$ac_res" >&6; }
17204 else
17205 # Is the header compilable?
17206 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17207 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h. */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17214 $ac_includes_default
17215 #include <${GSM_DIR}/include/gsm/gsm.h>
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest.$ac_objext; then
17234 ac_header_compiler=yes
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_compiler=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17244 echo "${ECHO_T}$ac_header_compiler" >&6; }
17246 # Is the header present?
17247 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17248 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 #include <${GSM_DIR}/include/gsm/gsm.h>
17256 _ACEOF
17257 if { (ac_try="$ac_cpp conftest.$ac_ext"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } >/dev/null && {
17270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17271 test ! -s conftest.err
17272 }; then
17273 ac_header_preproc=yes
17274 else
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_header_preproc=no
17281 rm -f conftest.err conftest.$ac_ext
17282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17283 echo "${ECHO_T}$ac_header_preproc" >&6; }
17285 # So? What about this header?
17286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17287 yes:no: )
17288 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17289 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17291 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17292 ac_header_preproc=yes
17294 no:yes:* )
17295 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17296 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17297 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17298 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17300 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17302 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17303 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17304 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17305 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17306 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17309 esac
17310 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17311 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 else
17315 eval "$as_ac_Header=\$ac_header_preproc"
17317 ac_res=`eval echo '${'$as_ac_Header'}'`
17318 { echo "$as_me:$LINENO: result: $ac_res" >&5
17319 echo "${ECHO_T}$ac_res" >&6; }
17322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17323 GSM_GSM_HEADER_FOUND=1
17324 else
17325 GSM_GSM_HEADER_FOUND=0
17329 else
17330 if test "${ac_cv_header_gsm_h+set}" = set; then
17331 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17332 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17333 if test "${ac_cv_header_gsm_h+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17337 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17338 else
17339 # Is the header compilable?
17340 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17341 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17342 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 $ac_includes_default
17349 #include <gsm.h>
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest.$ac_objext; then
17368 ac_header_compiler=yes
17369 else
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_header_compiler=no
17376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17378 echo "${ECHO_T}$ac_header_compiler" >&6; }
17380 # Is the header present?
17381 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17382 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 #include <gsm.h>
17390 _ACEOF
17391 if { (ac_try="$ac_cpp conftest.$ac_ext"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } >/dev/null && {
17404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 }; then
17407 ac_header_preproc=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_preproc=no
17415 rm -f conftest.err conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17417 echo "${ECHO_T}$ac_header_preproc" >&6; }
17419 # So? What about this header?
17420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17421 yes:no: )
17422 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17423 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17425 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17426 ac_header_preproc=yes
17428 no:yes:* )
17429 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17430 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17432 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17434 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17436 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17438 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17440 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17443 esac
17444 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17445 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17446 if test "${ac_cv_header_gsm_h+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449 ac_cv_header_gsm_h=$ac_header_preproc
17451 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17452 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17455 if test $ac_cv_header_gsm_h = yes; then
17456 GSM_HEADER_FOUND=1
17457 else
17458 GSM_HEADER_FOUND=0
17462 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17463 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17464 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17465 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17469 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17470 else
17471 # Is the header compilable?
17472 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17473 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h. */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 $ac_includes_default
17481 #include <gsm/gsm.h>
17482 _ACEOF
17483 rm -f conftest.$ac_objext
17484 if { (ac_try="$ac_compile"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_compile") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } && {
17497 test -z "$ac_c_werror_flag" ||
17498 test ! -s conftest.err
17499 } && test -s conftest.$ac_objext; then
17500 ac_header_compiler=yes
17501 else
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_header_compiler=no
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17510 echo "${ECHO_T}$ac_header_compiler" >&6; }
17512 # Is the header present?
17513 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17514 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17515 cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h. */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521 #include <gsm/gsm.h>
17522 _ACEOF
17523 if { (ac_try="$ac_cpp conftest.$ac_ext"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } >/dev/null && {
17536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 }; then
17539 ac_header_preproc=yes
17540 else
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_header_preproc=no
17547 rm -f conftest.err conftest.$ac_ext
17548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17549 echo "${ECHO_T}$ac_header_preproc" >&6; }
17551 # So? What about this header?
17552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17553 yes:no: )
17554 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17555 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17557 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17558 ac_header_preproc=yes
17560 no:yes:* )
17561 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17562 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17564 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17566 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17567 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17568 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17569 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17570 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17571 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17572 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17575 esac
17576 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17577 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17578 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17583 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17584 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17587 if test $ac_cv_header_gsm_gsm_h = yes; then
17588 GSM_GSM_HEADER_FOUND=1
17589 else
17590 GSM_GSM_HEADER_FOUND=0
17595 if test "${GSM_HEADER_FOUND}" = "0" ; then
17596 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17597 if test "x${GSM_MANDATORY}" = "xyes" ; then
17598 { echo "$as_me:$LINENO: ***" >&5
17599 echo "$as_me: ***" >&6;}
17600 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17601 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17602 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17603 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17604 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17605 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17606 exit 1
17610 GSM_OK=0
17611 if test "${GSM_HEADER_FOUND}" = "1" ; then
17613 cat >>confdefs.h <<_ACEOF
17614 #define HAVE_GSM_HEADER 1
17615 _ACEOF
17617 GSM_OK=1
17618 else
17619 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define HAVE_GSM_GSM_HEADER 1
17623 _ACEOF
17625 GSM_OK=1
17628 if test "${GSM_OK}" = "1" ; then
17629 GSM_LIB="-lgsm"
17630 if test "x${GSM_DIR}" != "x"; then
17631 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17632 GSM_INCLUDE="-I${GSM_DIR}/include"
17634 PBX_GSM=1
17635 GSM_INTERNAL="no"
17639 if test "${GSM_INTERNAL}" = "yes"; then
17640 PBX_GSM=1
17642 cat >>confdefs.h <<_ACEOF
17643 #define HAVE_GSM_HEADER 1
17644 _ACEOF
17650 if test "${USE_IKSEMEL}" != "no"; then
17651 pbxlibdir=""
17652 if test "x${IKSEMEL_DIR}" != "x"; then
17653 if test -d ${IKSEMEL_DIR}/lib; then
17654 pbxlibdir="-L${IKSEMEL_DIR}/lib"
17655 else
17656 pbxlibdir="-L${IKSEMEL_DIR}"
17659 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
17660 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
17661 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664 ac_check_lib_save_LIBS=$LIBS
17665 LIBS="-liksemel ${pbxlibdir} $LIBS"
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17673 /* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17676 #ifdef __cplusplus
17677 extern "C"
17678 #endif
17679 char iks_start_sasl ();
17681 main ()
17683 return iks_start_sasl ();
17685 return 0;
17687 _ACEOF
17688 rm -f conftest.$ac_objext conftest$ac_exeext
17689 if { (ac_try="$ac_link"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_link") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest$ac_exeext &&
17705 $as_test_x conftest$ac_exeext; then
17706 ac_cv_lib_iksemel_iks_start_sasl=yes
17707 else
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 ac_cv_lib_iksemel_iks_start_sasl=no
17714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17715 conftest$ac_exeext conftest.$ac_ext
17716 LIBS=$ac_check_lib_save_LIBS
17718 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
17719 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
17720 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
17721 AST_IKSEMEL_FOUND=yes
17722 else
17723 AST_IKSEMEL_FOUND=no
17727 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
17728 IKSEMEL_LIB="-liksemel "
17729 IKSEMEL_HEADER_FOUND="1"
17730 if test "x${IKSEMEL_DIR}" != "x"; then
17731 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
17732 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
17733 saved_cppflags="${CPPFLAGS}"
17734 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
17735 if test "xiksemel.h" != "x" ; then
17736 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
17737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17738 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17739 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 ac_res=`eval echo '${'$as_ac_Header'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745 echo "${ECHO_T}$ac_res" >&6; }
17746 else
17747 # Is the header compilable?
17748 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
17749 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 $ac_includes_default
17757 #include <${IKSEMEL_DIR}/include/iksemel.h>
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17764 esac
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_compile") 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } && {
17773 test -z "$ac_c_werror_flag" ||
17774 test ! -s conftest.err
17775 } && test -s conftest.$ac_objext; then
17776 ac_header_compiler=yes
17777 else
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_header_compiler=no
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17786 echo "${ECHO_T}$ac_header_compiler" >&6; }
17788 # Is the header present?
17789 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
17790 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
17791 cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h. */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 #include <${IKSEMEL_DIR}/include/iksemel.h>
17798 _ACEOF
17799 if { (ac_try="$ac_cpp conftest.$ac_ext"
17800 case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } >/dev/null && {
17812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17813 test ! -s conftest.err
17814 }; then
17815 ac_header_preproc=yes
17816 else
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 ac_header_preproc=no
17823 rm -f conftest.err conftest.$ac_ext
17824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17825 echo "${ECHO_T}$ac_header_preproc" >&6; }
17827 # So? What about this header?
17828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17829 yes:no: )
17830 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17831 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17832 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
17833 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
17834 ac_header_preproc=yes
17836 no:yes:* )
17837 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
17838 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
17839 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
17840 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
17841 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
17842 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
17843 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17844 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
17846 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
17848 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
17851 esac
17852 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17853 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857 eval "$as_ac_Header=\$ac_header_preproc"
17859 ac_res=`eval echo '${'$as_ac_Header'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17865 IKSEMEL_HEADER_FOUND=1
17866 else
17867 IKSEMEL_HEADER_FOUND=0
17872 CPPFLAGS="${saved_cppflags}"
17873 else
17874 if test "xiksemel.h" != "x" ; then
17875 if test "${ac_cv_header_iksemel_h+set}" = set; then
17876 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17877 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17878 if test "${ac_cv_header_iksemel_h+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17882 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
17883 else
17884 # Is the header compilable?
17885 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
17886 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17894 #include <iksemel.h>
17895 _ACEOF
17896 rm -f conftest.$ac_objext
17897 if { (ac_try="$ac_compile"
17898 case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_compile") 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && {
17910 test -z "$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17912 } && test -s conftest.$ac_objext; then
17913 ac_header_compiler=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_header_compiler=no
17921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17923 echo "${ECHO_T}$ac_header_compiler" >&6; }
17925 # Is the header present?
17926 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
17927 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 #include <iksemel.h>
17935 _ACEOF
17936 if { (ac_try="$ac_cpp conftest.$ac_ext"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } >/dev/null && {
17949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17950 test ! -s conftest.err
17951 }; then
17952 ac_header_preproc=yes
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_header_preproc=no
17960 rm -f conftest.err conftest.$ac_ext
17961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17962 echo "${ECHO_T}$ac_header_preproc" >&6; }
17964 # So? What about this header?
17965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17966 yes:no: )
17967 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
17968 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
17970 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
17971 ac_header_preproc=yes
17973 no:yes:* )
17974 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
17975 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
17977 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
17979 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
17981 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
17983 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
17985 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
17988 esac
17989 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
17990 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
17991 if test "${ac_cv_header_iksemel_h+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994 ac_cv_header_iksemel_h=$ac_header_preproc
17996 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
17997 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18000 if test $ac_cv_header_iksemel_h = yes; then
18001 IKSEMEL_HEADER_FOUND=1
18002 else
18003 IKSEMEL_HEADER_FOUND=0
18009 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18010 if test -n "${IKSEMEL_MANDATORY}" ;
18011 then
18012 { echo "$as_me:$LINENO: ***" >&5
18013 echo "$as_me: ***" >&6;}
18014 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18015 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18016 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18017 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18018 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18019 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18020 exit 1
18022 IKSEMEL_LIB=""
18023 IKSEMEL_INCLUDE=""
18024 PBX_IKSEMEL=0
18025 else
18026 PBX_IKSEMEL=1
18028 cat >>confdefs.h <<_ACEOF
18029 #define HAVE_IKSEMEL 1
18030 _ACEOF
18033 elif test -n "${IKSEMEL_MANDATORY}";
18034 then
18035 { echo "$as_me:$LINENO: ***" >&5
18036 echo "$as_me: ***" >&6;}
18037 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18038 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18039 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18040 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18041 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18042 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18043 exit 1
18048 if test "${PBX_IKSEMEL}" = 1; then
18050 if test "${USE_GNUTLS}" != "no"; then
18051 pbxlibdir=""
18052 if test "x${GNUTLS_DIR}" != "x"; then
18053 if test -d ${GNUTLS_DIR}/lib; then
18054 pbxlibdir="-L${GNUTLS_DIR}/lib"
18055 else
18056 pbxlibdir="-L${GNUTLS_DIR}"
18059 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18060 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18061 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064 ac_check_lib_save_LIBS=$LIBS
18065 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18066 cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h. */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 char gnutls_bye ();
18081 main ()
18083 return gnutls_bye ();
18085 return 0;
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_link") 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest$ac_exeext &&
18105 $as_test_x conftest$ac_exeext; then
18106 ac_cv_lib_gnutls_gnutls_bye=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_gnutls_gnutls_bye=no
18114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18119 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18120 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18121 AST_GNUTLS_FOUND=yes
18122 else
18123 AST_GNUTLS_FOUND=no
18127 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18128 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18129 GNUTLS_HEADER_FOUND="1"
18130 if test "x${GNUTLS_DIR}" != "x"; then
18131 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18132 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18133 saved_cppflags="${CPPFLAGS}"
18134 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18135 if test "xgnutls/gnutls.h" != "x" ; then
18136 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18138 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18139 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 ac_res=`eval echo '${'$as_ac_Header'}'`
18144 { echo "$as_me:$LINENO: result: $ac_res" >&5
18145 echo "${ECHO_T}$ac_res" >&6; }
18146 else
18147 # Is the header compilable?
18148 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18149 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 $ac_includes_default
18157 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18158 _ACEOF
18159 rm -f conftest.$ac_objext
18160 if { (ac_try="$ac_compile"
18161 case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_compile") 2>conftest.er1
18167 ac_status=$?
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest.$ac_objext; then
18176 ac_header_compiler=yes
18177 else
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_header_compiler=no
18184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18186 echo "${ECHO_T}$ac_header_compiler" >&6; }
18188 # Is the header present?
18189 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18190 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18191 cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h. */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18198 _ACEOF
18199 if { (ac_try="$ac_cpp conftest.$ac_ext"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } >/dev/null && {
18212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 }; then
18215 ac_header_preproc=yes
18216 else
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 ac_header_preproc=no
18223 rm -f conftest.err conftest.$ac_ext
18224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18225 echo "${ECHO_T}$ac_header_preproc" >&6; }
18227 # So? What about this header?
18228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18229 yes:no: )
18230 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18231 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18232 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18233 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18234 ac_header_preproc=yes
18236 no:yes:* )
18237 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18238 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18240 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18242 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18243 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18244 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18245 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18246 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18247 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18248 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18251 esac
18252 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18253 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257 eval "$as_ac_Header=\$ac_header_preproc"
18259 ac_res=`eval echo '${'$as_ac_Header'}'`
18260 { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18265 GNUTLS_HEADER_FOUND=1
18266 else
18267 GNUTLS_HEADER_FOUND=0
18272 CPPFLAGS="${saved_cppflags}"
18273 else
18274 if test "xgnutls/gnutls.h" != "x" ; then
18275 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18276 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18277 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18278 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18282 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18283 else
18284 # Is the header compilable?
18285 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18286 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h. */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 $ac_includes_default
18294 #include <gnutls/gnutls.h>
18295 _ACEOF
18296 rm -f conftest.$ac_objext
18297 if { (ac_try="$ac_compile"
18298 case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_compile") 2>conftest.er1
18304 ac_status=$?
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest.$ac_objext; then
18313 ac_header_compiler=yes
18314 else
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 ac_header_compiler=no
18321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18323 echo "${ECHO_T}$ac_header_compiler" >&6; }
18325 # Is the header present?
18326 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18327 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18328 cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h. */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18334 #include <gnutls/gnutls.h>
18335 _ACEOF
18336 if { (ac_try="$ac_cpp conftest.$ac_ext"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } >/dev/null && {
18349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 }; then
18352 ac_header_preproc=yes
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 ac_header_preproc=no
18360 rm -f conftest.err conftest.$ac_ext
18361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18362 echo "${ECHO_T}$ac_header_preproc" >&6; }
18364 # So? What about this header?
18365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18366 yes:no: )
18367 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18368 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18369 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18370 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18371 ac_header_preproc=yes
18373 no:yes:* )
18374 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18375 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18376 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18377 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18378 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18379 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18380 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18381 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18382 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18383 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18384 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18385 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18388 esac
18389 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18390 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18391 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18396 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18397 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18400 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18401 GNUTLS_HEADER_FOUND=1
18402 else
18403 GNUTLS_HEADER_FOUND=0
18409 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18410 if test -n "${GNUTLS_MANDATORY}" ;
18411 then
18412 { echo "$as_me:$LINENO: ***" >&5
18413 echo "$as_me: ***" >&6;}
18414 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18415 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18416 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18417 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18418 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18419 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18420 exit 1
18422 GNUTLS_LIB=""
18423 GNUTLS_INCLUDE=""
18424 PBX_GNUTLS=0
18425 else
18426 PBX_GNUTLS=1
18428 cat >>confdefs.h <<_ACEOF
18429 #define HAVE_GNUTLS 1
18430 _ACEOF
18433 elif test -n "${GNUTLS_MANDATORY}";
18434 then
18435 { echo "$as_me:$LINENO: ***" >&5
18436 echo "$as_me: ***" >&6;}
18437 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18438 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18439 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18440 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18441 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18442 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18443 exit 1
18449 if test "${USE_IMAP_TK}" != "no"; then
18450 if test "${IMAP_TK_DIR}" = ""; then
18451 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18452 if test -n "${IMAP_TK_MANDATORY}"; then
18453 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
18454 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
18455 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
18456 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
18457 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
18458 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
18459 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
18460 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
18463 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18464 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18465 saved_cppflags="${CPPFLAGS}"
18466 saved_libs="${LIBS}"
18467 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
18468 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18470 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
18471 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h. */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18478 #include "c-client.h"
18479 void mm_searched (MAILSTREAM *stream,unsigned long number)
18482 void mm_exists (MAILSTREAM *stream,unsigned long number)
18485 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18488 void mm_flags (MAILSTREAM *stream,unsigned long number)
18491 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18494 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18497 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18500 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18503 void mm_log (char *string,long errflg)
18506 void mm_dlog (char *string)
18509 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18512 void mm_critical (MAILSTREAM *stream)
18515 void mm_nocritical (MAILSTREAM *stream)
18518 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18521 void mm_fatal (char *string)
18525 main ()
18528 MAILSTREAM *foo = mail_open(NULL, "", 0);
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 ac_cv_imap_tk="yes"
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_cv_imap_tk="no"
18562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18563 conftest$ac_exeext conftest.$ac_ext
18564 if test "${ac_cv_imap_tk}" = "yes"; then
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 #include "c-client.h"
18572 void mm_searched (MAILSTREAM *stream,unsigned long number)
18575 void mm_exists (MAILSTREAM *stream,unsigned long number)
18578 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18581 void mm_flags (MAILSTREAM *stream,unsigned long number)
18584 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18587 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18590 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18593 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18596 void mm_log (char *string,long errflg)
18599 void mm_dlog (char *string)
18602 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18605 void mm_critical (MAILSTREAM *stream)
18608 void mm_nocritical (MAILSTREAM *stream)
18611 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18614 void mm_fatal (char *string)
18618 main ()
18621 long check = mail_expunge_full(NULL, "", 0);
18625 return 0;
18627 _ACEOF
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (ac_try="$ac_link"
18630 case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_link") 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } && {
18642 test -z "$ac_c_werror_flag" ||
18643 test ! -s conftest.err
18644 } && test -s conftest$ac_exeext &&
18645 $as_test_x conftest$ac_exeext; then
18646 ac_cv_imap_tk2006="yes"
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ac_cv_imap_tk2006="no"
18655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18656 conftest$ac_exeext conftest.$ac_ext
18658 CPPFLAGS="${saved_cppflags}"
18659 LIBS="${saved_libs}"
18660 if test "${ac_cv_imap_tk}" = "yes"; then
18661 { echo "$as_me:$LINENO: result: yes" >&5
18662 echo "${ECHO_T}yes" >&6; }
18663 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18664 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
18665 PBX_IMAP_TK=1
18667 cat >>confdefs.h <<\_ACEOF
18668 #define HAVE_IMAP_TK 1
18669 _ACEOF
18671 if test "${ac_cv_imap_tk2006}" = "yes"; then
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_IMAP_TK2006 1
18675 _ACEOF
18678 elif test -n "${IMAP_TK_MANDATORY}"; then
18679 { echo "$as_me:$LINENO: result: no" >&5
18680 echo "${ECHO_T}no" >&6; }
18681 { echo "$as_me:$LINENO: ***" >&5
18682 echo "$as_me: ***" >&6;}
18683 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
18684 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
18685 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18686 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18687 { echo "$as_me:$LINENO: *** including --without-imap." >&5
18688 echo "$as_me: *** including --without-imap." >&6;}
18689 exit 1
18690 else
18691 { echo "$as_me:$LINENO: result: no" >&5
18692 echo "${ECHO_T}no" >&6; }
18696 # Needed by unixodbc
18698 if test "${USE_LTDL}" != "no"; then
18699 pbxlibdir=""
18700 if test "x${LTDL_DIR}" != "x"; then
18701 if test -d ${LTDL_DIR}/lib; then
18702 pbxlibdir="-L${LTDL_DIR}/lib"
18703 else
18704 pbxlibdir="-L${LTDL_DIR}"
18707 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
18708 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
18709 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 ac_check_lib_save_LIBS=$LIBS
18713 LIBS="-lltdl ${pbxlibdir} $LIBS"
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18721 /* Override any GCC internal prototype to avoid an error.
18722 Use char because int might match the return type of a GCC
18723 builtin and then its argument prototype would still apply. */
18724 #ifdef __cplusplus
18725 extern "C"
18726 #endif
18727 char lt_dlinit ();
18729 main ()
18731 return lt_dlinit ();
18733 return 0;
18735 _ACEOF
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (ac_try="$ac_link"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741 esac
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_link") 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } && {
18750 test -z "$ac_c_werror_flag" ||
18751 test ! -s conftest.err
18752 } && test -s conftest$ac_exeext &&
18753 $as_test_x conftest$ac_exeext; then
18754 ac_cv_lib_ltdl_lt_dlinit=yes
18755 else
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 ac_cv_lib_ltdl_lt_dlinit=no
18762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18763 conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18766 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
18767 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
18768 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
18769 AST_LTDL_FOUND=yes
18770 else
18771 AST_LTDL_FOUND=no
18775 if test "${AST_LTDL_FOUND}" = "yes"; then
18776 LTDL_LIB="-lltdl "
18777 LTDL_HEADER_FOUND="1"
18778 if test "x${LTDL_DIR}" != "x"; then
18779 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
18780 LTDL_INCLUDE="-I${LTDL_DIR}/include"
18781 saved_cppflags="${CPPFLAGS}"
18782 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
18783 if test "xltdl.h" != "x" ; then
18784 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
18785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18786 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18787 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 ac_res=`eval echo '${'$as_ac_Header'}'`
18792 { echo "$as_me:$LINENO: result: $ac_res" >&5
18793 echo "${ECHO_T}$ac_res" >&6; }
18794 else
18795 # Is the header compilable?
18796 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
18797 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 $ac_includes_default
18805 #include <${LTDL_DIR}/include/ltdl.h>
18806 _ACEOF
18807 rm -f conftest.$ac_objext
18808 if { (ac_try="$ac_compile"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_compile") 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } && {
18821 test -z "$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 } && test -s conftest.$ac_objext; then
18824 ac_header_compiler=yes
18825 else
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_header_compiler=no
18832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18834 echo "${ECHO_T}$ac_header_compiler" >&6; }
18836 # Is the header present?
18837 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
18838 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 #include <${LTDL_DIR}/include/ltdl.h>
18846 _ACEOF
18847 if { (ac_try="$ac_cpp conftest.$ac_ext"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } >/dev/null && {
18860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 }; then
18863 ac_header_preproc=yes
18864 else
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_header_preproc=no
18871 rm -f conftest.err conftest.$ac_ext
18872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18873 echo "${ECHO_T}$ac_header_preproc" >&6; }
18875 # So? What about this header?
18876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18877 yes:no: )
18878 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18879 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
18881 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
18882 ac_header_preproc=yes
18884 no:yes:* )
18885 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
18886 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
18888 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
18890 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
18891 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
18892 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
18894 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
18896 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
18899 esac
18900 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18901 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905 eval "$as_ac_Header=\$ac_header_preproc"
18907 ac_res=`eval echo '${'$as_ac_Header'}'`
18908 { echo "$as_me:$LINENO: result: $ac_res" >&5
18909 echo "${ECHO_T}$ac_res" >&6; }
18912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18913 LTDL_HEADER_FOUND=1
18914 else
18915 LTDL_HEADER_FOUND=0
18920 CPPFLAGS="${saved_cppflags}"
18921 else
18922 if test "xltdl.h" != "x" ; then
18923 if test "${ac_cv_header_ltdl_h+set}" = set; then
18924 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
18925 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
18926 if test "${ac_cv_header_ltdl_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
18930 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
18931 else
18932 # Is the header compilable?
18933 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
18934 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
18935 cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h. */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 #include <ltdl.h>
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (ac_try="$ac_compile"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949 esac
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_compile") 2>conftest.er1
18952 ac_status=$?
18953 grep -v '^ *+' conftest.er1 >conftest.err
18954 rm -f conftest.er1
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } && {
18958 test -z "$ac_c_werror_flag" ||
18959 test ! -s conftest.err
18960 } && test -s conftest.$ac_objext; then
18961 ac_header_compiler=yes
18962 else
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 ac_header_compiler=no
18969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6; }
18973 # Is the header present?
18974 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
18975 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <ltdl.h>
18983 _ACEOF
18984 if { (ac_try="$ac_cpp conftest.$ac_ext"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null && {
18997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18998 test ! -s conftest.err
18999 }; then
19000 ac_header_preproc=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_header_preproc=no
19008 rm -f conftest.err conftest.$ac_ext
19009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19010 echo "${ECHO_T}$ac_header_preproc" >&6; }
19012 # So? What about this header?
19013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014 yes:no: )
19015 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19016 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
19018 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
19019 ac_header_preproc=yes
19021 no:yes:* )
19022 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
19023 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
19025 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
19027 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19029 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
19031 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
19033 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
19036 esac
19037 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19038 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19039 if test "${ac_cv_header_ltdl_h+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042 ac_cv_header_ltdl_h=$ac_header_preproc
19044 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19045 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19048 if test $ac_cv_header_ltdl_h = yes; then
19049 LTDL_HEADER_FOUND=1
19050 else
19051 LTDL_HEADER_FOUND=0
19057 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
19058 if test -n "${LTDL_MANDATORY}" ;
19059 then
19060 { echo "$as_me:$LINENO: ***" >&5
19061 echo "$as_me: ***" >&6;}
19062 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
19063 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
19064 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
19065 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
19066 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19067 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19068 exit 1
19070 LTDL_LIB=""
19071 LTDL_INCLUDE=""
19072 PBX_LTDL=0
19073 else
19074 PBX_LTDL=1
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_LTDL 1
19078 _ACEOF
19081 elif test -n "${LTDL_MANDATORY}";
19082 then
19083 { echo "$as_me:$LINENO: ***" >&5
19084 echo "$as_me: ***" >&6;}
19085 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
19086 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
19087 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19088 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19089 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19090 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19091 exit 1
19096 ac_ext=cpp
19097 ac_cpp='$CXXCPP $CPPFLAGS'
19098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19103 if test "${USE_KDE}" != "no"; then
19104 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
19105 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
19106 saved_libs="${LIBS}"
19107 saved_cppflags="${CPPFLAGS}"
19108 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
19109 if test -d ${KDE_DIR}/lib; then
19110 kdelibdir="${KDE_DIR}/lib"
19111 else
19112 kdelibdir="${KDE_DIR}"
19114 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h. */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 #include "kcrash.h"
19125 main ()
19127 KCrash::defaultCrashHandler(1);
19129 return 0;
19132 _ACEOF
19133 rm -f conftest.$ac_objext conftest$ac_exeext
19134 if { (ac_try="$ac_link"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_link") 2>conftest.er1
19141 ac_status=$?
19142 grep -v '^ *+' conftest.er1 >conftest.err
19143 rm -f conftest.er1
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } && {
19147 test -z "$ac_cxx_werror_flag" ||
19148 test ! -s conftest.err
19149 } && test -s conftest$ac_exeext &&
19150 $as_test_x conftest$ac_exeext; then
19151 ac_cv_lib_kde_crash="yes"
19152 else
19153 echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19156 ac_cv_lib_kde_crash="no"
19159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19160 conftest$ac_exeext conftest.$ac_ext
19162 LIBS="${saved_libs}"
19163 CPPFLAGS="${saved_cppflags}"
19165 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19166 { echo "$as_me:$LINENO: result: yes" >&5
19167 echo "${ECHO_T}yes" >&6; }
19168 KDE_LIB="-lkdecore -lkdeui"
19169 if test "${KDE_DIR}" != ""; then
19170 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19171 KDE_INCLUDE="-I${KDE_DIR}/include"
19173 PBX_KDE=1
19175 cat >>confdefs.h <<\_ACEOF
19176 #define HAVE_LIBKDE 1
19177 _ACEOF
19179 elif test -n "${KDE_MANDATORY}"; then
19180 { echo "$as_me:$LINENO: result: no" >&5
19181 echo "${ECHO_T}no" >&6; }
19182 { echo "$as_me:$LINENO: ***" >&5
19183 echo "$as_me: ***" >&6;}
19184 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
19185 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
19186 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19187 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19188 { echo "$as_me:$LINENO: *** including --without-kde." >&5
19189 echo "$as_me: *** including --without-kde." >&6;}
19190 exit 1
19191 else
19192 { echo "$as_me:$LINENO: result: no" >&5
19193 echo "${ECHO_T}no" >&6; }
19196 if test "${PBX_KDE}" = 1; then
19197 if test -n "$ac_tool_prefix"; then
19198 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
19199 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19202 if test "${ac_cv_path_KDEINIT+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205 case $KDEINIT in
19206 [\\/]* | ?:[\\/]*)
19207 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19211 for as_dir in $PATH
19213 IFS=$as_save_IFS
19214 test -z "$as_dir" && as_dir=.
19215 for ac_exec_ext in '' $ac_executable_extensions; do
19216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19217 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19219 break 2
19221 done
19222 done
19223 IFS=$as_save_IFS
19226 esac
19228 KDEINIT=$ac_cv_path_KDEINIT
19229 if test -n "$KDEINIT"; then
19230 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
19231 echo "${ECHO_T}$KDEINIT" >&6; }
19232 else
19233 { echo "$as_me:$LINENO: result: no" >&5
19234 echo "${ECHO_T}no" >&6; }
19239 if test -z "$ac_cv_path_KDEINIT"; then
19240 ac_pt_KDEINIT=$KDEINIT
19241 # Extract the first word of "kdeinit", so it can be a program name with args.
19242 set dummy kdeinit; ac_word=$2
19243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19245 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248 case $ac_pt_KDEINIT in
19249 [\\/]* | ?:[\\/]*)
19250 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19254 for as_dir in $PATH
19256 IFS=$as_save_IFS
19257 test -z "$as_dir" && as_dir=.
19258 for ac_exec_ext in '' $ac_executable_extensions; do
19259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19260 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19262 break 2
19264 done
19265 done
19266 IFS=$as_save_IFS
19269 esac
19271 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19272 if test -n "$ac_pt_KDEINIT"; then
19273 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
19274 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19275 else
19276 { echo "$as_me:$LINENO: result: no" >&5
19277 echo "${ECHO_T}no" >&6; }
19280 if test "x$ac_pt_KDEINIT" = x; then
19281 KDEINIT="No"
19282 else
19283 case $cross_compiling:$ac_tool_warned in
19284 yes:)
19285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19286 whose name does not start with the host triplet. If you think this
19287 configuration is useful to you, please write to autoconf@gnu.org." >&5
19288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19289 whose name does not start with the host triplet. If you think this
19290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19291 ac_tool_warned=yes ;;
19292 esac
19293 KDEINIT=$ac_pt_KDEINIT
19295 else
19296 KDEINIT="$ac_cv_path_KDEINIT"
19299 if test ! x"${KDEINIT}" = xNo; then
19300 KDEDIR=$(${DIRNAME} ${KDEINIT})
19301 KDEDIR=$(${DIRNAME} ${KDEDIR})
19306 ac_ext=c
19307 ac_cpp='$CPP $CPPFLAGS'
19308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19314 if test "${USE_MISDN}" != "no"; then
19315 pbxlibdir=""
19316 if test "x${MISDN_DIR}" != "x"; then
19317 if test -d ${MISDN_DIR}/lib; then
19318 pbxlibdir="-L${MISDN_DIR}/lib"
19319 else
19320 pbxlibdir="-L${MISDN_DIR}"
19323 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19324 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19325 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328 ac_check_lib_save_LIBS=$LIBS
19329 LIBS="-lmISDN ${pbxlibdir} $LIBS"
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. */
19337 /* Override any GCC internal prototype to avoid an error.
19338 Use char because int might match the return type of a GCC
19339 builtin and then its argument prototype would still apply. */
19340 #ifdef __cplusplus
19341 extern "C"
19342 #endif
19343 char mISDN_open ();
19345 main ()
19347 return mISDN_open ();
19349 return 0;
19351 _ACEOF
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (ac_try="$ac_link"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19357 esac
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_link") 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && {
19366 test -z "$ac_c_werror_flag" ||
19367 test ! -s conftest.err
19368 } && test -s conftest$ac_exeext &&
19369 $as_test_x conftest$ac_exeext; then
19370 ac_cv_lib_mISDN_mISDN_open=yes
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ac_cv_lib_mISDN_mISDN_open=no
19378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19379 conftest$ac_exeext conftest.$ac_ext
19380 LIBS=$ac_check_lib_save_LIBS
19382 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19383 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19384 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19385 AST_MISDN_FOUND=yes
19386 else
19387 AST_MISDN_FOUND=no
19391 if test "${AST_MISDN_FOUND}" = "yes"; then
19392 MISDN_LIB="-lmISDN "
19393 MISDN_HEADER_FOUND="1"
19394 if test "x${MISDN_DIR}" != "x"; then
19395 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
19396 MISDN_INCLUDE="-I${MISDN_DIR}/include"
19397 saved_cppflags="${CPPFLAGS}"
19398 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
19399 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19400 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
19401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19402 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19403 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 ac_res=`eval echo '${'$as_ac_Header'}'`
19408 { echo "$as_me:$LINENO: result: $ac_res" >&5
19409 echo "${ECHO_T}$ac_res" >&6; }
19410 else
19411 # Is the header compilable?
19412 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
19413 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 $ac_includes_default
19421 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19422 _ACEOF
19423 rm -f conftest.$ac_objext
19424 if { (ac_try="$ac_compile"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_compile") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest.$ac_objext; then
19440 ac_header_compiler=yes
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_header_compiler=no
19448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19450 echo "${ECHO_T}$ac_header_compiler" >&6; }
19452 # Is the header present?
19453 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
19454 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19462 _ACEOF
19463 if { (ac_try="$ac_cpp conftest.$ac_ext"
19464 case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19470 ac_status=$?
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } >/dev/null && {
19476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19477 test ! -s conftest.err
19478 }; then
19479 ac_header_preproc=yes
19480 else
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ac_header_preproc=no
19487 rm -f conftest.err conftest.$ac_ext
19488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19489 echo "${ECHO_T}$ac_header_preproc" >&6; }
19491 # So? What about this header?
19492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19493 yes:no: )
19494 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19495 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19496 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19497 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19498 ac_header_preproc=yes
19500 no:yes:* )
19501 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19502 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19503 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19504 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19506 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19508 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19509 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19510 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19511 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19512 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19515 esac
19516 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19517 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521 eval "$as_ac_Header=\$ac_header_preproc"
19523 ac_res=`eval echo '${'$as_ac_Header'}'`
19524 { echo "$as_me:$LINENO: result: $ac_res" >&5
19525 echo "${ECHO_T}$ac_res" >&6; }
19528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19529 MISDN_HEADER_FOUND=1
19530 else
19531 MISDN_HEADER_FOUND=0
19536 CPPFLAGS="${saved_cppflags}"
19537 else
19538 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19539 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19540 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19541 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19542 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19546 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19547 else
19548 # Is the header compilable?
19549 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19550 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 $ac_includes_default
19558 #include <mISDNuser/mISDNlib.h>
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (ac_try="$ac_compile"
19562 case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_compile") 2>conftest.er1
19568 ac_status=$?
19569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } && {
19574 test -z "$ac_c_werror_flag" ||
19575 test ! -s conftest.err
19576 } && test -s conftest.$ac_objext; then
19577 ac_header_compiler=yes
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_header_compiler=no
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19587 echo "${ECHO_T}$ac_header_compiler" >&6; }
19589 # Is the header present?
19590 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
19591 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $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 #include <mISDNuser/mISDNlib.h>
19599 _ACEOF
19600 if { (ac_try="$ac_cpp conftest.$ac_ext"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } >/dev/null && {
19613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 }; then
19616 ac_header_preproc=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_header_preproc=no
19624 rm -f conftest.err conftest.$ac_ext
19625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19626 echo "${ECHO_T}$ac_header_preproc" >&6; }
19628 # So? What about this header?
19629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19630 yes:no: )
19631 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19632 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19634 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19635 ac_header_preproc=yes
19637 no:yes:* )
19638 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19639 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19641 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19643 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19644 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19645 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19647 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19649 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19652 esac
19653 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19654 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19655 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
19660 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19661 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19664 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
19665 MISDN_HEADER_FOUND=1
19666 else
19667 MISDN_HEADER_FOUND=0
19673 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
19674 if test -n "${MISDN_MANDATORY}" ;
19675 then
19676 { echo "$as_me:$LINENO: ***" >&5
19677 echo "$as_me: ***" >&6;}
19678 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
19679 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
19680 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
19681 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
19682 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19683 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19684 exit 1
19686 MISDN_LIB=""
19687 MISDN_INCLUDE=""
19688 PBX_MISDN=0
19689 else
19690 PBX_MISDN=1
19692 cat >>confdefs.h <<_ACEOF
19693 #define HAVE_MISDN 1
19694 _ACEOF
19697 elif test -n "${MISDN_MANDATORY}";
19698 then
19699 { echo "$as_me:$LINENO: ***" >&5
19700 echo "$as_me: ***" >&6;}
19701 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
19702 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
19703 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19704 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19705 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19706 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19707 exit 1
19712 if test "${PBX_MISDN}" = 1; then
19714 if test "${USE_ISDNNET}" != "no"; then
19715 pbxlibdir=""
19716 if test "x${ISDNNET_DIR}" != "x"; then
19717 if test -d ${ISDNNET_DIR}/lib; then
19718 pbxlibdir="-L${ISDNNET_DIR}/lib"
19719 else
19720 pbxlibdir="-L${ISDNNET_DIR}"
19723 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
19724 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
19725 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728 ac_check_lib_save_LIBS=$LIBS
19729 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
19730 cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h. */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19737 /* Override any GCC internal prototype to avoid an error.
19738 Use char because int might match the return type of a GCC
19739 builtin and then its argument prototype would still apply. */
19740 #ifdef __cplusplus
19741 extern "C"
19742 #endif
19743 char init_manager ();
19745 main ()
19747 return init_manager ();
19749 return 0;
19751 _ACEOF
19752 rm -f conftest.$ac_objext conftest$ac_exeext
19753 if { (ac_try="$ac_link"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_link") 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && {
19766 test -z "$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest$ac_exeext &&
19769 $as_test_x conftest$ac_exeext; then
19770 ac_cv_lib_isdnnet_init_manager=yes
19771 else
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_cv_lib_isdnnet_init_manager=no
19778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19779 conftest$ac_exeext conftest.$ac_ext
19780 LIBS=$ac_check_lib_save_LIBS
19782 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
19783 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
19784 if test $ac_cv_lib_isdnnet_init_manager = yes; then
19785 AST_ISDNNET_FOUND=yes
19786 else
19787 AST_ISDNNET_FOUND=no
19791 if test "${AST_ISDNNET_FOUND}" = "yes"; then
19792 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
19793 ISDNNET_HEADER_FOUND="1"
19794 if test "x${ISDNNET_DIR}" != "x"; then
19795 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
19796 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
19797 saved_cppflags="${CPPFLAGS}"
19798 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
19799 if test "xmISDNuser/isdn_net.h" != "x" ; then
19800 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
19801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
19803 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 ac_res=`eval echo '${'$as_ac_Header'}'`
19808 { echo "$as_me:$LINENO: result: $ac_res" >&5
19809 echo "${ECHO_T}$ac_res" >&6; }
19810 else
19811 # Is the header compilable?
19812 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
19813 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19821 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
19822 _ACEOF
19823 rm -f conftest.$ac_objext
19824 if { (ac_try="$ac_compile"
19825 case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_compile") 2>conftest.er1
19831 ac_status=$?
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } && {
19837 test -z "$ac_c_werror_flag" ||
19838 test ! -s conftest.err
19839 } && test -s conftest.$ac_objext; then
19840 ac_header_compiler=yes
19841 else
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19845 ac_header_compiler=no
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19850 echo "${ECHO_T}$ac_header_compiler" >&6; }
19852 # Is the header present?
19853 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
19854 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
19862 _ACEOF
19863 if { (ac_try="$ac_cpp conftest.$ac_ext"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } >/dev/null && {
19876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 }; then
19879 ac_header_preproc=yes
19880 else
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_header_preproc=no
19887 rm -f conftest.err conftest.$ac_ext
19888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19889 echo "${ECHO_T}$ac_header_preproc" >&6; }
19891 # So? What about this header?
19892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19893 yes:no: )
19894 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
19895 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
19897 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
19898 ac_header_preproc=yes
19900 no:yes:* )
19901 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
19902 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
19904 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
19906 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
19908 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
19910 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
19912 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
19915 esac
19916 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
19917 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921 eval "$as_ac_Header=\$ac_header_preproc"
19923 ac_res=`eval echo '${'$as_ac_Header'}'`
19924 { echo "$as_me:$LINENO: result: $ac_res" >&5
19925 echo "${ECHO_T}$ac_res" >&6; }
19928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19929 ISDNNET_HEADER_FOUND=1
19930 else
19931 ISDNNET_HEADER_FOUND=0
19936 CPPFLAGS="${saved_cppflags}"
19937 else
19938 if test "xmISDNuser/isdn_net.h" != "x" ; then
19939 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19940 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
19941 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
19942 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
19946 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
19947 else
19948 # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
19950 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 $ac_includes_default
19958 #include <mISDNuser/isdn_net.h>
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_header_compiler=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_header_compiler=no
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6; }
19989 # Is the header present?
19990 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
19991 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <mISDNuser/isdn_net.h>
19999 _ACEOF
20000 if { (ac_try="$ac_cpp conftest.$ac_ext"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } >/dev/null && {
20013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 }; then
20016 ac_header_preproc=yes
20017 else
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_header_preproc=no
20024 rm -f conftest.err conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6; }
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030 yes:no: )
20031 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20037 no:yes:* )
20038 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20052 esac
20053 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20054 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20055 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
20060 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20061 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20064 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
20065 ISDNNET_HEADER_FOUND=1
20066 else
20067 ISDNNET_HEADER_FOUND=0
20073 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
20074 if test -n "${ISDNNET_MANDATORY}" ;
20075 then
20076 { echo "$as_me:$LINENO: ***" >&5
20077 echo "$as_me: ***" >&6;}
20078 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
20079 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
20080 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
20081 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
20082 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20083 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20084 exit 1
20086 ISDNNET_LIB=""
20087 ISDNNET_INCLUDE=""
20088 PBX_ISDNNET=0
20089 else
20090 PBX_ISDNNET=1
20092 cat >>confdefs.h <<_ACEOF
20093 #define HAVE_ISDNNET 1
20094 _ACEOF
20097 elif test -n "${ISDNNET_MANDATORY}";
20098 then
20099 { echo "$as_me:$LINENO: ***" >&5
20100 echo "$as_me: ***" >&6;}
20101 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
20102 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
20103 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20104 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20105 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20106 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20107 exit 1
20112 if test "${USE_SUPPSERV}" != "no"; then
20113 pbxlibdir=""
20114 if test "x${SUPPSERV_DIR}" != "x"; then
20115 if test -d ${SUPPSERV_DIR}/lib; then
20116 pbxlibdir="-L${SUPPSERV_DIR}/lib"
20117 else
20118 pbxlibdir="-L${SUPPSERV_DIR}"
20121 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
20122 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
20123 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126 ac_check_lib_save_LIBS=$LIBS
20127 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
20128 cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h. */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20135 /* Override any GCC internal prototype to avoid an error.
20136 Use char because int might match the return type of a GCC
20137 builtin and then its argument prototype would still apply. */
20138 #ifdef __cplusplus
20139 extern "C"
20140 #endif
20141 char encodeFac ();
20143 main ()
20145 return encodeFac ();
20147 return 0;
20149 _ACEOF
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (ac_try="$ac_link"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_link") 2>conftest.er1
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest$ac_exeext &&
20167 $as_test_x conftest$ac_exeext; then
20168 ac_cv_lib_suppserv_encodeFac=yes
20169 else
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_cv_lib_suppserv_encodeFac=no
20176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177 conftest$ac_exeext conftest.$ac_ext
20178 LIBS=$ac_check_lib_save_LIBS
20180 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
20181 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20182 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20183 AST_SUPPSERV_FOUND=yes
20184 else
20185 AST_SUPPSERV_FOUND=no
20189 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20190 SUPPSERV_LIB="-lsuppserv "
20191 SUPPSERV_HEADER_FOUND="1"
20192 if test "x${SUPPSERV_DIR}" != "x"; then
20193 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
20194 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
20195 saved_cppflags="${CPPFLAGS}"
20196 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
20197 if test "xmISDNuser/suppserv.h" != "x" ; then
20198 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
20199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20200 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20201 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 ac_res=`eval echo '${'$as_ac_Header'}'`
20206 { echo "$as_me:$LINENO: result: $ac_res" >&5
20207 echo "${ECHO_T}$ac_res" >&6; }
20208 else
20209 # Is the header compilable?
20210 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
20211 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20220 _ACEOF
20221 rm -f conftest.$ac_objext
20222 if { (ac_try="$ac_compile"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_compile") 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest.$ac_objext; then
20238 ac_header_compiler=yes
20239 else
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_header_compiler=no
20246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20248 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250 # Is the header present?
20251 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
20252 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20260 _ACEOF
20261 if { (ac_try="$ac_cpp conftest.$ac_ext"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } >/dev/null && {
20274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 }; then
20277 ac_header_preproc=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_preproc=no
20285 rm -f conftest.err conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20287 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289 # So? What about this header?
20290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20291 yes:no: )
20292 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20293 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20295 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20296 ac_header_preproc=yes
20298 no:yes:* )
20299 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
20300 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20302 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20304 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20306 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20308 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20310 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20313 esac
20314 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20315 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319 eval "$as_ac_Header=\$ac_header_preproc"
20321 ac_res=`eval echo '${'$as_ac_Header'}'`
20322 { echo "$as_me:$LINENO: result: $ac_res" >&5
20323 echo "${ECHO_T}$ac_res" >&6; }
20326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20327 SUPPSERV_HEADER_FOUND=1
20328 else
20329 SUPPSERV_HEADER_FOUND=0
20334 CPPFLAGS="${saved_cppflags}"
20335 else
20336 if test "xmISDNuser/suppserv.h" != "x" ; then
20337 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20338 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20339 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20340 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20344 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20345 else
20346 # Is the header compilable?
20347 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20348 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 $ac_includes_default
20356 #include <mISDNuser/suppserv.h>
20357 _ACEOF
20358 rm -f conftest.$ac_objext
20359 if { (ac_try="$ac_compile"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_compile") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest.$ac_objext; then
20375 ac_header_compiler=yes
20376 else
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_header_compiler=no
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20385 echo "${ECHO_T}$ac_header_compiler" >&6; }
20387 # Is the header present?
20388 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20389 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 #include <mISDNuser/suppserv.h>
20397 _ACEOF
20398 if { (ac_try="$ac_cpp conftest.$ac_ext"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402 esac
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } >/dev/null && {
20411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 }; then
20414 ac_header_preproc=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_header_preproc=no
20422 rm -f conftest.err conftest.$ac_ext
20423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20424 echo "${ECHO_T}$ac_header_preproc" >&6; }
20426 # So? What about this header?
20427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20428 yes:no: )
20429 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20430 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20432 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20433 ac_header_preproc=yes
20435 no:yes:* )
20436 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20437 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20439 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20441 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20442 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20443 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20445 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20447 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20450 esac
20451 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20452 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20453 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
20458 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20459 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20462 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20463 SUPPSERV_HEADER_FOUND=1
20464 else
20465 SUPPSERV_HEADER_FOUND=0
20471 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20472 if test -n "${SUPPSERV_MANDATORY}" ;
20473 then
20474 { echo "$as_me:$LINENO: ***" >&5
20475 echo "$as_me: ***" >&6;}
20476 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20477 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20478 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20479 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20480 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20481 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20482 exit 1
20484 SUPPSERV_LIB=""
20485 SUPPSERV_INCLUDE=""
20486 PBX_SUPPSERV=0
20487 else
20488 PBX_SUPPSERV=1
20490 cat >>confdefs.h <<_ACEOF
20491 #define HAVE_SUPPSERV 1
20492 _ACEOF
20495 elif test -n "${SUPPSERV_MANDATORY}";
20496 then
20497 { echo "$as_me:$LINENO: ***" >&5
20498 echo "$as_me: ***" >&6;}
20499 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20500 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20501 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20502 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20503 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20504 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20505 exit 1
20509 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20510 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20511 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20512 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20516 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20517 else
20518 # Is the header compilable?
20519 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20520 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20521 cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h. */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527 $ac_includes_default
20528 #include <linux/mISDNdsp.h>
20529 _ACEOF
20530 rm -f conftest.$ac_objext
20531 if { (ac_try="$ac_compile"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_compile") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest.$ac_objext; then
20547 ac_header_compiler=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_header_compiler=no
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20557 echo "${ECHO_T}$ac_header_compiler" >&6; }
20559 # Is the header present?
20560 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20561 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 #include <linux/mISDNdsp.h>
20569 _ACEOF
20570 if { (ac_try="$ac_cpp conftest.$ac_ext"
20571 case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20574 esac
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20577 ac_status=$?
20578 grep -v '^ *+' conftest.er1 >conftest.err
20579 rm -f conftest.er1
20580 cat conftest.err >&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } >/dev/null && {
20583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 }; then
20586 ac_header_preproc=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_header_preproc=no
20594 rm -f conftest.err conftest.$ac_ext
20595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20596 echo "${ECHO_T}$ac_header_preproc" >&6; }
20598 # So? What about this header?
20599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20600 yes:no: )
20601 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20602 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20604 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20605 ac_header_preproc=yes
20607 no:yes:* )
20608 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20609 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20611 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20613 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20615 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20617 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20619 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20622 esac
20623 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20624 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20625 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 else
20628 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
20630 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20631 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20634 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define MISDN_1_2 1
20638 _ACEOF
20646 if test "${USE_NBS}" != "no"; then
20647 pbxlibdir=""
20648 if test "x${NBS_DIR}" != "x"; then
20649 if test -d ${NBS_DIR}/lib; then
20650 pbxlibdir="-L${NBS_DIR}/lib"
20651 else
20652 pbxlibdir="-L${NBS_DIR}"
20655 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20656 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20657 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660 ac_check_lib_save_LIBS=$LIBS
20661 LIBS="-lnbs ${pbxlibdir} $LIBS"
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h. */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20672 #ifdef __cplusplus
20673 extern "C"
20674 #endif
20675 char nbs_connect ();
20677 main ()
20679 return nbs_connect ();
20681 return 0;
20683 _ACEOF
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } && {
20698 test -z "$ac_c_werror_flag" ||
20699 test ! -s conftest.err
20700 } && test -s conftest$ac_exeext &&
20701 $as_test_x conftest$ac_exeext; then
20702 ac_cv_lib_nbs_nbs_connect=yes
20703 else
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20707 ac_cv_lib_nbs_nbs_connect=no
20710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20711 conftest$ac_exeext conftest.$ac_ext
20712 LIBS=$ac_check_lib_save_LIBS
20714 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20715 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20716 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20717 AST_NBS_FOUND=yes
20718 else
20719 AST_NBS_FOUND=no
20723 if test "${AST_NBS_FOUND}" = "yes"; then
20724 NBS_LIB="-lnbs "
20725 NBS_HEADER_FOUND="1"
20726 if test "x${NBS_DIR}" != "x"; then
20727 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20728 NBS_INCLUDE="-I${NBS_DIR}/include"
20729 saved_cppflags="${CPPFLAGS}"
20730 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
20731 if test "xnbs.h" != "x" ; then
20732 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
20733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20734 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20735 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 ac_res=`eval echo '${'$as_ac_Header'}'`
20740 { echo "$as_me:$LINENO: result: $ac_res" >&5
20741 echo "${ECHO_T}$ac_res" >&6; }
20742 else
20743 # Is the header compilable?
20744 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
20745 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
20746 cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h. */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20752 $ac_includes_default
20753 #include <${NBS_DIR}/include/nbs.h>
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (ac_try="$ac_compile"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_compile") 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest.$ac_objext; then
20772 ac_header_compiler=yes
20773 else
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20777 ac_header_compiler=no
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20782 echo "${ECHO_T}$ac_header_compiler" >&6; }
20784 # Is the header present?
20785 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
20786 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 #include <${NBS_DIR}/include/nbs.h>
20794 _ACEOF
20795 if { (ac_try="$ac_cpp conftest.$ac_ext"
20796 case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } >/dev/null && {
20808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 }; then
20811 ac_header_preproc=yes
20812 else
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ac_header_preproc=no
20819 rm -f conftest.err conftest.$ac_ext
20820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20821 echo "${ECHO_T}$ac_header_preproc" >&6; }
20823 # So? What about this header?
20824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20825 yes:no: )
20826 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20827 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
20829 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
20830 ac_header_preproc=yes
20832 no:yes:* )
20833 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
20834 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
20836 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
20838 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
20840 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
20842 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
20843 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
20844 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
20847 esac
20848 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20849 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853 eval "$as_ac_Header=\$ac_header_preproc"
20855 ac_res=`eval echo '${'$as_ac_Header'}'`
20856 { echo "$as_me:$LINENO: result: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20861 NBS_HEADER_FOUND=1
20862 else
20863 NBS_HEADER_FOUND=0
20868 CPPFLAGS="${saved_cppflags}"
20869 else
20870 if test "xnbs.h" != "x" ; then
20871 if test "${ac_cv_header_nbs_h+set}" = set; then
20872 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20873 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20874 if test "${ac_cv_header_nbs_h+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20878 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20879 else
20880 # Is the header compilable?
20881 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
20882 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
20883 cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h. */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 $ac_includes_default
20890 #include <nbs.h>
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest.$ac_objext; then
20909 ac_header_compiler=yes
20910 else
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_header_compiler=no
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919 echo "${ECHO_T}$ac_header_compiler" >&6; }
20921 # Is the header present?
20922 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
20923 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 #include <nbs.h>
20931 _ACEOF
20932 if { (ac_try="$ac_cpp conftest.$ac_ext"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } >/dev/null && {
20945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 }; then
20948 ac_header_preproc=yes
20949 else
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ac_header_preproc=no
20956 rm -f conftest.err conftest.$ac_ext
20957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20958 echo "${ECHO_T}$ac_header_preproc" >&6; }
20960 # So? What about this header?
20961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20962 yes:no: )
20963 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
20964 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20965 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
20966 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
20967 ac_header_preproc=yes
20969 no:yes:* )
20970 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
20971 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
20973 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
20975 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
20977 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
20979 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
20981 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
20984 esac
20985 { echo "$as_me:$LINENO: checking for nbs.h" >&5
20986 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
20987 if test "${ac_cv_header_nbs_h+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990 ac_cv_header_nbs_h=$ac_header_preproc
20992 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
20993 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
20996 if test $ac_cv_header_nbs_h = yes; then
20997 NBS_HEADER_FOUND=1
20998 else
20999 NBS_HEADER_FOUND=0
21005 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
21006 if test -n "${NBS_MANDATORY}" ;
21007 then
21008 { echo "$as_me:$LINENO: ***" >&5
21009 echo "$as_me: ***" >&6;}
21010 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
21011 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
21012 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
21013 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
21014 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21015 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21016 exit 1
21018 NBS_LIB=""
21019 NBS_INCLUDE=""
21020 PBX_NBS=0
21021 else
21022 PBX_NBS=1
21024 cat >>confdefs.h <<_ACEOF
21025 #define HAVE_NBS 1
21026 _ACEOF
21029 elif test -n "${NBS_MANDATORY}";
21030 then
21031 { echo "$as_me:$LINENO: ***" >&5
21032 echo "$as_me: ***" >&6;}
21033 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
21034 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
21035 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21036 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21037 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21038 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21039 exit 1
21045 if test "${USE_NCURSES}" != "no"; then
21046 pbxlibdir=""
21047 if test "x${NCURSES_DIR}" != "x"; then
21048 if test -d ${NCURSES_DIR}/lib; then
21049 pbxlibdir="-L${NCURSES_DIR}/lib"
21050 else
21051 pbxlibdir="-L${NCURSES_DIR}"
21054 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
21055 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
21056 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 ac_check_lib_save_LIBS=$LIBS
21060 LIBS="-lncurses ${pbxlibdir} $LIBS"
21061 cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h. */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21068 /* Override any GCC internal prototype to avoid an error.
21069 Use char because int might match the return type of a GCC
21070 builtin and then its argument prototype would still apply. */
21071 #ifdef __cplusplus
21072 extern "C"
21073 #endif
21074 char initscr ();
21076 main ()
21078 return initscr ();
21080 return 0;
21082 _ACEOF
21083 rm -f conftest.$ac_objext conftest$ac_exeext
21084 if { (ac_try="$ac_link"
21085 case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_link") 2>conftest.er1
21091 ac_status=$?
21092 grep -v '^ *+' conftest.er1 >conftest.err
21093 rm -f conftest.er1
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && {
21097 test -z "$ac_c_werror_flag" ||
21098 test ! -s conftest.err
21099 } && test -s conftest$ac_exeext &&
21100 $as_test_x conftest$ac_exeext; then
21101 ac_cv_lib_ncurses_initscr=yes
21102 else
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_cv_lib_ncurses_initscr=no
21109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21110 conftest$ac_exeext conftest.$ac_ext
21111 LIBS=$ac_check_lib_save_LIBS
21113 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
21114 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
21115 if test $ac_cv_lib_ncurses_initscr = yes; then
21116 AST_NCURSES_FOUND=yes
21117 else
21118 AST_NCURSES_FOUND=no
21122 if test "${AST_NCURSES_FOUND}" = "yes"; then
21123 NCURSES_LIB="-lncurses "
21124 NCURSES_HEADER_FOUND="1"
21125 if test "x${NCURSES_DIR}" != "x"; then
21126 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
21127 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
21128 saved_cppflags="${CPPFLAGS}"
21129 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
21130 if test "xcurses.h" != "x" ; then
21131 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
21132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
21134 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
21135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 ac_res=`eval echo '${'$as_ac_Header'}'`
21139 { echo "$as_me:$LINENO: result: $ac_res" >&5
21140 echo "${ECHO_T}$ac_res" >&6; }
21141 else
21142 # Is the header compilable?
21143 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
21144 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h. */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 $ac_includes_default
21152 #include <${NCURSES_DIR}/include/curses.h>
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest.$ac_objext; then
21171 ac_header_compiler=yes
21172 else
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 ac_header_compiler=no
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21181 echo "${ECHO_T}$ac_header_compiler" >&6; }
21183 # Is the header present?
21184 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
21185 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h. */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <${NCURSES_DIR}/include/curses.h>
21193 _ACEOF
21194 if { (ac_try="$ac_cpp conftest.$ac_ext"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } >/dev/null && {
21207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 }; then
21210 ac_header_preproc=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_header_preproc=no
21218 rm -f conftest.err conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21220 echo "${ECHO_T}$ac_header_preproc" >&6; }
21222 # So? What about this header?
21223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21224 yes:no: )
21225 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21226 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
21228 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
21229 ac_header_preproc=yes
21231 no:yes:* )
21232 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
21233 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
21235 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
21237 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
21239 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
21241 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
21242 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
21243 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
21246 esac
21247 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
21248 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
21249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252 eval "$as_ac_Header=\$ac_header_preproc"
21254 ac_res=`eval echo '${'$as_ac_Header'}'`
21255 { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21260 NCURSES_HEADER_FOUND=1
21261 else
21262 NCURSES_HEADER_FOUND=0
21267 CPPFLAGS="${saved_cppflags}"
21268 else
21269 if test "xcurses.h" != "x" ; then
21270 if test "${ac_cv_header_curses_h+set}" = set; then
21271 { echo "$as_me:$LINENO: checking for curses.h" >&5
21272 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21273 if test "${ac_cv_header_curses_h+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21277 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21278 else
21279 # Is the header compilable?
21280 { echo "$as_me:$LINENO: checking curses.h usability" >&5
21281 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h. */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 $ac_includes_default
21289 #include <curses.h>
21290 _ACEOF
21291 rm -f conftest.$ac_objext
21292 if { (ac_try="$ac_compile"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_compile") 2>conftest.er1
21299 ac_status=$?
21300 grep -v '^ *+' conftest.er1 >conftest.err
21301 rm -f conftest.er1
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest.$ac_objext; then
21308 ac_header_compiler=yes
21309 else
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ac_header_compiler=no
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21318 echo "${ECHO_T}$ac_header_compiler" >&6; }
21320 # Is the header present?
21321 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21322 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h. */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 #include <curses.h>
21330 _ACEOF
21331 if { (ac_try="$ac_cpp conftest.$ac_ext"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } >/dev/null && {
21344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21345 test ! -s conftest.err
21346 }; then
21347 ac_header_preproc=yes
21348 else
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ac_header_preproc=no
21355 rm -f conftest.err conftest.$ac_ext
21356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21357 echo "${ECHO_T}$ac_header_preproc" >&6; }
21359 # So? What about this header?
21360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21361 yes:no: )
21362 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21363 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21365 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21366 ac_header_preproc=yes
21368 no:yes:* )
21369 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21370 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21372 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21373 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21374 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21376 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21378 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21380 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21383 esac
21384 { echo "$as_me:$LINENO: checking for curses.h" >&5
21385 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21386 if test "${ac_cv_header_curses_h+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389 ac_cv_header_curses_h=$ac_header_preproc
21391 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21392 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21395 if test $ac_cv_header_curses_h = yes; then
21396 NCURSES_HEADER_FOUND=1
21397 else
21398 NCURSES_HEADER_FOUND=0
21404 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21405 if test -n "${NCURSES_MANDATORY}" ;
21406 then
21407 { echo "$as_me:$LINENO: ***" >&5
21408 echo "$as_me: ***" >&6;}
21409 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21410 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21411 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21412 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21413 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21414 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21415 exit 1
21417 NCURSES_LIB=""
21418 NCURSES_INCLUDE=""
21419 PBX_NCURSES=0
21420 else
21421 PBX_NCURSES=1
21423 cat >>confdefs.h <<_ACEOF
21424 #define HAVE_NCURSES 1
21425 _ACEOF
21428 elif test -n "${NCURSES_MANDATORY}";
21429 then
21430 { echo "$as_me:$LINENO: ***" >&5
21431 echo "$as_me: ***" >&6;}
21432 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21433 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21434 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21435 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21436 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21437 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21438 exit 1
21443 NETSNMP_CONFIG=No
21444 if test "${USE_NETSNMP}" != "no"; then
21445 if test "x${NETSNMP_DIR}" != "x"; then
21446 if test -n "$ac_tool_prefix"; then
21447 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21448 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21451 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454 case $NETSNMP_CONFIG in
21455 [\\/]* | ?:[\\/]*)
21456 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21460 for as_dir in ${NETSNMP_DIR}/bin
21462 IFS=$as_save_IFS
21463 test -z "$as_dir" && as_dir=.
21464 for ac_exec_ext in '' $ac_executable_extensions; do
21465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21466 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21468 break 2
21470 done
21471 done
21472 IFS=$as_save_IFS
21475 esac
21477 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21478 if test -n "$NETSNMP_CONFIG"; then
21479 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21480 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21481 else
21482 { echo "$as_me:$LINENO: result: no" >&5
21483 echo "${ECHO_T}no" >&6; }
21488 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21489 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21490 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21491 set dummy net-snmp-config; ac_word=$2
21492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21494 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21495 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 else
21497 case $ac_pt_NETSNMP_CONFIG in
21498 [\\/]* | ?:[\\/]*)
21499 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21503 for as_dir in ${NETSNMP_DIR}/bin
21505 IFS=$as_save_IFS
21506 test -z "$as_dir" && as_dir=.
21507 for ac_exec_ext in '' $ac_executable_extensions; do
21508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21509 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21511 break 2
21513 done
21514 done
21515 IFS=$as_save_IFS
21518 esac
21520 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21521 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21522 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21523 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21524 else
21525 { echo "$as_me:$LINENO: result: no" >&5
21526 echo "${ECHO_T}no" >&6; }
21529 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21530 NETSNMP_CONFIG="No"
21531 else
21532 case $cross_compiling:$ac_tool_warned in
21533 yes:)
21534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21535 whose name does not start with the host triplet. If you think this
21536 configuration is useful to you, please write to autoconf@gnu.org." >&5
21537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21538 whose name does not start with the host triplet. If you think this
21539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21540 ac_tool_warned=yes ;;
21541 esac
21542 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21544 else
21545 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21548 if test x"${NETSNMP_CONFIG}" = xNo; then
21549 { echo "$as_me:$LINENO: ***" >&5
21550 echo "$as_me: ***" >&6;}
21551 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21552 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21553 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21554 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21555 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21556 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21557 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21558 echo "$as_me: *** including --without-netsnmp" >&6;}
21559 exit 1
21561 else
21562 if test -n "$ac_tool_prefix"; then
21563 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21564 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21567 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 else
21570 case $NETSNMP_CONFIG in
21571 [\\/]* | ?:[\\/]*)
21572 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21576 for as_dir in $PATH
21578 IFS=$as_save_IFS
21579 test -z "$as_dir" && as_dir=.
21580 for ac_exec_ext in '' $ac_executable_extensions; do
21581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21582 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21584 break 2
21586 done
21587 done
21588 IFS=$as_save_IFS
21591 esac
21593 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21594 if test -n "$NETSNMP_CONFIG"; then
21595 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21596 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21597 else
21598 { echo "$as_me:$LINENO: result: no" >&5
21599 echo "${ECHO_T}no" >&6; }
21604 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21605 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21606 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21607 set dummy net-snmp-config; ac_word=$2
21608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21610 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613 case $ac_pt_NETSNMP_CONFIG in
21614 [\\/]* | ?:[\\/]*)
21615 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21619 for as_dir in $PATH
21621 IFS=$as_save_IFS
21622 test -z "$as_dir" && as_dir=.
21623 for ac_exec_ext in '' $ac_executable_extensions; do
21624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21625 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21627 break 2
21629 done
21630 done
21631 IFS=$as_save_IFS
21634 esac
21636 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21637 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21638 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21639 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21640 else
21641 { echo "$as_me:$LINENO: result: no" >&5
21642 echo "${ECHO_T}no" >&6; }
21645 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21646 NETSNMP_CONFIG="No"
21647 else
21648 case $cross_compiling:$ac_tool_warned in
21649 yes:)
21650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21651 whose name does not start with the host triplet. If you think this
21652 configuration is useful to you, please write to autoconf@gnu.org." >&5
21653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21654 whose name does not start with the host triplet. If you think this
21655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21656 ac_tool_warned=yes ;;
21657 esac
21658 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21660 else
21661 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21666 if test x"${NETSNMP_CONFIG}" != xNo; then
21667 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
21669 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21670 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21671 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21673 else
21674 ac_check_lib_save_LIBS=$LIBS
21675 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h. */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21683 /* Override any GCC internal prototype to avoid an error.
21684 Use char because int might match the return type of a GCC
21685 builtin and then its argument prototype would still apply. */
21686 #ifdef __cplusplus
21687 extern "C"
21688 #endif
21689 char snmp_register_callback ();
21691 main ()
21693 return snmp_register_callback ();
21695 return 0;
21697 _ACEOF
21698 rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (ac_try="$ac_link"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_link") 2>conftest.er1
21706 ac_status=$?
21707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest$ac_exeext &&
21715 $as_test_x conftest$ac_exeext; then
21716 ac_cv_lib_netsnmp_snmp_register_callback=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_lib_netsnmp_snmp_register_callback=no
21724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21725 conftest$ac_exeext conftest.$ac_ext
21726 LIBS=$ac_check_lib_save_LIBS
21728 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21729 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
21730 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
21732 cat >>confdefs.h <<_ACEOF
21733 #define HAVE_NETSNMP 1
21734 _ACEOF
21739 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
21740 NETSNMP_LIB="${NETSNMP_libs}"
21741 PBX_NETSNMP=1
21742 elif test -n "${NETSNMP_MANDATORY}";
21743 then
21744 { echo "$as_me:$LINENO: ***" >&5
21745 echo "$as_me: ***" >&6;}
21746 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21747 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21748 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21749 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21750 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21751 echo "$as_me: *** including --without-netsnmp" >&6;}
21752 exit 1
21754 elif test -n "${NETSNMP_MANDATORY}";
21755 then
21756 { echo "$as_me:$LINENO: ***" >&5
21757 echo "$as_me: ***" >&6;}
21758 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
21759 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
21760 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21761 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21762 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21763 echo "$as_me: *** including --without-netsnmp" >&6;}
21764 exit 1
21768 if test "${USE_NEWT}" != "no"; then
21769 pbxlibdir=""
21770 if test "x${NEWT_DIR}" != "x"; then
21771 if test -d ${NEWT_DIR}/lib; then
21772 pbxlibdir="-L${NEWT_DIR}/lib"
21773 else
21774 pbxlibdir="-L${NEWT_DIR}"
21777 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
21778 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
21779 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lnewt ${pbxlibdir} $LIBS"
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21794 #ifdef __cplusplus
21795 extern "C"
21796 #endif
21797 char newtBell ();
21799 main ()
21801 return newtBell ();
21803 return 0;
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && {
21820 test -z "$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 } && test -s conftest$ac_exeext &&
21823 $as_test_x conftest$ac_exeext; then
21824 ac_cv_lib_newt_newtBell=yes
21825 else
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_lib_newt_newtBell=no
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21834 LIBS=$ac_check_lib_save_LIBS
21836 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
21837 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
21838 if test $ac_cv_lib_newt_newtBell = yes; then
21839 AST_NEWT_FOUND=yes
21840 else
21841 AST_NEWT_FOUND=no
21845 if test "${AST_NEWT_FOUND}" = "yes"; then
21846 NEWT_LIB="-lnewt "
21847 NEWT_HEADER_FOUND="1"
21848 if test "x${NEWT_DIR}" != "x"; then
21849 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
21850 NEWT_INCLUDE="-I${NEWT_DIR}/include"
21851 saved_cppflags="${CPPFLAGS}"
21852 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
21853 if test "xnewt.h" != "x" ; then
21854 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
21857 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 ac_res=`eval echo '${'$as_ac_Header'}'`
21862 { echo "$as_me:$LINENO: result: $ac_res" >&5
21863 echo "${ECHO_T}$ac_res" >&6; }
21864 else
21865 # Is the header compilable?
21866 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
21867 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 $ac_includes_default
21875 #include <${NEWT_DIR}/include/newt.h>
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (ac_try="$ac_compile"
21879 case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21882 esac
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884 (eval "$ac_compile") 2>conftest.er1
21885 ac_status=$?
21886 grep -v '^ *+' conftest.er1 >conftest.err
21887 rm -f conftest.er1
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } && {
21891 test -z "$ac_c_werror_flag" ||
21892 test ! -s conftest.err
21893 } && test -s conftest.$ac_objext; then
21894 ac_header_compiler=yes
21895 else
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21899 ac_header_compiler=no
21902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21904 echo "${ECHO_T}$ac_header_compiler" >&6; }
21906 # Is the header present?
21907 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
21908 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
21909 cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h. */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 #include <${NEWT_DIR}/include/newt.h>
21916 _ACEOF
21917 if { (ac_try="$ac_cpp conftest.$ac_ext"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } >/dev/null && {
21930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 }; then
21933 ac_header_preproc=yes
21934 else
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21938 ac_header_preproc=no
21941 rm -f conftest.err conftest.$ac_ext
21942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21943 echo "${ECHO_T}$ac_header_preproc" >&6; }
21945 # So? What about this header?
21946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21947 yes:no: )
21948 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21949 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
21951 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
21952 ac_header_preproc=yes
21954 no:yes:* )
21955 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
21956 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
21958 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
21959 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
21960 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
21961 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
21962 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
21964 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
21966 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
21969 esac
21970 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
21971 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
21972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 else
21975 eval "$as_ac_Header=\$ac_header_preproc"
21977 ac_res=`eval echo '${'$as_ac_Header'}'`
21978 { echo "$as_me:$LINENO: result: $ac_res" >&5
21979 echo "${ECHO_T}$ac_res" >&6; }
21982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21983 NEWT_HEADER_FOUND=1
21984 else
21985 NEWT_HEADER_FOUND=0
21990 CPPFLAGS="${saved_cppflags}"
21991 else
21992 if test "xnewt.h" != "x" ; then
21993 if test "${ac_cv_header_newt_h+set}" = set; then
21994 { echo "$as_me:$LINENO: checking for newt.h" >&5
21995 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
21996 if test "${ac_cv_header_newt_h+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21999 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
22000 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
22001 else
22002 # Is the header compilable?
22003 { echo "$as_me:$LINENO: checking newt.h usability" >&5
22004 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
22005 cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h. */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 $ac_includes_default
22012 #include <newt.h>
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22022 ac_status=$?
22023 grep -v '^ *+' conftest.er1 >conftest.err
22024 rm -f conftest.er1
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22031 ac_header_compiler=yes
22032 else
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_header_compiler=no
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22041 echo "${ECHO_T}$ac_header_compiler" >&6; }
22043 # Is the header present?
22044 { echo "$as_me:$LINENO: checking newt.h presence" >&5
22045 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 #include <newt.h>
22053 _ACEOF
22054 if { (ac_try="$ac_cpp conftest.$ac_ext"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } >/dev/null && {
22067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 }; then
22070 ac_header_preproc=yes
22071 else
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_header_preproc=no
22078 rm -f conftest.err conftest.$ac_ext
22079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22080 echo "${ECHO_T}$ac_header_preproc" >&6; }
22082 # So? What about this header?
22083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22084 yes:no: )
22085 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22086 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
22088 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
22089 ac_header_preproc=yes
22091 no:yes:* )
22092 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
22093 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
22095 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
22097 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
22099 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
22101 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
22103 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
22106 esac
22107 { echo "$as_me:$LINENO: checking for newt.h" >&5
22108 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
22109 if test "${ac_cv_header_newt_h+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112 ac_cv_header_newt_h=$ac_header_preproc
22114 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
22115 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
22118 if test $ac_cv_header_newt_h = yes; then
22119 NEWT_HEADER_FOUND=1
22120 else
22121 NEWT_HEADER_FOUND=0
22127 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
22128 if test -n "${NEWT_MANDATORY}" ;
22129 then
22130 { echo "$as_me:$LINENO: ***" >&5
22131 echo "$as_me: ***" >&6;}
22132 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
22133 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
22134 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
22135 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
22136 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
22137 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
22138 exit 1
22140 NEWT_LIB=""
22141 NEWT_INCLUDE=""
22142 PBX_NEWT=0
22143 else
22144 PBX_NEWT=1
22146 cat >>confdefs.h <<_ACEOF
22147 #define HAVE_NEWT 1
22148 _ACEOF
22151 elif test -n "${NEWT_MANDATORY}";
22152 then
22153 { echo "$as_me:$LINENO: ***" >&5
22154 echo "$as_me: ***" >&6;}
22155 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
22156 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
22157 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22158 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22159 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
22160 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
22161 exit 1
22167 if test "${USE_UNIXODBC}" != "no"; then
22168 pbxlibdir=""
22169 if test "x${UNIXODBC_DIR}" != "x"; then
22170 if test -d ${UNIXODBC_DIR}/lib; then
22171 pbxlibdir="-L${UNIXODBC_DIR}/lib"
22172 else
22173 pbxlibdir="-L${UNIXODBC_DIR}"
22176 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
22177 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
22178 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181 ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lodbc ${pbxlibdir} $LIBS"
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h. */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22190 /* Override any GCC internal prototype to avoid an error.
22191 Use char because int might match the return type of a GCC
22192 builtin and then its argument prototype would still apply. */
22193 #ifdef __cplusplus
22194 extern "C"
22195 #endif
22196 char SQLConnect ();
22198 main ()
22200 return SQLConnect ();
22202 return 0;
22204 _ACEOF
22205 rm -f conftest.$ac_objext conftest$ac_exeext
22206 if { (ac_try="$ac_link"
22207 case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22210 esac
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_link") 2>conftest.er1
22213 ac_status=$?
22214 grep -v '^ *+' conftest.er1 >conftest.err
22215 rm -f conftest.er1
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } && {
22219 test -z "$ac_c_werror_flag" ||
22220 test ! -s conftest.err
22221 } && test -s conftest$ac_exeext &&
22222 $as_test_x conftest$ac_exeext; then
22223 ac_cv_lib_odbc_SQLConnect=yes
22224 else
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ac_cv_lib_odbc_SQLConnect=no
22231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22232 conftest$ac_exeext conftest.$ac_ext
22233 LIBS=$ac_check_lib_save_LIBS
22235 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22236 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22237 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22238 AST_UNIXODBC_FOUND=yes
22239 else
22240 AST_UNIXODBC_FOUND=no
22244 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22245 UNIXODBC_LIB="-lodbc "
22246 UNIXODBC_HEADER_FOUND="1"
22247 if test "x${UNIXODBC_DIR}" != "x"; then
22248 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22249 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
22250 saved_cppflags="${CPPFLAGS}"
22251 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
22252 if test "xsql.h" != "x" ; then
22253 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
22254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22255 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22256 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 ac_res=`eval echo '${'$as_ac_Header'}'`
22261 { echo "$as_me:$LINENO: result: $ac_res" >&5
22262 echo "${ECHO_T}$ac_res" >&6; }
22263 else
22264 # Is the header compilable?
22265 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
22266 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h. */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22274 #include <${UNIXODBC_DIR}/include/sql.h>
22275 _ACEOF
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_compile") 2>conftest.er1
22284 ac_status=$?
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest.$ac_objext; then
22293 ac_header_compiler=yes
22294 else
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ac_header_compiler=no
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
22307 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22309 /* confdefs.h. */
22310 _ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314 #include <${UNIXODBC_DIR}/include/sql.h>
22315 _ACEOF
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev/null && {
22329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22331 }; then
22332 ac_header_preproc=yes
22333 else
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_header_preproc=no
22340 rm -f conftest.err conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22344 # So? What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22346 yes:no: )
22347 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
22351 ac_header_preproc=yes
22353 no:yes:* )
22354 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
22368 esac
22369 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22370 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374 eval "$as_ac_Header=\$ac_header_preproc"
22376 ac_res=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22382 UNIXODBC_HEADER_FOUND=1
22383 else
22384 UNIXODBC_HEADER_FOUND=0
22389 CPPFLAGS="${saved_cppflags}"
22390 else
22391 if test "xsql.h" != "x" ; then
22392 if test "${ac_cv_header_sql_h+set}" = set; then
22393 { echo "$as_me:$LINENO: checking for sql.h" >&5
22394 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22395 if test "${ac_cv_header_sql_h+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22399 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22400 else
22401 # Is the header compilable?
22402 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22403 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22411 #include <sql.h>
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_compile") 2>conftest.er1
22421 ac_status=$?
22422 grep -v '^ *+' conftest.er1 >conftest.err
22423 rm -f conftest.er1
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest.$ac_objext; then
22430 ac_header_compiler=yes
22431 else
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 ac_header_compiler=no
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22440 echo "${ECHO_T}$ac_header_compiler" >&6; }
22442 # Is the header present?
22443 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22444 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h. */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 #include <sql.h>
22452 _ACEOF
22453 if { (ac_try="$ac_cpp conftest.$ac_ext"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } >/dev/null && {
22466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 }; then
22469 ac_header_preproc=yes
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_header_preproc=no
22477 rm -f conftest.err conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22479 echo "${ECHO_T}$ac_header_preproc" >&6; }
22481 # So? What about this header?
22482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22483 yes:no: )
22484 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22485 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22486 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22487 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22488 ac_header_preproc=yes
22490 no:yes:* )
22491 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22492 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22494 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22496 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22498 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22499 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22500 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22502 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22505 esac
22506 { echo "$as_me:$LINENO: checking for sql.h" >&5
22507 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22508 if test "${ac_cv_header_sql_h+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510 else
22511 ac_cv_header_sql_h=$ac_header_preproc
22513 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22514 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22517 if test $ac_cv_header_sql_h = yes; then
22518 UNIXODBC_HEADER_FOUND=1
22519 else
22520 UNIXODBC_HEADER_FOUND=0
22526 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22527 if test -n "${UNIXODBC_MANDATORY}" ;
22528 then
22529 { echo "$as_me:$LINENO: ***" >&5
22530 echo "$as_me: ***" >&6;}
22531 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22532 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22533 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22534 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22535 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22536 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22537 exit 1
22539 UNIXODBC_LIB=""
22540 UNIXODBC_INCLUDE=""
22541 PBX_UNIXODBC=0
22542 else
22543 PBX_UNIXODBC=1
22545 cat >>confdefs.h <<_ACEOF
22546 #define HAVE_UNIXODBC 1
22547 _ACEOF
22550 elif test -n "${UNIXODBC_MANDATORY}";
22551 then
22552 { echo "$as_me:$LINENO: ***" >&5
22553 echo "$as_me: ***" >&6;}
22554 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22555 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22556 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22557 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22558 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22559 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22560 exit 1
22566 if test "${USE_OGG}" != "no"; then
22567 pbxlibdir=""
22568 if test "x${OGG_DIR}" != "x"; then
22569 if test -d ${OGG_DIR}/lib; then
22570 pbxlibdir="-L${OGG_DIR}/lib"
22571 else
22572 pbxlibdir="-L${OGG_DIR}"
22575 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22576 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22577 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 else
22580 ac_check_lib_save_LIBS=$LIBS
22581 LIBS="-logg ${pbxlibdir} $LIBS"
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22589 /* Override any GCC internal prototype to avoid an error.
22590 Use char because int might match the return type of a GCC
22591 builtin and then its argument prototype would still apply. */
22592 #ifdef __cplusplus
22593 extern "C"
22594 #endif
22595 char ogg_sync_init ();
22597 main ()
22599 return ogg_sync_init ();
22601 return 0;
22603 _ACEOF
22604 rm -f conftest.$ac_objext conftest$ac_exeext
22605 if { (ac_try="$ac_link"
22606 case "(($ac_try" in
22607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608 *) ac_try_echo=$ac_try;;
22609 esac
22610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611 (eval "$ac_link") 2>conftest.er1
22612 ac_status=$?
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } && {
22618 test -z "$ac_c_werror_flag" ||
22619 test ! -s conftest.err
22620 } && test -s conftest$ac_exeext &&
22621 $as_test_x conftest$ac_exeext; then
22622 ac_cv_lib_ogg_ogg_sync_init=yes
22623 else
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_cv_lib_ogg_ogg_sync_init=no
22630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22631 conftest$ac_exeext conftest.$ac_ext
22632 LIBS=$ac_check_lib_save_LIBS
22634 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22635 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22636 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22637 AST_OGG_FOUND=yes
22638 else
22639 AST_OGG_FOUND=no
22643 if test "${AST_OGG_FOUND}" = "yes"; then
22644 OGG_LIB="-logg "
22645 OGG_HEADER_FOUND="1"
22646 if test "x${OGG_DIR}" != "x"; then
22647 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
22648 OGG_INCLUDE="-I${OGG_DIR}/include"
22649 saved_cppflags="${CPPFLAGS}"
22650 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
22651 if test "x" != "x" ; then
22652 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
22653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22654 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22655 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 ac_res=`eval echo '${'$as_ac_Header'}'`
22660 { echo "$as_me:$LINENO: result: $ac_res" >&5
22661 echo "${ECHO_T}$ac_res" >&6; }
22662 else
22663 # Is the header compilable?
22664 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
22665 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 $ac_includes_default
22673 #include <${OGG_DIR}/include/>
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (ac_try="$ac_compile"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_compile") 2>conftest.er1
22683 ac_status=$?
22684 grep -v '^ *+' conftest.er1 >conftest.err
22685 rm -f conftest.er1
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } && {
22689 test -z "$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 } && test -s conftest.$ac_objext; then
22692 ac_header_compiler=yes
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22697 ac_header_compiler=no
22700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22702 echo "${ECHO_T}$ac_header_compiler" >&6; }
22704 # Is the header present?
22705 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
22706 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 #include <${OGG_DIR}/include/>
22714 _ACEOF
22715 if { (ac_try="$ac_cpp conftest.$ac_ext"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } >/dev/null && {
22728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22729 test ! -s conftest.err
22730 }; then
22731 ac_header_preproc=yes
22732 else
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 ac_header_preproc=no
22739 rm -f conftest.err conftest.$ac_ext
22740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22741 echo "${ECHO_T}$ac_header_preproc" >&6; }
22743 # So? What about this header?
22744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22745 yes:no: )
22746 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
22747 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
22748 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
22749 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
22750 ac_header_preproc=yes
22752 no:yes:* )
22753 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
22754 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
22755 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
22756 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
22758 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
22759 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
22760 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
22761 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
22762 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
22763 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
22764 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
22767 esac
22768 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22769 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773 eval "$as_ac_Header=\$ac_header_preproc"
22775 ac_res=`eval echo '${'$as_ac_Header'}'`
22776 { echo "$as_me:$LINENO: result: $ac_res" >&5
22777 echo "${ECHO_T}$ac_res" >&6; }
22780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22781 OGG_HEADER_FOUND=1
22782 else
22783 OGG_HEADER_FOUND=0
22788 CPPFLAGS="${saved_cppflags}"
22789 else
22790 if test "x" != "x" ; then
22791 if test "${ac_cv_header_+set}" = set; then
22792 { echo "$as_me:$LINENO: checking for " >&5
22793 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22794 if test "${ac_cv_header_+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22798 echo "${ECHO_T}$ac_cv_header_" >&6; }
22799 else
22800 # Is the header compilable?
22801 { echo "$as_me:$LINENO: checking usability" >&5
22802 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h. */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 $ac_includes_default
22810 #include <>
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22820 ac_status=$?
22821 grep -v '^ *+' conftest.er1 >conftest.err
22822 rm -f conftest.er1
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_header_compiler=yes
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_header_compiler=no
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22839 echo "${ECHO_T}$ac_header_compiler" >&6; }
22841 # Is the header present?
22842 { echo "$as_me:$LINENO: checking presence" >&5
22843 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22844 cat >conftest.$ac_ext <<_ACEOF
22845 /* confdefs.h. */
22846 _ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22850 #include <>
22851 _ACEOF
22852 if { (ac_try="$ac_cpp conftest.$ac_ext"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856 esac
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } >/dev/null && {
22865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 }; then
22868 ac_header_preproc=yes
22869 else
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ac_header_preproc=no
22876 rm -f conftest.err conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22878 echo "${ECHO_T}$ac_header_preproc" >&6; }
22880 # So? What about this header?
22881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 yes:no: )
22883 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22884 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22885 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22886 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22887 ac_header_preproc=yes
22889 no:yes:* )
22890 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22891 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22893 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22894 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22895 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22897 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22899 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22900 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22901 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22904 esac
22905 { echo "$as_me:$LINENO: checking for " >&5
22906 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22907 if test "${ac_cv_header_+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910 ac_cv_header_=$ac_header_preproc
22912 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22913 echo "${ECHO_T}$ac_cv_header_" >&6; }
22916 if test $ac_cv_header_ = yes; then
22917 OGG_HEADER_FOUND=1
22918 else
22919 OGG_HEADER_FOUND=0
22925 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
22926 if test -n "${OGG_MANDATORY}" ;
22927 then
22928 { echo "$as_me:$LINENO: ***" >&5
22929 echo "$as_me: ***" >&6;}
22930 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
22931 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
22932 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
22933 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
22934 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22935 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22936 exit 1
22938 OGG_LIB=""
22939 OGG_INCLUDE=""
22940 PBX_OGG=0
22941 else
22942 PBX_OGG=1
22944 cat >>confdefs.h <<_ACEOF
22945 #define HAVE_OGG 1
22946 _ACEOF
22949 elif test -n "${OGG_MANDATORY}";
22950 then
22951 { echo "$as_me:$LINENO: ***" >&5
22952 echo "$as_me: ***" >&6;}
22953 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
22954 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
22955 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22956 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22957 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
22958 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
22959 exit 1
22964 if test "${USE_OSS}" != "no"; then
22965 PBX_OSS=0
22966 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22967 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
22968 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
22969 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
22973 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
22974 else
22975 # Is the header compilable?
22976 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
22977 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
22978 cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h. */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22985 #include <linux/soundcard.h>
22986 _ACEOF
22987 rm -f conftest.$ac_objext
22988 if { (ac_try="$ac_compile"
22989 case "(($ac_try" in
22990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22991 *) ac_try_echo=$ac_try;;
22992 esac
22993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22994 (eval "$ac_compile") 2>conftest.er1
22995 ac_status=$?
22996 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1
22998 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && {
23001 test -z "$ac_c_werror_flag" ||
23002 test ! -s conftest.err
23003 } && test -s conftest.$ac_objext; then
23004 ac_header_compiler=yes
23005 else
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23009 ac_header_compiler=no
23012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23014 echo "${ECHO_T}$ac_header_compiler" >&6; }
23016 # Is the header present?
23017 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
23018 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
23019 cat >conftest.$ac_ext <<_ACEOF
23020 /* confdefs.h. */
23021 _ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h. */
23025 #include <linux/soundcard.h>
23026 _ACEOF
23027 if { (ac_try="$ac_cpp conftest.$ac_ext"
23028 case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23034 ac_status=$?
23035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } >/dev/null && {
23040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23041 test ! -s conftest.err
23042 }; then
23043 ac_header_preproc=yes
23044 else
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 ac_header_preproc=no
23051 rm -f conftest.err conftest.$ac_ext
23052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23053 echo "${ECHO_T}$ac_header_preproc" >&6; }
23055 # So? What about this header?
23056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23057 yes:no: )
23058 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23059 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
23061 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
23062 ac_header_preproc=yes
23064 no:yes:* )
23065 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
23066 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
23067 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
23068 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
23070 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23072 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23073 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
23074 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
23076 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
23079 esac
23080 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
23081 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
23082 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085 ac_cv_header_linux_soundcard_h=$ac_header_preproc
23087 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
23088 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
23091 if test $ac_cv_header_linux_soundcard_h = yes; then
23093 PBX_OSS=1
23095 cat >>confdefs.h <<_ACEOF
23096 #define HAVE_OSS 1
23097 _ACEOF
23103 if test "$PBX_OSS" = "0"; then
23104 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23105 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
23106 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
23107 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
23111 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23112 else
23113 # Is the header compilable?
23114 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
23115 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 $ac_includes_default
23123 #include <sys/soundcard.h>
23124 _ACEOF
23125 rm -f conftest.$ac_objext
23126 if { (ac_try="$ac_compile"
23127 case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_compile") 2>conftest.er1
23133 ac_status=$?
23134 grep -v '^ *+' conftest.er1 >conftest.err
23135 rm -f conftest.er1
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest.$ac_objext; then
23142 ac_header_compiler=yes
23143 else
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ac_header_compiler=no
23150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23152 echo "${ECHO_T}$ac_header_compiler" >&6; }
23154 # Is the header present?
23155 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
23156 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 #include <sys/soundcard.h>
23164 _ACEOF
23165 if { (ac_try="$ac_cpp conftest.$ac_ext"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } >/dev/null && {
23178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 }; then
23181 ac_header_preproc=yes
23182 else
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23186 ac_header_preproc=no
23189 rm -f conftest.err conftest.$ac_ext
23190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23191 echo "${ECHO_T}$ac_header_preproc" >&6; }
23193 # So? What about this header?
23194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23195 yes:no: )
23196 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23197 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23198 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
23199 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
23200 ac_header_preproc=yes
23202 no:yes:* )
23203 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
23204 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
23206 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
23207 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
23208 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
23209 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23210 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23211 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
23212 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
23213 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
23214 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
23217 esac
23218 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
23219 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
23220 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 else
23223 ac_cv_header_sys_soundcard_h=$ac_header_preproc
23225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
23226 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23229 if test $ac_cv_header_sys_soundcard_h = yes; then
23231 PBX_OSS=1
23233 cat >>confdefs.h <<_ACEOF
23234 #define HAVE_OSS 1
23235 _ACEOF
23242 if test "$PBX_OSS" = "0"; then
23244 if test "${USE_OSS}" != "no"; then
23245 pbxlibdir=""
23246 if test "x${OSS_DIR}" != "x"; then
23247 if test -d ${OSS_DIR}/lib; then
23248 pbxlibdir="-L${OSS_DIR}/lib"
23249 else
23250 pbxlibdir="-L${OSS_DIR}"
23253 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
23254 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
23255 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258 ac_check_lib_save_LIBS=$LIBS
23259 LIBS="-lossaudio ${pbxlibdir} $LIBS"
23260 cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h. */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23267 /* Override any GCC internal prototype to avoid an error.
23268 Use char because int might match the return type of a GCC
23269 builtin and then its argument prototype would still apply. */
23270 #ifdef __cplusplus
23271 extern "C"
23272 #endif
23273 char oss_ioctl_mixer ();
23275 main ()
23277 return oss_ioctl_mixer ();
23279 return 0;
23281 _ACEOF
23282 rm -f conftest.$ac_objext conftest$ac_exeext
23283 if { (ac_try="$ac_link"
23284 case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23287 esac
23288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_link") 2>conftest.er1
23290 ac_status=$?
23291 grep -v '^ *+' conftest.er1 >conftest.err
23292 rm -f conftest.er1
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } && {
23296 test -z "$ac_c_werror_flag" ||
23297 test ! -s conftest.err
23298 } && test -s conftest$ac_exeext &&
23299 $as_test_x conftest$ac_exeext; then
23300 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
23301 else
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
23308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23309 conftest$ac_exeext conftest.$ac_ext
23310 LIBS=$ac_check_lib_save_LIBS
23312 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
23313 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
23314 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
23315 AST_OSS_FOUND=yes
23316 else
23317 AST_OSS_FOUND=no
23321 if test "${AST_OSS_FOUND}" = "yes"; then
23322 OSS_LIB="-lossaudio "
23323 OSS_HEADER_FOUND="1"
23324 if test "x${OSS_DIR}" != "x"; then
23325 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
23326 OSS_INCLUDE="-I${OSS_DIR}/include"
23327 saved_cppflags="${CPPFLAGS}"
23328 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
23329 if test "xsoundcard.h" != "x" ; then
23330 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
23331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23332 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23333 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23337 ac_res=`eval echo '${'$as_ac_Header'}'`
23338 { echo "$as_me:$LINENO: result: $ac_res" >&5
23339 echo "${ECHO_T}$ac_res" >&6; }
23340 else
23341 # Is the header compilable?
23342 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
23343 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
23344 cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h. */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23350 $ac_includes_default
23351 #include <${OSS_DIR}/include/soundcard.h>
23352 _ACEOF
23353 rm -f conftest.$ac_objext
23354 if { (ac_try="$ac_compile"
23355 case "(($ac_try" in
23356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357 *) ac_try_echo=$ac_try;;
23358 esac
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360 (eval "$ac_compile") 2>conftest.er1
23361 ac_status=$?
23362 grep -v '^ *+' conftest.er1 >conftest.err
23363 rm -f conftest.er1
23364 cat conftest.err >&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } && {
23367 test -z "$ac_c_werror_flag" ||
23368 test ! -s conftest.err
23369 } && test -s conftest.$ac_objext; then
23370 ac_header_compiler=yes
23371 else
23372 echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23375 ac_header_compiler=no
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23380 echo "${ECHO_T}$ac_header_compiler" >&6; }
23382 # Is the header present?
23383 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
23384 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
23385 cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h. */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 #include <${OSS_DIR}/include/soundcard.h>
23392 _ACEOF
23393 if { (ac_try="$ac_cpp conftest.$ac_ext"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23400 ac_status=$?
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } >/dev/null && {
23406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 }; then
23409 ac_header_preproc=yes
23410 else
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 ac_header_preproc=no
23417 rm -f conftest.err conftest.$ac_ext
23418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23419 echo "${ECHO_T}$ac_header_preproc" >&6; }
23421 # So? What about this header?
23422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23423 yes:no: )
23424 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23425 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23426 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
23427 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
23428 ac_header_preproc=yes
23430 no:yes:* )
23431 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
23432 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
23433 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
23434 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
23436 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
23437 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23438 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23439 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
23440 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
23441 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
23442 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
23445 esac
23446 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23447 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
23450 else
23451 eval "$as_ac_Header=\$ac_header_preproc"
23453 ac_res=`eval echo '${'$as_ac_Header'}'`
23454 { echo "$as_me:$LINENO: result: $ac_res" >&5
23455 echo "${ECHO_T}$ac_res" >&6; }
23458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23459 OSS_HEADER_FOUND=1
23460 else
23461 OSS_HEADER_FOUND=0
23466 CPPFLAGS="${saved_cppflags}"
23467 else
23468 if test "xsoundcard.h" != "x" ; then
23469 if test "${ac_cv_header_soundcard_h+set}" = set; then
23470 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23471 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23472 if test "${ac_cv_header_soundcard_h+set}" = set; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23476 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23477 else
23478 # Is the header compilable?
23479 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
23480 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
23481 cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h. */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 $ac_includes_default
23488 #include <soundcard.h>
23489 _ACEOF
23490 rm -f conftest.$ac_objext
23491 if { (ac_try="$ac_compile"
23492 case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23495 esac
23496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } && {
23504 test -z "$ac_c_werror_flag" ||
23505 test ! -s conftest.err
23506 } && test -s conftest.$ac_objext; then
23507 ac_header_compiler=yes
23508 else
23509 echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23512 ac_header_compiler=no
23515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23517 echo "${ECHO_T}$ac_header_compiler" >&6; }
23519 # Is the header present?
23520 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
23521 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 #include <soundcard.h>
23529 _ACEOF
23530 if { (ac_try="$ac_cpp conftest.$ac_ext"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534 esac
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23537 ac_status=$?
23538 grep -v '^ *+' conftest.er1 >conftest.err
23539 rm -f conftest.er1
23540 cat conftest.err >&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } >/dev/null && {
23543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23544 test ! -s conftest.err
23545 }; then
23546 ac_header_preproc=yes
23547 else
23548 echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23551 ac_header_preproc=no
23554 rm -f conftest.err conftest.$ac_ext
23555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23556 echo "${ECHO_T}$ac_header_preproc" >&6; }
23558 # So? What about this header?
23559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23560 yes:no: )
23561 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23562 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
23564 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
23565 ac_header_preproc=yes
23567 no:yes:* )
23568 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
23569 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
23570 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
23571 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
23572 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
23573 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
23574 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23575 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23576 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
23577 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
23578 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
23579 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
23582 esac
23583 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23584 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23585 if test "${ac_cv_header_soundcard_h+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23588 ac_cv_header_soundcard_h=$ac_header_preproc
23590 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23591 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23594 if test $ac_cv_header_soundcard_h = yes; then
23595 OSS_HEADER_FOUND=1
23596 else
23597 OSS_HEADER_FOUND=0
23603 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
23604 if test -n "${OSS_MANDATORY}" ;
23605 then
23606 { echo "$as_me:$LINENO: ***" >&5
23607 echo "$as_me: ***" >&6;}
23608 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
23609 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
23610 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
23611 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
23612 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23613 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23614 exit 1
23616 OSS_LIB=""
23617 OSS_INCLUDE=""
23618 PBX_OSS=0
23619 else
23620 PBX_OSS=1
23622 cat >>confdefs.h <<_ACEOF
23623 #define HAVE_OSS 1
23624 _ACEOF
23627 elif test -n "${OSS_MANDATORY}";
23628 then
23629 { echo "$as_me:$LINENO: ***" >&5
23630 echo "$as_me: ***" >&6;}
23631 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23632 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23633 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23634 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23635 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23636 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23637 exit 1
23644 PG_CONFIG=No
23645 if test "${USE_PGSQL}" != "no"; then
23646 if test "x${PGSQL_DIR}" != "x"; then
23647 if test -n "$ac_tool_prefix"; then
23648 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23649 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23652 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23654 else
23655 case $PG_CONFIG in
23656 [\\/]* | ?:[\\/]*)
23657 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23661 for as_dir in ${PGSQL_DIR}/bin
23663 IFS=$as_save_IFS
23664 test -z "$as_dir" && as_dir=.
23665 for ac_exec_ext in '' $ac_executable_extensions; do
23666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23667 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23669 break 2
23671 done
23672 done
23673 IFS=$as_save_IFS
23676 esac
23678 PG_CONFIG=$ac_cv_path_PG_CONFIG
23679 if test -n "$PG_CONFIG"; then
23680 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23681 echo "${ECHO_T}$PG_CONFIG" >&6; }
23682 else
23683 { echo "$as_me:$LINENO: result: no" >&5
23684 echo "${ECHO_T}no" >&6; }
23689 if test -z "$ac_cv_path_PG_CONFIG"; then
23690 ac_pt_PG_CONFIG=$PG_CONFIG
23691 # Extract the first word of "pg_config", so it can be a program name with args.
23692 set dummy pg_config; ac_word=$2
23693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23695 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23697 else
23698 case $ac_pt_PG_CONFIG in
23699 [\\/]* | ?:[\\/]*)
23700 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23704 for as_dir in ${PGSQL_DIR}/bin
23706 IFS=$as_save_IFS
23707 test -z "$as_dir" && as_dir=.
23708 for ac_exec_ext in '' $ac_executable_extensions; do
23709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23710 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23712 break 2
23714 done
23715 done
23716 IFS=$as_save_IFS
23719 esac
23721 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23722 if test -n "$ac_pt_PG_CONFIG"; then
23723 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23724 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23725 else
23726 { echo "$as_me:$LINENO: result: no" >&5
23727 echo "${ECHO_T}no" >&6; }
23730 if test "x$ac_pt_PG_CONFIG" = x; then
23731 PG_CONFIG="No"
23732 else
23733 case $cross_compiling:$ac_tool_warned in
23734 yes:)
23735 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23736 whose name does not start with the host triplet. If you think this
23737 configuration is useful to you, please write to autoconf@gnu.org." >&5
23738 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23739 whose name does not start with the host triplet. If you think this
23740 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23741 ac_tool_warned=yes ;;
23742 esac
23743 PG_CONFIG=$ac_pt_PG_CONFIG
23745 else
23746 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23749 if test x"${PG_CONFIG}" = xNo; then
23750 { echo "$as_me:$LINENO: ***" >&5
23751 echo "$as_me: ***" >&6;}
23752 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
23753 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
23754 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
23755 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
23756 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23757 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23758 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23759 echo "$as_me: *** including --without-postgres" >&6;}
23760 exit 1
23762 else
23763 if test -n "$ac_tool_prefix"; then
23764 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23765 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23768 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23769 echo $ECHO_N "(cached) $ECHO_C" >&6
23770 else
23771 case $PG_CONFIG in
23772 [\\/]* | ?:[\\/]*)
23773 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23777 for as_dir in $PATH
23779 IFS=$as_save_IFS
23780 test -z "$as_dir" && as_dir=.
23781 for ac_exec_ext in '' $ac_executable_extensions; do
23782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23783 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23785 break 2
23787 done
23788 done
23789 IFS=$as_save_IFS
23792 esac
23794 PG_CONFIG=$ac_cv_path_PG_CONFIG
23795 if test -n "$PG_CONFIG"; then
23796 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23797 echo "${ECHO_T}$PG_CONFIG" >&6; }
23798 else
23799 { echo "$as_me:$LINENO: result: no" >&5
23800 echo "${ECHO_T}no" >&6; }
23805 if test -z "$ac_cv_path_PG_CONFIG"; then
23806 ac_pt_PG_CONFIG=$PG_CONFIG
23807 # Extract the first word of "pg_config", so it can be a program name with args.
23808 set dummy pg_config; ac_word=$2
23809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23811 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814 case $ac_pt_PG_CONFIG in
23815 [\\/]* | ?:[\\/]*)
23816 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
23819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23820 for as_dir in $PATH
23822 IFS=$as_save_IFS
23823 test -z "$as_dir" && as_dir=.
23824 for ac_exec_ext in '' $ac_executable_extensions; do
23825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23826 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23828 break 2
23830 done
23831 done
23832 IFS=$as_save_IFS
23835 esac
23837 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
23838 if test -n "$ac_pt_PG_CONFIG"; then
23839 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
23840 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
23841 else
23842 { echo "$as_me:$LINENO: result: no" >&5
23843 echo "${ECHO_T}no" >&6; }
23846 if test "x$ac_pt_PG_CONFIG" = x; then
23847 PG_CONFIG="No"
23848 else
23849 case $cross_compiling:$ac_tool_warned in
23850 yes:)
23851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23852 whose name does not start with the host triplet. If you think this
23853 configuration is useful to you, please write to autoconf@gnu.org." >&5
23854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23855 whose name does not start with the host triplet. If you think this
23856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23857 ac_tool_warned=yes ;;
23858 esac
23859 PG_CONFIG=$ac_pt_PG_CONFIG
23861 else
23862 PG_CONFIG="$ac_cv_path_PG_CONFIG"
23867 if test "${PG_CONFIG}" != No; then
23868 PGSQL_libdir=`${PG_CONFIG} --libdir`
23869 PGSQL_includedir=`${PG_CONFIG} --includedir`
23871 if test "x$?" != "x0" ; then
23872 if test -n "${PGSQL_MANDATORY}" ; then
23873 { echo "$as_me:$LINENO: ***" >&5
23874 echo "$as_me: ***" >&6;}
23875 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23876 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23877 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23878 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23879 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23880 echo "$as_me: *** including --without-postgres" >&6;}
23881 exit 1
23883 else
23884 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
23885 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
23886 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
23887 echo $ECHO_N "(cached) $ECHO_C" >&6
23888 else
23889 ac_check_lib_save_LIBS=$LIBS
23890 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
23891 cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h. */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23898 /* Override any GCC internal prototype to avoid an error.
23899 Use char because int might match the return type of a GCC
23900 builtin and then its argument prototype would still apply. */
23901 #ifdef __cplusplus
23902 extern "C"
23903 #endif
23904 char PQexec ();
23906 main ()
23908 return PQexec ();
23910 return 0;
23912 _ACEOF
23913 rm -f conftest.$ac_objext conftest$ac_exeext
23914 if { (ac_try="$ac_link"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_link") 2>conftest.er1
23921 ac_status=$?
23922 grep -v '^ *+' conftest.er1 >conftest.err
23923 rm -f conftest.er1
23924 cat conftest.err >&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); } && {
23927 test -z "$ac_c_werror_flag" ||
23928 test ! -s conftest.err
23929 } && test -s conftest$ac_exeext &&
23930 $as_test_x conftest$ac_exeext; then
23931 ac_cv_lib_pq_PQexec=yes
23932 else
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23936 ac_cv_lib_pq_PQexec=no
23939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23940 conftest$ac_exeext conftest.$ac_ext
23941 LIBS=$ac_check_lib_save_LIBS
23943 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
23944 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
23945 if test $ac_cv_lib_pq_PQexec = yes; then
23947 cat >>confdefs.h <<_ACEOF
23948 #define HAVE_PGSQL 1
23949 _ACEOF
23954 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
23955 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
23956 PGSQL_INCLUDE="-I${PGSQL_includedir}"
23957 PBX_PGSQL=1
23958 elif test -n "${PGSQL_MANDATORY}";
23959 then
23960 { echo "$as_me:$LINENO: ***" >&5
23961 echo "$as_me: ***" >&6;}
23962 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23963 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23964 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23965 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23966 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23967 echo "$as_me: *** including --without-postgres" >&6;}
23968 exit 1
23971 elif test -n "${PGSQL_MANDATORY}";
23972 then
23973 { echo "$as_me:$LINENO: ***" >&5
23974 echo "$as_me: ***" >&6;}
23975 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
23976 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
23977 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23978 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23979 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
23980 echo "$as_me: *** including --without-postgres" >&6;}
23981 exit 1
23985 if test "${USE_POPT}" != "no"; then
23986 pbxlibdir=""
23987 if test "x${POPT_DIR}" != "x"; then
23988 if test -d ${POPT_DIR}/lib; then
23989 pbxlibdir="-L${POPT_DIR}/lib"
23990 else
23991 pbxlibdir="-L${POPT_DIR}"
23994 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
23995 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
23996 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999 ac_check_lib_save_LIBS=$LIBS
24000 LIBS="-lpopt ${pbxlibdir} $LIBS"
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h. */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24008 /* Override any GCC internal prototype to avoid an error.
24009 Use char because int might match the return type of a GCC
24010 builtin and then its argument prototype would still apply. */
24011 #ifdef __cplusplus
24012 extern "C"
24013 #endif
24014 char poptStrerror ();
24016 main ()
24018 return poptStrerror ();
24020 return 0;
24022 _ACEOF
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (ac_try="$ac_link"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24028 esac
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_link") 2>conftest.er1
24031 ac_status=$?
24032 grep -v '^ *+' conftest.er1 >conftest.err
24033 rm -f conftest.er1
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } && {
24037 test -z "$ac_c_werror_flag" ||
24038 test ! -s conftest.err
24039 } && test -s conftest$ac_exeext &&
24040 $as_test_x conftest$ac_exeext; then
24041 ac_cv_lib_popt_poptStrerror=yes
24042 else
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24046 ac_cv_lib_popt_poptStrerror=no
24049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24050 conftest$ac_exeext conftest.$ac_ext
24051 LIBS=$ac_check_lib_save_LIBS
24053 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
24054 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
24055 if test $ac_cv_lib_popt_poptStrerror = yes; then
24056 AST_POPT_FOUND=yes
24057 else
24058 AST_POPT_FOUND=no
24062 if test "${AST_POPT_FOUND}" = "yes"; then
24063 POPT_LIB="-lpopt "
24064 POPT_HEADER_FOUND="1"
24065 if test "x${POPT_DIR}" != "x"; then
24066 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
24067 POPT_INCLUDE="-I${POPT_DIR}/include"
24068 saved_cppflags="${CPPFLAGS}"
24069 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
24070 if test "xpopt.h" != "x" ; then
24071 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
24072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24073 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
24074 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
24075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 ac_res=`eval echo '${'$as_ac_Header'}'`
24079 { echo "$as_me:$LINENO: result: $ac_res" >&5
24080 echo "${ECHO_T}$ac_res" >&6; }
24081 else
24082 # Is the header compilable?
24083 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
24084 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 $ac_includes_default
24092 #include <${POPT_DIR}/include/popt.h>
24093 _ACEOF
24094 rm -f conftest.$ac_objext
24095 if { (ac_try="$ac_compile"
24096 case "(($ac_try" in
24097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24098 *) ac_try_echo=$ac_try;;
24099 esac
24100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24101 (eval "$ac_compile") 2>conftest.er1
24102 ac_status=$?
24103 grep -v '^ *+' conftest.er1 >conftest.err
24104 rm -f conftest.er1
24105 cat conftest.err >&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); } && {
24108 test -z "$ac_c_werror_flag" ||
24109 test ! -s conftest.err
24110 } && test -s conftest.$ac_objext; then
24111 ac_header_compiler=yes
24112 else
24113 echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24116 ac_header_compiler=no
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24121 echo "${ECHO_T}$ac_header_compiler" >&6; }
24123 # Is the header present?
24124 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
24125 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
24126 cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h. */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24132 #include <${POPT_DIR}/include/popt.h>
24133 _ACEOF
24134 if { (ac_try="$ac_cpp conftest.$ac_ext"
24135 case "(($ac_try" in
24136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24141 ac_status=$?
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } >/dev/null && {
24147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24148 test ! -s conftest.err
24149 }; then
24150 ac_header_preproc=yes
24151 else
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 ac_header_preproc=no
24158 rm -f conftest.err conftest.$ac_ext
24159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24160 echo "${ECHO_T}$ac_header_preproc" >&6; }
24162 # So? What about this header?
24163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24164 yes:no: )
24165 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24166 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24167 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
24168 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
24169 ac_header_preproc=yes
24171 no:yes:* )
24172 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
24173 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
24174 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
24175 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
24176 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
24177 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
24178 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
24179 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24180 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
24181 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
24182 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
24183 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
24186 esac
24187 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
24188 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
24189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24190 echo $ECHO_N "(cached) $ECHO_C" >&6
24191 else
24192 eval "$as_ac_Header=\$ac_header_preproc"
24194 ac_res=`eval echo '${'$as_ac_Header'}'`
24195 { echo "$as_me:$LINENO: result: $ac_res" >&5
24196 echo "${ECHO_T}$ac_res" >&6; }
24199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24200 POPT_HEADER_FOUND=1
24201 else
24202 POPT_HEADER_FOUND=0
24207 CPPFLAGS="${saved_cppflags}"
24208 else
24209 if test "xpopt.h" != "x" ; then
24210 if test "${ac_cv_header_popt_h+set}" = set; then
24211 { echo "$as_me:$LINENO: checking for popt.h" >&5
24212 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24213 if test "${ac_cv_header_popt_h+set}" = set; then
24214 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24217 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24218 else
24219 # Is the header compilable?
24220 { echo "$as_me:$LINENO: checking popt.h usability" >&5
24221 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
24222 cat >conftest.$ac_ext <<_ACEOF
24223 /* confdefs.h. */
24224 _ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h. */
24228 $ac_includes_default
24229 #include <popt.h>
24230 _ACEOF
24231 rm -f conftest.$ac_objext
24232 if { (ac_try="$ac_compile"
24233 case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24236 esac
24237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_compile") 2>conftest.er1
24239 ac_status=$?
24240 grep -v '^ *+' conftest.er1 >conftest.err
24241 rm -f conftest.er1
24242 cat conftest.err >&5
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } && {
24245 test -z "$ac_c_werror_flag" ||
24246 test ! -s conftest.err
24247 } && test -s conftest.$ac_objext; then
24248 ac_header_compiler=yes
24249 else
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ac_header_compiler=no
24256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24258 echo "${ECHO_T}$ac_header_compiler" >&6; }
24260 # Is the header present?
24261 { echo "$as_me:$LINENO: checking popt.h presence" >&5
24262 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
24263 cat >conftest.$ac_ext <<_ACEOF
24264 /* confdefs.h. */
24265 _ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24269 #include <popt.h>
24270 _ACEOF
24271 if { (ac_try="$ac_cpp conftest.$ac_ext"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24278 ac_status=$?
24279 grep -v '^ *+' conftest.er1 >conftest.err
24280 rm -f conftest.er1
24281 cat conftest.err >&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } >/dev/null && {
24284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24285 test ! -s conftest.err
24286 }; then
24287 ac_header_preproc=yes
24288 else
24289 echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24292 ac_header_preproc=no
24295 rm -f conftest.err conftest.$ac_ext
24296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24297 echo "${ECHO_T}$ac_header_preproc" >&6; }
24299 # So? What about this header?
24300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24301 yes:no: )
24302 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24303 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24304 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
24305 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
24306 ac_header_preproc=yes
24308 no:yes:* )
24309 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
24310 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
24311 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
24312 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
24313 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
24314 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
24315 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
24316 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24317 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
24318 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
24319 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
24320 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
24323 esac
24324 { echo "$as_me:$LINENO: checking for popt.h" >&5
24325 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24326 if test "${ac_cv_header_popt_h+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24328 else
24329 ac_cv_header_popt_h=$ac_header_preproc
24331 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24332 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24335 if test $ac_cv_header_popt_h = yes; then
24336 POPT_HEADER_FOUND=1
24337 else
24338 POPT_HEADER_FOUND=0
24344 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
24345 if test -n "${POPT_MANDATORY}" ;
24346 then
24347 { echo "$as_me:$LINENO: ***" >&5
24348 echo "$as_me: ***" >&6;}
24349 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
24350 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
24351 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
24352 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
24353 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24354 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24355 exit 1
24357 POPT_LIB=""
24358 POPT_INCLUDE=""
24359 PBX_POPT=0
24360 else
24361 PBX_POPT=1
24363 cat >>confdefs.h <<_ACEOF
24364 #define HAVE_POPT 1
24365 _ACEOF
24368 elif test -n "${POPT_MANDATORY}";
24369 then
24370 { echo "$as_me:$LINENO: ***" >&5
24371 echo "$as_me: ***" >&6;}
24372 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
24373 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
24374 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24375 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24376 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24377 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24378 exit 1
24384 if test "${USE_PRI}" != "no"; then
24385 pbxlibdir=""
24386 if test "x${PRI_DIR}" != "x"; then
24387 if test -d ${PRI_DIR}/lib; then
24388 pbxlibdir="-L${PRI_DIR}/lib"
24389 else
24390 pbxlibdir="-L${PRI_DIR}"
24393 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
24394 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
24395 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24397 else
24398 ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lpri ${pbxlibdir} $LIBS"
24400 cat >conftest.$ac_ext <<_ACEOF
24401 /* confdefs.h. */
24402 _ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24410 #ifdef __cplusplus
24411 extern "C"
24412 #endif
24413 char pri_keypad_facility ();
24415 main ()
24417 return pri_keypad_facility ();
24419 return 0;
24421 _ACEOF
24422 rm -f conftest.$ac_objext conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24427 esac
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429 (eval "$ac_link") 2>conftest.er1
24430 ac_status=$?
24431 grep -v '^ *+' conftest.er1 >conftest.err
24432 rm -f conftest.er1
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } && {
24436 test -z "$ac_c_werror_flag" ||
24437 test ! -s conftest.err
24438 } && test -s conftest$ac_exeext &&
24439 $as_test_x conftest$ac_exeext; then
24440 ac_cv_lib_pri_pri_keypad_facility=yes
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_cv_lib_pri_pri_keypad_facility=no
24448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24449 conftest$ac_exeext conftest.$ac_ext
24450 LIBS=$ac_check_lib_save_LIBS
24452 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
24453 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
24454 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
24455 AST_PRI_FOUND=yes
24456 else
24457 AST_PRI_FOUND=no
24461 if test "${AST_PRI_FOUND}" = "yes"; then
24462 PRI_LIB="-lpri "
24463 PRI_HEADER_FOUND="1"
24464 if test "x${PRI_DIR}" != "x"; then
24465 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
24466 PRI_INCLUDE="-I${PRI_DIR}/include"
24467 saved_cppflags="${CPPFLAGS}"
24468 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
24469 if test "xlibpri.h" != "x" ; then
24470 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
24471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24472 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24473 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 ac_res=`eval echo '${'$as_ac_Header'}'`
24478 { echo "$as_me:$LINENO: result: $ac_res" >&5
24479 echo "${ECHO_T}$ac_res" >&6; }
24480 else
24481 # Is the header compilable?
24482 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
24483 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
24484 cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h. */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 $ac_includes_default
24491 #include <${PRI_DIR}/include/libpri.h>
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
24510 ac_header_compiler=yes
24511 else
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24515 ac_header_compiler=no
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24520 echo "${ECHO_T}$ac_header_compiler" >&6; }
24522 # Is the header present?
24523 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
24524 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
24525 cat >conftest.$ac_ext <<_ACEOF
24526 /* confdefs.h. */
24527 _ACEOF
24528 cat confdefs.h >>conftest.$ac_ext
24529 cat >>conftest.$ac_ext <<_ACEOF
24530 /* end confdefs.h. */
24531 #include <${PRI_DIR}/include/libpri.h>
24532 _ACEOF
24533 if { (ac_try="$ac_cpp conftest.$ac_ext"
24534 case "(($ac_try" in
24535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24537 esac
24538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24540 ac_status=$?
24541 grep -v '^ *+' conftest.er1 >conftest.err
24542 rm -f conftest.er1
24543 cat conftest.err >&5
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } >/dev/null && {
24546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24547 test ! -s conftest.err
24548 }; then
24549 ac_header_preproc=yes
24550 else
24551 echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24554 ac_header_preproc=no
24557 rm -f conftest.err conftest.$ac_ext
24558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24559 echo "${ECHO_T}$ac_header_preproc" >&6; }
24561 # So? What about this header?
24562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24563 yes:no: )
24564 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24565 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24566 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
24567 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
24568 ac_header_preproc=yes
24570 no:yes:* )
24571 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
24572 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
24573 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
24574 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
24575 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
24576 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24578 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24579 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
24580 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
24581 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
24582 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
24585 esac
24586 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24587 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24589 echo $ECHO_N "(cached) $ECHO_C" >&6
24590 else
24591 eval "$as_ac_Header=\$ac_header_preproc"
24593 ac_res=`eval echo '${'$as_ac_Header'}'`
24594 { echo "$as_me:$LINENO: result: $ac_res" >&5
24595 echo "${ECHO_T}$ac_res" >&6; }
24598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24599 PRI_HEADER_FOUND=1
24600 else
24601 PRI_HEADER_FOUND=0
24606 CPPFLAGS="${saved_cppflags}"
24607 else
24608 if test "xlibpri.h" != "x" ; then
24609 if test "${ac_cv_header_libpri_h+set}" = set; then
24610 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24611 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24612 if test "${ac_cv_header_libpri_h+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24616 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24617 else
24618 # Is the header compilable?
24619 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24620 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h. */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24627 $ac_includes_default
24628 #include <libpri.h>
24629 _ACEOF
24630 rm -f conftest.$ac_objext
24631 if { (ac_try="$ac_compile"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_compile") 2>conftest.er1
24638 ac_status=$?
24639 grep -v '^ *+' conftest.er1 >conftest.err
24640 rm -f conftest.er1
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest.$ac_objext; then
24647 ac_header_compiler=yes
24648 else
24649 echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24652 ac_header_compiler=no
24655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24657 echo "${ECHO_T}$ac_header_compiler" >&6; }
24659 # Is the header present?
24660 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24661 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24662 cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h. */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 #include <libpri.h>
24669 _ACEOF
24670 if { (ac_try="$ac_cpp conftest.$ac_ext"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24677 ac_status=$?
24678 grep -v '^ *+' conftest.er1 >conftest.err
24679 rm -f conftest.er1
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } >/dev/null && {
24683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24684 test ! -s conftest.err
24685 }; then
24686 ac_header_preproc=yes
24687 else
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_header_preproc=no
24694 rm -f conftest.err conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24696 echo "${ECHO_T}$ac_header_preproc" >&6; }
24698 # So? What about this header?
24699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24700 yes:no: )
24701 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24702 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24703 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
24704 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
24705 ac_header_preproc=yes
24707 no:yes:* )
24708 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
24709 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
24711 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
24712 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
24713 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24715 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
24717 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
24719 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
24722 esac
24723 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24724 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24725 if test "${ac_cv_header_libpri_h+set}" = set; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 else
24728 ac_cv_header_libpri_h=$ac_header_preproc
24730 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24731 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24734 if test $ac_cv_header_libpri_h = yes; then
24735 PRI_HEADER_FOUND=1
24736 else
24737 PRI_HEADER_FOUND=0
24743 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
24744 if test -n "${PRI_MANDATORY}" ;
24745 then
24746 { echo "$as_me:$LINENO: ***" >&5
24747 echo "$as_me: ***" >&6;}
24748 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
24749 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
24750 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
24751 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
24752 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24753 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24754 exit 1
24756 PRI_LIB=""
24757 PRI_INCLUDE=""
24758 PBX_PRI=0
24759 else
24760 PBX_PRI=1
24762 cat >>confdefs.h <<_ACEOF
24763 #define HAVE_PRI 1
24764 _ACEOF
24767 elif test -n "${PRI_MANDATORY}";
24768 then
24769 { echo "$as_me:$LINENO: ***" >&5
24770 echo "$as_me: ***" >&6;}
24771 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
24772 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
24773 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24774 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24775 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
24776 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
24777 exit 1
24782 if test "${USE_PWLIB}" != "no"; then
24783 if test -n "${PWLIB_DIR}"; then
24784 PWLIBDIR="${PWLIB_DIR}"
24788 PWLIB_INCDIR=
24789 PWLIB_LIBDIR=
24790 ac_ext=cpp
24791 ac_cpp='$CXXCPP $CPPFLAGS'
24792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24796 if test "${PWLIBDIR:-unset}" != "unset" ; then
24797 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
24798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24799 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24800 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24802 echo $ECHO_N "(cached) $ECHO_C" >&6
24804 ac_res=`eval echo '${'$as_ac_Header'}'`
24805 { echo "$as_me:$LINENO: result: $ac_res" >&5
24806 echo "${ECHO_T}$ac_res" >&6; }
24807 else
24808 # Is the header compilable?
24809 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
24810 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
24811 cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h. */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 $ac_includes_default
24818 #include <${PWLIBDIR}/version.h>
24819 _ACEOF
24820 rm -f conftest.$ac_objext
24821 if { (ac_try="$ac_compile"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24825 esac
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_compile") 2>conftest.er1
24828 ac_status=$?
24829 grep -v '^ *+' conftest.er1 >conftest.err
24830 rm -f conftest.er1
24831 cat conftest.err >&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } && {
24834 test -z "$ac_cxx_werror_flag" ||
24835 test ! -s conftest.err
24836 } && test -s conftest.$ac_objext; then
24837 ac_header_compiler=yes
24838 else
24839 echo "$as_me: failed program was:" >&5
24840 sed 's/^/| /' conftest.$ac_ext >&5
24842 ac_header_compiler=no
24845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24847 echo "${ECHO_T}$ac_header_compiler" >&6; }
24849 # Is the header present?
24850 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
24851 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
24852 cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h. */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24858 #include <${PWLIBDIR}/version.h>
24859 _ACEOF
24860 if { (ac_try="$ac_cpp conftest.$ac_ext"
24861 case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24864 esac
24865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24867 ac_status=$?
24868 grep -v '^ *+' conftest.er1 >conftest.err
24869 rm -f conftest.er1
24870 cat conftest.err >&5
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); } >/dev/null && {
24873 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24874 test ! -s conftest.err
24875 }; then
24876 ac_header_preproc=yes
24877 else
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24881 ac_header_preproc=no
24884 rm -f conftest.err conftest.$ac_ext
24885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24886 echo "${ECHO_T}$ac_header_preproc" >&6; }
24888 # So? What about this header?
24889 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24890 yes:no: )
24891 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
24892 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24893 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
24894 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
24895 ac_header_preproc=yes
24897 no:yes:* )
24898 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
24899 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
24900 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
24901 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
24902 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
24903 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
24905 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
24907 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
24909 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
24912 esac
24913 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
24914 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
24915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918 eval "$as_ac_Header=\$ac_header_preproc"
24920 ac_res=`eval echo '${'$as_ac_Header'}'`
24921 { echo "$as_me:$LINENO: result: $ac_res" >&5
24922 echo "${ECHO_T}$ac_res" >&6; }
24925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24926 HAS_PWLIB=1
24931 if test "${HAS_PWLIB:-unset}" = "unset" ; then
24932 if test "${OPENH323DIR:-unset}" != "unset"; then
24933 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
24934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24935 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
24936 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
24937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 ac_res=`eval echo '${'$as_ac_Header'}'`
24941 { echo "$as_me:$LINENO: result: $ac_res" >&5
24942 echo "${ECHO_T}$ac_res" >&6; }
24943 else
24944 # Is the header compilable?
24945 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
24946 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
24947 cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h. */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953 $ac_includes_default
24954 #include <${OPENH323DIR}/../pwlib/version.h>
24955 _ACEOF
24956 rm -f conftest.$ac_objext
24957 if { (ac_try="$ac_compile"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_compile") 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_cxx_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest.$ac_objext; then
24973 ac_header_compiler=yes
24974 else
24975 echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24978 ac_header_compiler=no
24981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24983 echo "${ECHO_T}$ac_header_compiler" >&6; }
24985 # Is the header present?
24986 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
24987 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
24988 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h. */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24994 #include <${OPENH323DIR}/../pwlib/version.h>
24995 _ACEOF
24996 if { (ac_try="$ac_cpp conftest.$ac_ext"
24997 case "(($ac_try" in
24998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24999 *) ac_try_echo=$ac_try;;
25000 esac
25001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25003 ac_status=$?
25004 grep -v '^ *+' conftest.er1 >conftest.err
25005 rm -f conftest.er1
25006 cat conftest.err >&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); } >/dev/null && {
25009 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25010 test ! -s conftest.err
25011 }; then
25012 ac_header_preproc=yes
25013 else
25014 echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 ac_header_preproc=no
25020 rm -f conftest.err conftest.$ac_ext
25021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25022 echo "${ECHO_T}$ac_header_preproc" >&6; }
25024 # So? What about this header?
25025 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25026 yes:no: )
25027 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25028 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25029 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
25030 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
25031 ac_header_preproc=yes
25033 no:yes:* )
25034 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
25035 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
25037 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
25038 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
25039 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
25040 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
25041 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25042 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
25043 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
25044 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
25045 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
25048 esac
25049 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
25050 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
25051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 else
25054 eval "$as_ac_Header=\$ac_header_preproc"
25056 ac_res=`eval echo '${'$as_ac_Header'}'`
25057 { echo "$as_me:$LINENO: result: $ac_res" >&5
25058 echo "${ECHO_T}$ac_res" >&6; }
25061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25062 HAS_PWLIB=1
25067 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25068 PWLIBDIR="${OPENH323DIR}/../pwlib"
25069 else
25070 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
25071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25072 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
25073 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
25074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 ac_res=`eval echo '${'$as_ac_Header'}'`
25078 { echo "$as_me:$LINENO: result: $ac_res" >&5
25079 echo "${ECHO_T}$ac_res" >&6; }
25080 else
25081 # Is the header compilable?
25082 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
25083 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
25084 cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h. */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h. */
25090 $ac_includes_default
25091 #include <${HOME}/pwlib/include/ptlib.h>
25092 _ACEOF
25093 rm -f conftest.$ac_objext
25094 if { (ac_try="$ac_compile"
25095 case "(($ac_try" in
25096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097 *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100 (eval "$ac_compile") 2>conftest.er1
25101 ac_status=$?
25102 grep -v '^ *+' conftest.er1 >conftest.err
25103 rm -f conftest.er1
25104 cat conftest.err >&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } && {
25107 test -z "$ac_cxx_werror_flag" ||
25108 test ! -s conftest.err
25109 } && test -s conftest.$ac_objext; then
25110 ac_header_compiler=yes
25111 else
25112 echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25115 ac_header_compiler=no
25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25120 echo "${ECHO_T}$ac_header_compiler" >&6; }
25122 # Is the header present?
25123 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
25124 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
25125 cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h. */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h. */
25131 #include <${HOME}/pwlib/include/ptlib.h>
25132 _ACEOF
25133 if { (ac_try="$ac_cpp conftest.$ac_ext"
25134 case "(($ac_try" in
25135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25136 *) ac_try_echo=$ac_try;;
25137 esac
25138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25140 ac_status=$?
25141 grep -v '^ *+' conftest.er1 >conftest.err
25142 rm -f conftest.er1
25143 cat conftest.err >&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } >/dev/null && {
25146 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25147 test ! -s conftest.err
25148 }; then
25149 ac_header_preproc=yes
25150 else
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25154 ac_header_preproc=no
25157 rm -f conftest.err conftest.$ac_ext
25158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25159 echo "${ECHO_T}$ac_header_preproc" >&6; }
25161 # So? What about this header?
25162 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25163 yes:no: )
25164 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25165 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
25167 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
25168 ac_header_preproc=yes
25170 no:yes:* )
25171 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
25172 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
25173 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
25174 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25175 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
25176 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
25177 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25178 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25179 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
25180 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25181 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
25182 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25185 esac
25186 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
25187 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
25188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25190 else
25191 eval "$as_ac_Header=\$ac_header_preproc"
25193 ac_res=`eval echo '${'$as_ac_Header'}'`
25194 { echo "$as_me:$LINENO: result: $ac_res" >&5
25195 echo "${ECHO_T}$ac_res" >&6; }
25198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25199 HAS_PWLIB=1
25203 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25204 PWLIBDIR="${HOME}/pwlib"
25205 else
25206 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25207 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
25208 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
25209 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25210 echo $ECHO_N "(cached) $ECHO_C" >&6
25212 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25213 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25214 else
25215 # Is the header compilable?
25216 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
25217 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
25218 cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h. */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h. */
25224 $ac_includes_default
25225 #include </usr/local/include/ptlib.h>
25226 _ACEOF
25227 rm -f conftest.$ac_objext
25228 if { (ac_try="$ac_compile"
25229 case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232 esac
25233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_compile") 2>conftest.er1
25235 ac_status=$?
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_cxx_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest.$ac_objext; then
25244 ac_header_compiler=yes
25245 else
25246 echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25249 ac_header_compiler=no
25252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25254 echo "${ECHO_T}$ac_header_compiler" >&6; }
25256 # Is the header present?
25257 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
25258 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
25259 cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h. */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h. */
25265 #include </usr/local/include/ptlib.h>
25266 _ACEOF
25267 if { (ac_try="$ac_cpp conftest.$ac_ext"
25268 case "(($ac_try" in
25269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270 *) ac_try_echo=$ac_try;;
25271 esac
25272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25274 ac_status=$?
25275 grep -v '^ *+' conftest.er1 >conftest.err
25276 rm -f conftest.er1
25277 cat conftest.err >&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } >/dev/null && {
25280 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25281 test ! -s conftest.err
25282 }; then
25283 ac_header_preproc=yes
25284 else
25285 echo "$as_me: failed program was:" >&5
25286 sed 's/^/| /' conftest.$ac_ext >&5
25288 ac_header_preproc=no
25291 rm -f conftest.err conftest.$ac_ext
25292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25293 echo "${ECHO_T}$ac_header_preproc" >&6; }
25295 # So? What about this header?
25296 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25297 yes:no: )
25298 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25299 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25300 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
25301 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
25302 ac_header_preproc=yes
25304 no:yes:* )
25305 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
25306 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
25307 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
25308 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25309 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
25310 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
25311 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25312 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25313 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
25314 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25315 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
25316 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25319 esac
25320 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
25321 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
25322 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25323 echo $ECHO_N "(cached) $ECHO_C" >&6
25324 else
25325 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
25327 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25328 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25331 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25332 HAS_PWLIB=1
25336 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25337 # Extract the first word of "ptlib-config", so it can be a program name with args.
25338 set dummy ptlib-config; ac_word=$2
25339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25341 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25343 else
25344 case $PTLIB_CONFIG in
25345 [\\/]* | ?:[\\/]*)
25346 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25350 for as_dir in /usr/local/bin
25352 IFS=$as_save_IFS
25353 test -z "$as_dir" && as_dir=.
25354 for ac_exec_ext in '' $ac_executable_extensions; do
25355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25356 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25358 break 2
25360 done
25361 done
25362 IFS=$as_save_IFS
25365 esac
25367 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25368 if test -n "$PTLIB_CONFIG"; then
25369 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25370 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25371 else
25372 { echo "$as_me:$LINENO: result: no" >&5
25373 echo "${ECHO_T}no" >&6; }
25377 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25378 # Extract the first word of "ptlib-config", so it can be a program name with args.
25379 set dummy ptlib-config; ac_word=$2
25380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25382 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 else
25385 case $PTLIB_CONFIG in
25386 [\\/]* | ?:[\\/]*)
25387 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25391 for as_dir in /usr/local/share/pwlib/make
25393 IFS=$as_save_IFS
25394 test -z "$as_dir" && as_dir=.
25395 for ac_exec_ext in '' $ac_executable_extensions; do
25396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25397 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25399 break 2
25401 done
25402 done
25403 IFS=$as_save_IFS
25406 esac
25408 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25409 if test -n "$PTLIB_CONFIG"; then
25410 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25411 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25412 else
25413 { echo "$as_me:$LINENO: result: no" >&5
25414 echo "${ECHO_T}no" >&6; }
25419 PWLIB_INCDIR="/usr/local/include"
25420 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25421 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25422 if test "x$LIB64" != "x"; then
25423 PWLIB_LIBDIR="/usr/local/lib64"
25424 else
25425 PWLIB_LIBDIR="/usr/local/lib"
25428 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25429 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25430 else
25431 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25432 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25433 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25434 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25437 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25438 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25439 else
25440 # Is the header compilable?
25441 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
25442 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
25443 cat >conftest.$ac_ext <<_ACEOF
25444 /* confdefs.h. */
25445 _ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 $ac_includes_default
25450 #include </usr/include/ptlib.h>
25451 _ACEOF
25452 rm -f conftest.$ac_objext
25453 if { (ac_try="$ac_compile"
25454 case "(($ac_try" in
25455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456 *) ac_try_echo=$ac_try;;
25457 esac
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459 (eval "$ac_compile") 2>conftest.er1
25460 ac_status=$?
25461 grep -v '^ *+' conftest.er1 >conftest.err
25462 rm -f conftest.er1
25463 cat conftest.err >&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } && {
25466 test -z "$ac_cxx_werror_flag" ||
25467 test ! -s conftest.err
25468 } && test -s conftest.$ac_objext; then
25469 ac_header_compiler=yes
25470 else
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 ac_header_compiler=no
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25479 echo "${ECHO_T}$ac_header_compiler" >&6; }
25481 # Is the header present?
25482 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
25483 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
25484 cat >conftest.$ac_ext <<_ACEOF
25485 /* confdefs.h. */
25486 _ACEOF
25487 cat confdefs.h >>conftest.$ac_ext
25488 cat >>conftest.$ac_ext <<_ACEOF
25489 /* end confdefs.h. */
25490 #include </usr/include/ptlib.h>
25491 _ACEOF
25492 if { (ac_try="$ac_cpp conftest.$ac_ext"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25499 ac_status=$?
25500 grep -v '^ *+' conftest.er1 >conftest.err
25501 rm -f conftest.er1
25502 cat conftest.err >&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } >/dev/null && {
25505 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25506 test ! -s conftest.err
25507 }; then
25508 ac_header_preproc=yes
25509 else
25510 echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25513 ac_header_preproc=no
25516 rm -f conftest.err conftest.$ac_ext
25517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25518 echo "${ECHO_T}$ac_header_preproc" >&6; }
25520 # So? What about this header?
25521 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25522 yes:no: )
25523 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25524 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
25526 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
25527 ac_header_preproc=yes
25529 no:yes:* )
25530 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
25531 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
25533 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
25535 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25537 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25538 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
25539 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25540 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
25541 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25544 esac
25545 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25546 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25547 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
25549 else
25550 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
25552 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25553 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25556 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25557 HAS_PWLIB=1
25561 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25562 # Extract the first word of "ptlib-config", so it can be a program name with args.
25563 set dummy ptlib-config; ac_word=$2
25564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25566 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 else
25569 case $PTLIB_CONFIG in
25570 [\\/]* | ?:[\\/]*)
25571 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25575 for as_dir in /usr/share/pwlib/make
25577 IFS=$as_save_IFS
25578 test -z "$as_dir" && as_dir=.
25579 for ac_exec_ext in '' $ac_executable_extensions; do
25580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25581 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25583 break 2
25585 done
25586 done
25587 IFS=$as_save_IFS
25590 esac
25592 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25593 if test -n "$PTLIB_CONFIG"; then
25594 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25595 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25596 else
25597 { echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6; }
25602 PWLIB_INCDIR="/usr/include"
25603 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25604 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25605 if test "x$LIB64" != "x"; then
25606 PWLIB_LIBDIR="/usr/lib64"
25607 else
25608 PWLIB_LIBDIR="/usr/lib"
25611 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25612 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25619 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25620 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
25621 # exit
25624 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25625 if test "${PWLIBDIR:-unset}" = "unset" ; then
25626 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25627 PWLIBDIR=`$PTLIB_CONFIG --prefix`
25628 else
25629 echo "Cannot find ptlib-config - please install and try again"
25630 exit
25634 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
25635 PWLIBDIR="/usr/share/pwlib"
25636 PWLIB_INCDIR="/usr/include"
25637 if test "x$LIB64" != "x"; then
25638 PWLIB_LIBDIR="/usr/lib64"
25639 else
25640 PWLIB_LIBDIR="/usr/lib"
25643 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
25644 PWLIBDIR="/usr/local/share/pwlib"
25645 PWLIB_INCDIR="/usr/local/include"
25646 if test "x$LIB64" != "x"; then
25647 PWLIB_LIBDIR="/usr/local/lib64"
25648 else
25649 PWLIB_LIBDIR="/usr/local/lib"
25653 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
25654 PWLIB_INCDIR="${PWLIBDIR}/include"
25656 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25657 PWLIB_LIBDIR="${PWLIBDIR}/lib"
25664 ac_ext=c
25665 ac_cpp='$CPP $CPPFLAGS'
25666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25672 if test "${HAS_PWLIB:-unset}" != "unset"; then
25673 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
25674 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
25675 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
25676 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
25677 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
25678 let PWLIB_REQ=1*10000+9*100+2
25680 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
25681 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
25682 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
25683 { echo "$as_me:$LINENO: result: no" >&5
25684 echo "${ECHO_T}no" >&6; }
25685 unset HAS_PWLIB
25686 else
25687 { echo "$as_me:$LINENO: result: yes" >&5
25688 echo "${ECHO_T}yes" >&6; }
25693 if test "${HAS_PWLIB:-unset}" != "unset"; then
25695 PWLIB_OSTYPE=
25696 case "$host_os" in
25697 linux*) PWLIB_OSTYPE=linux ;
25699 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
25701 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
25702 ENDLDLIBS="-lossaudio" ;
25704 netbsd* ) PWLIB_OSTYPE=NetBSD ;
25705 ENDLDLIBS="-lossaudio" ;
25707 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
25709 darwin* ) PWLIB_OSTYPE=Darwin ;
25711 beos*) PWLIB_OSTYPE=beos ;
25712 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
25714 cygwin*) PWLIB_OSTYPE=cygwin ;
25716 mingw*) PWLIB_OSTYPE=mingw ;
25717 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
25718 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
25720 * ) PWLIB_OSTYPE="$host_os" ;
25721 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
25722 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
25724 esac
25726 PWLIB_MACHTYPE=
25727 case "$host_cpu" in
25728 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
25731 x86_64) PWLIB_MACHTYPE=x86_64 ;
25732 P_64BIT=1 ;
25733 LIB64=1 ;
25736 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
25737 P_64BIT=1 ;
25740 sparc ) PWLIB_MACHTYPE=sparc ;
25743 powerpc ) PWLIB_MACHTYPE=ppc ;
25746 ppc ) PWLIB_MACHTYPE=ppc ;
25749 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
25750 P_64BIT=1 ;
25751 LIB64=1 ;
25754 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
25755 P_64BIT=1 ;
25756 LIB64=1 ;
25759 ia64) PWLIB_MACHTYPE=ia64 ;
25760 P_64BIT=1 ;
25763 s390x) PWLIB_MACHTYPE=s390x ;
25764 P_64BIT=1 ;
25765 LIB64=1 ;
25768 s390) PWLIB_MACHTYPE=s390 ;
25771 * ) PWLIB_MACHTYPE="$host_cpu";
25772 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
25773 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
25774 esac
25776 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
25781 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
25784 if test "${HAS_PWLIB:-unset}" != "unset"; then
25785 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
25786 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
25788 saved_cppflags="${CPPFLAGS}"
25789 saved_libs="${LIBS}"
25790 if test "${PWLIB_LIB:-unset}" != "unset"; then
25791 LIBS="${LIBS} ${PWLIB_LIB} "
25792 else
25793 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
25795 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
25797 ac_ext=cpp
25798 ac_cpp='$CXXCPP $CPPFLAGS'
25799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25804 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h. */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25810 #include "ptlib.h"
25812 main ()
25814 BOOL q = PTime::IsDaylightSavings();
25816 return 0;
25818 _ACEOF
25819 rm -f conftest.$ac_objext conftest$ac_exeext
25820 if { (ac_try="$ac_link"
25821 case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25824 esac
25825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25826 (eval "$ac_link") 2>conftest.er1
25827 ac_status=$?
25828 grep -v '^ *+' conftest.er1 >conftest.err
25829 rm -f conftest.er1
25830 cat conftest.err >&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); } && {
25833 test -z "$ac_cxx_werror_flag" ||
25834 test ! -s conftest.err
25835 } && test -s conftest$ac_exeext &&
25836 $as_test_x conftest$ac_exeext; then
25837 { echo "$as_me:$LINENO: result: yes" >&5
25838 echo "${ECHO_T}yes" >&6; }
25839 ac_cv_lib_PWLIB="yes"
25841 else
25842 echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25845 { echo "$as_me:$LINENO: result: no" >&5
25846 echo "${ECHO_T}no" >&6; }
25847 ac_cv_lib_PWLIB="no"
25852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25853 conftest$ac_exeext conftest.$ac_ext
25855 ac_ext=c
25856 ac_cpp='$CPP $CPPFLAGS'
25857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25862 LIBS="${saved_libs}"
25863 CPPFLAGS="${saved_cppflags}"
25865 if test "${ac_cv_lib_PWLIB}" = "yes"; then
25866 if test "${PWLIB_LIB:-undef}" = "undef"; then
25867 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
25868 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
25869 else
25870 PWLIB_LIB="-l${PLATFORM_PWLIB}"
25873 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
25874 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
25876 PBX_PWLIB=1
25878 cat >>confdefs.h <<\_ACEOF
25879 #define HAVE_PWLIB 1
25880 _ACEOF
25888 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
25889 { echo "$as_me:$LINENO: ***" >&5
25890 echo "$as_me: ***" >&6;}
25891 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
25892 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
25893 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25894 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25895 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
25896 echo "$as_me: *** including --without-pwlib" >&6;}
25897 exit 1
25900 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
25901 if test -n "${OPENH323_DIR}"; then
25902 OPENH323DIR="${OPENH323_DIR}"
25905 OPENH323_INCDIR=
25906 OPENH323_LIBDIR=
25907 ac_ext=cpp
25908 ac_cpp='$CXXCPP $CPPFLAGS'
25909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25913 if test "${OPENH323DIR:-unset}" != "unset" ; then
25914 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
25915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25916 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
25917 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
25918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25919 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 ac_res=`eval echo '${'$as_ac_Header'}'`
25922 { echo "$as_me:$LINENO: result: $ac_res" >&5
25923 echo "${ECHO_T}$ac_res" >&6; }
25924 else
25925 # Is the header compilable?
25926 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
25927 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
25928 cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h. */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25934 $ac_includes_default
25935 #include <${OPENH323DIR}/version.h>
25936 _ACEOF
25937 rm -f conftest.$ac_objext
25938 if { (ac_try="$ac_compile"
25939 case "(($ac_try" in
25940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941 *) ac_try_echo=$ac_try;;
25942 esac
25943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944 (eval "$ac_compile") 2>conftest.er1
25945 ac_status=$?
25946 grep -v '^ *+' conftest.er1 >conftest.err
25947 rm -f conftest.er1
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } && {
25951 test -z "$ac_cxx_werror_flag" ||
25952 test ! -s conftest.err
25953 } && test -s conftest.$ac_objext; then
25954 ac_header_compiler=yes
25955 else
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25959 ac_header_compiler=no
25962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25964 echo "${ECHO_T}$ac_header_compiler" >&6; }
25966 # Is the header present?
25967 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
25968 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
25969 cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h. */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 #include <${OPENH323DIR}/version.h>
25976 _ACEOF
25977 if { (ac_try="$ac_cpp conftest.$ac_ext"
25978 case "(($ac_try" in
25979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980 *) ac_try_echo=$ac_try;;
25981 esac
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25984 ac_status=$?
25985 grep -v '^ *+' conftest.er1 >conftest.err
25986 rm -f conftest.er1
25987 cat conftest.err >&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } >/dev/null && {
25990 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25991 test ! -s conftest.err
25992 }; then
25993 ac_header_preproc=yes
25994 else
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 ac_header_preproc=no
26001 rm -f conftest.err conftest.$ac_ext
26002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26003 echo "${ECHO_T}$ac_header_preproc" >&6; }
26005 # So? What about this header?
26006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26007 yes:no: )
26008 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26009 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26010 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
26011 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
26012 ac_header_preproc=yes
26014 no:yes:* )
26015 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
26016 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
26017 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
26018 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
26019 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
26020 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
26021 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26022 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26023 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
26024 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
26025 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
26026 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
26029 esac
26030 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
26031 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
26032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26033 echo $ECHO_N "(cached) $ECHO_C" >&6
26034 else
26035 eval "$as_ac_Header=\$ac_header_preproc"
26037 ac_res=`eval echo '${'$as_ac_Header'}'`
26038 { echo "$as_me:$LINENO: result: $ac_res" >&5
26039 echo "${ECHO_T}$ac_res" >&6; }
26042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26043 HAS_OPENH323=1
26048 if test "${HAS_OPENH323:-unset}" = "unset" ; then
26049 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
26050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26051 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26052 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 ac_res=`eval echo '${'$as_ac_Header'}'`
26057 { echo "$as_me:$LINENO: result: $ac_res" >&5
26058 echo "${ECHO_T}$ac_res" >&6; }
26059 else
26060 # Is the header compilable?
26061 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
26062 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
26063 cat >conftest.$ac_ext <<_ACEOF
26064 /* confdefs.h. */
26065 _ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 $ac_includes_default
26070 #include <${PWLIBDIR}/../openh323/version.h>
26071 _ACEOF
26072 rm -f conftest.$ac_objext
26073 if { (ac_try="$ac_compile"
26074 case "(($ac_try" in
26075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076 *) ac_try_echo=$ac_try;;
26077 esac
26078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26079 (eval "$ac_compile") 2>conftest.er1
26080 ac_status=$?
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } && {
26086 test -z "$ac_cxx_werror_flag" ||
26087 test ! -s conftest.err
26088 } && test -s conftest.$ac_objext; then
26089 ac_header_compiler=yes
26090 else
26091 echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26094 ac_header_compiler=no
26097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26099 echo "${ECHO_T}$ac_header_compiler" >&6; }
26101 # Is the header present?
26102 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
26103 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
26104 cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h. */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h. */
26110 #include <${PWLIBDIR}/../openh323/version.h>
26111 _ACEOF
26112 if { (ac_try="$ac_cpp conftest.$ac_ext"
26113 case "(($ac_try" in
26114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115 *) ac_try_echo=$ac_try;;
26116 esac
26117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26119 ac_status=$?
26120 grep -v '^ *+' conftest.er1 >conftest.err
26121 rm -f conftest.er1
26122 cat conftest.err >&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } >/dev/null && {
26125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26126 test ! -s conftest.err
26127 }; then
26128 ac_header_preproc=yes
26129 else
26130 echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26133 ac_header_preproc=no
26136 rm -f conftest.err conftest.$ac_ext
26137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26138 echo "${ECHO_T}$ac_header_preproc" >&6; }
26140 # So? What about this header?
26141 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26142 yes:no: )
26143 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26144 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26145 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
26146 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
26147 ac_header_preproc=yes
26149 no:yes:* )
26150 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
26151 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
26153 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
26155 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
26156 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
26157 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26158 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
26159 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
26160 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
26161 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
26164 esac
26165 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26166 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26168 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 else
26170 eval "$as_ac_Header=\$ac_header_preproc"
26172 ac_res=`eval echo '${'$as_ac_Header'}'`
26173 { echo "$as_me:$LINENO: result: $ac_res" >&5
26174 echo "${ECHO_T}$ac_res" >&6; }
26177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26178 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
26182 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26183 OPENH323DIR="${PWLIBDIR}/../openh323"
26184 saved_cppflags="${CPPFLAGS}"
26185 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
26186 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
26187 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
26188 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
26189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192 cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h. */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198 #include <ptlib.h>
26200 #include <${OPENH323DIR}/include/h323.h>
26201 _ACEOF
26202 rm -f conftest.$ac_objext
26203 if { (ac_try="$ac_compile"
26204 case "(($ac_try" in
26205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206 *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209 (eval "$ac_compile") 2>conftest.er1
26210 ac_status=$?
26211 grep -v '^ *+' conftest.er1 >conftest.err
26212 rm -f conftest.er1
26213 cat conftest.err >&5
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } && {
26216 test -z "$ac_cxx_werror_flag" ||
26217 test ! -s conftest.err
26218 } && test -s conftest.$ac_objext; then
26219 eval "$as_ac_Header=yes"
26220 else
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 eval "$as_ac_Header=no"
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26229 ac_res=`eval echo '${'$as_ac_Header'}'`
26230 { echo "$as_me:$LINENO: result: $ac_res" >&5
26231 echo "${ECHO_T}$ac_res" >&6; }
26232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26234 else
26235 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
26239 CPPFLAGS="${saved_cppflags}"
26240 else
26241 saved_cppflags="${CPPFLAGS}"
26242 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
26243 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
26244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26245 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26246 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26248 echo $ECHO_N "(cached) $ECHO_C" >&6
26250 ac_res=`eval echo '${'$as_ac_Header'}'`
26251 { echo "$as_me:$LINENO: result: $ac_res" >&5
26252 echo "${ECHO_T}$ac_res" >&6; }
26253 else
26254 # Is the header compilable?
26255 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
26256 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
26257 cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h. */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26263 $ac_includes_default
26264 #include <${HOME}/openh323/include/h323.h>
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26271 esac
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_compile") 2>conftest.er1
26274 ac_status=$?
26275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } && {
26280 test -z "$ac_cxx_werror_flag" ||
26281 test ! -s conftest.err
26282 } && test -s conftest.$ac_objext; then
26283 ac_header_compiler=yes
26284 else
26285 echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26288 ac_header_compiler=no
26291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26293 echo "${ECHO_T}$ac_header_compiler" >&6; }
26295 # Is the header present?
26296 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
26297 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
26298 cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h. */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26304 #include <${HOME}/openh323/include/h323.h>
26305 _ACEOF
26306 if { (ac_try="$ac_cpp conftest.$ac_ext"
26307 case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } >/dev/null && {
26319 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26320 test ! -s conftest.err
26321 }; then
26322 ac_header_preproc=yes
26323 else
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 ac_header_preproc=no
26330 rm -f conftest.err conftest.$ac_ext
26331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26332 echo "${ECHO_T}$ac_header_preproc" >&6; }
26334 # So? What about this header?
26335 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26336 yes:no: )
26337 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26338 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26339 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
26340 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
26341 ac_header_preproc=yes
26343 no:yes:* )
26344 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26345 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26346 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26347 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26348 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26349 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26350 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26351 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26352 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
26353 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
26354 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26355 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26358 esac
26359 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26360 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364 eval "$as_ac_Header=\$ac_header_preproc"
26366 ac_res=`eval echo '${'$as_ac_Header'}'`
26367 { echo "$as_me:$LINENO: result: $ac_res" >&5
26368 echo "${ECHO_T}$ac_res" >&6; }
26371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26372 HAS_OPENH323=1
26376 CPPFLAGS="${saved_cppflags}"
26377 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26378 OPENH323DIR="${HOME}/openh323"
26379 else
26380 saved_cppflags="${CPPFLAGS}"
26381 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26382 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26383 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26384 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26385 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26388 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26389 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26390 else
26391 # Is the header compilable?
26392 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26393 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26394 cat >conftest.$ac_ext <<_ACEOF
26395 /* confdefs.h. */
26396 _ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h. */
26400 $ac_includes_default
26401 #include </usr/local/include/openh323/h323.h>
26402 _ACEOF
26403 rm -f conftest.$ac_objext
26404 if { (ac_try="$ac_compile"
26405 case "(($ac_try" in
26406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26407 *) ac_try_echo=$ac_try;;
26408 esac
26409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26410 (eval "$ac_compile") 2>conftest.er1
26411 ac_status=$?
26412 grep -v '^ *+' conftest.er1 >conftest.err
26413 rm -f conftest.er1
26414 cat conftest.err >&5
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); } && {
26417 test -z "$ac_cxx_werror_flag" ||
26418 test ! -s conftest.err
26419 } && test -s conftest.$ac_objext; then
26420 ac_header_compiler=yes
26421 else
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ac_header_compiler=no
26428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26430 echo "${ECHO_T}$ac_header_compiler" >&6; }
26432 # Is the header present?
26433 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26434 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26435 cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h. */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26441 #include </usr/local/include/openh323/h323.h>
26442 _ACEOF
26443 if { (ac_try="$ac_cpp conftest.$ac_ext"
26444 case "(($ac_try" in
26445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446 *) ac_try_echo=$ac_try;;
26447 esac
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26450 ac_status=$?
26451 grep -v '^ *+' conftest.er1 >conftest.err
26452 rm -f conftest.er1
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } >/dev/null && {
26456 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26457 test ! -s conftest.err
26458 }; then
26459 ac_header_preproc=yes
26460 else
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_header_preproc=no
26467 rm -f conftest.err conftest.$ac_ext
26468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26469 echo "${ECHO_T}$ac_header_preproc" >&6; }
26471 # So? What about this header?
26472 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26473 yes:no: )
26474 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26475 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26476 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
26477 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
26478 ac_header_preproc=yes
26480 no:yes:* )
26481 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26482 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26484 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26486 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26487 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26488 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26489 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
26490 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
26491 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26492 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26495 esac
26496 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26497 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26498 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 else
26501 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
26503 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26504 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26507 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26508 HAS_OPENH323=1
26512 CPPFLAGS="${saved_cppflags}"
26513 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26514 OPENH323DIR="/usr/local/share/openh323"
26515 OPENH323_INCDIR="/usr/local/include/openh323"
26516 if test "x$LIB64" != "x"; then
26517 OPENH323_LIBDIR="/usr/local/lib64"
26518 else
26519 OPENH323_LIBDIR="/usr/local/lib"
26521 else
26522 saved_cppflags="${CPPFLAGS}"
26523 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26524 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26525 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26526 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26528 else
26529 cat >conftest.$ac_ext <<_ACEOF
26530 /* confdefs.h. */
26531 _ACEOF
26532 cat confdefs.h >>conftest.$ac_ext
26533 cat >>conftest.$ac_ext <<_ACEOF
26534 /* end confdefs.h. */
26535 #include <ptlib.h>
26537 #include </usr/include/openh323/h323.h>
26538 _ACEOF
26539 rm -f conftest.$ac_objext
26540 if { (ac_try="$ac_compile"
26541 case "(($ac_try" in
26542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26543 *) ac_try_echo=$ac_try;;
26544 esac
26545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26546 (eval "$ac_compile") 2>conftest.er1
26547 ac_status=$?
26548 grep -v '^ *+' conftest.er1 >conftest.err
26549 rm -f conftest.er1
26550 cat conftest.err >&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } && {
26553 test -z "$ac_cxx_werror_flag" ||
26554 test ! -s conftest.err
26555 } && test -s conftest.$ac_objext; then
26556 ac_cv_header__usr_include_openh323_h323_h=yes
26557 else
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 ac_cv_header__usr_include_openh323_h323_h=no
26564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26567 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26568 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26569 HAS_OPENH323=1
26573 CPPFLAGS="${saved_cppflags}"
26574 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26575 OPENH323DIR="/usr/share/openh323"
26576 OPENH323_INCDIR="/usr/include/openh323"
26577 if test "x$LIB64" != "x"; then
26578 OPENH323_LIBDIR="/usr/lib64"
26579 else
26580 OPENH323_LIBDIR="/usr/lib"
26588 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26589 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26590 OPENH323_INCDIR="${OPENH323DIR}/include"
26592 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26593 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26596 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26597 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26598 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26604 ac_ext=c
26605 ac_cpp='$CPP $CPPFLAGS'
26606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26612 if test "${HAS_OPENH323:-unset}" != "unset"; then
26613 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26614 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
26615 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
26616 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
26617 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
26618 let OPENH323_REQ=1*10000+17*100+3
26620 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
26621 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26622 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
26623 { echo "$as_me:$LINENO: result: no" >&5
26624 echo "${ECHO_T}no" >&6; }
26625 unset HAS_OPENH323
26626 else
26627 { echo "$as_me:$LINENO: result: yes" >&5
26628 echo "${ECHO_T}yes" >&6; }
26633 if test "${HAS_OPENH323:-unset}" != "unset"; then
26634 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
26635 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
26636 OPENH323_SUFFIX=
26637 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
26638 for pfx in $prefixes; do
26639 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
26640 libfile=
26641 if test -n "$files"; then
26642 for f in $files; do
26643 if test -f $f -a ! -L $f; then
26644 libfile=`basename $f`
26645 break;
26647 done
26649 if test -n "$libfile"; then
26650 OPENH323_PREFIX=$pfx
26651 break;
26653 done
26654 if test "${libfile:-unset}" != "unset"; then
26655 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
26657 case "${OPENH323_SUFFIX}" in
26659 OPENH323_BUILD="notrace";;
26661 OPENH323_BUILD="opt";;
26663 OPENH323_BUILD="debug";;
26665 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
26666 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
26667 if test "x$notrace" = "x"; then
26668 notrace="0"
26670 if test "$notrace" -ne 0; then
26671 OPENH323_BUILD="notrace"
26672 else
26673 OPENH323_BUILD="opt"
26675 OPENH323_LIB="-l${OPENH323_PREFIX}"
26676 else
26677 OPENH323_BUILD="notrace"
26680 esac
26681 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
26682 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
26688 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
26690 if test "${HAS_OPENH323:-unset}" != "unset"; then
26691 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
26692 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
26694 saved_cppflags="${CPPFLAGS}"
26695 saved_libs="${LIBS}"
26696 if test "${OPENH323_LIB:-unset}" != "unset"; then
26697 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
26698 else
26699 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
26701 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
26703 ac_ext=cpp
26704 ac_cpp='$CXXCPP $CPPFLAGS'
26705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26710 cat >conftest.$ac_ext <<_ACEOF
26711 /* confdefs.h. */
26712 _ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h. */
26716 #include "ptlib.h"
26717 #include "h323.h"
26718 #include "h323ep.h"
26720 main ()
26722 H323EndPoint ep = H323EndPoint();
26724 return 0;
26726 _ACEOF
26727 rm -f conftest.$ac_objext conftest$ac_exeext
26728 if { (ac_try="$ac_link"
26729 case "(($ac_try" in
26730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731 *) ac_try_echo=$ac_try;;
26732 esac
26733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26734 (eval "$ac_link") 2>conftest.er1
26735 ac_status=$?
26736 grep -v '^ *+' conftest.er1 >conftest.err
26737 rm -f conftest.er1
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } && {
26741 test -z "$ac_cxx_werror_flag" ||
26742 test ! -s conftest.err
26743 } && test -s conftest$ac_exeext &&
26744 $as_test_x conftest$ac_exeext; then
26745 { echo "$as_me:$LINENO: result: yes" >&5
26746 echo "${ECHO_T}yes" >&6; }
26747 ac_cv_lib_OPENH323="yes"
26749 else
26750 echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26753 { echo "$as_me:$LINENO: result: no" >&5
26754 echo "${ECHO_T}no" >&6; }
26755 ac_cv_lib_OPENH323="no"
26760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26761 conftest$ac_exeext conftest.$ac_ext
26763 ac_ext=c
26764 ac_cpp='$CPP $CPPFLAGS'
26765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26770 LIBS="${saved_libs}"
26771 CPPFLAGS="${saved_cppflags}"
26773 if test "${ac_cv_lib_OPENH323}" = "yes"; then
26774 if test "${OPENH323_LIB:-undef}" = "undef"; then
26775 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
26776 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
26777 else
26778 OPENH323_LIB="-l${PLATFORM_OPENH323}"
26781 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
26782 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
26784 PBX_OPENH323=1
26786 cat >>confdefs.h <<\_ACEOF
26787 #define HAVE_OPENH323 1
26788 _ACEOF
26794 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
26795 { echo "$as_me:$LINENO: ***" >&5
26796 echo "$as_me: ***" >&6;}
26797 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
26798 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
26799 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26800 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26801 { echo "$as_me:$LINENO: *** including --without-h323" >&5
26802 echo "$as_me: *** including --without-h323" >&6;}
26803 exit 1
26807 ac_ext=cpp
26808 ac_cpp='$CXXCPP $CPPFLAGS'
26809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26814 if test "${USE_QT}" != "no"; then
26815 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
26816 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
26817 saved_libs="${LIBS}"
26818 saved_cppflags="${CPPFLAGS}"
26819 if test "x${QT_DIR}" != "x"; then
26820 LIBS="${LIBS} -L${QT_DIR}/lib"
26821 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
26823 LIBS="${LIBS} -lqt"
26824 qtlib="qt"
26825 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h. */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h. */
26832 #include <qt3/qdatetime.h>
26834 main ()
26836 QDate date();
26838 return 0;
26841 _ACEOF
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (ac_try="$ac_link"
26844 case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26847 esac
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849 (eval "$ac_link") 2>conftest.er1
26850 ac_status=$?
26851 grep -v '^ *+' conftest.er1 >conftest.err
26852 rm -f conftest.er1
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } && {
26856 test -z "$ac_cxx_werror_flag" ||
26857 test ! -s conftest.err
26858 } && test -s conftest$ac_exeext &&
26859 $as_test_x conftest$ac_exeext; then
26860 ac_cv_lib_qt_qt_date="yes"
26861 else
26862 echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26865 ac_cv_lib_qt_qt_date="no"
26868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869 conftest$ac_exeext conftest.$ac_ext
26870 LIBS="${saved_libs}"
26871 CPPFLAGS="${saved_cppflags}"
26873 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
26874 saved_libs="${LIBS}"
26875 saved_cppflags="${CPPFLAGS}"
26876 if test "x${QT_DIR}" != "x"; then
26877 LIBS="${LIBS} -L${QT_DIR}/lib"
26878 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
26880 LIBS="${LIBS} -lqt-mt"
26881 qtlib="qt-mt"
26882 cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h. */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26889 #include <qt3/qdatetime.h>
26891 main ()
26893 QDate date();
26895 return 0;
26898 _ACEOF
26899 rm -f conftest.$ac_objext conftest$ac_exeext
26900 if { (ac_try="$ac_link"
26901 case "(($ac_try" in
26902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903 *) ac_try_echo=$ac_try;;
26904 esac
26905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26906 (eval "$ac_link") 2>conftest.er1
26907 ac_status=$?
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } && {
26913 test -z "$ac_cxx_werror_flag" ||
26914 test ! -s conftest.err
26915 } && test -s conftest$ac_exeext &&
26916 $as_test_x conftest$ac_exeext; then
26917 ac_cv_lib_qt_qt_date="yes"
26918 else
26919 echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26922 ac_cv_lib_qt_qt_date="no"
26925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26926 conftest$ac_exeext conftest.$ac_ext
26927 LIBS="${saved_libs}"
26928 CPPFLAGS="${saved_cppflags}"
26931 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
26932 { echo "$as_me:$LINENO: result: yes" >&5
26933 echo "${ECHO_T}yes" >&6; }
26934 else
26935 { echo "$as_me:$LINENO: result: no" >&5
26936 echo "${ECHO_T}no" >&6; }
26939 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
26940 QT_LIB="-l${qtlib}"
26941 if test "${QT_DIR}" != ""; then
26942 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
26943 QT_INCLUDE="-I${QT_DIR}/include"
26945 PBX_QT=1
26947 cat >>confdefs.h <<\_ACEOF
26948 #define HAVE_QT 1
26949 _ACEOF
26951 if test -n "$ac_tool_prefix"; then
26952 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
26953 set dummy ${ac_tool_prefix}moc; ac_word=$2
26954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26956 if test "${ac_cv_path_QTMOC+set}" = set; then
26957 echo $ECHO_N "(cached) $ECHO_C" >&6
26958 else
26959 case $QTMOC in
26960 [\\/]* | ?:[\\/]*)
26961 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
26964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26965 for as_dir in $PATH
26967 IFS=$as_save_IFS
26968 test -z "$as_dir" && as_dir=.
26969 for ac_exec_ext in '' $ac_executable_extensions; do
26970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26971 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
26972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26973 break 2
26975 done
26976 done
26977 IFS=$as_save_IFS
26980 esac
26982 QTMOC=$ac_cv_path_QTMOC
26983 if test -n "$QTMOC"; then
26984 { echo "$as_me:$LINENO: result: $QTMOC" >&5
26985 echo "${ECHO_T}$QTMOC" >&6; }
26986 else
26987 { echo "$as_me:$LINENO: result: no" >&5
26988 echo "${ECHO_T}no" >&6; }
26993 if test -z "$ac_cv_path_QTMOC"; then
26994 ac_pt_QTMOC=$QTMOC
26995 # Extract the first word of "moc", so it can be a program name with args.
26996 set dummy moc; ac_word=$2
26997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26999 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
27000 echo $ECHO_N "(cached) $ECHO_C" >&6
27001 else
27002 case $ac_pt_QTMOC in
27003 [\\/]* | ?:[\\/]*)
27004 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
27007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27008 for as_dir in $PATH
27010 IFS=$as_save_IFS
27011 test -z "$as_dir" && as_dir=.
27012 for ac_exec_ext in '' $ac_executable_extensions; do
27013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27014 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
27015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27016 break 2
27018 done
27019 done
27020 IFS=$as_save_IFS
27023 esac
27025 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
27026 if test -n "$ac_pt_QTMOC"; then
27027 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
27028 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
27029 else
27030 { echo "$as_me:$LINENO: result: no" >&5
27031 echo "${ECHO_T}no" >&6; }
27034 if test "x$ac_pt_QTMOC" = x; then
27035 QTMOC="No"
27036 else
27037 case $cross_compiling:$ac_tool_warned in
27038 yes:)
27039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27040 whose name does not start with the host triplet. If you think this
27041 configuration is useful to you, please write to autoconf@gnu.org." >&5
27042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27043 whose name does not start with the host triplet. If you think this
27044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27045 ac_tool_warned=yes ;;
27046 esac
27047 QTMOC=$ac_pt_QTMOC
27049 else
27050 QTMOC="$ac_cv_path_QTMOC"
27053 elif test -n "${QT_MANDATORY}";
27054 then
27055 { echo "$as_me:$LINENO: ***" >&5
27056 echo "$as_me: ***" >&6;}
27057 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
27058 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
27059 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27060 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27061 { echo "$as_me:$LINENO: *** including --without-qt." >&5
27062 echo "$as_me: *** including --without-qt." >&6;}
27063 exit 1
27067 ac_ext=c
27068 ac_cpp='$CPP $CPPFLAGS'
27069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27075 if test "${USE_RADIUS}" != "no"; then
27076 pbxlibdir=""
27077 if test "x${RADIUS_DIR}" != "x"; then
27078 if test -d ${RADIUS_DIR}/lib; then
27079 pbxlibdir="-L${RADIUS_DIR}/lib"
27080 else
27081 pbxlibdir="-L${RADIUS_DIR}"
27084 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
27085 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
27086 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
27087 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 else
27089 ac_check_lib_save_LIBS=$LIBS
27090 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
27091 cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h. */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27098 /* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
27101 #ifdef __cplusplus
27102 extern "C"
27103 #endif
27104 char rc_read_config ();
27106 main ()
27108 return rc_read_config ();
27110 return 0;
27112 _ACEOF
27113 rm -f conftest.$ac_objext conftest$ac_exeext
27114 if { (ac_try="$ac_link"
27115 case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_link") 2>conftest.er1
27121 ac_status=$?
27122 grep -v '^ *+' conftest.er1 >conftest.err
27123 rm -f conftest.er1
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } && {
27127 test -z "$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27129 } && test -s conftest$ac_exeext &&
27130 $as_test_x conftest$ac_exeext; then
27131 ac_cv_lib_radiusclient_ng_rc_read_config=yes
27132 else
27133 echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 ac_cv_lib_radiusclient_ng_rc_read_config=no
27139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27140 conftest$ac_exeext conftest.$ac_ext
27141 LIBS=$ac_check_lib_save_LIBS
27143 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
27144 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
27145 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
27146 AST_RADIUS_FOUND=yes
27147 else
27148 AST_RADIUS_FOUND=no
27152 if test "${AST_RADIUS_FOUND}" = "yes"; then
27153 RADIUS_LIB="-lradiusclient-ng "
27154 RADIUS_HEADER_FOUND="1"
27155 if test "x${RADIUS_DIR}" != "x"; then
27156 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
27157 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
27158 saved_cppflags="${CPPFLAGS}"
27159 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
27160 if test "xradiusclient-ng.h" != "x" ; then
27161 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
27162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27163 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27164 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27166 echo $ECHO_N "(cached) $ECHO_C" >&6
27168 ac_res=`eval echo '${'$as_ac_Header'}'`
27169 { echo "$as_me:$LINENO: result: $ac_res" >&5
27170 echo "${ECHO_T}$ac_res" >&6; }
27171 else
27172 # Is the header compilable?
27173 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
27174 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
27175 cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h. */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27181 $ac_includes_default
27182 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27183 _ACEOF
27184 rm -f conftest.$ac_objext
27185 if { (ac_try="$ac_compile"
27186 case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_compile") 2>conftest.er1
27192 ac_status=$?
27193 grep -v '^ *+' conftest.er1 >conftest.err
27194 rm -f conftest.er1
27195 cat conftest.err >&5
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); } && {
27198 test -z "$ac_c_werror_flag" ||
27199 test ! -s conftest.err
27200 } && test -s conftest.$ac_objext; then
27201 ac_header_compiler=yes
27202 else
27203 echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27206 ac_header_compiler=no
27209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27211 echo "${ECHO_T}$ac_header_compiler" >&6; }
27213 # Is the header present?
27214 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
27215 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
27216 cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h. */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27222 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27223 _ACEOF
27224 if { (ac_try="$ac_cpp conftest.$ac_ext"
27225 case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27228 esac
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27231 ac_status=$?
27232 grep -v '^ *+' conftest.er1 >conftest.err
27233 rm -f conftest.er1
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } >/dev/null && {
27237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27238 test ! -s conftest.err
27239 }; then
27240 ac_header_preproc=yes
27241 else
27242 echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27245 ac_header_preproc=no
27248 rm -f conftest.err conftest.$ac_ext
27249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27250 echo "${ECHO_T}$ac_header_preproc" >&6; }
27252 # So? What about this header?
27253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27254 yes:no: )
27255 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27256 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27257 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
27258 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27259 ac_header_preproc=yes
27261 no:yes:* )
27262 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
27263 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
27264 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
27265 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27266 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
27267 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
27268 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27269 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27270 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27271 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27272 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27273 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27276 esac
27277 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27278 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27280 echo $ECHO_N "(cached) $ECHO_C" >&6
27281 else
27282 eval "$as_ac_Header=\$ac_header_preproc"
27284 ac_res=`eval echo '${'$as_ac_Header'}'`
27285 { echo "$as_me:$LINENO: result: $ac_res" >&5
27286 echo "${ECHO_T}$ac_res" >&6; }
27289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27290 RADIUS_HEADER_FOUND=1
27291 else
27292 RADIUS_HEADER_FOUND=0
27297 CPPFLAGS="${saved_cppflags}"
27298 else
27299 if test "xradiusclient-ng.h" != "x" ; then
27300 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27301 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27302 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27303 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27304 echo $ECHO_N "(cached) $ECHO_C" >&6
27306 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27307 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27308 else
27309 # Is the header compilable?
27310 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
27311 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
27312 cat >conftest.$ac_ext <<_ACEOF
27313 /* confdefs.h. */
27314 _ACEOF
27315 cat confdefs.h >>conftest.$ac_ext
27316 cat >>conftest.$ac_ext <<_ACEOF
27317 /* end confdefs.h. */
27318 $ac_includes_default
27319 #include <radiusclient-ng.h>
27320 _ACEOF
27321 rm -f conftest.$ac_objext
27322 if { (ac_try="$ac_compile"
27323 case "(($ac_try" in
27324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27325 *) ac_try_echo=$ac_try;;
27326 esac
27327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27328 (eval "$ac_compile") 2>conftest.er1
27329 ac_status=$?
27330 grep -v '^ *+' conftest.er1 >conftest.err
27331 rm -f conftest.er1
27332 cat conftest.err >&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); } && {
27335 test -z "$ac_c_werror_flag" ||
27336 test ! -s conftest.err
27337 } && test -s conftest.$ac_objext; then
27338 ac_header_compiler=yes
27339 else
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 ac_header_compiler=no
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27348 echo "${ECHO_T}$ac_header_compiler" >&6; }
27350 # Is the header present?
27351 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
27352 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
27353 cat >conftest.$ac_ext <<_ACEOF
27354 /* confdefs.h. */
27355 _ACEOF
27356 cat confdefs.h >>conftest.$ac_ext
27357 cat >>conftest.$ac_ext <<_ACEOF
27358 /* end confdefs.h. */
27359 #include <radiusclient-ng.h>
27360 _ACEOF
27361 if { (ac_try="$ac_cpp conftest.$ac_ext"
27362 case "(($ac_try" in
27363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364 *) ac_try_echo=$ac_try;;
27365 esac
27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27368 ac_status=$?
27369 grep -v '^ *+' conftest.er1 >conftest.err
27370 rm -f conftest.er1
27371 cat conftest.err >&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } >/dev/null && {
27374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27375 test ! -s conftest.err
27376 }; then
27377 ac_header_preproc=yes
27378 else
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27382 ac_header_preproc=no
27385 rm -f conftest.err conftest.$ac_ext
27386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27387 echo "${ECHO_T}$ac_header_preproc" >&6; }
27389 # So? What about this header?
27390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27391 yes:no: )
27392 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27393 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
27395 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27396 ac_header_preproc=yes
27398 no:yes:* )
27399 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
27400 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
27401 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
27402 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27403 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
27404 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
27405 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27406 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27407 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27408 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27409 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27410 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27413 esac
27414 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27415 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27416 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27418 else
27419 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
27421 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27422 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27425 if test $ac_cv_header_radiusclient_ng_h = yes; then
27426 RADIUS_HEADER_FOUND=1
27427 else
27428 RADIUS_HEADER_FOUND=0
27434 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
27435 if test -n "${RADIUS_MANDATORY}" ;
27436 then
27437 { echo "$as_me:$LINENO: ***" >&5
27438 echo "$as_me: ***" >&6;}
27439 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
27440 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
27441 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
27442 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
27443 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27444 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27445 exit 1
27447 RADIUS_LIB=""
27448 RADIUS_INCLUDE=""
27449 PBX_RADIUS=0
27450 else
27451 PBX_RADIUS=1
27453 cat >>confdefs.h <<_ACEOF
27454 #define HAVE_RADIUS 1
27455 _ACEOF
27458 elif test -n "${RADIUS_MANDATORY}";
27459 then
27460 { echo "$as_me:$LINENO: ***" >&5
27461 echo "$as_me: ***" >&6;}
27462 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
27463 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
27464 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27465 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27466 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27467 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27468 exit 1
27474 if test "${USE_SPEEX}" != "no"; then
27475 pbxlibdir=""
27476 if test "x${SPEEX_DIR}" != "x"; then
27477 if test -d ${SPEEX_DIR}/lib; then
27478 pbxlibdir="-L${SPEEX_DIR}/lib"
27479 else
27480 pbxlibdir="-L${SPEEX_DIR}"
27483 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
27484 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
27485 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
27486 echo $ECHO_N "(cached) $ECHO_C" >&6
27487 else
27488 ac_check_lib_save_LIBS=$LIBS
27489 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
27490 cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h. */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27497 /* Override any GCC internal prototype to avoid an error.
27498 Use char because int might match the return type of a GCC
27499 builtin and then its argument prototype would still apply. */
27500 #ifdef __cplusplus
27501 extern "C"
27502 #endif
27503 char speex_encode ();
27505 main ()
27507 return speex_encode ();
27509 return 0;
27511 _ACEOF
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (ac_try="$ac_link"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_link") 2>conftest.er1
27520 ac_status=$?
27521 grep -v '^ *+' conftest.er1 >conftest.err
27522 rm -f conftest.er1
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && {
27526 test -z "$ac_c_werror_flag" ||
27527 test ! -s conftest.err
27528 } && test -s conftest$ac_exeext &&
27529 $as_test_x conftest$ac_exeext; then
27530 ac_cv_lib_speex_speex_encode=yes
27531 else
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_cv_lib_speex_speex_encode=no
27538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27539 conftest$ac_exeext conftest.$ac_ext
27540 LIBS=$ac_check_lib_save_LIBS
27542 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
27543 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
27544 if test $ac_cv_lib_speex_speex_encode = yes; then
27545 AST_SPEEX_FOUND=yes
27546 else
27547 AST_SPEEX_FOUND=no
27551 if test "${AST_SPEEX_FOUND}" = "yes"; then
27552 SPEEX_LIB="-lspeex -lm"
27553 SPEEX_HEADER_FOUND="1"
27554 if test "x${SPEEX_DIR}" != "x"; then
27555 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
27556 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
27557 saved_cppflags="${CPPFLAGS}"
27558 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
27559 if test "xspeex/speex.h" != "x" ; then
27560 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
27561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27562 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
27563 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
27564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27565 echo $ECHO_N "(cached) $ECHO_C" >&6
27567 ac_res=`eval echo '${'$as_ac_Header'}'`
27568 { echo "$as_me:$LINENO: result: $ac_res" >&5
27569 echo "${ECHO_T}$ac_res" >&6; }
27570 else
27571 # Is the header compilable?
27572 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
27573 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
27574 cat >conftest.$ac_ext <<_ACEOF
27575 /* confdefs.h. */
27576 _ACEOF
27577 cat confdefs.h >>conftest.$ac_ext
27578 cat >>conftest.$ac_ext <<_ACEOF
27579 /* end confdefs.h. */
27580 $ac_includes_default
27581 #include <${SPEEX_DIR}/include/speex/speex.h>
27582 _ACEOF
27583 rm -f conftest.$ac_objext
27584 if { (ac_try="$ac_compile"
27585 case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27588 esac
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_compile") 2>conftest.er1
27591 ac_status=$?
27592 grep -v '^ *+' conftest.er1 >conftest.err
27593 rm -f conftest.er1
27594 cat conftest.err >&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } && {
27597 test -z "$ac_c_werror_flag" ||
27598 test ! -s conftest.err
27599 } && test -s conftest.$ac_objext; then
27600 ac_header_compiler=yes
27601 else
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27605 ac_header_compiler=no
27608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27610 echo "${ECHO_T}$ac_header_compiler" >&6; }
27612 # Is the header present?
27613 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
27614 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
27615 cat >conftest.$ac_ext <<_ACEOF
27616 /* confdefs.h. */
27617 _ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h. */
27621 #include <${SPEEX_DIR}/include/speex/speex.h>
27622 _ACEOF
27623 if { (ac_try="$ac_cpp conftest.$ac_ext"
27624 case "(($ac_try" in
27625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626 *) ac_try_echo=$ac_try;;
27627 esac
27628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27630 ac_status=$?
27631 grep -v '^ *+' conftest.er1 >conftest.err
27632 rm -f conftest.er1
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } >/dev/null && {
27636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27637 test ! -s conftest.err
27638 }; then
27639 ac_header_preproc=yes
27640 else
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 ac_header_preproc=no
27647 rm -f conftest.err conftest.$ac_ext
27648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27649 echo "${ECHO_T}$ac_header_preproc" >&6; }
27651 # So? What about this header?
27652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27653 yes:no: )
27654 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27655 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
27657 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
27658 ac_header_preproc=yes
27660 no:yes:* )
27661 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
27662 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
27663 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
27664 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
27665 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
27666 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
27667 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27668 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27669 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
27670 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
27671 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
27672 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
27675 esac
27676 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
27677 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
27678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680 else
27681 eval "$as_ac_Header=\$ac_header_preproc"
27683 ac_res=`eval echo '${'$as_ac_Header'}'`
27684 { echo "$as_me:$LINENO: result: $ac_res" >&5
27685 echo "${ECHO_T}$ac_res" >&6; }
27688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27689 SPEEX_HEADER_FOUND=1
27690 else
27691 SPEEX_HEADER_FOUND=0
27696 CPPFLAGS="${saved_cppflags}"
27697 else
27698 if test "xspeex/speex.h" != "x" ; then
27699 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27700 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27701 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27702 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27706 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27707 else
27708 # Is the header compilable?
27709 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
27710 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
27711 cat >conftest.$ac_ext <<_ACEOF
27712 /* confdefs.h. */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h. */
27717 $ac_includes_default
27718 #include <speex/speex.h>
27719 _ACEOF
27720 rm -f conftest.$ac_objext
27721 if { (ac_try="$ac_compile"
27722 case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727 (eval "$ac_compile") 2>conftest.er1
27728 ac_status=$?
27729 grep -v '^ *+' conftest.er1 >conftest.err
27730 rm -f conftest.er1
27731 cat conftest.err >&5
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); } && {
27734 test -z "$ac_c_werror_flag" ||
27735 test ! -s conftest.err
27736 } && test -s conftest.$ac_objext; then
27737 ac_header_compiler=yes
27738 else
27739 echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27742 ac_header_compiler=no
27745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27747 echo "${ECHO_T}$ac_header_compiler" >&6; }
27749 # Is the header present?
27750 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
27751 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
27752 cat >conftest.$ac_ext <<_ACEOF
27753 /* confdefs.h. */
27754 _ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h. */
27758 #include <speex/speex.h>
27759 _ACEOF
27760 if { (ac_try="$ac_cpp conftest.$ac_ext"
27761 case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27767 ac_status=$?
27768 grep -v '^ *+' conftest.er1 >conftest.err
27769 rm -f conftest.er1
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } >/dev/null && {
27773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27774 test ! -s conftest.err
27775 }; then
27776 ac_header_preproc=yes
27777 else
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ac_header_preproc=no
27784 rm -f conftest.err conftest.$ac_ext
27785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27786 echo "${ECHO_T}$ac_header_preproc" >&6; }
27788 # So? What about this header?
27789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27790 yes:no: )
27791 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
27792 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27793 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
27794 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
27795 ac_header_preproc=yes
27797 no:yes:* )
27798 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
27799 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
27800 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
27801 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
27802 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
27803 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
27804 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
27805 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
27806 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
27807 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
27808 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
27809 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
27812 esac
27813 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
27814 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
27815 if test "${ac_cv_header_speex_speex_h+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818 ac_cv_header_speex_speex_h=$ac_header_preproc
27820 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
27821 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
27824 if test $ac_cv_header_speex_speex_h = yes; then
27825 SPEEX_HEADER_FOUND=1
27826 else
27827 SPEEX_HEADER_FOUND=0
27833 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
27834 if test -n "${SPEEX_MANDATORY}" ;
27835 then
27836 { echo "$as_me:$LINENO: ***" >&5
27837 echo "$as_me: ***" >&6;}
27838 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
27839 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
27840 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
27841 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
27842 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27843 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27844 exit 1
27846 SPEEX_LIB=""
27847 SPEEX_INCLUDE=""
27848 PBX_SPEEX=0
27849 else
27850 PBX_SPEEX=1
27852 cat >>confdefs.h <<_ACEOF
27853 #define HAVE_SPEEX 1
27854 _ACEOF
27857 elif test -n "${SPEEX_MANDATORY}";
27858 then
27859 { echo "$as_me:$LINENO: ***" >&5
27860 echo "$as_me: ***" >&6;}
27861 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
27862 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
27863 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27864 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27865 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
27866 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
27867 exit 1
27873 if test "${USE_SQLITE}" != "no"; then
27874 pbxlibdir=""
27875 if test "x${SQLITE_DIR}" != "x"; then
27876 if test -d ${SQLITE_DIR}/lib; then
27877 pbxlibdir="-L${SQLITE_DIR}/lib"
27878 else
27879 pbxlibdir="-L${SQLITE_DIR}"
27882 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
27883 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
27884 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27887 ac_check_lib_save_LIBS=$LIBS
27888 LIBS="-lsqlite ${pbxlibdir} $LIBS"
27889 cat >conftest.$ac_ext <<_ACEOF
27890 /* confdefs.h. */
27891 _ACEOF
27892 cat confdefs.h >>conftest.$ac_ext
27893 cat >>conftest.$ac_ext <<_ACEOF
27894 /* end confdefs.h. */
27896 /* Override any GCC internal prototype to avoid an error.
27897 Use char because int might match the return type of a GCC
27898 builtin and then its argument prototype would still apply. */
27899 #ifdef __cplusplus
27900 extern "C"
27901 #endif
27902 char sqlite_exec ();
27904 main ()
27906 return sqlite_exec ();
27908 return 0;
27910 _ACEOF
27911 rm -f conftest.$ac_objext conftest$ac_exeext
27912 if { (ac_try="$ac_link"
27913 case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27916 esac
27917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_link") 2>conftest.er1
27919 ac_status=$?
27920 grep -v '^ *+' conftest.er1 >conftest.err
27921 rm -f conftest.er1
27922 cat conftest.err >&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } && {
27925 test -z "$ac_c_werror_flag" ||
27926 test ! -s conftest.err
27927 } && test -s conftest$ac_exeext &&
27928 $as_test_x conftest$ac_exeext; then
27929 ac_cv_lib_sqlite_sqlite_exec=yes
27930 else
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 ac_cv_lib_sqlite_sqlite_exec=no
27937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27938 conftest$ac_exeext conftest.$ac_ext
27939 LIBS=$ac_check_lib_save_LIBS
27941 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
27942 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
27943 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
27944 AST_SQLITE_FOUND=yes
27945 else
27946 AST_SQLITE_FOUND=no
27950 if test "${AST_SQLITE_FOUND}" = "yes"; then
27951 SQLITE_LIB="-lsqlite "
27952 SQLITE_HEADER_FOUND="1"
27953 if test "x${SQLITE_DIR}" != "x"; then
27954 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
27955 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
27956 saved_cppflags="${CPPFLAGS}"
27957 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
27958 if test "xsqlite.h" != "x" ; then
27959 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
27960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27961 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
27962 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
27963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27964 echo $ECHO_N "(cached) $ECHO_C" >&6
27966 ac_res=`eval echo '${'$as_ac_Header'}'`
27967 { echo "$as_me:$LINENO: result: $ac_res" >&5
27968 echo "${ECHO_T}$ac_res" >&6; }
27969 else
27970 # Is the header compilable?
27971 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
27972 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
27973 cat >conftest.$ac_ext <<_ACEOF
27974 /* confdefs.h. */
27975 _ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h. */
27979 $ac_includes_default
27980 #include <${SQLITE_DIR}/include/sqlite.h>
27981 _ACEOF
27982 rm -f conftest.$ac_objext
27983 if { (ac_try="$ac_compile"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_compile") 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } && {
27996 test -z "$ac_c_werror_flag" ||
27997 test ! -s conftest.err
27998 } && test -s conftest.$ac_objext; then
27999 ac_header_compiler=yes
28000 else
28001 echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28004 ac_header_compiler=no
28007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28009 echo "${ECHO_T}$ac_header_compiler" >&6; }
28011 # Is the header present?
28012 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
28013 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
28014 cat >conftest.$ac_ext <<_ACEOF
28015 /* confdefs.h. */
28016 _ACEOF
28017 cat confdefs.h >>conftest.$ac_ext
28018 cat >>conftest.$ac_ext <<_ACEOF
28019 /* end confdefs.h. */
28020 #include <${SQLITE_DIR}/include/sqlite.h>
28021 _ACEOF
28022 if { (ac_try="$ac_cpp conftest.$ac_ext"
28023 case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28026 esac
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28029 ac_status=$?
28030 grep -v '^ *+' conftest.er1 >conftest.err
28031 rm -f conftest.er1
28032 cat conftest.err >&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); } >/dev/null && {
28035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28036 test ! -s conftest.err
28037 }; then
28038 ac_header_preproc=yes
28039 else
28040 echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28043 ac_header_preproc=no
28046 rm -f conftest.err conftest.$ac_ext
28047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28048 echo "${ECHO_T}$ac_header_preproc" >&6; }
28050 # So? What about this header?
28051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28052 yes:no: )
28053 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28054 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28055 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
28056 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
28057 ac_header_preproc=yes
28059 no:yes:* )
28060 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
28061 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
28062 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
28063 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
28064 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
28065 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
28066 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28067 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28068 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
28069 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
28070 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
28071 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
28074 esac
28075 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
28076 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
28077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28078 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 else
28080 eval "$as_ac_Header=\$ac_header_preproc"
28082 ac_res=`eval echo '${'$as_ac_Header'}'`
28083 { echo "$as_me:$LINENO: result: $ac_res" >&5
28084 echo "${ECHO_T}$ac_res" >&6; }
28087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28088 SQLITE_HEADER_FOUND=1
28089 else
28090 SQLITE_HEADER_FOUND=0
28095 CPPFLAGS="${saved_cppflags}"
28096 else
28097 if test "xsqlite.h" != "x" ; then
28098 if test "${ac_cv_header_sqlite_h+set}" = set; then
28099 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28100 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28101 if test "${ac_cv_header_sqlite_h+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28104 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28105 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28106 else
28107 # Is the header compilable?
28108 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
28109 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
28110 cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h. */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28116 $ac_includes_default
28117 #include <sqlite.h>
28118 _ACEOF
28119 rm -f conftest.$ac_objext
28120 if { (ac_try="$ac_compile"
28121 case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_compile") 2>conftest.er1
28127 ac_status=$?
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } && {
28133 test -z "$ac_c_werror_flag" ||
28134 test ! -s conftest.err
28135 } && test -s conftest.$ac_objext; then
28136 ac_header_compiler=yes
28137 else
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28141 ac_header_compiler=no
28144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28146 echo "${ECHO_T}$ac_header_compiler" >&6; }
28148 # Is the header present?
28149 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
28150 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
28151 cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h. */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28157 #include <sqlite.h>
28158 _ACEOF
28159 if { (ac_try="$ac_cpp conftest.$ac_ext"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } >/dev/null && {
28172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28173 test ! -s conftest.err
28174 }; then
28175 ac_header_preproc=yes
28176 else
28177 echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 ac_header_preproc=no
28183 rm -f conftest.err conftest.$ac_ext
28184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28185 echo "${ECHO_T}$ac_header_preproc" >&6; }
28187 # So? What about this header?
28188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28189 yes:no: )
28190 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28191 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28192 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
28193 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
28194 ac_header_preproc=yes
28196 no:yes:* )
28197 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
28198 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
28199 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
28200 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
28201 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
28202 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28204 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28205 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
28206 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
28207 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
28208 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
28211 esac
28212 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28213 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28214 if test "${ac_cv_header_sqlite_h+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217 ac_cv_header_sqlite_h=$ac_header_preproc
28219 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28220 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28223 if test $ac_cv_header_sqlite_h = yes; then
28224 SQLITE_HEADER_FOUND=1
28225 else
28226 SQLITE_HEADER_FOUND=0
28232 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
28233 if test -n "${SQLITE_MANDATORY}" ;
28234 then
28235 { echo "$as_me:$LINENO: ***" >&5
28236 echo "$as_me: ***" >&6;}
28237 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
28238 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
28239 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
28240 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
28241 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28242 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28243 exit 1
28245 SQLITE_LIB=""
28246 SQLITE_INCLUDE=""
28247 PBX_SQLITE=0
28248 else
28249 PBX_SQLITE=1
28251 cat >>confdefs.h <<_ACEOF
28252 #define HAVE_SQLITE 1
28253 _ACEOF
28256 elif test -n "${SQLITE_MANDATORY}";
28257 then
28258 { echo "$as_me:$LINENO: ***" >&5
28259 echo "$as_me: ***" >&6;}
28260 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
28261 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
28262 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28263 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28264 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28265 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28266 exit 1
28272 if test "${USE_OPENSSL}" != "no"; then
28273 pbxlibdir=""
28274 if test "x${OPENSSL_DIR}" != "x"; then
28275 if test -d ${OPENSSL_DIR}/lib; then
28276 pbxlibdir="-L${OPENSSL_DIR}/lib"
28277 else
28278 pbxlibdir="-L${OPENSSL_DIR}"
28281 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
28282 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
28283 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
28284 echo $ECHO_N "(cached) $ECHO_C" >&6
28285 else
28286 ac_check_lib_save_LIBS=$LIBS
28287 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
28288 cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h. */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28295 /* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char ssl2_connect ();
28303 main ()
28305 return ssl2_connect ();
28307 return 0;
28309 _ACEOF
28310 rm -f conftest.$ac_objext conftest$ac_exeext
28311 if { (ac_try="$ac_link"
28312 case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28315 esac
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317 (eval "$ac_link") 2>conftest.er1
28318 ac_status=$?
28319 grep -v '^ *+' conftest.er1 >conftest.err
28320 rm -f conftest.er1
28321 cat conftest.err >&5
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); } && {
28324 test -z "$ac_c_werror_flag" ||
28325 test ! -s conftest.err
28326 } && test -s conftest$ac_exeext &&
28327 $as_test_x conftest$ac_exeext; then
28328 ac_cv_lib_ssl_ssl2_connect=yes
28329 else
28330 echo "$as_me: failed program was:" >&5
28331 sed 's/^/| /' conftest.$ac_ext >&5
28333 ac_cv_lib_ssl_ssl2_connect=no
28336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28337 conftest$ac_exeext conftest.$ac_ext
28338 LIBS=$ac_check_lib_save_LIBS
28340 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
28341 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
28342 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
28343 AST_OPENSSL_FOUND=yes
28344 else
28345 AST_OPENSSL_FOUND=no
28349 if test "${AST_OPENSSL_FOUND}" = "yes"; then
28350 OPENSSL_LIB="-lssl -lcrypto"
28351 OPENSSL_HEADER_FOUND="1"
28352 if test "x${OPENSSL_DIR}" != "x"; then
28353 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
28354 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
28355 saved_cppflags="${CPPFLAGS}"
28356 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
28357 if test "xopenssl/ssl.h" != "x" ; then
28358 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
28359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28360 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28361 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28365 ac_res=`eval echo '${'$as_ac_Header'}'`
28366 { echo "$as_me:$LINENO: result: $ac_res" >&5
28367 echo "${ECHO_T}$ac_res" >&6; }
28368 else
28369 # Is the header compilable?
28370 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
28371 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
28372 cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h. */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 $ac_includes_default
28379 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28380 _ACEOF
28381 rm -f conftest.$ac_objext
28382 if { (ac_try="$ac_compile"
28383 case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_compile") 2>conftest.er1
28389 ac_status=$?
28390 grep -v '^ *+' conftest.er1 >conftest.err
28391 rm -f conftest.er1
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } && {
28395 test -z "$ac_c_werror_flag" ||
28396 test ! -s conftest.err
28397 } && test -s conftest.$ac_objext; then
28398 ac_header_compiler=yes
28399 else
28400 echo "$as_me: failed program was:" >&5
28401 sed 's/^/| /' conftest.$ac_ext >&5
28403 ac_header_compiler=no
28406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28408 echo "${ECHO_T}$ac_header_compiler" >&6; }
28410 # Is the header present?
28411 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
28412 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
28413 cat >conftest.$ac_ext <<_ACEOF
28414 /* confdefs.h. */
28415 _ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28419 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28420 _ACEOF
28421 if { (ac_try="$ac_cpp conftest.$ac_ext"
28422 case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28425 esac
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28428 ac_status=$?
28429 grep -v '^ *+' conftest.er1 >conftest.err
28430 rm -f conftest.er1
28431 cat conftest.err >&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } >/dev/null && {
28434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28435 test ! -s conftest.err
28436 }; then
28437 ac_header_preproc=yes
28438 else
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ac_header_preproc=no
28445 rm -f conftest.err conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28447 echo "${ECHO_T}$ac_header_preproc" >&6; }
28449 # So? What about this header?
28450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28451 yes:no: )
28452 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28453 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
28455 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
28456 ac_header_preproc=yes
28458 no:yes:* )
28459 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
28460 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
28462 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
28464 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28466 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
28468 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
28470 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28473 esac
28474 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28475 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28478 else
28479 eval "$as_ac_Header=\$ac_header_preproc"
28481 ac_res=`eval echo '${'$as_ac_Header'}'`
28482 { echo "$as_me:$LINENO: result: $ac_res" >&5
28483 echo "${ECHO_T}$ac_res" >&6; }
28486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28487 OPENSSL_HEADER_FOUND=1
28488 else
28489 OPENSSL_HEADER_FOUND=0
28494 CPPFLAGS="${saved_cppflags}"
28495 else
28496 if test "xopenssl/ssl.h" != "x" ; then
28497 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28498 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28499 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28500 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28504 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28505 else
28506 # Is the header compilable?
28507 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
28508 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h. */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28515 $ac_includes_default
28516 #include <openssl/ssl.h>
28517 _ACEOF
28518 rm -f conftest.$ac_objext
28519 if { (ac_try="$ac_compile"
28520 case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28523 esac
28524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525 (eval "$ac_compile") 2>conftest.er1
28526 ac_status=$?
28527 grep -v '^ *+' conftest.er1 >conftest.err
28528 rm -f conftest.er1
28529 cat conftest.err >&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); } && {
28532 test -z "$ac_c_werror_flag" ||
28533 test ! -s conftest.err
28534 } && test -s conftest.$ac_objext; then
28535 ac_header_compiler=yes
28536 else
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28540 ac_header_compiler=no
28543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28545 echo "${ECHO_T}$ac_header_compiler" >&6; }
28547 # Is the header present?
28548 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
28549 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
28550 cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h. */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 #include <openssl/ssl.h>
28557 _ACEOF
28558 if { (ac_try="$ac_cpp conftest.$ac_ext"
28559 case "(($ac_try" in
28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561 *) ac_try_echo=$ac_try;;
28562 esac
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28565 ac_status=$?
28566 grep -v '^ *+' conftest.er1 >conftest.err
28567 rm -f conftest.er1
28568 cat conftest.err >&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); } >/dev/null && {
28571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28572 test ! -s conftest.err
28573 }; then
28574 ac_header_preproc=yes
28575 else
28576 echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28579 ac_header_preproc=no
28582 rm -f conftest.err conftest.$ac_ext
28583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28584 echo "${ECHO_T}$ac_header_preproc" >&6; }
28586 # So? What about this header?
28587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28588 yes:no: )
28589 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28590 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28591 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
28592 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
28593 ac_header_preproc=yes
28595 no:yes:* )
28596 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
28597 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
28598 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
28599 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28600 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
28601 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
28602 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28603 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28604 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
28605 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28606 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
28607 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28610 esac
28611 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28612 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28613 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28615 else
28616 ac_cv_header_openssl_ssl_h=$ac_header_preproc
28618 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28619 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28622 if test $ac_cv_header_openssl_ssl_h = yes; then
28623 OPENSSL_HEADER_FOUND=1
28624 else
28625 OPENSSL_HEADER_FOUND=0
28631 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
28632 if test -n "${OPENSSL_MANDATORY}" ;
28633 then
28634 { echo "$as_me:$LINENO: ***" >&5
28635 echo "$as_me: ***" >&6;}
28636 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
28637 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
28638 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
28639 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
28640 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28641 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28642 exit 1
28644 OPENSSL_LIB=""
28645 OPENSSL_INCLUDE=""
28646 PBX_OPENSSL=0
28647 else
28648 PBX_OPENSSL=1
28650 cat >>confdefs.h <<_ACEOF
28651 #define HAVE_OPENSSL 1
28652 _ACEOF
28655 elif test -n "${OPENSSL_MANDATORY}";
28656 then
28657 { echo "$as_me:$LINENO: ***" >&5
28658 echo "$as_me: ***" >&6;}
28659 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
28660 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
28661 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28662 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28663 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
28664 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
28665 exit 1
28669 if test "$PBX_OPENSSL" = "1";
28670 then
28672 if test "${USE_OSPTK}" != "no"; then
28673 pbxlibdir=""
28674 if test "x${OSPTK_DIR}" != "x"; then
28675 if test -d ${OSPTK_DIR}/lib; then
28676 pbxlibdir="-L${OSPTK_DIR}/lib"
28677 else
28678 pbxlibdir="-L${OSPTK_DIR}"
28681 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
28682 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
28683 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
28684 echo $ECHO_N "(cached) $ECHO_C" >&6
28685 else
28686 ac_check_lib_save_LIBS=$LIBS
28687 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
28688 cat >conftest.$ac_ext <<_ACEOF
28689 /* confdefs.h. */
28690 _ACEOF
28691 cat confdefs.h >>conftest.$ac_ext
28692 cat >>conftest.$ac_ext <<_ACEOF
28693 /* end confdefs.h. */
28695 /* Override any GCC internal prototype to avoid an error.
28696 Use char because int might match the return type of a GCC
28697 builtin and then its argument prototype would still apply. */
28698 #ifdef __cplusplus
28699 extern "C"
28700 #endif
28701 char OSPPCryptoDecrypt ();
28703 main ()
28705 return OSPPCryptoDecrypt ();
28707 return 0;
28709 _ACEOF
28710 rm -f conftest.$ac_objext conftest$ac_exeext
28711 if { (ac_try="$ac_link"
28712 case "(($ac_try" in
28713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28714 *) ac_try_echo=$ac_try;;
28715 esac
28716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28717 (eval "$ac_link") 2>conftest.er1
28718 ac_status=$?
28719 grep -v '^ *+' conftest.er1 >conftest.err
28720 rm -f conftest.er1
28721 cat conftest.err >&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } && {
28724 test -z "$ac_c_werror_flag" ||
28725 test ! -s conftest.err
28726 } && test -s conftest$ac_exeext &&
28727 $as_test_x conftest$ac_exeext; then
28728 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
28729 else
28730 echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28733 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
28736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28737 conftest$ac_exeext conftest.$ac_ext
28738 LIBS=$ac_check_lib_save_LIBS
28740 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
28741 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
28742 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
28743 AST_OSPTK_FOUND=yes
28744 else
28745 AST_OSPTK_FOUND=no
28749 if test "${AST_OSPTK_FOUND}" = "yes"; then
28750 OSPTK_LIB="-losptk -lcrypto -lssl"
28751 OSPTK_HEADER_FOUND="1"
28752 if test "x${OSPTK_DIR}" != "x"; then
28753 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
28754 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
28755 saved_cppflags="${CPPFLAGS}"
28756 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
28757 if test "xosp/osp.h" != "x" ; then
28758 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
28759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28760 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
28761 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
28762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28765 ac_res=`eval echo '${'$as_ac_Header'}'`
28766 { echo "$as_me:$LINENO: result: $ac_res" >&5
28767 echo "${ECHO_T}$ac_res" >&6; }
28768 else
28769 # Is the header compilable?
28770 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
28771 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
28772 cat >conftest.$ac_ext <<_ACEOF
28773 /* confdefs.h. */
28774 _ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h. */
28778 $ac_includes_default
28779 #include <${OSPTK_DIR}/include/osp/osp.h>
28780 _ACEOF
28781 rm -f conftest.$ac_objext
28782 if { (ac_try="$ac_compile"
28783 case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28786 esac
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_compile") 2>conftest.er1
28789 ac_status=$?
28790 grep -v '^ *+' conftest.er1 >conftest.err
28791 rm -f conftest.er1
28792 cat conftest.err >&5
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); } && {
28795 test -z "$ac_c_werror_flag" ||
28796 test ! -s conftest.err
28797 } && test -s conftest.$ac_objext; then
28798 ac_header_compiler=yes
28799 else
28800 echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28803 ac_header_compiler=no
28806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28808 echo "${ECHO_T}$ac_header_compiler" >&6; }
28810 # Is the header present?
28811 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
28812 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
28813 cat >conftest.$ac_ext <<_ACEOF
28814 /* confdefs.h. */
28815 _ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h. */
28819 #include <${OSPTK_DIR}/include/osp/osp.h>
28820 _ACEOF
28821 if { (ac_try="$ac_cpp conftest.$ac_ext"
28822 case "(($ac_try" in
28823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824 *) ac_try_echo=$ac_try;;
28825 esac
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28828 ac_status=$?
28829 grep -v '^ *+' conftest.er1 >conftest.err
28830 rm -f conftest.er1
28831 cat conftest.err >&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } >/dev/null && {
28834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28835 test ! -s conftest.err
28836 }; then
28837 ac_header_preproc=yes
28838 else
28839 echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28842 ac_header_preproc=no
28845 rm -f conftest.err conftest.$ac_ext
28846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28847 echo "${ECHO_T}$ac_header_preproc" >&6; }
28849 # So? What about this header?
28850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28851 yes:no: )
28852 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28853 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
28855 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
28856 ac_header_preproc=yes
28858 no:yes:* )
28859 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
28860 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
28862 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
28864 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
28866 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
28868 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
28870 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
28873 esac
28874 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
28875 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
28876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28878 else
28879 eval "$as_ac_Header=\$ac_header_preproc"
28881 ac_res=`eval echo '${'$as_ac_Header'}'`
28882 { echo "$as_me:$LINENO: result: $ac_res" >&5
28883 echo "${ECHO_T}$ac_res" >&6; }
28886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28887 OSPTK_HEADER_FOUND=1
28888 else
28889 OSPTK_HEADER_FOUND=0
28894 CPPFLAGS="${saved_cppflags}"
28895 else
28896 if test "xosp/osp.h" != "x" ; then
28897 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28898 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
28899 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
28900 if test "${ac_cv_header_osp_osp_h+set}" = set; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
28904 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
28905 else
28906 # Is the header compilable?
28907 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
28908 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
28909 cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h. */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h. */
28915 $ac_includes_default
28916 #include <osp/osp.h>
28917 _ACEOF
28918 rm -f conftest.$ac_objext
28919 if { (ac_try="$ac_compile"
28920 case "(($ac_try" in
28921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922 *) ac_try_echo=$ac_try;;
28923 esac
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925 (eval "$ac_compile") 2>conftest.er1
28926 ac_status=$?
28927 grep -v '^ *+' conftest.er1 >conftest.err
28928 rm -f conftest.er1
28929 cat conftest.err >&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } && {
28932 test -z "$ac_c_werror_flag" ||
28933 test ! -s conftest.err
28934 } && test -s conftest.$ac_objext; then
28935 ac_header_compiler=yes
28936 else
28937 echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.$ac_ext >&5
28940 ac_header_compiler=no
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28945 echo "${ECHO_T}$ac_header_compiler" >&6; }
28947 # Is the header present?
28948 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
28949 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
28950 cat >conftest.$ac_ext <<_ACEOF
28951 /* confdefs.h. */
28952 _ACEOF
28953 cat confdefs.h >>conftest.$ac_ext
28954 cat >>conftest.$ac_ext <<_ACEOF
28955 /* end confdefs.h. */
28956 #include <osp/osp.h>
28957 _ACEOF
28958 if { (ac_try="$ac_cpp conftest.$ac_ext"
28959 case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962 esac
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28965 ac_status=$?
28966 grep -v '^ *+' conftest.er1 >conftest.err
28967 rm -f conftest.er1
28968 cat conftest.err >&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } >/dev/null && {
28971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28972 test ! -s conftest.err
28973 }; then
28974 ac_header_preproc=yes
28975 else
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 ac_header_preproc=no
28982 rm -f conftest.err conftest.$ac_ext
28983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28984 echo "${ECHO_T}$ac_header_preproc" >&6; }
28986 # So? What about this header?
28987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28988 yes:no: )
28989 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
28990 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28991 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
28992 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
28993 ac_header_preproc=yes
28995 no:yes:* )
28996 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
28997 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
28999 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
29001 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
29002 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
29003 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
29005 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
29007 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
29010 esac
29011 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
29012 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
29013 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29014 echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016 ac_cv_header_osp_osp_h=$ac_header_preproc
29018 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
29019 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
29022 if test $ac_cv_header_osp_osp_h = yes; then
29023 OSPTK_HEADER_FOUND=1
29024 else
29025 OSPTK_HEADER_FOUND=0
29031 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
29032 if test -n "${OSPTK_MANDATORY}" ;
29033 then
29034 { echo "$as_me:$LINENO: ***" >&5
29035 echo "$as_me: ***" >&6;}
29036 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
29037 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
29038 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
29039 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
29040 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
29041 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
29042 exit 1
29044 OSPTK_LIB=""
29045 OSPTK_INCLUDE=""
29046 PBX_OSPTK=0
29047 else
29048 PBX_OSPTK=1
29050 cat >>confdefs.h <<_ACEOF
29051 #define HAVE_OSPTK 1
29052 _ACEOF
29055 elif test -n "${OSPTK_MANDATORY}";
29056 then
29057 { echo "$as_me:$LINENO: ***" >&5
29058 echo "$as_me: ***" >&6;}
29059 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
29060 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
29061 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29062 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29063 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
29064 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
29065 exit 1
29072 if test "${USE_FREETDS}" != "no"; then
29073 pbxlibdir=""
29074 if test "x${FREETDS_DIR}" != "x"; then
29075 if test -d ${FREETDS_DIR}/lib; then
29076 pbxlibdir="-L${FREETDS_DIR}/lib"
29077 else
29078 pbxlibdir="-L${FREETDS_DIR}"
29081 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
29082 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
29083 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086 ac_check_lib_save_LIBS=$LIBS
29087 LIBS="-ltds ${pbxlibdir} $LIBS"
29088 cat >conftest.$ac_ext <<_ACEOF
29089 /* confdefs.h. */
29090 _ACEOF
29091 cat confdefs.h >>conftest.$ac_ext
29092 cat >>conftest.$ac_ext <<_ACEOF
29093 /* end confdefs.h. */
29095 /* Override any GCC internal prototype to avoid an error.
29096 Use char because int might match the return type of a GCC
29097 builtin and then its argument prototype would still apply. */
29098 #ifdef __cplusplus
29099 extern "C"
29100 #endif
29101 char tds_version ();
29103 main ()
29105 return tds_version ();
29107 return 0;
29109 _ACEOF
29110 rm -f conftest.$ac_objext conftest$ac_exeext
29111 if { (ac_try="$ac_link"
29112 case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_link") 2>conftest.er1
29118 ac_status=$?
29119 grep -v '^ *+' conftest.er1 >conftest.err
29120 rm -f conftest.er1
29121 cat conftest.err >&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); } && {
29124 test -z "$ac_c_werror_flag" ||
29125 test ! -s conftest.err
29126 } && test -s conftest$ac_exeext &&
29127 $as_test_x conftest$ac_exeext; then
29128 ac_cv_lib_tds_tds_version=yes
29129 else
29130 echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29133 ac_cv_lib_tds_tds_version=no
29136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29137 conftest$ac_exeext conftest.$ac_ext
29138 LIBS=$ac_check_lib_save_LIBS
29140 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
29141 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
29142 if test $ac_cv_lib_tds_tds_version = yes; then
29143 AST_FREETDS_FOUND=yes
29144 else
29145 AST_FREETDS_FOUND=no
29149 if test "${AST_FREETDS_FOUND}" = "yes"; then
29150 FREETDS_LIB="-ltds "
29151 FREETDS_HEADER_FOUND="1"
29152 if test "x${FREETDS_DIR}" != "x"; then
29153 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
29154 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
29155 saved_cppflags="${CPPFLAGS}"
29156 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
29157 if test "xtds.h" != "x" ; then
29158 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
29159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29160 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29161 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29163 echo $ECHO_N "(cached) $ECHO_C" >&6
29165 ac_res=`eval echo '${'$as_ac_Header'}'`
29166 { echo "$as_me:$LINENO: result: $ac_res" >&5
29167 echo "${ECHO_T}$ac_res" >&6; }
29168 else
29169 # Is the header compilable?
29170 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
29171 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
29172 cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h. */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29178 $ac_includes_default
29179 #include <${FREETDS_DIR}/include/tds.h>
29180 _ACEOF
29181 rm -f conftest.$ac_objext
29182 if { (ac_try="$ac_compile"
29183 case "(($ac_try" in
29184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185 *) ac_try_echo=$ac_try;;
29186 esac
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188 (eval "$ac_compile") 2>conftest.er1
29189 ac_status=$?
29190 grep -v '^ *+' conftest.er1 >conftest.err
29191 rm -f conftest.er1
29192 cat conftest.err >&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); } && {
29195 test -z "$ac_c_werror_flag" ||
29196 test ! -s conftest.err
29197 } && test -s conftest.$ac_objext; then
29198 ac_header_compiler=yes
29199 else
29200 echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29203 ac_header_compiler=no
29206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29208 echo "${ECHO_T}$ac_header_compiler" >&6; }
29210 # Is the header present?
29211 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
29212 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
29213 cat >conftest.$ac_ext <<_ACEOF
29214 /* confdefs.h. */
29215 _ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h. */
29219 #include <${FREETDS_DIR}/include/tds.h>
29220 _ACEOF
29221 if { (ac_try="$ac_cpp conftest.$ac_ext"
29222 case "(($ac_try" in
29223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224 *) ac_try_echo=$ac_try;;
29225 esac
29226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29228 ac_status=$?
29229 grep -v '^ *+' conftest.er1 >conftest.err
29230 rm -f conftest.er1
29231 cat conftest.err >&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } >/dev/null && {
29234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29235 test ! -s conftest.err
29236 }; then
29237 ac_header_preproc=yes
29238 else
29239 echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29242 ac_header_preproc=no
29245 rm -f conftest.err conftest.$ac_ext
29246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29247 echo "${ECHO_T}$ac_header_preproc" >&6; }
29249 # So? What about this header?
29250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29251 yes:no: )
29252 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29253 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29254 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
29255 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
29256 ac_header_preproc=yes
29258 no:yes:* )
29259 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
29260 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
29261 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
29262 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
29264 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
29266 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
29268 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
29269 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
29270 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
29273 esac
29274 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29275 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278 else
29279 eval "$as_ac_Header=\$ac_header_preproc"
29281 ac_res=`eval echo '${'$as_ac_Header'}'`
29282 { echo "$as_me:$LINENO: result: $ac_res" >&5
29283 echo "${ECHO_T}$ac_res" >&6; }
29286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29287 FREETDS_HEADER_FOUND=1
29288 else
29289 FREETDS_HEADER_FOUND=0
29294 CPPFLAGS="${saved_cppflags}"
29295 else
29296 if test "xtds.h" != "x" ; then
29297 if test "${ac_cv_header_tds_h+set}" = set; then
29298 { echo "$as_me:$LINENO: checking for tds.h" >&5
29299 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29300 if test "${ac_cv_header_tds_h+set}" = set; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29303 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29304 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29305 else
29306 # Is the header compilable?
29307 { echo "$as_me:$LINENO: checking tds.h usability" >&5
29308 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
29309 cat >conftest.$ac_ext <<_ACEOF
29310 /* confdefs.h. */
29311 _ACEOF
29312 cat confdefs.h >>conftest.$ac_ext
29313 cat >>conftest.$ac_ext <<_ACEOF
29314 /* end confdefs.h. */
29315 $ac_includes_default
29316 #include <tds.h>
29317 _ACEOF
29318 rm -f conftest.$ac_objext
29319 if { (ac_try="$ac_compile"
29320 case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_compile") 2>conftest.er1
29326 ac_status=$?
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } && {
29332 test -z "$ac_c_werror_flag" ||
29333 test ! -s conftest.err
29334 } && test -s conftest.$ac_objext; then
29335 ac_header_compiler=yes
29336 else
29337 echo "$as_me: failed program was:" >&5
29338 sed 's/^/| /' conftest.$ac_ext >&5
29340 ac_header_compiler=no
29343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29345 echo "${ECHO_T}$ac_header_compiler" >&6; }
29347 # Is the header present?
29348 { echo "$as_me:$LINENO: checking tds.h presence" >&5
29349 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
29350 cat >conftest.$ac_ext <<_ACEOF
29351 /* confdefs.h. */
29352 _ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h. */
29356 #include <tds.h>
29357 _ACEOF
29358 if { (ac_try="$ac_cpp conftest.$ac_ext"
29359 case "(($ac_try" in
29360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361 *) ac_try_echo=$ac_try;;
29362 esac
29363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29365 ac_status=$?
29366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } >/dev/null && {
29371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29372 test ! -s conftest.err
29373 }; then
29374 ac_header_preproc=yes
29375 else
29376 echo "$as_me: failed program was:" >&5
29377 sed 's/^/| /' conftest.$ac_ext >&5
29379 ac_header_preproc=no
29382 rm -f conftest.err conftest.$ac_ext
29383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29384 echo "${ECHO_T}$ac_header_preproc" >&6; }
29386 # So? What about this header?
29387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29388 yes:no: )
29389 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29390 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
29392 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
29393 ac_header_preproc=yes
29395 no:yes:* )
29396 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
29397 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
29398 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
29399 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
29400 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
29401 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
29402 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
29403 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29404 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
29405 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
29406 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
29407 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
29410 esac
29411 { echo "$as_me:$LINENO: checking for tds.h" >&5
29412 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29413 if test "${ac_cv_header_tds_h+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416 ac_cv_header_tds_h=$ac_header_preproc
29418 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29419 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29422 if test $ac_cv_header_tds_h = yes; then
29423 FREETDS_HEADER_FOUND=1
29424 else
29425 FREETDS_HEADER_FOUND=0
29431 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
29432 if test -n "${FREETDS_MANDATORY}" ;
29433 then
29434 { echo "$as_me:$LINENO: ***" >&5
29435 echo "$as_me: ***" >&6;}
29436 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
29437 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
29438 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
29439 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
29440 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29441 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29442 exit 1
29444 FREETDS_LIB=""
29445 FREETDS_INCLUDE=""
29446 PBX_FREETDS=0
29447 else
29448 PBX_FREETDS=1
29450 cat >>confdefs.h <<_ACEOF
29451 #define HAVE_FREETDS 1
29452 _ACEOF
29455 elif test -n "${FREETDS_MANDATORY}";
29456 then
29457 { echo "$as_me:$LINENO: ***" >&5
29458 echo "$as_me: ***" >&6;}
29459 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
29460 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
29461 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29462 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29463 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29464 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29465 exit 1
29469 if test "${PBX_FREETDS}" != "0";
29470 then
29471 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
29472 *0.64*)
29473 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
29475 *0.63*)
29476 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
29478 *0.62*)
29479 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
29482 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
29484 esac
29488 if test "${USE_TERMCAP}" != "no"; then
29489 pbxlibdir=""
29490 if test "x${TERMCAP_DIR}" != "x"; then
29491 if test -d ${TERMCAP_DIR}/lib; then
29492 pbxlibdir="-L${TERMCAP_DIR}/lib"
29493 else
29494 pbxlibdir="-L${TERMCAP_DIR}"
29497 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29498 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
29499 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29500 echo $ECHO_N "(cached) $ECHO_C" >&6
29501 else
29502 ac_check_lib_save_LIBS=$LIBS
29503 LIBS="-ltermcap ${pbxlibdir} $LIBS"
29504 cat >conftest.$ac_ext <<_ACEOF
29505 /* confdefs.h. */
29506 _ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29511 /* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29514 #ifdef __cplusplus
29515 extern "C"
29516 #endif
29517 char tgetent ();
29519 main ()
29521 return tgetent ();
29523 return 0;
29525 _ACEOF
29526 rm -f conftest.$ac_objext conftest$ac_exeext
29527 if { (ac_try="$ac_link"
29528 case "(($ac_try" in
29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29530 *) ac_try_echo=$ac_try;;
29531 esac
29532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29533 (eval "$ac_link") 2>conftest.er1
29534 ac_status=$?
29535 grep -v '^ *+' conftest.er1 >conftest.err
29536 rm -f conftest.er1
29537 cat conftest.err >&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } && {
29540 test -z "$ac_c_werror_flag" ||
29541 test ! -s conftest.err
29542 } && test -s conftest$ac_exeext &&
29543 $as_test_x conftest$ac_exeext; then
29544 ac_cv_lib_termcap_tgetent=yes
29545 else
29546 echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29549 ac_cv_lib_termcap_tgetent=no
29552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29553 conftest$ac_exeext conftest.$ac_ext
29554 LIBS=$ac_check_lib_save_LIBS
29556 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29557 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
29558 if test $ac_cv_lib_termcap_tgetent = yes; then
29559 AST_TERMCAP_FOUND=yes
29560 else
29561 AST_TERMCAP_FOUND=no
29565 if test "${AST_TERMCAP_FOUND}" = "yes"; then
29566 TERMCAP_LIB="-ltermcap "
29567 TERMCAP_HEADER_FOUND="1"
29568 if test "x${TERMCAP_DIR}" != "x"; then
29569 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
29570 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
29571 saved_cppflags="${CPPFLAGS}"
29572 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
29573 if test "x" != "x" ; then
29574 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
29575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29576 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
29577 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
29578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29579 echo $ECHO_N "(cached) $ECHO_C" >&6
29581 ac_res=`eval echo '${'$as_ac_Header'}'`
29582 { echo "$as_me:$LINENO: result: $ac_res" >&5
29583 echo "${ECHO_T}$ac_res" >&6; }
29584 else
29585 # Is the header compilable?
29586 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
29587 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
29588 cat >conftest.$ac_ext <<_ACEOF
29589 /* confdefs.h. */
29590 _ACEOF
29591 cat confdefs.h >>conftest.$ac_ext
29592 cat >>conftest.$ac_ext <<_ACEOF
29593 /* end confdefs.h. */
29594 $ac_includes_default
29595 #include <${TERMCAP_DIR}/include/>
29596 _ACEOF
29597 rm -f conftest.$ac_objext
29598 if { (ac_try="$ac_compile"
29599 case "(($ac_try" in
29600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601 *) ac_try_echo=$ac_try;;
29602 esac
29603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604 (eval "$ac_compile") 2>conftest.er1
29605 ac_status=$?
29606 grep -v '^ *+' conftest.er1 >conftest.err
29607 rm -f conftest.er1
29608 cat conftest.err >&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } && {
29611 test -z "$ac_c_werror_flag" ||
29612 test ! -s conftest.err
29613 } && test -s conftest.$ac_objext; then
29614 ac_header_compiler=yes
29615 else
29616 echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.$ac_ext >&5
29619 ac_header_compiler=no
29622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29624 echo "${ECHO_T}$ac_header_compiler" >&6; }
29626 # Is the header present?
29627 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
29628 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
29629 cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h. */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 #include <${TERMCAP_DIR}/include/>
29636 _ACEOF
29637 if { (ac_try="$ac_cpp conftest.$ac_ext"
29638 case "(($ac_try" in
29639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640 *) ac_try_echo=$ac_try;;
29641 esac
29642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29644 ac_status=$?
29645 grep -v '^ *+' conftest.er1 >conftest.err
29646 rm -f conftest.er1
29647 cat conftest.err >&5
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } >/dev/null && {
29650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29651 test ! -s conftest.err
29652 }; then
29653 ac_header_preproc=yes
29654 else
29655 echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29658 ac_header_preproc=no
29661 rm -f conftest.err conftest.$ac_ext
29662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29663 echo "${ECHO_T}$ac_header_preproc" >&6; }
29665 # So? What about this header?
29666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29667 yes:no: )
29668 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
29669 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
29670 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
29671 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
29672 ac_header_preproc=yes
29674 no:yes:* )
29675 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
29676 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
29677 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
29678 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
29679 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
29680 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
29681 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
29682 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
29683 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
29684 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
29685 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
29686 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
29689 esac
29690 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
29691 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
29692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29693 echo $ECHO_N "(cached) $ECHO_C" >&6
29694 else
29695 eval "$as_ac_Header=\$ac_header_preproc"
29697 ac_res=`eval echo '${'$as_ac_Header'}'`
29698 { echo "$as_me:$LINENO: result: $ac_res" >&5
29699 echo "${ECHO_T}$ac_res" >&6; }
29702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29703 TERMCAP_HEADER_FOUND=1
29704 else
29705 TERMCAP_HEADER_FOUND=0
29710 CPPFLAGS="${saved_cppflags}"
29711 else
29712 if test "x" != "x" ; then
29713 if test "${ac_cv_header_+set}" = set; then
29714 { echo "$as_me:$LINENO: checking for " >&5
29715 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29716 if test "${ac_cv_header_+set}" = set; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29719 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29720 echo "${ECHO_T}$ac_cv_header_" >&6; }
29721 else
29722 # Is the header compilable?
29723 { echo "$as_me:$LINENO: checking usability" >&5
29724 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29725 cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h. */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 $ac_includes_default
29732 #include <>
29733 _ACEOF
29734 rm -f conftest.$ac_objext
29735 if { (ac_try="$ac_compile"
29736 case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29739 esac
29740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_compile") 2>conftest.er1
29742 ac_status=$?
29743 grep -v '^ *+' conftest.er1 >conftest.err
29744 rm -f conftest.er1
29745 cat conftest.err >&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } && {
29748 test -z "$ac_c_werror_flag" ||
29749 test ! -s conftest.err
29750 } && test -s conftest.$ac_objext; then
29751 ac_header_compiler=yes
29752 else
29753 echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29756 ac_header_compiler=no
29759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29761 echo "${ECHO_T}$ac_header_compiler" >&6; }
29763 # Is the header present?
29764 { echo "$as_me:$LINENO: checking presence" >&5
29765 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29766 cat >conftest.$ac_ext <<_ACEOF
29767 /* confdefs.h. */
29768 _ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h. */
29772 #include <>
29773 _ACEOF
29774 if { (ac_try="$ac_cpp conftest.$ac_ext"
29775 case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29778 esac
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29781 ac_status=$?
29782 grep -v '^ *+' conftest.er1 >conftest.err
29783 rm -f conftest.er1
29784 cat conftest.err >&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } >/dev/null && {
29787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29788 test ! -s conftest.err
29789 }; then
29790 ac_header_preproc=yes
29791 else
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29795 ac_header_preproc=no
29798 rm -f conftest.err conftest.$ac_ext
29799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29800 echo "${ECHO_T}$ac_header_preproc" >&6; }
29802 # So? What about this header?
29803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29804 yes:no: )
29805 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29806 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29807 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29808 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29809 ac_header_preproc=yes
29811 no:yes:* )
29812 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29813 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29814 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29815 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29816 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29817 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29818 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29819 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29820 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29821 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29822 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29823 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29826 esac
29827 { echo "$as_me:$LINENO: checking for " >&5
29828 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29829 if test "${ac_cv_header_+set}" = set; then
29830 echo $ECHO_N "(cached) $ECHO_C" >&6
29831 else
29832 ac_cv_header_=$ac_header_preproc
29834 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29835 echo "${ECHO_T}$ac_cv_header_" >&6; }
29838 if test $ac_cv_header_ = yes; then
29839 TERMCAP_HEADER_FOUND=1
29840 else
29841 TERMCAP_HEADER_FOUND=0
29847 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
29848 if test -n "${TERMCAP_MANDATORY}" ;
29849 then
29850 { echo "$as_me:$LINENO: ***" >&5
29851 echo "$as_me: ***" >&6;}
29852 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
29853 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
29854 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
29855 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
29856 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
29857 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
29858 exit 1
29860 TERMCAP_LIB=""
29861 TERMCAP_INCLUDE=""
29862 PBX_TERMCAP=0
29863 else
29864 PBX_TERMCAP=1
29866 cat >>confdefs.h <<_ACEOF
29867 #define HAVE_TERMCAP 1
29868 _ACEOF
29871 elif test -n "${TERMCAP_MANDATORY}";
29872 then
29873 { echo "$as_me:$LINENO: ***" >&5
29874 echo "$as_me: ***" >&6;}
29875 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
29876 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
29877 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29878 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29879 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
29880 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
29881 exit 1
29887 if test "${USE_TINFO}" != "no"; then
29888 pbxlibdir=""
29889 if test "x${TINFO_DIR}" != "x"; then
29890 if test -d ${TINFO_DIR}/lib; then
29891 pbxlibdir="-L${TINFO_DIR}/lib"
29892 else
29893 pbxlibdir="-L${TINFO_DIR}"
29896 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
29897 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
29898 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
29899 echo $ECHO_N "(cached) $ECHO_C" >&6
29900 else
29901 ac_check_lib_save_LIBS=$LIBS
29902 LIBS="-ltinfo ${pbxlibdir} $LIBS"
29903 cat >conftest.$ac_ext <<_ACEOF
29904 /* confdefs.h. */
29905 _ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h. */
29910 /* Override any GCC internal prototype to avoid an error.
29911 Use char because int might match the return type of a GCC
29912 builtin and then its argument prototype would still apply. */
29913 #ifdef __cplusplus
29914 extern "C"
29915 #endif
29916 char tgetent ();
29918 main ()
29920 return tgetent ();
29922 return 0;
29924 _ACEOF
29925 rm -f conftest.$ac_objext conftest$ac_exeext
29926 if { (ac_try="$ac_link"
29927 case "(($ac_try" in
29928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929 *) ac_try_echo=$ac_try;;
29930 esac
29931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932 (eval "$ac_link") 2>conftest.er1
29933 ac_status=$?
29934 grep -v '^ *+' conftest.er1 >conftest.err
29935 rm -f conftest.er1
29936 cat conftest.err >&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } && {
29939 test -z "$ac_c_werror_flag" ||
29940 test ! -s conftest.err
29941 } && test -s conftest$ac_exeext &&
29942 $as_test_x conftest$ac_exeext; then
29943 ac_cv_lib_tinfo_tgetent=yes
29944 else
29945 echo "$as_me: failed program was:" >&5
29946 sed 's/^/| /' conftest.$ac_ext >&5
29948 ac_cv_lib_tinfo_tgetent=no
29951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29952 conftest$ac_exeext conftest.$ac_ext
29953 LIBS=$ac_check_lib_save_LIBS
29955 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29956 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
29957 if test $ac_cv_lib_tinfo_tgetent = yes; then
29958 AST_TINFO_FOUND=yes
29959 else
29960 AST_TINFO_FOUND=no
29964 if test "${AST_TINFO_FOUND}" = "yes"; then
29965 TINFO_LIB="-ltinfo "
29966 TINFO_HEADER_FOUND="1"
29967 if test "x${TINFO_DIR}" != "x"; then
29968 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
29969 TINFO_INCLUDE="-I${TINFO_DIR}/include"
29970 saved_cppflags="${CPPFLAGS}"
29971 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
29972 if test "x" != "x" ; then
29973 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
29974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29975 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
29976 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
29977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29980 ac_res=`eval echo '${'$as_ac_Header'}'`
29981 { echo "$as_me:$LINENO: result: $ac_res" >&5
29982 echo "${ECHO_T}$ac_res" >&6; }
29983 else
29984 # Is the header compilable?
29985 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
29986 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
29987 cat >conftest.$ac_ext <<_ACEOF
29988 /* confdefs.h. */
29989 _ACEOF
29990 cat confdefs.h >>conftest.$ac_ext
29991 cat >>conftest.$ac_ext <<_ACEOF
29992 /* end confdefs.h. */
29993 $ac_includes_default
29994 #include <${TINFO_DIR}/include/>
29995 _ACEOF
29996 rm -f conftest.$ac_objext
29997 if { (ac_try="$ac_compile"
29998 case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_compile") 2>conftest.er1
30004 ac_status=$?
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && {
30010 test -z "$ac_c_werror_flag" ||
30011 test ! -s conftest.err
30012 } && test -s conftest.$ac_objext; then
30013 ac_header_compiler=yes
30014 else
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30018 ac_header_compiler=no
30021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30023 echo "${ECHO_T}$ac_header_compiler" >&6; }
30025 # Is the header present?
30026 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
30027 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h. */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 #include <${TINFO_DIR}/include/>
30035 _ACEOF
30036 if { (ac_try="$ac_cpp conftest.$ac_ext"
30037 case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } >/dev/null && {
30049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30050 test ! -s conftest.err
30051 }; then
30052 ac_header_preproc=yes
30053 else
30054 echo "$as_me: failed program was:" >&5
30055 sed 's/^/| /' conftest.$ac_ext >&5
30057 ac_header_preproc=no
30060 rm -f conftest.err conftest.$ac_ext
30061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30062 echo "${ECHO_T}$ac_header_preproc" >&6; }
30064 # So? What about this header?
30065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30066 yes:no: )
30067 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
30068 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
30069 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
30070 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
30071 ac_header_preproc=yes
30073 no:yes:* )
30074 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
30075 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
30077 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
30078 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
30079 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
30080 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
30081 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
30082 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
30083 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
30084 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
30085 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
30088 esac
30089 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
30090 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
30091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30092 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 else
30094 eval "$as_ac_Header=\$ac_header_preproc"
30096 ac_res=`eval echo '${'$as_ac_Header'}'`
30097 { echo "$as_me:$LINENO: result: $ac_res" >&5
30098 echo "${ECHO_T}$ac_res" >&6; }
30101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30102 TINFO_HEADER_FOUND=1
30103 else
30104 TINFO_HEADER_FOUND=0
30109 CPPFLAGS="${saved_cppflags}"
30110 else
30111 if test "x" != "x" ; then
30112 if test "${ac_cv_header_+set}" = set; then
30113 { echo "$as_me:$LINENO: checking for " >&5
30114 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30115 if test "${ac_cv_header_+set}" = set; then
30116 echo $ECHO_N "(cached) $ECHO_C" >&6
30118 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30119 echo "${ECHO_T}$ac_cv_header_" >&6; }
30120 else
30121 # Is the header compilable?
30122 { echo "$as_me:$LINENO: checking usability" >&5
30123 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30124 cat >conftest.$ac_ext <<_ACEOF
30125 /* confdefs.h. */
30126 _ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h. */
30130 $ac_includes_default
30131 #include <>
30132 _ACEOF
30133 rm -f conftest.$ac_objext
30134 if { (ac_try="$ac_compile"
30135 case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30138 esac
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_compile") 2>conftest.er1
30141 ac_status=$?
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } && {
30147 test -z "$ac_c_werror_flag" ||
30148 test ! -s conftest.err
30149 } && test -s conftest.$ac_objext; then
30150 ac_header_compiler=yes
30151 else
30152 echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30155 ac_header_compiler=no
30158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30160 echo "${ECHO_T}$ac_header_compiler" >&6; }
30162 # Is the header present?
30163 { echo "$as_me:$LINENO: checking presence" >&5
30164 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30165 cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h. */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h. */
30171 #include <>
30172 _ACEOF
30173 if { (ac_try="$ac_cpp conftest.$ac_ext"
30174 case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30180 ac_status=$?
30181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } >/dev/null && {
30186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30187 test ! -s conftest.err
30188 }; then
30189 ac_header_preproc=yes
30190 else
30191 echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30194 ac_header_preproc=no
30197 rm -f conftest.err conftest.$ac_ext
30198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30199 echo "${ECHO_T}$ac_header_preproc" >&6; }
30201 # So? What about this header?
30202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30203 yes:no: )
30204 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30205 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30206 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30207 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30208 ac_header_preproc=yes
30210 no:yes:* )
30211 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30212 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30213 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30214 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30215 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30216 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30217 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30218 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30219 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30220 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30221 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30222 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30225 esac
30226 { echo "$as_me:$LINENO: checking for " >&5
30227 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30228 if test "${ac_cv_header_+set}" = set; then
30229 echo $ECHO_N "(cached) $ECHO_C" >&6
30230 else
30231 ac_cv_header_=$ac_header_preproc
30233 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30234 echo "${ECHO_T}$ac_cv_header_" >&6; }
30237 if test $ac_cv_header_ = yes; then
30238 TINFO_HEADER_FOUND=1
30239 else
30240 TINFO_HEADER_FOUND=0
30246 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
30247 if test -n "${TINFO_MANDATORY}" ;
30248 then
30249 { echo "$as_me:$LINENO: ***" >&5
30250 echo "$as_me: ***" >&6;}
30251 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
30252 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
30253 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
30254 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
30255 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30256 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30257 exit 1
30259 TINFO_LIB=""
30260 TINFO_INCLUDE=""
30261 PBX_TINFO=0
30262 else
30263 PBX_TINFO=1
30265 cat >>confdefs.h <<_ACEOF
30266 #define HAVE_TINFO 1
30267 _ACEOF
30270 elif test -n "${TINFO_MANDATORY}";
30271 then
30272 { echo "$as_me:$LINENO: ***" >&5
30273 echo "$as_me: ***" >&6;}
30274 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
30275 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
30276 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30277 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30278 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30279 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30280 exit 1
30285 if test "${host_os}" != "linux-gnu" ; then
30286 tonezone_extra="-lm"
30290 if test "${USE_TONEZONE}" != "no"; then
30291 pbxlibdir=""
30292 if test "x${TONEZONE_DIR}" != "x"; then
30293 if test -d ${TONEZONE_DIR}/lib; then
30294 pbxlibdir="-L${TONEZONE_DIR}/lib"
30295 else
30296 pbxlibdir="-L${TONEZONE_DIR}"
30299 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
30300 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
30301 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304 ac_check_lib_save_LIBS=$LIBS
30305 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
30306 cat >conftest.$ac_ext <<_ACEOF
30307 /* confdefs.h. */
30308 _ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h. */
30313 /* Override any GCC internal prototype to avoid an error.
30314 Use char because int might match the return type of a GCC
30315 builtin and then its argument prototype would still apply. */
30316 #ifdef __cplusplus
30317 extern "C"
30318 #endif
30319 char tone_zone_find ();
30321 main ()
30323 return tone_zone_find ();
30325 return 0;
30327 _ACEOF
30328 rm -f conftest.$ac_objext conftest$ac_exeext
30329 if { (ac_try="$ac_link"
30330 case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30333 esac
30334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335 (eval "$ac_link") 2>conftest.er1
30336 ac_status=$?
30337 grep -v '^ *+' conftest.er1 >conftest.err
30338 rm -f conftest.er1
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); } && {
30342 test -z "$ac_c_werror_flag" ||
30343 test ! -s conftest.err
30344 } && test -s conftest$ac_exeext &&
30345 $as_test_x conftest$ac_exeext; then
30346 ac_cv_lib_tonezone_tone_zone_find=yes
30347 else
30348 echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30351 ac_cv_lib_tonezone_tone_zone_find=no
30354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30355 conftest$ac_exeext conftest.$ac_ext
30356 LIBS=$ac_check_lib_save_LIBS
30358 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
30359 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
30360 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
30361 AST_TONEZONE_FOUND=yes
30362 else
30363 AST_TONEZONE_FOUND=no
30367 if test "${AST_TONEZONE_FOUND}" = "yes"; then
30368 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
30369 TONEZONE_HEADER_FOUND="1"
30370 if test "x${TONEZONE_DIR}" != "x"; then
30371 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
30372 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
30373 saved_cppflags="${CPPFLAGS}"
30374 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
30375 if test "xzaptel/tonezone.h" != "x" ; then
30376 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
30377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30378 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30379 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 ac_res=`eval echo '${'$as_ac_Header'}'`
30384 { echo "$as_me:$LINENO: result: $ac_res" >&5
30385 echo "${ECHO_T}$ac_res" >&6; }
30386 else
30387 # Is the header compilable?
30388 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
30389 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
30390 cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h. */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30396 $ac_includes_default
30397 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30398 _ACEOF
30399 rm -f conftest.$ac_objext
30400 if { (ac_try="$ac_compile"
30401 case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30404 esac
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_compile") 2>conftest.er1
30407 ac_status=$?
30408 grep -v '^ *+' conftest.er1 >conftest.err
30409 rm -f conftest.er1
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } && {
30413 test -z "$ac_c_werror_flag" ||
30414 test ! -s conftest.err
30415 } && test -s conftest.$ac_objext; then
30416 ac_header_compiler=yes
30417 else
30418 echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30421 ac_header_compiler=no
30424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30426 echo "${ECHO_T}$ac_header_compiler" >&6; }
30428 # Is the header present?
30429 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
30430 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
30431 cat >conftest.$ac_ext <<_ACEOF
30432 /* confdefs.h. */
30433 _ACEOF
30434 cat confdefs.h >>conftest.$ac_ext
30435 cat >>conftest.$ac_ext <<_ACEOF
30436 /* end confdefs.h. */
30437 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30438 _ACEOF
30439 if { (ac_try="$ac_cpp conftest.$ac_ext"
30440 case "(($ac_try" in
30441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442 *) ac_try_echo=$ac_try;;
30443 esac
30444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30446 ac_status=$?
30447 grep -v '^ *+' conftest.er1 >conftest.err
30448 rm -f conftest.er1
30449 cat conftest.err >&5
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } >/dev/null && {
30452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30453 test ! -s conftest.err
30454 }; then
30455 ac_header_preproc=yes
30456 else
30457 echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30460 ac_header_preproc=no
30463 rm -f conftest.err conftest.$ac_ext
30464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30465 echo "${ECHO_T}$ac_header_preproc" >&6; }
30467 # So? What about this header?
30468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30469 yes:no: )
30470 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
30471 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30472 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
30473 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
30474 ac_header_preproc=yes
30476 no:yes:* )
30477 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
30478 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
30479 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
30480 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
30481 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
30482 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
30483 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
30484 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
30485 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
30486 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
30487 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
30488 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
30491 esac
30492 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30493 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30495 echo $ECHO_N "(cached) $ECHO_C" >&6
30496 else
30497 eval "$as_ac_Header=\$ac_header_preproc"
30499 ac_res=`eval echo '${'$as_ac_Header'}'`
30500 { echo "$as_me:$LINENO: result: $ac_res" >&5
30501 echo "${ECHO_T}$ac_res" >&6; }
30504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30505 TONEZONE_HEADER_FOUND=1
30506 else
30507 TONEZONE_HEADER_FOUND=0
30512 CPPFLAGS="${saved_cppflags}"
30513 else
30514 if test "xzaptel/tonezone.h" != "x" ; then
30515 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30516 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
30517 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
30518 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
30522 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
30523 else
30524 # Is the header compilable?
30525 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
30526 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
30527 cat >conftest.$ac_ext <<_ACEOF
30528 /* confdefs.h. */
30529 _ACEOF
30530 cat confdefs.h >>conftest.$ac_ext
30531 cat >>conftest.$ac_ext <<_ACEOF
30532 /* end confdefs.h. */
30533 $ac_includes_default
30534 #include <zaptel/tonezone.h>
30535 _ACEOF
30536 rm -f conftest.$ac_objext
30537 if { (ac_try="$ac_compile"
30538 case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541 esac
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_compile") 2>conftest.er1
30544 ac_status=$?
30545 grep -v '^ *+' conftest.er1 >conftest.err
30546 rm -f conftest.er1
30547 cat conftest.err >&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); } && {
30550 test -z "$ac_c_werror_flag" ||
30551 test ! -s conftest.err
30552 } && test -s conftest.$ac_objext; then
30553 ac_header_compiler=yes
30554 else
30555 echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30558 ac_header_compiler=no
30561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30563 echo "${ECHO_T}$ac_header_compiler" >&6; }
30565 # Is the header present?
30566 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
30567 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
30568 cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h. */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30574 #include <zaptel/tonezone.h>
30575 _ACEOF
30576 if { (ac_try="$ac_cpp conftest.$ac_ext"
30577 case "(($ac_try" in
30578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30580 esac
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30583 ac_status=$?
30584 grep -v '^ *+' conftest.er1 >conftest.err
30585 rm -f conftest.er1
30586 cat conftest.err >&5
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); } >/dev/null && {
30589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30590 test ! -s conftest.err
30591 }; then
30592 ac_header_preproc=yes
30593 else
30594 echo "$as_me: failed program was:" >&5
30595 sed 's/^/| /' conftest.$ac_ext >&5
30597 ac_header_preproc=no
30600 rm -f conftest.err conftest.$ac_ext
30601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30602 echo "${ECHO_T}$ac_header_preproc" >&6; }
30604 # So? What about this header?
30605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30606 yes:no: )
30607 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
30608 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30609 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
30610 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
30611 ac_header_preproc=yes
30613 no:yes:* )
30614 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
30615 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
30617 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
30619 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
30621 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
30623 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
30625 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
30628 esac
30629 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
30630 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
30631 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30632 echo $ECHO_N "(cached) $ECHO_C" >&6
30633 else
30634 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
30636 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
30637 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
30640 if test $ac_cv_header_zaptel_tonezone_h = yes; then
30641 TONEZONE_HEADER_FOUND=1
30642 else
30643 TONEZONE_HEADER_FOUND=0
30649 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
30650 if test -n "${TONEZONE_MANDATORY}" ;
30651 then
30652 { echo "$as_me:$LINENO: ***" >&5
30653 echo "$as_me: ***" >&6;}
30654 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
30655 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
30656 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
30657 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
30658 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
30659 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
30660 exit 1
30662 TONEZONE_LIB=""
30663 TONEZONE_INCLUDE=""
30664 PBX_TONEZONE=0
30665 else
30666 PBX_TONEZONE=1
30668 cat >>confdefs.h <<_ACEOF
30669 #define HAVE_TONEZONE 1
30670 _ACEOF
30673 elif test -n "${TONEZONE_MANDATORY}";
30674 then
30675 { echo "$as_me:$LINENO: ***" >&5
30676 echo "$as_me: ***" >&6;}
30677 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
30678 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
30679 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30680 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30681 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
30682 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
30683 exit 1
30689 if test "${USE_USB}" != "no"; then
30690 pbxlibdir=""
30691 if test "x${USB_DIR}" != "x"; then
30692 if test -d ${USB_DIR}/lib; then
30693 pbxlibdir="-L${USB_DIR}/lib"
30694 else
30695 pbxlibdir="-L${USB_DIR}"
30698 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
30699 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
30700 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30702 else
30703 ac_check_lib_save_LIBS=$LIBS
30704 LIBS="-lusb ${pbxlibdir} $LIBS"
30705 cat >conftest.$ac_ext <<_ACEOF
30706 /* confdefs.h. */
30707 _ACEOF
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h. */
30712 /* Override any GCC internal prototype to avoid an error.
30713 Use char because int might match the return type of a GCC
30714 builtin and then its argument prototype would still apply. */
30715 #ifdef __cplusplus
30716 extern "C"
30717 #endif
30718 char usb_init ();
30720 main ()
30722 return usb_init ();
30724 return 0;
30726 _ACEOF
30727 rm -f conftest.$ac_objext conftest$ac_exeext
30728 if { (ac_try="$ac_link"
30729 case "(($ac_try" in
30730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30731 *) ac_try_echo=$ac_try;;
30732 esac
30733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30734 (eval "$ac_link") 2>conftest.er1
30735 ac_status=$?
30736 grep -v '^ *+' conftest.er1 >conftest.err
30737 rm -f conftest.er1
30738 cat conftest.err >&5
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); } && {
30741 test -z "$ac_c_werror_flag" ||
30742 test ! -s conftest.err
30743 } && test -s conftest$ac_exeext &&
30744 $as_test_x conftest$ac_exeext; then
30745 ac_cv_lib_usb_usb_init=yes
30746 else
30747 echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30750 ac_cv_lib_usb_usb_init=no
30753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30754 conftest$ac_exeext conftest.$ac_ext
30755 LIBS=$ac_check_lib_save_LIBS
30757 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
30758 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
30759 if test $ac_cv_lib_usb_usb_init = yes; then
30760 AST_USB_FOUND=yes
30761 else
30762 AST_USB_FOUND=no
30766 if test "${AST_USB_FOUND}" = "yes"; then
30767 USB_LIB="-lusb "
30768 USB_HEADER_FOUND="1"
30769 if test "x${USB_DIR}" != "x"; then
30770 USB_LIB="${pbxlibdir} ${USB_LIB}"
30771 USB_INCLUDE="-I${USB_DIR}/include"
30772 saved_cppflags="${CPPFLAGS}"
30773 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
30774 if test "xusb.h" != "x" ; then
30775 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
30776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30777 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
30778 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
30779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30782 ac_res=`eval echo '${'$as_ac_Header'}'`
30783 { echo "$as_me:$LINENO: result: $ac_res" >&5
30784 echo "${ECHO_T}$ac_res" >&6; }
30785 else
30786 # Is the header compilable?
30787 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
30788 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
30789 cat >conftest.$ac_ext <<_ACEOF
30790 /* confdefs.h. */
30791 _ACEOF
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h. */
30795 $ac_includes_default
30796 #include <${USB_DIR}/include/usb.h>
30797 _ACEOF
30798 rm -f conftest.$ac_objext
30799 if { (ac_try="$ac_compile"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803 esac
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && {
30812 test -z "$ac_c_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
30815 ac_header_compiler=yes
30816 else
30817 echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30820 ac_header_compiler=no
30823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30825 echo "${ECHO_T}$ac_header_compiler" >&6; }
30827 # Is the header present?
30828 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
30829 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
30830 cat >conftest.$ac_ext <<_ACEOF
30831 /* confdefs.h. */
30832 _ACEOF
30833 cat confdefs.h >>conftest.$ac_ext
30834 cat >>conftest.$ac_ext <<_ACEOF
30835 /* end confdefs.h. */
30836 #include <${USB_DIR}/include/usb.h>
30837 _ACEOF
30838 if { (ac_try="$ac_cpp conftest.$ac_ext"
30839 case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30845 ac_status=$?
30846 grep -v '^ *+' conftest.er1 >conftest.err
30847 rm -f conftest.er1
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } >/dev/null && {
30851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30852 test ! -s conftest.err
30853 }; then
30854 ac_header_preproc=yes
30855 else
30856 echo "$as_me: failed program was:" >&5
30857 sed 's/^/| /' conftest.$ac_ext >&5
30859 ac_header_preproc=no
30862 rm -f conftest.err conftest.$ac_ext
30863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30864 echo "${ECHO_T}$ac_header_preproc" >&6; }
30866 # So? What about this header?
30867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30868 yes:no: )
30869 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
30870 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30871 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
30872 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
30873 ac_header_preproc=yes
30875 no:yes:* )
30876 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
30877 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
30879 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
30881 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
30883 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
30885 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
30886 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
30887 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
30890 esac
30891 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
30892 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
30893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30894 echo $ECHO_N "(cached) $ECHO_C" >&6
30895 else
30896 eval "$as_ac_Header=\$ac_header_preproc"
30898 ac_res=`eval echo '${'$as_ac_Header'}'`
30899 { echo "$as_me:$LINENO: result: $ac_res" >&5
30900 echo "${ECHO_T}$ac_res" >&6; }
30903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30904 USB_HEADER_FOUND=1
30905 else
30906 USB_HEADER_FOUND=0
30911 CPPFLAGS="${saved_cppflags}"
30912 else
30913 if test "xusb.h" != "x" ; then
30914 if test "${ac_cv_header_usb_h+set}" = set; then
30915 { echo "$as_me:$LINENO: checking for usb.h" >&5
30916 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
30917 if test "${ac_cv_header_usb_h+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
30921 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
30922 else
30923 # Is the header compilable?
30924 { echo "$as_me:$LINENO: checking usb.h usability" >&5
30925 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
30926 cat >conftest.$ac_ext <<_ACEOF
30927 /* confdefs.h. */
30928 _ACEOF
30929 cat confdefs.h >>conftest.$ac_ext
30930 cat >>conftest.$ac_ext <<_ACEOF
30931 /* end confdefs.h. */
30932 $ac_includes_default
30933 #include <usb.h>
30934 _ACEOF
30935 rm -f conftest.$ac_objext
30936 if { (ac_try="$ac_compile"
30937 case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30940 esac
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_compile") 2>conftest.er1
30943 ac_status=$?
30944 grep -v '^ *+' conftest.er1 >conftest.err
30945 rm -f conftest.er1
30946 cat conftest.err >&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } && {
30949 test -z "$ac_c_werror_flag" ||
30950 test ! -s conftest.err
30951 } && test -s conftest.$ac_objext; then
30952 ac_header_compiler=yes
30953 else
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_header_compiler=no
30960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30962 echo "${ECHO_T}$ac_header_compiler" >&6; }
30964 # Is the header present?
30965 { echo "$as_me:$LINENO: checking usb.h presence" >&5
30966 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
30967 cat >conftest.$ac_ext <<_ACEOF
30968 /* confdefs.h. */
30969 _ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h. */
30973 #include <usb.h>
30974 _ACEOF
30975 if { (ac_try="$ac_cpp conftest.$ac_ext"
30976 case "(($ac_try" in
30977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978 *) ac_try_echo=$ac_try;;
30979 esac
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30982 ac_status=$?
30983 grep -v '^ *+' conftest.er1 >conftest.err
30984 rm -f conftest.er1
30985 cat conftest.err >&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } >/dev/null && {
30988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30989 test ! -s conftest.err
30990 }; then
30991 ac_header_preproc=yes
30992 else
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ac_header_preproc=no
30999 rm -f conftest.err conftest.$ac_ext
31000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31001 echo "${ECHO_T}$ac_header_preproc" >&6; }
31003 # So? What about this header?
31004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31005 yes:no: )
31006 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
31007 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31008 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
31009 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
31010 ac_header_preproc=yes
31012 no:yes:* )
31013 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
31014 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
31015 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
31016 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
31017 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
31018 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
31020 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
31021 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
31022 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
31023 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
31024 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
31027 esac
31028 { echo "$as_me:$LINENO: checking for usb.h" >&5
31029 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
31030 if test "${ac_cv_header_usb_h+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31033 ac_cv_header_usb_h=$ac_header_preproc
31035 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
31036 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
31039 if test $ac_cv_header_usb_h = yes; then
31040 USB_HEADER_FOUND=1
31041 else
31042 USB_HEADER_FOUND=0
31048 if test "x${USB_HEADER_FOUND}" = "x0" ; then
31049 if test -n "${USB_MANDATORY}" ;
31050 then
31051 { echo "$as_me:$LINENO: ***" >&5
31052 echo "$as_me: ***" >&6;}
31053 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
31054 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
31055 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
31056 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
31057 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
31058 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
31059 exit 1
31061 USB_LIB=""
31062 USB_INCLUDE=""
31063 PBX_USB=0
31064 else
31065 PBX_USB=1
31067 cat >>confdefs.h <<_ACEOF
31068 #define HAVE_USB 1
31069 _ACEOF
31072 elif test -n "${USB_MANDATORY}";
31073 then
31074 { echo "$as_me:$LINENO: ***" >&5
31075 echo "$as_me: ***" >&6;}
31076 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
31077 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
31078 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31079 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31080 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
31081 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
31082 exit 1
31088 if test "${USE_VORBIS}" != "no"; then
31089 pbxlibdir=""
31090 if test "x${VORBIS_DIR}" != "x"; then
31091 if test -d ${VORBIS_DIR}/lib; then
31092 pbxlibdir="-L${VORBIS_DIR}/lib"
31093 else
31094 pbxlibdir="-L${VORBIS_DIR}"
31097 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
31098 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
31099 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102 ac_check_lib_save_LIBS=$LIBS
31103 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
31104 cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h. */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31111 /* Override any GCC internal prototype to avoid an error.
31112 Use char because int might match the return type of a GCC
31113 builtin and then its argument prototype would still apply. */
31114 #ifdef __cplusplus
31115 extern "C"
31116 #endif
31117 char vorbis_info_init ();
31119 main ()
31121 return vorbis_info_init ();
31123 return 0;
31125 _ACEOF
31126 rm -f conftest.$ac_objext conftest$ac_exeext
31127 if { (ac_try="$ac_link"
31128 case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_link") 2>conftest.er1
31134 ac_status=$?
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } && {
31140 test -z "$ac_c_werror_flag" ||
31141 test ! -s conftest.err
31142 } && test -s conftest$ac_exeext &&
31143 $as_test_x conftest$ac_exeext; then
31144 ac_cv_lib_vorbis_vorbis_info_init=yes
31145 else
31146 echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31149 ac_cv_lib_vorbis_vorbis_info_init=no
31152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31153 conftest$ac_exeext conftest.$ac_ext
31154 LIBS=$ac_check_lib_save_LIBS
31156 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
31157 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
31158 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
31159 AST_VORBIS_FOUND=yes
31160 else
31161 AST_VORBIS_FOUND=no
31165 if test "${AST_VORBIS_FOUND}" = "yes"; then
31166 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
31167 VORBIS_HEADER_FOUND="1"
31168 if test "x${VORBIS_DIR}" != "x"; then
31169 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
31170 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
31171 saved_cppflags="${CPPFLAGS}"
31172 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
31173 if test "xvorbis/codec.h" != "x" ; then
31174 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
31175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31176 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
31177 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
31178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31181 ac_res=`eval echo '${'$as_ac_Header'}'`
31182 { echo "$as_me:$LINENO: result: $ac_res" >&5
31183 echo "${ECHO_T}$ac_res" >&6; }
31184 else
31185 # Is the header compilable?
31186 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
31187 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
31188 cat >conftest.$ac_ext <<_ACEOF
31189 /* confdefs.h. */
31190 _ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h. */
31194 $ac_includes_default
31195 #include <${VORBIS_DIR}/include/vorbis/codec.h>
31196 _ACEOF
31197 rm -f conftest.$ac_objext
31198 if { (ac_try="$ac_compile"
31199 case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_compile") 2>conftest.er1
31205 ac_status=$?
31206 grep -v '^ *+' conftest.er1 >conftest.err
31207 rm -f conftest.er1
31208 cat conftest.err >&5
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } && {
31211 test -z "$ac_c_werror_flag" ||
31212 test ! -s conftest.err
31213 } && test -s conftest.$ac_objext; then
31214 ac_header_compiler=yes
31215 else
31216 echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31219 ac_header_compiler=no
31222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31224 echo "${ECHO_T}$ac_header_compiler" >&6; }
31226 # Is the header present?
31227 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
31228 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
31229 cat >conftest.$ac_ext <<_ACEOF
31230 /* confdefs.h. */
31231 _ACEOF
31232 cat confdefs.h >>conftest.$ac_ext
31233 cat >>conftest.$ac_ext <<_ACEOF
31234 /* end confdefs.h. */
31235 #include <${VORBIS_DIR}/include/vorbis/codec.h>
31236 _ACEOF
31237 if { (ac_try="$ac_cpp conftest.$ac_ext"
31238 case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31244 ac_status=$?
31245 grep -v '^ *+' conftest.er1 >conftest.err
31246 rm -f conftest.er1
31247 cat conftest.err >&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); } >/dev/null && {
31250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31251 test ! -s conftest.err
31252 }; then
31253 ac_header_preproc=yes
31254 else
31255 echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31258 ac_header_preproc=no
31261 rm -f conftest.err conftest.$ac_ext
31262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31263 echo "${ECHO_T}$ac_header_preproc" >&6; }
31265 # So? What about this header?
31266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31267 yes:no: )
31268 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31269 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31270 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
31271 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
31272 ac_header_preproc=yes
31274 no:yes:* )
31275 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
31276 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
31277 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
31278 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31279 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
31280 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
31281 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31282 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31283 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
31284 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31285 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
31286 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31289 esac
31290 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
31291 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
31292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 else
31295 eval "$as_ac_Header=\$ac_header_preproc"
31297 ac_res=`eval echo '${'$as_ac_Header'}'`
31298 { echo "$as_me:$LINENO: result: $ac_res" >&5
31299 echo "${ECHO_T}$ac_res" >&6; }
31302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31303 VORBIS_HEADER_FOUND=1
31304 else
31305 VORBIS_HEADER_FOUND=0
31310 CPPFLAGS="${saved_cppflags}"
31311 else
31312 if test "xvorbis/codec.h" != "x" ; then
31313 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31314 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31315 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
31316 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31319 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31320 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
31321 else
31322 # Is the header compilable?
31323 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
31324 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
31325 cat >conftest.$ac_ext <<_ACEOF
31326 /* confdefs.h. */
31327 _ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h. */
31331 $ac_includes_default
31332 #include <vorbis/codec.h>
31333 _ACEOF
31334 rm -f conftest.$ac_objext
31335 if { (ac_try="$ac_compile"
31336 case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31339 esac
31340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_compile") 2>conftest.er1
31342 ac_status=$?
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } && {
31348 test -z "$ac_c_werror_flag" ||
31349 test ! -s conftest.err
31350 } && test -s conftest.$ac_objext; then
31351 ac_header_compiler=yes
31352 else
31353 echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31356 ac_header_compiler=no
31359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31361 echo "${ECHO_T}$ac_header_compiler" >&6; }
31363 # Is the header present?
31364 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
31365 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
31366 cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h. */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31372 #include <vorbis/codec.h>
31373 _ACEOF
31374 if { (ac_try="$ac_cpp conftest.$ac_ext"
31375 case "(($ac_try" in
31376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377 *) ac_try_echo=$ac_try;;
31378 esac
31379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31381 ac_status=$?
31382 grep -v '^ *+' conftest.er1 >conftest.err
31383 rm -f conftest.er1
31384 cat conftest.err >&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); } >/dev/null && {
31387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31388 test ! -s conftest.err
31389 }; then
31390 ac_header_preproc=yes
31391 else
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31395 ac_header_preproc=no
31398 rm -f conftest.err conftest.$ac_ext
31399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31400 echo "${ECHO_T}$ac_header_preproc" >&6; }
31402 # So? What about this header?
31403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31404 yes:no: )
31405 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31406 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31407 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
31408 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
31409 ac_header_preproc=yes
31411 no:yes:* )
31412 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
31413 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
31414 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
31415 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
31417 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
31418 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31419 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
31421 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
31423 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31426 esac
31427 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31428 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
31429 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431 else
31432 ac_cv_header_vorbis_codec_h=$ac_header_preproc
31434 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31435 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
31438 if test $ac_cv_header_vorbis_codec_h = yes; then
31439 VORBIS_HEADER_FOUND=1
31440 else
31441 VORBIS_HEADER_FOUND=0
31447 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
31448 if test -n "${VORBIS_MANDATORY}" ;
31449 then
31450 { echo "$as_me:$LINENO: ***" >&5
31451 echo "$as_me: ***" >&6;}
31452 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
31453 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
31454 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
31455 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
31456 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
31457 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
31458 exit 1
31460 VORBIS_LIB=""
31461 VORBIS_INCLUDE=""
31462 PBX_VORBIS=0
31463 else
31464 PBX_VORBIS=1
31466 cat >>confdefs.h <<_ACEOF
31467 #define HAVE_VORBIS 1
31468 _ACEOF
31471 elif test -n "${VORBIS_MANDATORY}";
31472 then
31473 { echo "$as_me:$LINENO: ***" >&5
31474 echo "$as_me: ***" >&6;}
31475 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
31476 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
31477 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31478 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31479 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
31480 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
31481 exit 1
31486 ac_ext=cpp
31487 ac_cpp='$CXXCPP $CPPFLAGS'
31488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31493 if test "${USE_VPB}" != "no"; then
31494 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
31495 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
31496 saved_libs="${LIBS}"
31497 saved_cppflags="${CPPFLAGS}"
31498 if test "x${VPB_DIR}" != "x"; then
31499 if test -d ${VPB_DIR}/lib; then
31500 vpblibdir=${VPB_DIR}/lib
31501 else
31502 vpblibdir=${VPB_DIR}
31504 LIBS="${LIBS} -L${vpblibdir}"
31505 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
31507 LIBS="${LIBS} -lvpb -lpthread"
31508 cat >conftest.$ac_ext <<_ACEOF
31510 /* confdefs.h. */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 #include <vpbapi.h>
31517 main ()
31519 int q = vpb_open(0,0);
31521 return 0;
31524 _ACEOF
31525 rm -f conftest.$ac_objext conftest$ac_exeext
31526 if { (ac_try="$ac_link"
31527 case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31530 esac
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_link") 2>conftest.er1
31533 ac_status=$?
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } && {
31539 test -z "$ac_cxx_werror_flag" ||
31540 test ! -s conftest.err
31541 } && test -s conftest$ac_exeext &&
31542 $as_test_x conftest$ac_exeext; then
31543 { echo "$as_me:$LINENO: result: yes" >&5
31544 echo "${ECHO_T}yes" >&6; }
31545 ac_cv_lib_vpb_vpb_open="yes"
31547 else
31548 echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31551 { echo "$as_me:$LINENO: result: no" >&5
31552 echo "${ECHO_T}no" >&6; }
31553 ac_cv_lib_vpb_vpb_open="no"
31558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31559 conftest$ac_exeext conftest.$ac_ext
31560 LIBS="${saved_libs}"
31561 CPPFLAGS="${saved_cppflags}"
31562 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
31563 VPB_LIB="-lvpb"
31564 if test "${VPB_DIR}" != ""; then
31565 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
31566 VPB_INCLUDE="-I${VPB_DIR}/include"
31568 PBX_VPB=1
31570 cat >>confdefs.h <<\_ACEOF
31571 #define HAVE_VPB 1
31572 _ACEOF
31574 elif test -n "${VPB_MANDATORY}"; then
31575 { echo "$as_me:$LINENO: ***" >&5
31576 echo "$as_me: ***" >&6;}
31577 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
31578 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
31579 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31580 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31581 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
31582 echo "$as_me: *** including --without-vpb." >&6;}
31583 exit 1
31587 ac_ext=c
31588 ac_cpp='$CPP $CPPFLAGS'
31589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31595 if test "${USE_ZLIB}" != "no"; then
31596 pbxlibdir=""
31597 if test "x${ZLIB_DIR}" != "x"; then
31598 if test -d ${ZLIB_DIR}/lib; then
31599 pbxlibdir="-L${ZLIB_DIR}/lib"
31600 else
31601 pbxlibdir="-L${ZLIB_DIR}"
31604 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
31605 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
31606 if test "${ac_cv_lib_z_compress+set}" = set; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 else
31609 ac_check_lib_save_LIBS=$LIBS
31610 LIBS="-lz ${pbxlibdir} $LIBS"
31611 cat >conftest.$ac_ext <<_ACEOF
31612 /* confdefs.h. */
31613 _ACEOF
31614 cat confdefs.h >>conftest.$ac_ext
31615 cat >>conftest.$ac_ext <<_ACEOF
31616 /* end confdefs.h. */
31618 /* Override any GCC internal prototype to avoid an error.
31619 Use char because int might match the return type of a GCC
31620 builtin and then its argument prototype would still apply. */
31621 #ifdef __cplusplus
31622 extern "C"
31623 #endif
31624 char compress ();
31626 main ()
31628 return compress ();
31630 return 0;
31632 _ACEOF
31633 rm -f conftest.$ac_objext conftest$ac_exeext
31634 if { (ac_try="$ac_link"
31635 case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31638 esac
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_link") 2>conftest.er1
31641 ac_status=$?
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } && {
31647 test -z "$ac_c_werror_flag" ||
31648 test ! -s conftest.err
31649 } && test -s conftest$ac_exeext &&
31650 $as_test_x conftest$ac_exeext; then
31651 ac_cv_lib_z_compress=yes
31652 else
31653 echo "$as_me: failed program was:" >&5
31654 sed 's/^/| /' conftest.$ac_ext >&5
31656 ac_cv_lib_z_compress=no
31659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31660 conftest$ac_exeext conftest.$ac_ext
31661 LIBS=$ac_check_lib_save_LIBS
31663 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
31664 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
31665 if test $ac_cv_lib_z_compress = yes; then
31666 AST_ZLIB_FOUND=yes
31667 else
31668 AST_ZLIB_FOUND=no
31672 if test "${AST_ZLIB_FOUND}" = "yes"; then
31673 ZLIB_LIB="-lz "
31674 ZLIB_HEADER_FOUND="1"
31675 if test "x${ZLIB_DIR}" != "x"; then
31676 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
31677 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
31678 saved_cppflags="${CPPFLAGS}"
31679 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
31680 if test "xzlib.h" != "x" ; then
31681 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
31682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31683 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
31684 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
31685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31688 ac_res=`eval echo '${'$as_ac_Header'}'`
31689 { echo "$as_me:$LINENO: result: $ac_res" >&5
31690 echo "${ECHO_T}$ac_res" >&6; }
31691 else
31692 # Is the header compilable?
31693 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
31694 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
31695 cat >conftest.$ac_ext <<_ACEOF
31696 /* confdefs.h. */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h. */
31701 $ac_includes_default
31702 #include <${ZLIB_DIR}/include/zlib.h>
31703 _ACEOF
31704 rm -f conftest.$ac_objext
31705 if { (ac_try="$ac_compile"
31706 case "(($ac_try" in
31707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708 *) ac_try_echo=$ac_try;;
31709 esac
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711 (eval "$ac_compile") 2>conftest.er1
31712 ac_status=$?
31713 grep -v '^ *+' conftest.er1 >conftest.err
31714 rm -f conftest.er1
31715 cat conftest.err >&5
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } && {
31718 test -z "$ac_c_werror_flag" ||
31719 test ! -s conftest.err
31720 } && test -s conftest.$ac_objext; then
31721 ac_header_compiler=yes
31722 else
31723 echo "$as_me: failed program was:" >&5
31724 sed 's/^/| /' conftest.$ac_ext >&5
31726 ac_header_compiler=no
31729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31731 echo "${ECHO_T}$ac_header_compiler" >&6; }
31733 # Is the header present?
31734 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
31735 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
31736 cat >conftest.$ac_ext <<_ACEOF
31737 /* confdefs.h. */
31738 _ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h. */
31742 #include <${ZLIB_DIR}/include/zlib.h>
31743 _ACEOF
31744 if { (ac_try="$ac_cpp conftest.$ac_ext"
31745 case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31748 esac
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31751 ac_status=$?
31752 grep -v '^ *+' conftest.er1 >conftest.err
31753 rm -f conftest.er1
31754 cat conftest.err >&5
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); } >/dev/null && {
31757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31758 test ! -s conftest.err
31759 }; then
31760 ac_header_preproc=yes
31761 else
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 ac_header_preproc=no
31768 rm -f conftest.err conftest.$ac_ext
31769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31770 echo "${ECHO_T}$ac_header_preproc" >&6; }
31772 # So? What about this header?
31773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31774 yes:no: )
31775 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31776 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31777 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
31778 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
31779 ac_header_preproc=yes
31781 no:yes:* )
31782 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
31783 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
31784 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
31785 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
31786 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
31787 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
31788 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31789 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31790 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
31791 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
31792 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
31793 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
31796 esac
31797 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
31798 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
31799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31800 echo $ECHO_N "(cached) $ECHO_C" >&6
31801 else
31802 eval "$as_ac_Header=\$ac_header_preproc"
31804 ac_res=`eval echo '${'$as_ac_Header'}'`
31805 { echo "$as_me:$LINENO: result: $ac_res" >&5
31806 echo "${ECHO_T}$ac_res" >&6; }
31809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31810 ZLIB_HEADER_FOUND=1
31811 else
31812 ZLIB_HEADER_FOUND=0
31817 CPPFLAGS="${saved_cppflags}"
31818 else
31819 if test "xzlib.h" != "x" ; then
31820 if test "${ac_cv_header_zlib_h+set}" = set; then
31821 { echo "$as_me:$LINENO: checking for zlib.h" >&5
31822 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
31823 if test "${ac_cv_header_zlib_h+set}" = set; then
31824 echo $ECHO_N "(cached) $ECHO_C" >&6
31826 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31827 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31828 else
31829 # Is the header compilable?
31830 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
31831 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
31832 cat >conftest.$ac_ext <<_ACEOF
31833 /* confdefs.h. */
31834 _ACEOF
31835 cat confdefs.h >>conftest.$ac_ext
31836 cat >>conftest.$ac_ext <<_ACEOF
31837 /* end confdefs.h. */
31838 $ac_includes_default
31839 #include <zlib.h>
31840 _ACEOF
31841 rm -f conftest.$ac_objext
31842 if { (ac_try="$ac_compile"
31843 case "(($ac_try" in
31844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845 *) ac_try_echo=$ac_try;;
31846 esac
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848 (eval "$ac_compile") 2>conftest.er1
31849 ac_status=$?
31850 grep -v '^ *+' conftest.er1 >conftest.err
31851 rm -f conftest.er1
31852 cat conftest.err >&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); } && {
31855 test -z "$ac_c_werror_flag" ||
31856 test ! -s conftest.err
31857 } && test -s conftest.$ac_objext; then
31858 ac_header_compiler=yes
31859 else
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31863 ac_header_compiler=no
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31868 echo "${ECHO_T}$ac_header_compiler" >&6; }
31870 # Is the header present?
31871 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
31872 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
31873 cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h. */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h. */
31879 #include <zlib.h>
31880 _ACEOF
31881 if { (ac_try="$ac_cpp conftest.$ac_ext"
31882 case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31885 esac
31886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31888 ac_status=$?
31889 grep -v '^ *+' conftest.er1 >conftest.err
31890 rm -f conftest.er1
31891 cat conftest.err >&5
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); } >/dev/null && {
31894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31895 test ! -s conftest.err
31896 }; then
31897 ac_header_preproc=yes
31898 else
31899 echo "$as_me: failed program was:" >&5
31900 sed 's/^/| /' conftest.$ac_ext >&5
31902 ac_header_preproc=no
31905 rm -f conftest.err conftest.$ac_ext
31906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31907 echo "${ECHO_T}$ac_header_preproc" >&6; }
31909 # So? What about this header?
31910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31911 yes:no: )
31912 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31913 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31914 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31915 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31916 ac_header_preproc=yes
31918 no:yes:* )
31919 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31920 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31921 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31922 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31923 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31924 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31925 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31926 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31927 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31928 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31929 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31930 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31933 esac
31934 { echo "$as_me:$LINENO: checking for zlib.h" >&5
31935 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
31936 if test "${ac_cv_header_zlib_h+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938 else
31939 ac_cv_header_zlib_h=$ac_header_preproc
31941 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31942 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31945 if test $ac_cv_header_zlib_h = yes; then
31946 ZLIB_HEADER_FOUND=1
31947 else
31948 ZLIB_HEADER_FOUND=0
31954 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
31955 if test -n "${ZLIB_MANDATORY}" ;
31956 then
31957 { echo "$as_me:$LINENO: ***" >&5
31958 echo "$as_me: ***" >&6;}
31959 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
31960 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
31961 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
31962 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
31963 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
31964 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
31965 exit 1
31967 ZLIB_LIB=""
31968 ZLIB_INCLUDE=""
31969 PBX_ZLIB=0
31970 else
31971 PBX_ZLIB=1
31973 cat >>confdefs.h <<_ACEOF
31974 #define HAVE_ZLIB 1
31975 _ACEOF
31978 elif test -n "${ZLIB_MANDATORY}";
31979 then
31980 { echo "$as_me:$LINENO: ***" >&5
31981 echo "$as_me: ***" >&6;}
31982 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
31983 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
31984 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31985 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31986 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
31987 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
31988 exit 1
31993 if test "${USE_ZAPTEL}" != "no"; then
31994 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
31995 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
31996 saved_cppflags="${CPPFLAGS}"
31997 if test "x${ZAPTEL_DIR}" != "x"; then
31998 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32000 cat >conftest.$ac_ext <<_ACEOF
32002 /* confdefs.h. */
32003 _ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h. */
32007 #include <zaptel/zaptel.h>
32009 main ()
32011 int foo = ZT_DIAL_OP_CANCEL;
32013 return 0;
32016 _ACEOF
32017 rm -f conftest.$ac_objext
32018 if { (ac_try="$ac_compile"
32019 case "(($ac_try" in
32020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32021 *) ac_try_echo=$ac_try;;
32022 esac
32023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32024 (eval "$ac_compile") 2>conftest.er1
32025 ac_status=$?
32026 grep -v '^ *+' conftest.er1 >conftest.err
32027 rm -f conftest.er1
32028 cat conftest.err >&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); } && {
32031 test -z "$ac_c_werror_flag" ||
32032 test ! -s conftest.err
32033 } && test -s conftest.$ac_objext; then
32034 { echo "$as_me:$LINENO: result: yes" >&5
32035 echo "${ECHO_T}yes" >&6; }
32036 ac_cv_zaptel_h="yes"
32038 else
32039 echo "$as_me: failed program was:" >&5
32040 sed 's/^/| /' conftest.$ac_ext >&5
32042 { echo "$as_me:$LINENO: result: no" >&5
32043 echo "${ECHO_T}no" >&6; }
32044 ac_cv_zaptel_h="no"
32049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32050 CPPFLAGS="${saved_cppflags}"
32051 if test "${ac_cv_zaptel_h}" = "yes"; then
32052 if test "${ZAPTEL_DIR}" != ""; then
32053 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
32055 PBX_ZAPTEL=1
32057 cat >>confdefs.h <<\_ACEOF
32058 #define HAVE_ZAPTEL 1
32059 _ACEOF
32061 elif test -n "${ZAPTEL_MANDATORY}";
32062 then
32063 { echo "$as_me:$LINENO: ***" >&5
32064 echo "$as_me: ***" >&6;}
32065 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
32066 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
32067 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32068 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32069 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
32070 echo "$as_me: *** including --without-zaptel." >&6;}
32071 exit 1
32075 if test "${PBX_ZAPTEL}" = 1; then
32076 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
32077 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
32078 saved_cppflags="${CPPFLAGS}"
32079 if test "x${ZAPTEL_DIR}" != "x"; then
32080 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32082 cat >conftest.$ac_ext <<_ACEOF
32084 /* confdefs.h. */
32085 _ACEOF
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h. */
32089 #include <zaptel/zaptel.h>
32091 main ()
32093 int foo = ZT_EVENT_REMOVED;
32095 return 0;
32098 _ACEOF
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32104 esac
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_compile") 2>conftest.er1
32107 ac_status=$?
32108 grep -v '^ *+' conftest.er1 >conftest.err
32109 rm -f conftest.er1
32110 cat conftest.err >&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); } && {
32113 test -z "$ac_c_werror_flag" ||
32114 test ! -s conftest.err
32115 } && test -s conftest.$ac_objext; then
32116 { echo "$as_me:$LINENO: result: yes" >&5
32117 echo "${ECHO_T}yes" >&6; }
32118 ac_cv_zaptel_vldtmf="yes"
32120 else
32121 echo "$as_me: failed program was:" >&5
32122 sed 's/^/| /' conftest.$ac_ext >&5
32124 { echo "$as_me:$LINENO: result: no" >&5
32125 echo "${ECHO_T}no" >&6; }
32126 ac_cv_zaptel_vldtmf="no"
32131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32132 CPPFLAGS="${saved_cppflags}"
32133 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
32134 PBX_ZAPTEL_VLDTMF=1
32136 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
32137 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
32138 saved_cppflags="${CPPFLAGS}"
32139 if test "x${ZAPTEL_DIR}" != "x"; then
32140 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32142 cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h. */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h. */
32149 #include <zaptel/zaptel.h>
32151 main ()
32153 int foo = ZT_TCOP_ALLOCATE;
32155 return 0;
32158 _ACEOF
32159 rm -f conftest.$ac_objext
32160 if { (ac_try="$ac_compile"
32161 case "(($ac_try" in
32162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163 *) ac_try_echo=$ac_try;;
32164 esac
32165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166 (eval "$ac_compile") 2>conftest.er1
32167 ac_status=$?
32168 grep -v '^ *+' conftest.er1 >conftest.err
32169 rm -f conftest.er1
32170 cat conftest.err >&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } && {
32173 test -z "$ac_c_werror_flag" ||
32174 test ! -s conftest.err
32175 } && test -s conftest.$ac_objext; then
32176 { echo "$as_me:$LINENO: result: yes" >&5
32177 echo "${ECHO_T}yes" >&6; }
32178 ac_cv_zaptel_transcode="yes"
32180 else
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32184 { echo "$as_me:$LINENO: result: no" >&5
32185 echo "${ECHO_T}no" >&6; }
32186 ac_cv_zaptel_transcode="no"
32191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32192 CPPFLAGS="${saved_cppflags}"
32193 if test "${ac_cv_zaptel_transcode}" = "yes"; then
32194 PBX_ZAPTEL_TRANSCODE=1
32200 EDITLINE_LIB=""
32201 if test "x$TERMCAP_LIB" != "x" ; then
32202 EDITLINE_LIB="$TERMCAP_LIB"
32203 elif test "x$TINFO_LIB" != "x" ; then
32204 EDITLINE_LIB="$TINFO_LIB"
32205 elif test "x$CURSES_LIB" != "x" ; then
32206 EDITLINE_LIB="$CURSES_LIB"
32207 elif test "x$NCURSES_LIB" != "x" ; then
32208 EDITLINE_LIB="$NCURSES_LIB"
32209 else
32210 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
32211 echo "$as_me: error: *** termcap support not found" >&2;}
32212 { (exit 1); exit 1; }; }
32216 if test "${ac_cv_header_h323_h+set}" = set; then
32217 { echo "$as_me:$LINENO: checking for h323.h" >&5
32218 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
32219 if test "${ac_cv_header_h323_h+set}" = set; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32222 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
32223 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
32224 else
32225 # Is the header compilable?
32226 { echo "$as_me:$LINENO: checking h323.h usability" >&5
32227 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
32228 cat >conftest.$ac_ext <<_ACEOF
32229 /* confdefs.h. */
32230 _ACEOF
32231 cat confdefs.h >>conftest.$ac_ext
32232 cat >>conftest.$ac_ext <<_ACEOF
32233 /* end confdefs.h. */
32234 $ac_includes_default
32235 #include <h323.h>
32236 _ACEOF
32237 rm -f conftest.$ac_objext
32238 if { (ac_try="$ac_compile"
32239 case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32242 esac
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_compile") 2>conftest.er1
32245 ac_status=$?
32246 grep -v '^ *+' conftest.er1 >conftest.err
32247 rm -f conftest.er1
32248 cat conftest.err >&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); } && {
32251 test -z "$ac_c_werror_flag" ||
32252 test ! -s conftest.err
32253 } && test -s conftest.$ac_objext; then
32254 ac_header_compiler=yes
32255 else
32256 echo "$as_me: failed program was:" >&5
32257 sed 's/^/| /' conftest.$ac_ext >&5
32259 ac_header_compiler=no
32262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32264 echo "${ECHO_T}$ac_header_compiler" >&6; }
32266 # Is the header present?
32267 { echo "$as_me:$LINENO: checking h323.h presence" >&5
32268 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
32269 cat >conftest.$ac_ext <<_ACEOF
32270 /* confdefs.h. */
32271 _ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h. */
32275 #include <h323.h>
32276 _ACEOF
32277 if { (ac_try="$ac_cpp conftest.$ac_ext"
32278 case "(($ac_try" in
32279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280 *) ac_try_echo=$ac_try;;
32281 esac
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32284 ac_status=$?
32285 grep -v '^ *+' conftest.er1 >conftest.err
32286 rm -f conftest.er1
32287 cat conftest.err >&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } >/dev/null && {
32290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32291 test ! -s conftest.err
32292 }; then
32293 ac_header_preproc=yes
32294 else
32295 echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32298 ac_header_preproc=no
32301 rm -f conftest.err conftest.$ac_ext
32302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32303 echo "${ECHO_T}$ac_header_preproc" >&6; }
32305 # So? What about this header?
32306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32307 yes:no: )
32308 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
32309 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32310 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
32311 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
32312 ac_header_preproc=yes
32314 no:yes:* )
32315 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
32316 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
32318 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
32320 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
32321 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
32322 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
32323 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
32324 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
32325 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
32326 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
32329 esac
32330 { echo "$as_me:$LINENO: checking for h323.h" >&5
32331 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
32332 if test "${ac_cv_header_h323_h+set}" = set; then
32333 echo $ECHO_N "(cached) $ECHO_C" >&6
32334 else
32335 ac_cv_header_h323_h=$ac_header_preproc
32337 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
32338 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
32341 if test $ac_cv_header_h323_h = yes; then
32342 PBX_H323=1
32343 else
32344 PBX_H323=0
32350 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32351 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
32352 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
32353 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32354 echo $ECHO_N "(cached) $ECHO_C" >&6
32356 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
32357 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
32358 else
32359 # Is the header compilable?
32360 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
32361 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
32362 cat >conftest.$ac_ext <<_ACEOF
32363 /* confdefs.h. */
32364 _ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h. */
32368 $ac_includes_default
32369 #include <linux/compiler.h>
32370 _ACEOF
32371 rm -f conftest.$ac_objext
32372 if { (ac_try="$ac_compile"
32373 case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32376 esac
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_compile") 2>conftest.er1
32379 ac_status=$?
32380 grep -v '^ *+' conftest.er1 >conftest.err
32381 rm -f conftest.er1
32382 cat conftest.err >&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } && {
32385 test -z "$ac_c_werror_flag" ||
32386 test ! -s conftest.err
32387 } && test -s conftest.$ac_objext; then
32388 ac_header_compiler=yes
32389 else
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32393 ac_header_compiler=no
32396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32398 echo "${ECHO_T}$ac_header_compiler" >&6; }
32400 # Is the header present?
32401 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
32402 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
32403 cat >conftest.$ac_ext <<_ACEOF
32404 /* confdefs.h. */
32405 _ACEOF
32406 cat confdefs.h >>conftest.$ac_ext
32407 cat >>conftest.$ac_ext <<_ACEOF
32408 /* end confdefs.h. */
32409 #include <linux/compiler.h>
32410 _ACEOF
32411 if { (ac_try="$ac_cpp conftest.$ac_ext"
32412 case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32418 ac_status=$?
32419 grep -v '^ *+' conftest.er1 >conftest.err
32420 rm -f conftest.er1
32421 cat conftest.err >&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); } >/dev/null && {
32424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32425 test ! -s conftest.err
32426 }; then
32427 ac_header_preproc=yes
32428 else
32429 echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32432 ac_header_preproc=no
32435 rm -f conftest.err conftest.$ac_ext
32436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32437 echo "${ECHO_T}$ac_header_preproc" >&6; }
32439 # So? What about this header?
32440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32441 yes:no: )
32442 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
32443 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32444 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
32445 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
32446 ac_header_preproc=yes
32448 no:yes:* )
32449 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
32450 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
32452 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
32453 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
32454 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
32455 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
32456 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
32457 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
32458 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
32459 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
32460 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
32463 esac
32464 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
32465 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
32466 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32467 echo $ECHO_N "(cached) $ECHO_C" >&6
32468 else
32469 ac_cv_header_linux_compiler_h=$ac_header_preproc
32471 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
32472 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
32475 if test $ac_cv_header_linux_compiler_h = yes; then
32477 cat >>confdefs.h <<_ACEOF
32478 #define HAVE_LINUX_COMPILER_H 1
32479 _ACEOF
32485 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
32486 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
32487 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
32488 echo $ECHO_N "(cached) $ECHO_C" >&6
32489 else
32490 cat >conftest.$ac_ext <<_ACEOF
32491 /* confdefs.h. */
32492 _ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h. */
32497 #include <linux/version.h>
32498 #ifdef HAVE_LINUX_COMPILER_H
32499 #include <linux/compiler.h>
32500 #endif
32503 #include <linux/ixjuser.h>
32504 _ACEOF
32505 rm -f conftest.$ac_objext
32506 if { (ac_try="$ac_compile"
32507 case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32510 esac
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_compile") 2>conftest.er1
32513 ac_status=$?
32514 grep -v '^ *+' conftest.er1 >conftest.err
32515 rm -f conftest.er1
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } && {
32519 test -z "$ac_c_werror_flag" ||
32520 test ! -s conftest.err
32521 } && test -s conftest.$ac_objext; then
32522 ac_cv_header_linux_ixjuser_h=yes
32523 else
32524 echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.$ac_ext >&5
32527 ac_cv_header_linux_ixjuser_h=no
32530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32532 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
32533 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
32534 if test $ac_cv_header_linux_ixjuser_h = yes; then
32535 PBX_IXJUSER=1
32536 else
32537 PBX_IXJUSER=0
32543 PBX_GTK=0
32544 if test -n "$ac_tool_prefix"; then
32545 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
32546 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
32547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32549 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32551 else
32552 if test -n "$GTKCONFIG"; then
32553 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
32554 else
32555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32556 for as_dir in $PATH
32558 IFS=$as_save_IFS
32559 test -z "$as_dir" && as_dir=.
32560 for ac_exec_ext in '' $ac_executable_extensions; do
32561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32562 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
32563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32564 break 2
32566 done
32567 done
32568 IFS=$as_save_IFS
32572 GTKCONFIG=$ac_cv_prog_GTKCONFIG
32573 if test -n "$GTKCONFIG"; then
32574 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
32575 echo "${ECHO_T}$GTKCONFIG" >&6; }
32576 else
32577 { echo "$as_me:$LINENO: result: no" >&5
32578 echo "${ECHO_T}no" >&6; }
32583 if test -z "$ac_cv_prog_GTKCONFIG"; then
32584 ac_ct_GTKCONFIG=$GTKCONFIG
32585 # Extract the first word of "gtk-config", so it can be a program name with args.
32586 set dummy gtk-config; ac_word=$2
32587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32589 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
32590 echo $ECHO_N "(cached) $ECHO_C" >&6
32591 else
32592 if test -n "$ac_ct_GTKCONFIG"; then
32593 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
32594 else
32595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32596 for as_dir in $PATH
32598 IFS=$as_save_IFS
32599 test -z "$as_dir" && as_dir=.
32600 for ac_exec_ext in '' $ac_executable_extensions; do
32601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32602 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
32603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32604 break 2
32606 done
32607 done
32608 IFS=$as_save_IFS
32612 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
32613 if test -n "$ac_ct_GTKCONFIG"; then
32614 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
32615 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
32616 else
32617 { echo "$as_me:$LINENO: result: no" >&5
32618 echo "${ECHO_T}no" >&6; }
32621 if test "x$ac_ct_GTKCONFIG" = x; then
32622 GTKCONFIG="No"
32623 else
32624 case $cross_compiling:$ac_tool_warned in
32625 yes:)
32626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32627 whose name does not start with the host triplet. If you think this
32628 configuration is useful to you, please write to autoconf@gnu.org." >&5
32629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32630 whose name does not start with the host triplet. If you think this
32631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32632 ac_tool_warned=yes ;;
32633 esac
32634 GTKCONFIG=$ac_ct_GTKCONFIG
32636 else
32637 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
32640 if test ! "x${GTKCONFIG}" = xNo; then
32641 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
32642 GTK_LIB=$(${GTKCONFIG} --libs gthread)
32643 PBX_GTK=1
32645 cat >>confdefs.h <<\_ACEOF
32646 #define HAVE_GTK 1
32647 _ACEOF
32654 PBX_GTK2=0
32655 if test -n "$ac_tool_prefix"; then
32656 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32657 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32660 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 else
32663 if test -n "$PKGCONFIG"; then
32664 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
32665 else
32666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32667 for as_dir in $PATH
32669 IFS=$as_save_IFS
32670 test -z "$as_dir" && as_dir=.
32671 for ac_exec_ext in '' $ac_executable_extensions; do
32672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32673 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
32674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32675 break 2
32677 done
32678 done
32679 IFS=$as_save_IFS
32683 PKGCONFIG=$ac_cv_prog_PKGCONFIG
32684 if test -n "$PKGCONFIG"; then
32685 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
32686 echo "${ECHO_T}$PKGCONFIG" >&6; }
32687 else
32688 { echo "$as_me:$LINENO: result: no" >&5
32689 echo "${ECHO_T}no" >&6; }
32694 if test -z "$ac_cv_prog_PKGCONFIG"; then
32695 ac_ct_PKGCONFIG=$PKGCONFIG
32696 # Extract the first word of "pkg-config", so it can be a program name with args.
32697 set dummy pkg-config; ac_word=$2
32698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32700 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
32701 echo $ECHO_N "(cached) $ECHO_C" >&6
32702 else
32703 if test -n "$ac_ct_PKGCONFIG"; then
32704 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
32705 else
32706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32707 for as_dir in $PATH
32709 IFS=$as_save_IFS
32710 test -z "$as_dir" && as_dir=.
32711 for ac_exec_ext in '' $ac_executable_extensions; do
32712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32713 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
32714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32715 break 2
32717 done
32718 done
32719 IFS=$as_save_IFS
32723 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
32724 if test -n "$ac_ct_PKGCONFIG"; then
32725 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
32726 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
32727 else
32728 { echo "$as_me:$LINENO: result: no" >&5
32729 echo "${ECHO_T}no" >&6; }
32732 if test "x$ac_ct_PKGCONFIG" = x; then
32733 PKGCONFIG="No"
32734 else
32735 case $cross_compiling:$ac_tool_warned in
32736 yes:)
32737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32738 whose name does not start with the host triplet. If you think this
32739 configuration is useful to you, please write to autoconf@gnu.org." >&5
32740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32741 whose name does not start with the host triplet. If you think this
32742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32743 ac_tool_warned=yes ;;
32744 esac
32745 PKGCONFIG=$ac_ct_PKGCONFIG
32747 else
32748 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
32751 if test ! "x${PKGCONFIG}" = xNo; then
32752 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
32753 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
32754 PBX_GTK2=1
32756 cat >>confdefs.h <<\_ACEOF
32757 #define HAVE_GTK2 1
32758 _ACEOF
32765 if test "${USE_CURL}" != "no"; then
32766 if test -n "$ac_tool_prefix"; then
32767 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
32768 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
32769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32771 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
32772 echo $ECHO_N "(cached) $ECHO_C" >&6
32773 else
32774 case $CURL_CONFIG in
32775 [\\/]* | ?:[\\/]*)
32776 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
32779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32780 for as_dir in $PATH
32782 IFS=$as_save_IFS
32783 test -z "$as_dir" && as_dir=.
32784 for ac_exec_ext in '' $ac_executable_extensions; do
32785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32786 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32788 break 2
32790 done
32791 done
32792 IFS=$as_save_IFS
32795 esac
32797 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
32798 if test -n "$CURL_CONFIG"; then
32799 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
32800 echo "${ECHO_T}$CURL_CONFIG" >&6; }
32801 else
32802 { echo "$as_me:$LINENO: result: no" >&5
32803 echo "${ECHO_T}no" >&6; }
32808 if test -z "$ac_cv_path_CURL_CONFIG"; then
32809 ac_pt_CURL_CONFIG=$CURL_CONFIG
32810 # Extract the first word of "curl-config", so it can be a program name with args.
32811 set dummy curl-config; ac_word=$2
32812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32814 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
32815 echo $ECHO_N "(cached) $ECHO_C" >&6
32816 else
32817 case $ac_pt_CURL_CONFIG in
32818 [\\/]* | ?:[\\/]*)
32819 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
32822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32823 for as_dir in $PATH
32825 IFS=$as_save_IFS
32826 test -z "$as_dir" && as_dir=.
32827 for ac_exec_ext in '' $ac_executable_extensions; do
32828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32829 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32831 break 2
32833 done
32834 done
32835 IFS=$as_save_IFS
32838 esac
32840 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
32841 if test -n "$ac_pt_CURL_CONFIG"; then
32842 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
32843 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
32844 else
32845 { echo "$as_me:$LINENO: result: no" >&5
32846 echo "${ECHO_T}no" >&6; }
32849 if test "x$ac_pt_CURL_CONFIG" = x; then
32850 CURL_CONFIG="No"
32851 else
32852 case $cross_compiling:$ac_tool_warned in
32853 yes:)
32854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32855 whose name does not start with the host triplet. If you think this
32856 configuration is useful to you, please write to autoconf@gnu.org." >&5
32857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32858 whose name does not start with the host triplet. If you think this
32859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32860 ac_tool_warned=yes ;;
32861 esac
32862 CURL_CONFIG=$ac_pt_CURL_CONFIG
32864 else
32865 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
32868 if test ! x"${CURL_CONFIG}" = xNo; then
32869 # check for version
32870 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
32871 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
32872 CURL_LIB=$(${CURL_CONFIG} --libs)
32874 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
32875 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
32876 saved_cppflags="${CPPFLAGS}"
32877 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
32878 cat >conftest.$ac_ext <<_ACEOF
32879 /* confdefs.h. */
32880 _ACEOF
32881 cat confdefs.h >>conftest.$ac_ext
32882 cat >>conftest.$ac_ext <<_ACEOF
32883 /* end confdefs.h. */
32884 #include <curl/curl.h>
32886 main ()
32888 curl_version();
32890 return 0;
32893 _ACEOF
32894 rm -f conftest.$ac_objext
32895 if { (ac_try="$ac_compile"
32896 case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32899 esac
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_compile") 2>conftest.er1
32902 ac_status=$?
32903 grep -v '^ *+' conftest.er1 >conftest.err
32904 rm -f conftest.er1
32905 cat conftest.err >&5
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); } && {
32908 test -z "$ac_c_werror_flag" ||
32909 test ! -s conftest.err
32910 } && test -s conftest.$ac_objext; then
32912 { echo "$as_me:$LINENO: result: yes" >&5
32913 echo "${ECHO_T}yes" >&6; }
32914 ac_cv_curl_h="yes"
32916 else
32917 echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32921 { echo "$as_me:$LINENO: result: no" >&5
32922 echo "${ECHO_T}no" >&6; }
32923 ac_cv_curl_h="no"
32928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32929 CPPFLAGS="${saved_cppflags}"
32930 if test "${ac_cv_curl_h}" = "yes"; then
32931 PBX_CURL=1
32933 cat >>confdefs.h <<\_ACEOF
32934 #define HAVE_CURL 1
32935 _ACEOF
32942 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
32944 cat >confcache <<\_ACEOF
32945 # This file is a shell script that caches the results of configure
32946 # tests run on this system so they can be shared between configure
32947 # scripts and configure runs, see configure's option --config-cache.
32948 # It is not useful on other systems. If it contains results you don't
32949 # want to keep, you may remove or edit it.
32951 # config.status only pays attention to the cache file if you give it
32952 # the --recheck option to rerun configure.
32954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32956 # following values.
32958 _ACEOF
32960 # The following way of writing the cache mishandles newlines in values,
32961 # but we know of no workaround that is simple, portable, and efficient.
32962 # So, we kill variables containing newlines.
32963 # Ultrix sh set writes to stderr and can't be redirected directly,
32964 # and sets the high bit in the cache file unless we assign to the vars.
32966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32967 eval ac_val=\$$ac_var
32968 case $ac_val in #(
32969 *${as_nl}*)
32970 case $ac_var in #(
32971 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32973 esac
32974 case $ac_var in #(
32975 _ | IFS | as_nl) ;; #(
32976 *) $as_unset $ac_var ;;
32977 esac ;;
32978 esac
32979 done
32981 (set) 2>&1 |
32982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32983 *${as_nl}ac_space=\ *)
32984 # `set' does not quote correctly, so add quotes (double-quote
32985 # substitution turns \\\\ into \\, and sed turns \\ into \).
32986 sed -n \
32987 "s/'/'\\\\''/g;
32988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32989 ;; #(
32991 # `set' quotes correctly as required by POSIX, so do not add quotes.
32992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32994 esac |
32995 sort
32997 sed '
32998 /^ac_cv_env_/b end
32999 t clear
33000 :clear
33001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33002 t end
33003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33004 :end' >>confcache
33005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33006 if test -w "$cache_file"; then
33007 test "x$cache_file" != "x/dev/null" &&
33008 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33009 echo "$as_me: updating cache $cache_file" >&6;}
33010 cat confcache >$cache_file
33011 else
33012 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33013 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33016 rm -f confcache
33018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33019 # Let make expand exec_prefix.
33020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33022 DEFS=-DHAVE_CONFIG_H
33024 ac_libobjs=
33025 ac_ltlibobjs=
33026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33027 # 1. Remove the extension, and $U if already installed.
33028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33029 ac_i=`echo "$ac_i" | sed "$ac_script"`
33030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33031 # will be set to the directory where LIBOBJS objects are built.
33032 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33033 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33034 done
33035 LIBOBJS=$ac_libobjs
33037 LTLIBOBJS=$ac_ltlibobjs
33041 : ${CONFIG_STATUS=./config.status}
33042 ac_clean_files_save=$ac_clean_files
33043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33044 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33045 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33046 cat >$CONFIG_STATUS <<_ACEOF
33047 #! $SHELL
33048 # Generated by $as_me.
33049 # Run this file to recreate the current configuration.
33050 # Compiler output produced by configure, useful for debugging
33051 # configure, is in config.log if it exists.
33053 debug=false
33054 ac_cs_recheck=false
33055 ac_cs_silent=false
33056 SHELL=\${CONFIG_SHELL-$SHELL}
33057 _ACEOF
33059 cat >>$CONFIG_STATUS <<\_ACEOF
33060 ## --------------------- ##
33061 ## M4sh Initialization. ##
33062 ## --------------------- ##
33064 # Be more Bourne compatible
33065 DUALCASE=1; export DUALCASE # for MKS sh
33066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33067 emulate sh
33068 NULLCMD=:
33069 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33070 # is contrary to our usage. Disable this feature.
33071 alias -g '${1+"$@"}'='"$@"'
33072 setopt NO_GLOB_SUBST
33073 else
33074 case `(set -o) 2>/dev/null` in
33075 *posix*) set -o posix ;;
33076 esac
33083 # PATH needs CR
33084 # Avoid depending upon Character Ranges.
33085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33088 as_cr_digits='0123456789'
33089 as_cr_alnum=$as_cr_Letters$as_cr_digits
33091 # The user is always right.
33092 if test "${PATH_SEPARATOR+set}" != set; then
33093 echo "#! /bin/sh" >conf$$.sh
33094 echo "exit 0" >>conf$$.sh
33095 chmod +x conf$$.sh
33096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33097 PATH_SEPARATOR=';'
33098 else
33099 PATH_SEPARATOR=:
33101 rm -f conf$$.sh
33104 # Support unset when possible.
33105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33106 as_unset=unset
33107 else
33108 as_unset=false
33112 # IFS
33113 # We need space, tab and new line, in precisely that order. Quoting is
33114 # there to prevent editors from complaining about space-tab.
33115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33116 # splitting by setting IFS to empty value.)
33117 as_nl='
33119 IFS=" "" $as_nl"
33121 # Find who we are. Look in the path if we contain no directory separator.
33122 case $0 in
33123 *[\\/]* ) as_myself=$0 ;;
33124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125 for as_dir in $PATH
33127 IFS=$as_save_IFS
33128 test -z "$as_dir" && as_dir=.
33129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33130 done
33131 IFS=$as_save_IFS
33134 esac
33135 # We did not find ourselves, most probably we were run as `sh COMMAND'
33136 # in which case we are not to be found in the path.
33137 if test "x$as_myself" = x; then
33138 as_myself=$0
33140 if test ! -f "$as_myself"; then
33141 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33142 { (exit 1); exit 1; }
33145 # Work around bugs in pre-3.0 UWIN ksh.
33146 for as_var in ENV MAIL MAILPATH
33147 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33148 done
33149 PS1='$ '
33150 PS2='> '
33151 PS4='+ '
33153 # NLS nuisances.
33154 for as_var in \
33155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33157 LC_TELEPHONE LC_TIME
33159 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33160 eval $as_var=C; export $as_var
33161 else
33162 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33164 done
33166 # Required to use basename.
33167 if expr a : '\(a\)' >/dev/null 2>&1 &&
33168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33169 as_expr=expr
33170 else
33171 as_expr=false
33174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33175 as_basename=basename
33176 else
33177 as_basename=false
33181 # Name of the executable.
33182 as_me=`$as_basename -- "$0" ||
33183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33184 X"$0" : 'X\(//\)$' \| \
33185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33186 echo X/"$0" |
33187 sed '/^.*\/\([^/][^/]*\)\/*$/{
33188 s//\1/
33191 /^X\/\(\/\/\)$/{
33192 s//\1/
33195 /^X\/\(\/\).*/{
33196 s//\1/
33199 s/.*/./; q'`
33201 # CDPATH.
33202 $as_unset CDPATH
33206 as_lineno_1=$LINENO
33207 as_lineno_2=$LINENO
33208 test "x$as_lineno_1" != "x$as_lineno_2" &&
33209 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33212 # uniformly replaced by the line number. The first 'sed' inserts a
33213 # line-number line after each line using $LINENO; the second 'sed'
33214 # does the real work. The second script uses 'N' to pair each
33215 # line-number line with the line containing $LINENO, and appends
33216 # trailing '-' during substitution so that $LINENO is not a special
33217 # case at line end.
33218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33219 # scripts with optimization help from Paolo Bonzini. Blame Lee
33220 # E. McMahon (1931-1989) for sed's syntax. :-)
33221 sed -n '
33223 /[$]LINENO/=
33224 ' <$as_myself |
33225 sed '
33226 s/[$]LINENO.*/&-/
33227 t lineno
33229 :lineno
33231 :loop
33232 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33233 t loop
33234 s/-\n.*//
33235 ' >$as_me.lineno &&
33236 chmod +x "$as_me.lineno" ||
33237 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33238 { (exit 1); exit 1; }; }
33240 # Don't try to exec as it changes $[0], causing all sort of problems
33241 # (the dirname of $[0] is not the place where we might find the
33242 # original and so on. Autoconf is especially sensitive to this).
33243 . "./$as_me.lineno"
33244 # Exit status is that of the last command.
33245 exit
33249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33250 as_dirname=dirname
33251 else
33252 as_dirname=false
33255 ECHO_C= ECHO_N= ECHO_T=
33256 case `echo -n x` in
33257 -n*)
33258 case `echo 'x\c'` in
33259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33260 *) ECHO_C='\c';;
33261 esac;;
33263 ECHO_N='-n';;
33264 esac
33266 if expr a : '\(a\)' >/dev/null 2>&1 &&
33267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33268 as_expr=expr
33269 else
33270 as_expr=false
33273 rm -f conf$$ conf$$.exe conf$$.file
33274 if test -d conf$$.dir; then
33275 rm -f conf$$.dir/conf$$.file
33276 else
33277 rm -f conf$$.dir
33278 mkdir conf$$.dir
33280 echo >conf$$.file
33281 if ln -s conf$$.file conf$$ 2>/dev/null; then
33282 as_ln_s='ln -s'
33283 # ... but there are two gotchas:
33284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33286 # In both cases, we have to default to `cp -p'.
33287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33288 as_ln_s='cp -p'
33289 elif ln conf$$.file conf$$ 2>/dev/null; then
33290 as_ln_s=ln
33291 else
33292 as_ln_s='cp -p'
33294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33295 rmdir conf$$.dir 2>/dev/null
33297 if mkdir -p . 2>/dev/null; then
33298 as_mkdir_p=:
33299 else
33300 test -d ./-p && rmdir ./-p
33301 as_mkdir_p=false
33304 if test -x / >/dev/null 2>&1; then
33305 as_test_x='test -x'
33306 else
33307 if ls -dL / >/dev/null 2>&1; then
33308 as_ls_L_option=L
33309 else
33310 as_ls_L_option=
33312 as_test_x='
33313 eval sh -c '\''
33314 if test -d "$1"; then
33315 test -d "$1/.";
33316 else
33317 case $1 in
33318 -*)set "./$1";;
33319 esac;
33320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33321 ???[sx]*):;;*)false;;esac;fi
33322 '\'' sh
33325 as_executable_p=$as_test_x
33327 # Sed expression to map a string onto a valid CPP name.
33328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33330 # Sed expression to map a string onto a valid variable name.
33331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33334 exec 6>&1
33336 # Save the log message, to keep $[0] and so on meaningful, and to
33337 # report actual input values of CONFIG_FILES etc. instead of their
33338 # values after options handling.
33339 ac_log="
33340 This file was extended by $as_me, which was
33341 generated by GNU Autoconf 2.61. Invocation command line was
33343 CONFIG_FILES = $CONFIG_FILES
33344 CONFIG_HEADERS = $CONFIG_HEADERS
33345 CONFIG_LINKS = $CONFIG_LINKS
33346 CONFIG_COMMANDS = $CONFIG_COMMANDS
33347 $ $0 $@
33349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33352 _ACEOF
33354 cat >>$CONFIG_STATUS <<_ACEOF
33355 # Files that config.status was made for.
33356 config_files="$ac_config_files"
33357 config_headers="$ac_config_headers"
33359 _ACEOF
33361 cat >>$CONFIG_STATUS <<\_ACEOF
33362 ac_cs_usage="\
33363 \`$as_me' instantiates files from templates according to the
33364 current configuration.
33366 Usage: $0 [OPTIONS] [FILE]...
33368 -h, --help print this help, then exit
33369 -V, --version print version number and configuration settings, then exit
33370 -q, --quiet do not print progress messages
33371 -d, --debug don't remove temporary files
33372 --recheck update $as_me by reconfiguring in the same conditions
33373 --file=FILE[:TEMPLATE]
33374 instantiate the configuration file FILE
33375 --header=FILE[:TEMPLATE]
33376 instantiate the configuration header FILE
33378 Configuration files:
33379 $config_files
33381 Configuration headers:
33382 $config_headers
33384 Report bugs to <bug-autoconf@gnu.org>."
33386 _ACEOF
33387 cat >>$CONFIG_STATUS <<_ACEOF
33388 ac_cs_version="\\
33389 config.status
33390 configured by $0, generated by GNU Autoconf 2.61,
33391 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33393 Copyright (C) 2006 Free Software Foundation, Inc.
33394 This config.status script is free software; the Free Software Foundation
33395 gives unlimited permission to copy, distribute and modify it."
33397 ac_pwd='$ac_pwd'
33398 srcdir='$srcdir'
33399 INSTALL='$INSTALL'
33400 _ACEOF
33402 cat >>$CONFIG_STATUS <<\_ACEOF
33403 # If no file are specified by the user, then we need to provide default
33404 # value. By we need to know if files were specified by the user.
33405 ac_need_defaults=:
33406 while test $# != 0
33408 case $1 in
33409 --*=*)
33410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33412 ac_shift=:
33415 ac_option=$1
33416 ac_optarg=$2
33417 ac_shift=shift
33419 esac
33421 case $ac_option in
33422 # Handling of the options.
33423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33424 ac_cs_recheck=: ;;
33425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33426 echo "$ac_cs_version"; exit ;;
33427 --debug | --debu | --deb | --de | --d | -d )
33428 debug=: ;;
33429 --file | --fil | --fi | --f )
33430 $ac_shift
33431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33432 ac_need_defaults=false;;
33433 --header | --heade | --head | --hea )
33434 $ac_shift
33435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33436 ac_need_defaults=false;;
33437 --he | --h)
33438 # Conflict between --help and --header
33439 { echo "$as_me: error: ambiguous option: $1
33440 Try \`$0 --help' for more information." >&2
33441 { (exit 1); exit 1; }; };;
33442 --help | --hel | -h )
33443 echo "$ac_cs_usage"; exit ;;
33444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33445 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33446 ac_cs_silent=: ;;
33448 # This is an error.
33449 -*) { echo "$as_me: error: unrecognized option: $1
33450 Try \`$0 --help' for more information." >&2
33451 { (exit 1); exit 1; }; } ;;
33453 *) ac_config_targets="$ac_config_targets $1"
33454 ac_need_defaults=false ;;
33456 esac
33457 shift
33458 done
33460 ac_configure_extra_args=
33462 if $ac_cs_silent; then
33463 exec 6>/dev/null
33464 ac_configure_extra_args="$ac_configure_extra_args --silent"
33467 _ACEOF
33468 cat >>$CONFIG_STATUS <<_ACEOF
33469 if \$ac_cs_recheck; then
33470 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33471 CONFIG_SHELL=$SHELL
33472 export CONFIG_SHELL
33473 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33476 _ACEOF
33477 cat >>$CONFIG_STATUS <<\_ACEOF
33478 exec 5>>config.log
33480 echo
33481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33482 ## Running $as_me. ##
33483 _ASBOX
33484 echo "$ac_log"
33485 } >&5
33487 _ACEOF
33488 cat >>$CONFIG_STATUS <<_ACEOF
33489 _ACEOF
33491 cat >>$CONFIG_STATUS <<\_ACEOF
33493 # Handling of arguments.
33494 for ac_config_target in $ac_config_targets
33496 case $ac_config_target in
33497 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
33498 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
33499 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
33500 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
33502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33504 { (exit 1); exit 1; }; };;
33505 esac
33506 done
33509 # If the user did not use the arguments to specify the items to instantiate,
33510 # then the envvar interface is used. Set only those that are not.
33511 # We use the long form for the default assignment because of an extremely
33512 # bizarre bug on SunOS 4.1.3.
33513 if $ac_need_defaults; then
33514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33518 # Have a temporary directory for convenience. Make it in the build tree
33519 # simply because there is no reason against having it here, and in addition,
33520 # creating and moving files from /tmp can sometimes cause problems.
33521 # Hook for its removal unless debugging.
33522 # Note that there is a small window in which the directory will not be cleaned:
33523 # after its creation but before its name has been assigned to `$tmp'.
33524 $debug ||
33526 tmp=
33527 trap 'exit_status=$?
33528 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33530 trap '{ (exit 1); exit 1; }' 1 2 13 15
33532 # Create a (secure) tmp directory for tmp files.
33535 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33536 test -n "$tmp" && test -d "$tmp"
33537 } ||
33539 tmp=./conf$$-$RANDOM
33540 (umask 077 && mkdir "$tmp")
33541 } ||
33543 echo "$me: cannot create a temporary directory in ." >&2
33544 { (exit 1); exit 1; }
33548 # Set up the sed scripts for CONFIG_FILES section.
33551 # No need to generate the scripts if there are no CONFIG_FILES.
33552 # This happens for instance when ./config.status config.h
33553 if test -n "$CONFIG_FILES"; then
33555 _ACEOF
33559 ac_delim='%!_!# '
33560 for ac_last_try in false false false false false :; do
33561 cat >conf$$subs.sed <<_ACEOF
33562 SHELL!$SHELL$ac_delim
33563 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33564 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33565 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33566 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33567 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33568 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33569 exec_prefix!$exec_prefix$ac_delim
33570 prefix!$prefix$ac_delim
33571 program_transform_name!$program_transform_name$ac_delim
33572 bindir!$bindir$ac_delim
33573 sbindir!$sbindir$ac_delim
33574 libexecdir!$libexecdir$ac_delim
33575 datarootdir!$datarootdir$ac_delim
33576 datadir!$datadir$ac_delim
33577 sysconfdir!$sysconfdir$ac_delim
33578 sharedstatedir!$sharedstatedir$ac_delim
33579 localstatedir!$localstatedir$ac_delim
33580 includedir!$includedir$ac_delim
33581 oldincludedir!$oldincludedir$ac_delim
33582 docdir!$docdir$ac_delim
33583 infodir!$infodir$ac_delim
33584 htmldir!$htmldir$ac_delim
33585 dvidir!$dvidir$ac_delim
33586 pdfdir!$pdfdir$ac_delim
33587 psdir!$psdir$ac_delim
33588 libdir!$libdir$ac_delim
33589 localedir!$localedir$ac_delim
33590 mandir!$mandir$ac_delim
33591 DEFS!$DEFS$ac_delim
33592 ECHO_C!$ECHO_C$ac_delim
33593 ECHO_N!$ECHO_N$ac_delim
33594 ECHO_T!$ECHO_T$ac_delim
33595 LIBS!$LIBS$ac_delim
33596 build_alias!$build_alias$ac_delim
33597 host_alias!$host_alias$ac_delim
33598 target_alias!$target_alias$ac_delim
33599 build!$build$ac_delim
33600 build_cpu!$build_cpu$ac_delim
33601 build_vendor!$build_vendor$ac_delim
33602 build_os!$build_os$ac_delim
33603 host!$host$ac_delim
33604 host_cpu!$host_cpu$ac_delim
33605 host_vendor!$host_vendor$ac_delim
33606 host_os!$host_os$ac_delim
33607 CC!$CC$ac_delim
33608 CFLAGS!$CFLAGS$ac_delim
33609 LDFLAGS!$LDFLAGS$ac_delim
33610 CPPFLAGS!$CPPFLAGS$ac_delim
33611 ac_ct_CC!$ac_ct_CC$ac_delim
33612 EXEEXT!$EXEEXT$ac_delim
33613 OBJEXT!$OBJEXT$ac_delim
33614 CPP!$CPP$ac_delim
33615 GREP!$GREP$ac_delim
33616 EGREP!$EGREP$ac_delim
33617 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
33618 BUILD_CPU!$BUILD_CPU$ac_delim
33619 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
33620 BUILD_OS!$BUILD_OS$ac_delim
33621 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
33622 HOST_CPU!$HOST_CPU$ac_delim
33623 HOST_VENDOR!$HOST_VENDOR$ac_delim
33624 HOST_OS!$HOST_OS$ac_delim
33625 OSARCH!$OSARCH$ac_delim
33626 UNAME!$UNAME$ac_delim
33627 PBX_OSREV!$PBX_OSREV$ac_delim
33628 CXX!$CXX$ac_delim
33629 LD!$LD$ac_delim
33630 RANLIB!$RANLIB$ac_delim
33631 CXXFLAGS!$CXXFLAGS$ac_delim
33632 ac_ct_CXX!$ac_ct_CXX$ac_delim
33633 CXXCPP!$CXXCPP$ac_delim
33634 SED!$SED$ac_delim
33635 AWK!$AWK$ac_delim
33636 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33637 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33638 INSTALL_DATA!$INSTALL_DATA$ac_delim
33639 LN_S!$LN_S$ac_delim
33640 GNU_MAKE!$GNU_MAKE$ac_delim
33641 STRIP!$STRIP$ac_delim
33642 AR!$AR$ac_delim
33643 GNU_LD!$GNU_LD$ac_delim
33644 FIND!$FIND$ac_delim
33645 COMPRESS!$COMPRESS$ac_delim
33646 BASENAME!$BASENAME$ac_delim
33647 ID!$ID$ac_delim
33648 DIRNAME!$DIRNAME$ac_delim
33649 LN!$LN$ac_delim
33650 DOT!$DOT$ac_delim
33651 WGET!$WGET$ac_delim
33652 FETCH!$FETCH$ac_delim
33653 DOWNLOAD!$DOWNLOAD$ac_delim
33654 acx_pthread_config!$acx_pthread_config$ac_delim
33655 PTHREAD_CC!$PTHREAD_CC$ac_delim
33656 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
33657 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
33658 AST_DEVMODE!$AST_DEVMODE$ac_delim
33659 _ACEOF
33661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33662 break
33663 elif $ac_last_try; then
33664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33666 { (exit 1); exit 1; }; }
33667 else
33668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33670 done
33672 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33673 if test -n "$ac_eof"; then
33674 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33675 ac_eof=`expr $ac_eof + 1`
33678 cat >>$CONFIG_STATUS <<_ACEOF
33679 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33681 _ACEOF
33682 sed '
33683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33684 s/^/s,@/; s/!/@,|#_!!_#|/
33687 s/'"$ac_delim"'$/,g/; t
33688 s/$/\\/; p
33689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33690 ' >>$CONFIG_STATUS <conf$$subs.sed
33691 rm -f conf$$subs.sed
33692 cat >>$CONFIG_STATUS <<_ACEOF
33693 CEOF$ac_eof
33694 _ACEOF
33697 ac_delim='%!_!# '
33698 for ac_last_try in false false false false false :; do
33699 cat >conf$$subs.sed <<_ACEOF
33700 ALSA_LIB!$ALSA_LIB$ac_delim
33701 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
33702 ALSA_DIR!$ALSA_DIR$ac_delim
33703 PBX_ALSA!$PBX_ALSA$ac_delim
33704 CURL_LIB!$CURL_LIB$ac_delim
33705 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
33706 CURL_DIR!$CURL_DIR$ac_delim
33707 PBX_CURL!$PBX_CURL$ac_delim
33708 CURSES_LIB!$CURSES_LIB$ac_delim
33709 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
33710 CURSES_DIR!$CURSES_DIR$ac_delim
33711 PBX_CURSES!$PBX_CURSES$ac_delim
33712 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
33713 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
33714 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
33715 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
33716 GSM_LIB!$GSM_LIB$ac_delim
33717 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
33718 GSM_DIR!$GSM_DIR$ac_delim
33719 PBX_GSM!$PBX_GSM$ac_delim
33720 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
33721 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
33722 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
33723 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
33724 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
33725 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
33726 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
33727 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
33728 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
33729 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
33730 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
33731 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
33732 KDE_LIB!$KDE_LIB$ac_delim
33733 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
33734 KDE_DIR!$KDE_DIR$ac_delim
33735 PBX_KDE!$PBX_KDE$ac_delim
33736 LTDL_LIB!$LTDL_LIB$ac_delim
33737 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
33738 LTDL_DIR!$LTDL_DIR$ac_delim
33739 PBX_LTDL!$PBX_LTDL$ac_delim
33740 MISDN_LIB!$MISDN_LIB$ac_delim
33741 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
33742 MISDN_DIR!$MISDN_DIR$ac_delim
33743 PBX_MISDN!$PBX_MISDN$ac_delim
33744 NBS_LIB!$NBS_LIB$ac_delim
33745 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
33746 NBS_DIR!$NBS_DIR$ac_delim
33747 PBX_NBS!$PBX_NBS$ac_delim
33748 NCURSES_LIB!$NCURSES_LIB$ac_delim
33749 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
33750 NCURSES_DIR!$NCURSES_DIR$ac_delim
33751 PBX_NCURSES!$PBX_NCURSES$ac_delim
33752 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
33753 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
33754 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
33755 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
33756 NEWT_LIB!$NEWT_LIB$ac_delim
33757 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
33758 NEWT_DIR!$NEWT_DIR$ac_delim
33759 PBX_NEWT!$PBX_NEWT$ac_delim
33760 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
33761 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
33762 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
33763 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
33764 OGG_LIB!$OGG_LIB$ac_delim
33765 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
33766 OGG_DIR!$OGG_DIR$ac_delim
33767 PBX_OGG!$PBX_OGG$ac_delim
33768 OSPTK_LIB!$OSPTK_LIB$ac_delim
33769 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
33770 OSPTK_DIR!$OSPTK_DIR$ac_delim
33771 PBX_OSPTK!$PBX_OSPTK$ac_delim
33772 OSS_LIB!$OSS_LIB$ac_delim
33773 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
33774 OSS_DIR!$OSS_DIR$ac_delim
33775 PBX_OSS!$PBX_OSS$ac_delim
33776 POPT_LIB!$POPT_LIB$ac_delim
33777 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
33778 POPT_DIR!$POPT_DIR$ac_delim
33779 PBX_POPT!$PBX_POPT$ac_delim
33780 PGSQL_LIB!$PGSQL_LIB$ac_delim
33781 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
33782 PGSQL_DIR!$PGSQL_DIR$ac_delim
33783 PBX_PGSQL!$PBX_PGSQL$ac_delim
33784 PRI_LIB!$PRI_LIB$ac_delim
33785 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
33786 PRI_DIR!$PRI_DIR$ac_delim
33787 PBX_PRI!$PBX_PRI$ac_delim
33788 PWLIB_LIB!$PWLIB_LIB$ac_delim
33789 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
33790 PWLIB_DIR!$PWLIB_DIR$ac_delim
33791 PBX_PWLIB!$PBX_PWLIB$ac_delim
33792 OPENH323_LIB!$OPENH323_LIB$ac_delim
33793 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
33794 OPENH323_DIR!$OPENH323_DIR$ac_delim
33795 PBX_OPENH323!$PBX_OPENH323$ac_delim
33796 QT_LIB!$QT_LIB$ac_delim
33797 _ACEOF
33799 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33800 break
33801 elif $ac_last_try; then
33802 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33803 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33804 { (exit 1); exit 1; }; }
33805 else
33806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33808 done
33810 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33811 if test -n "$ac_eof"; then
33812 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33813 ac_eof=`expr $ac_eof + 1`
33816 cat >>$CONFIG_STATUS <<_ACEOF
33817 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33819 _ACEOF
33820 sed '
33821 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33822 s/^/s,@/; s/!/@,|#_!!_#|/
33825 s/'"$ac_delim"'$/,g/; t
33826 s/$/\\/; p
33827 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33828 ' >>$CONFIG_STATUS <conf$$subs.sed
33829 rm -f conf$$subs.sed
33830 cat >>$CONFIG_STATUS <<_ACEOF
33831 CEOF$ac_eof
33832 _ACEOF
33835 ac_delim='%!_!# '
33836 for ac_last_try in false false false false false :; do
33837 cat >conf$$subs.sed <<_ACEOF
33838 QT_INCLUDE!$QT_INCLUDE$ac_delim
33839 QT_DIR!$QT_DIR$ac_delim
33840 PBX_QT!$PBX_QT$ac_delim
33841 RADIUS_LIB!$RADIUS_LIB$ac_delim
33842 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
33843 RADIUS_DIR!$RADIUS_DIR$ac_delim
33844 PBX_RADIUS!$PBX_RADIUS$ac_delim
33845 SPEEX_LIB!$SPEEX_LIB$ac_delim
33846 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
33847 SPEEX_DIR!$SPEEX_DIR$ac_delim
33848 PBX_SPEEX!$PBX_SPEEX$ac_delim
33849 SQLITE_LIB!$SQLITE_LIB$ac_delim
33850 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
33851 SQLITE_DIR!$SQLITE_DIR$ac_delim
33852 PBX_SQLITE!$PBX_SQLITE$ac_delim
33853 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
33854 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
33855 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
33856 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
33857 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
33858 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
33859 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
33860 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
33861 FREETDS_LIB!$FREETDS_LIB$ac_delim
33862 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
33863 FREETDS_DIR!$FREETDS_DIR$ac_delim
33864 PBX_FREETDS!$PBX_FREETDS$ac_delim
33865 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
33866 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
33867 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
33868 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
33869 TINFO_LIB!$TINFO_LIB$ac_delim
33870 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
33871 TINFO_DIR!$TINFO_DIR$ac_delim
33872 PBX_TINFO!$PBX_TINFO$ac_delim
33873 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
33874 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
33875 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
33876 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
33877 USB_LIB!$USB_LIB$ac_delim
33878 USB_INCLUDE!$USB_INCLUDE$ac_delim
33879 USB_DIR!$USB_DIR$ac_delim
33880 PBX_USB!$PBX_USB$ac_delim
33881 VORBIS_LIB!$VORBIS_LIB$ac_delim
33882 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
33883 VORBIS_DIR!$VORBIS_DIR$ac_delim
33884 PBX_VORBIS!$PBX_VORBIS$ac_delim
33885 VPB_LIB!$VPB_LIB$ac_delim
33886 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
33887 VPB_DIR!$VPB_DIR$ac_delim
33888 PBX_VPB!$PBX_VPB$ac_delim
33889 ZLIB_LIB!$ZLIB_LIB$ac_delim
33890 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
33891 ZLIB_DIR!$ZLIB_DIR$ac_delim
33892 PBX_ZLIB!$PBX_ZLIB$ac_delim
33893 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
33894 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
33895 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
33896 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
33897 ALLOCA!$ALLOCA$ac_delim
33898 LIBOBJS!$LIBOBJS$ac_delim
33899 POW_LIB!$POW_LIB$ac_delim
33900 GC_CFLAGS!$GC_CFLAGS$ac_delim
33901 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
33902 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
33903 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
33904 KDEINIT!$KDEINIT$ac_delim
33905 KDEDIR!$KDEDIR$ac_delim
33906 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
33907 PG_CONFIG!$PG_CONFIG$ac_delim
33908 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
33909 PWLIBDIR!$PWLIBDIR$ac_delim
33910 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
33911 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
33912 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
33913 OPENH323DIR!$OPENH323DIR$ac_delim
33914 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
33915 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
33916 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
33917 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
33918 QTMOC!$QTMOC$ac_delim
33919 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
33920 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
33921 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
33922 PBX_H323!$PBX_H323$ac_delim
33923 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
33924 GTKCONFIG!$GTKCONFIG$ac_delim
33925 PBX_GTK!$PBX_GTK$ac_delim
33926 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
33927 GTK_LIB!$GTK_LIB$ac_delim
33928 PKGCONFIG!$PKGCONFIG$ac_delim
33929 PBX_GTK2!$PBX_GTK2$ac_delim
33930 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
33931 GTK2_LIB!$GTK2_LIB$ac_delim
33932 CURL_CONFIG!$CURL_CONFIG$ac_delim
33933 LTLIBOBJS!$LTLIBOBJS$ac_delim
33934 _ACEOF
33936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
33937 break
33938 elif $ac_last_try; then
33939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33940 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33941 { (exit 1); exit 1; }; }
33942 else
33943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33945 done
33947 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33948 if test -n "$ac_eof"; then
33949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33950 ac_eof=`expr $ac_eof + 1`
33953 cat >>$CONFIG_STATUS <<_ACEOF
33954 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33956 _ACEOF
33957 sed '
33958 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33959 s/^/s,@/; s/!/@,|#_!!_#|/
33962 s/'"$ac_delim"'$/,g/; t
33963 s/$/\\/; p
33964 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33965 ' >>$CONFIG_STATUS <conf$$subs.sed
33966 rm -f conf$$subs.sed
33967 cat >>$CONFIG_STATUS <<_ACEOF
33968 CEOF$ac_eof
33969 _ACEOF
33972 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33973 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33974 # trailing colons and then remove the whole line if VPATH becomes empty
33975 # (actually we leave an empty line to preserve line numbers).
33976 if test "x$srcdir" = x.; then
33977 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33978 s/:*\$(srcdir):*/:/
33979 s/:*\${srcdir}:*/:/
33980 s/:*@srcdir@:*/:/
33981 s/^\([^=]*=[ ]*\):*/\1/
33982 s/:*$//
33983 s/^[^=]*=[ ]*$//
33987 cat >>$CONFIG_STATUS <<\_ACEOF
33988 fi # test -n "$CONFIG_FILES"
33991 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
33993 case $ac_tag in
33994 :[FHLC]) ac_mode=$ac_tag; continue;;
33995 esac
33996 case $ac_mode$ac_tag in
33997 :[FHL]*:*);;
33998 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33999 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34000 { (exit 1); exit 1; }; };;
34001 :[FH]-) ac_tag=-:-;;
34002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34003 esac
34004 ac_save_IFS=$IFS
34005 IFS=:
34006 set x $ac_tag
34007 IFS=$ac_save_IFS
34008 shift
34009 ac_file=$1
34010 shift
34012 case $ac_mode in
34013 :L) ac_source=$1;;
34014 :[FH])
34015 ac_file_inputs=
34016 for ac_f
34018 case $ac_f in
34019 -) ac_f="$tmp/stdin";;
34020 *) # Look for the file first in the build tree, then in the source tree
34021 # (if the path is not absolute). The absolute path cannot be DOS-style,
34022 # because $ac_f cannot contain `:'.
34023 test -f "$ac_f" ||
34024 case $ac_f in
34025 [\\/$]*) false;;
34026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34027 esac ||
34028 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34029 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34030 { (exit 1); exit 1; }; };;
34031 esac
34032 ac_file_inputs="$ac_file_inputs $ac_f"
34033 done
34035 # Let's still pretend it is `configure' which instantiates (i.e., don't
34036 # use $as_me), people would be surprised to read:
34037 # /* config.h. Generated by config.status. */
34038 configure_input="Generated from "`IFS=:
34039 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34040 if test x"$ac_file" != x-; then
34041 configure_input="$ac_file. $configure_input"
34042 { echo "$as_me:$LINENO: creating $ac_file" >&5
34043 echo "$as_me: creating $ac_file" >&6;}
34046 case $ac_tag in
34047 *:-:* | *:-) cat >"$tmp/stdin";;
34048 esac
34050 esac
34052 ac_dir=`$as_dirname -- "$ac_file" ||
34053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34054 X"$ac_file" : 'X\(//\)[^/]' \| \
34055 X"$ac_file" : 'X\(//\)$' \| \
34056 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34057 echo X"$ac_file" |
34058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34059 s//\1/
34062 /^X\(\/\/\)[^/].*/{
34063 s//\1/
34066 /^X\(\/\/\)$/{
34067 s//\1/
34070 /^X\(\/\).*/{
34071 s//\1/
34074 s/.*/./; q'`
34075 { as_dir="$ac_dir"
34076 case $as_dir in #(
34077 -*) as_dir=./$as_dir;;
34078 esac
34079 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34080 as_dirs=
34081 while :; do
34082 case $as_dir in #(
34083 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34084 *) as_qdir=$as_dir;;
34085 esac
34086 as_dirs="'$as_qdir' $as_dirs"
34087 as_dir=`$as_dirname -- "$as_dir" ||
34088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34089 X"$as_dir" : 'X\(//\)[^/]' \| \
34090 X"$as_dir" : 'X\(//\)$' \| \
34091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34092 echo X"$as_dir" |
34093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34094 s//\1/
34097 /^X\(\/\/\)[^/].*/{
34098 s//\1/
34101 /^X\(\/\/\)$/{
34102 s//\1/
34105 /^X\(\/\).*/{
34106 s//\1/
34109 s/.*/./; q'`
34110 test -d "$as_dir" && break
34111 done
34112 test -z "$as_dirs" || eval "mkdir $as_dirs"
34113 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34114 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34115 { (exit 1); exit 1; }; }; }
34116 ac_builddir=.
34118 case "$ac_dir" in
34119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34122 # A ".." for each directory in $ac_dir_suffix.
34123 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34124 case $ac_top_builddir_sub in
34125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34127 esac ;;
34128 esac
34129 ac_abs_top_builddir=$ac_pwd
34130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34131 # for backward compatibility:
34132 ac_top_builddir=$ac_top_build_prefix
34134 case $srcdir in
34135 .) # We are building in place.
34136 ac_srcdir=.
34137 ac_top_srcdir=$ac_top_builddir_sub
34138 ac_abs_top_srcdir=$ac_pwd ;;
34139 [\\/]* | ?:[\\/]* ) # Absolute name.
34140 ac_srcdir=$srcdir$ac_dir_suffix;
34141 ac_top_srcdir=$srcdir
34142 ac_abs_top_srcdir=$srcdir ;;
34143 *) # Relative name.
34144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34145 ac_top_srcdir=$ac_top_build_prefix$srcdir
34146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34147 esac
34148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34151 case $ac_mode in
34154 # CONFIG_FILE
34157 case $INSTALL in
34158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34159 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34160 esac
34161 _ACEOF
34163 cat >>$CONFIG_STATUS <<\_ACEOF
34164 # If the template does not know about datarootdir, expand it.
34165 # FIXME: This hack should be removed a few years after 2.60.
34166 ac_datarootdir_hack=; ac_datarootdir_seen=
34168 case `sed -n '/datarootdir/ {
34172 /@datadir@/p
34173 /@docdir@/p
34174 /@infodir@/p
34175 /@localedir@/p
34176 /@mandir@/p
34177 ' $ac_file_inputs` in
34178 *datarootdir*) ac_datarootdir_seen=yes;;
34179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34180 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34181 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34182 _ACEOF
34183 cat >>$CONFIG_STATUS <<_ACEOF
34184 ac_datarootdir_hack='
34185 s&@datadir@&$datadir&g
34186 s&@docdir@&$docdir&g
34187 s&@infodir@&$infodir&g
34188 s&@localedir@&$localedir&g
34189 s&@mandir@&$mandir&g
34190 s&\\\${datarootdir}&$datarootdir&g' ;;
34191 esac
34192 _ACEOF
34194 # Neutralize VPATH when `$srcdir' = `.'.
34195 # Shell code in configure.ac might set extrasub.
34196 # FIXME: do we really want to maintain this feature?
34197 cat >>$CONFIG_STATUS <<_ACEOF
34198 sed "$ac_vpsub
34199 $extrasub
34200 _ACEOF
34201 cat >>$CONFIG_STATUS <<\_ACEOF
34203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34204 s&@configure_input@&$configure_input&;t t
34205 s&@top_builddir@&$ac_top_builddir_sub&;t t
34206 s&@srcdir@&$ac_srcdir&;t t
34207 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34208 s&@top_srcdir@&$ac_top_srcdir&;t t
34209 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34210 s&@builddir@&$ac_builddir&;t t
34211 s&@abs_builddir@&$ac_abs_builddir&;t t
34212 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34213 s&@INSTALL@&$ac_INSTALL&;t t
34214 $ac_datarootdir_hack
34215 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
34217 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34218 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34220 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34221 which seems to be undefined. Please make sure it is defined." >&5
34222 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34223 which seems to be undefined. Please make sure it is defined." >&2;}
34225 rm -f "$tmp/stdin"
34226 case $ac_file in
34227 -) cat "$tmp/out"; rm -f "$tmp/out";;
34228 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34229 esac
34233 # CONFIG_HEADER
34235 _ACEOF
34237 # Transform confdefs.h into a sed script `conftest.defines', that
34238 # substitutes the proper values into config.h.in to produce config.h.
34239 rm -f conftest.defines conftest.tail
34240 # First, append a space to every undef/define line, to ease matching.
34241 echo 's/$/ /' >conftest.defines
34242 # Then, protect against being on the right side of a sed subst, or in
34243 # an unquoted here document, in config.status. If some macros were
34244 # called several times there might be several #defines for the same
34245 # symbol, which is useless. But do not sort them, since the last
34246 # AC_DEFINE must be honored.
34247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34248 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34249 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34250 # PARAMS is the parameter list in the macro definition--in most cases, it's
34251 # just an empty string.
34252 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34253 ac_dB='\\)[ (].*,\\1define\\2'
34254 ac_dC=' '
34255 ac_dD=' ,'
34257 uniq confdefs.h |
34258 sed -n '
34259 t rset
34260 :rset
34261 s/^[ ]*#[ ]*define[ ][ ]*//
34262 t ok
34265 s/[\\&,]/\\&/g
34266 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34267 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34268 ' >>conftest.defines
34270 # Remove the space that was appended to ease matching.
34271 # Then replace #undef with comments. This is necessary, for
34272 # example, in the case of _POSIX_SOURCE, which is predefined and required
34273 # on some systems where configure will not decide to define it.
34274 # (The regexp can be short, since the line contains either #define or #undef.)
34275 echo 's/ $//
34276 s,^[ #]*u.*,/* & */,' >>conftest.defines
34278 # Break up conftest.defines:
34279 ac_max_sed_lines=50
34281 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34282 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34283 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34284 # et cetera.
34285 ac_in='$ac_file_inputs'
34286 ac_out='"$tmp/out1"'
34287 ac_nxt='"$tmp/out2"'
34289 while :
34291 # Write a here document:
34292 cat >>$CONFIG_STATUS <<_ACEOF
34293 # First, check the format of the line:
34294 cat >"\$tmp/defines.sed" <<\\CEOF
34295 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34296 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34298 :def
34299 _ACEOF
34300 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34301 echo 'CEOF
34302 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34303 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34304 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34305 grep . conftest.tail >/dev/null || break
34306 rm -f conftest.defines
34307 mv conftest.tail conftest.defines
34308 done
34309 rm -f conftest.defines conftest.tail
34311 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34312 cat >>$CONFIG_STATUS <<\_ACEOF
34313 if test x"$ac_file" != x-; then
34314 echo "/* $configure_input */" >"$tmp/config.h"
34315 cat "$ac_result" >>"$tmp/config.h"
34316 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34318 echo "$as_me: $ac_file is unchanged" >&6;}
34319 else
34320 rm -f $ac_file
34321 mv "$tmp/config.h" $ac_file
34323 else
34324 echo "/* $configure_input */"
34325 cat "$ac_result"
34327 rm -f "$tmp/out12"
34331 esac
34333 done # for ac_tag
34336 { (exit 0); exit 0; }
34337 _ACEOF
34338 chmod +x $CONFIG_STATUS
34339 ac_clean_files=$ac_clean_files_save
34342 # configure is writing to config.log, and then calls config.status.
34343 # config.status does its own redirection, appending to config.log.
34344 # Unfortunately, on DOS this fails, as config.log is still kept open
34345 # by configure, so config.status won't be able to write to it; its
34346 # output is simply discarded. So we exec the FD to /dev/null,
34347 # effectively closing config.log, so it can be properly (re)opened and
34348 # appended to by config.status. When coming back to configure, we
34349 # need to make the FD available again.
34350 if test "$no_create" != yes; then
34351 ac_cs_success=:
34352 ac_config_status_args=
34353 test "$silent" = yes &&
34354 ac_config_status_args="$ac_config_status_args --quiet"
34355 exec 5>/dev/null
34356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34357 exec 5>>config.log
34358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34359 # would make configure fail if this is the last instruction.
34360 $ac_cs_success || { (exit 1); exit 1; }
34364 if test "x${silent}" != "xyes" ; then
34365 echo
34366 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
34367 echo " .\$7\$7.. .7\$\$7:. "
34368 echo " .\$\$:. ,\$7.7 "
34369 echo " .\$7. 7\$\$\$\$ .\$\$77 "
34370 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
34371 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
34372 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
34373 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
34374 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
34375 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
34376 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
34377 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
34378 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
34379 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
34380 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
34381 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
34382 echo " \$\$\$\$\$ \$\$\$ "
34383 echo " \$\$\$\$7. \$\$ (TM) "
34384 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
34385 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
34386 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
34387 echo
34390 { echo "$as_me:$LINENO: Package configured for: " >&5
34391 echo "$as_me: Package configured for: " >&6;}
34392 { echo "$as_me:$LINENO: OS type : $host_os" >&5
34393 echo "$as_me: OS type : $host_os" >&6;}
34394 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
34395 echo "$as_me: Host CPU : $host_cpu" >&6;}
34396 if test "${cross_compiling}" = "yes"; then
34397 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
34398 echo "$as_me: Cross Compilation = YES" >&6;}