Commit fix for being unable to send voicemail from VoiceMailMain
[asterisk-bristuff.git] / configure
blob6e97414671f6969dcd03a3fa688006963c86fafe
1 #! /bin/sh
2 # From configure.ac Revision: 101894 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for asterisk 1.4.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # "Asterisk"
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be Bourne compatible
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
29 BIN_SH=xpg4; export BIN_SH # for Tru64
30 DUALCASE=1; export DUALCASE # for MKS sh
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
51 rm -f conf$$.sh
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
69 IFS=" "" $as_nl"
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 done
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
141 /^X\/\(\/\/\)$/{
142 s//\1/
145 /^X\/\(\/\).*/{
146 s//\1/
149 s/.*/./; q'`
151 # CDPATH.
152 $as_unset CDPATH
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
166 as_func_success () {
167 as_func_return 0
169 as_func_failure () {
170 as_func_return 1
172 as_func_ret_success () {
173 return 0
175 as_func_ret_failure () {
176 return 1
179 exitcode=0
180 if as_func_success; then
182 else
183 exitcode=1
184 echo as_func_success failed.
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 else
207 exitcode=1
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 # Be Bourne compatible
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
252 BIN_SH=xpg4; export BIN_SH # for Tru64
253 DUALCASE=1; export DUALCASE # for MKS sh
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 # Be Bourne compatible
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
272 BIN_SH=xpg4; export BIN_SH # for Tru64
273 DUALCASE=1; export DUALCASE # for MKS sh
276 (as_func_return () {
277 (exit $1)
279 as_func_success () {
280 as_func_return 0
282 as_func_failure () {
283 as_func_return 1
285 as_func_ret_success () {
286 return 0
288 as_func_ret_failure () {
289 return 1
292 exitcode=0
293 if as_func_success; then
295 else
296 exitcode=1
297 echo as_func_success failed.
300 if as_func_failure; then
301 exitcode=1
302 echo as_func_failure succeeded.
305 if as_func_ret_success; then
307 else
308 exitcode=1
309 echo as_func_ret_success failed.
312 if as_func_ret_failure; then
313 exitcode=1
314 echo as_func_ret_failure succeeded.
317 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 else
320 exitcode=1
321 echo positional parameters were not saved.
324 test $exitcode = 0) || { (exit 1); exit 1; }
327 as_lineno_1=$LINENO
328 as_lineno_2=$LINENO
329 test "x$as_lineno_1" != "x$as_lineno_2" &&
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332 _ASEOF
333 }; then
334 break
339 done
341 if test "x$CONFIG_SHELL" != x; then
342 for as_var in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 done
345 export CONFIG_SHELL
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 if test $as_have_required = no; then
351 echo This script requires a shell more modern than all the
352 echo shells that I found on your system. Please install a
353 echo modern shell, or manually run the script under such a
354 echo shell if you do have one.
355 { (exit 1); exit 1; }
365 (eval "as_func_return () {
366 (exit \$1)
368 as_func_success () {
369 as_func_return 0
371 as_func_failure () {
372 as_func_return 1
374 as_func_ret_success () {
375 return 0
377 as_func_ret_failure () {
378 return 1
381 exitcode=0
382 if as_func_success; then
384 else
385 exitcode=1
386 echo as_func_success failed.
389 if as_func_failure; then
390 exitcode=1
391 echo as_func_failure succeeded.
394 if as_func_ret_success; then
396 else
397 exitcode=1
398 echo as_func_ret_success failed.
401 if as_func_ret_failure; then
402 exitcode=1
403 echo as_func_ret_failure succeeded.
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 else
409 exitcode=1
410 echo positional parameters were not saved.
413 test \$exitcode = 0") || {
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system,
416 echo including any error possibly output before this
417 echo message
422 as_lineno_1=$LINENO
423 as_lineno_2=$LINENO
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 # uniformly replaced by the line number. The first 'sed' inserts a
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
433 # case at line end.
434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454 { (exit 1); exit 1; }; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in
473 -n*)
474 case `echo 'x\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 *) ECHO_C='\c';;
477 esac;;
479 ECHO_N='-n';;
480 esac
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 as_expr=expr
485 else
486 as_expr=false
489 rm -f conf$$ conf$$.exe conf$$.file
490 if test -d conf$$.dir; then
491 rm -f conf$$.dir/conf$$.file
492 else
493 rm -f conf$$.dir
494 mkdir conf$$.dir
496 echo >conf$$.file
497 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s='ln -s'
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 as_ln_s='cp -p'
505 elif ln conf$$.file conf$$ 2>/dev/null; then
506 as_ln_s=ln
507 else
508 as_ln_s='cp -p'
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
513 if mkdir -p . 2>/dev/null; then
514 as_mkdir_p=:
515 else
516 test -d ./-p && rmdir ./-p
517 as_mkdir_p=false
520 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
521 # systems may use methods other than mode bits to determine executability.
522 cat >conf$$.file <<_ASEOF
523 #! /bin/sh
524 exit 0
525 _ASEOF
526 chmod +x conf$$.file
527 if test -x conf$$.file >/dev/null 2>&1; then
528 as_executable_p="test -x"
529 else
530 as_executable_p=:
532 rm -f conf$$.file
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 exec 7<&0 </dev/null 6>&1
544 # Name of the host.
545 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 # Initializations.
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Identity of this package.
563 PACKAGE_NAME='asterisk'
564 PACKAGE_TARNAME='asterisk'
565 PACKAGE_VERSION='1.4'
566 PACKAGE_STRING='asterisk 1.4'
567 PACKAGE_BUGREPORT='www.asterisk.org'
569 ac_unique_file="main/asterisk.c"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #if HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #if HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #if STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # if HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #if HAVE_STRING_H
588 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #if HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #if HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #if HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #if HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
606 ac_subst_vars='SHELL
607 PATH_SEPARATOR
608 PACKAGE_NAME
609 PACKAGE_TARNAME
610 PACKAGE_VERSION
611 PACKAGE_STRING
612 PACKAGE_BUGREPORT
613 exec_prefix
614 prefix
615 program_transform_name
616 bindir
617 sbindir
618 libexecdir
619 datarootdir
620 datadir
621 sysconfdir
622 sharedstatedir
623 localstatedir
624 includedir
625 oldincludedir
626 docdir
627 infodir
628 htmldir
629 dvidir
630 pdfdir
631 psdir
632 libdir
633 localedir
634 mandir
635 DEFS
636 ECHO_C
637 ECHO_N
638 ECHO_T
639 LIBS
640 build_alias
641 host_alias
642 target_alias
643 build
644 build_cpu
645 build_vendor
646 build_os
647 host
648 host_cpu
649 host_vendor
650 host_os
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
659 GREP
660 EGREP
661 BUILD_PLATFORM
662 BUILD_CPU
663 BUILD_VENDOR
664 BUILD_OS
665 HOST_PLATFORM
666 HOST_CPU
667 HOST_VENDOR
668 HOST_OS
669 OSARCH
670 UNAME
671 PBX_OSREV
674 RANLIB
675 CXXFLAGS
676 ac_ct_CXX
677 CXXCPP
680 INSTALL_PROGRAM
681 INSTALL_SCRIPT
682 INSTALL_DATA
683 LN_S
684 GNU_MAKE
685 STRIP
687 GNU_LD
688 FIND
689 COMPRESS
690 BASENAME
692 DIRNAME
695 WGET
696 FETCH
697 DOWNLOAD
698 SOXMIX
699 acx_pthread_config
700 PTHREAD_CC
701 PTHREAD_LIBS
702 PTHREAD_CFLAGS
703 AST_DEVMODE
704 ALSA_LIB
705 ALSA_INCLUDE
706 ALSA_DIR
707 PBX_ALSA
708 CURL_LIB
709 CURL_INCLUDE
710 CURL_DIR
711 PBX_CURL
712 CAP_LIB
713 CAP_INCLUDE
714 CAP_DIR
715 PBX_CAP
716 CURSES_LIB
717 CURSES_INCLUDE
718 CURSES_DIR
719 PBX_CURSES
720 GNUTLS_LIB
721 GNUTLS_INCLUDE
722 GNUTLS_DIR
723 PBX_GNUTLS
724 GSM_LIB
725 GSM_INCLUDE
726 GSM_DIR
727 PBX_GSM
728 IKSEMEL_LIB
729 IKSEMEL_INCLUDE
730 IKSEMEL_DIR
731 PBX_IKSEMEL
732 IMAP_TK_LIB
733 IMAP_TK_INCLUDE
734 IMAP_TK_DIR
735 PBX_IMAP_TK
736 ISDNNET_LIB
737 ISDNNET_INCLUDE
738 ISDNNET_DIR
739 PBX_ISDNNET
740 KDE_LIB
741 KDE_INCLUDE
742 KDE_DIR
743 PBX_KDE
744 LTDL_LIB
745 LTDL_INCLUDE
746 LTDL_DIR
747 PBX_LTDL
748 MISDN_LIB
749 MISDN_INCLUDE
750 MISDN_DIR
751 PBX_MISDN
752 NBS_LIB
753 NBS_INCLUDE
754 NBS_DIR
755 PBX_NBS
756 NCURSES_LIB
757 NCURSES_INCLUDE
758 NCURSES_DIR
759 PBX_NCURSES
760 NETSNMP_LIB
761 NETSNMP_INCLUDE
762 NETSNMP_DIR
763 PBX_NETSNMP
764 NEWT_LIB
765 NEWT_INCLUDE
766 NEWT_DIR
767 PBX_NEWT
768 UNIXODBC_LIB
769 UNIXODBC_INCLUDE
770 UNIXODBC_DIR
771 PBX_UNIXODBC
772 OGG_LIB
773 OGG_INCLUDE
774 OGG_DIR
775 PBX_OGG
776 OSPTK_LIB
777 OSPTK_INCLUDE
778 OSPTK_DIR
779 PBX_OSPTK
780 OSS_LIB
781 OSS_INCLUDE
782 OSS_DIR
783 PBX_OSS
784 POPT_LIB
785 POPT_INCLUDE
786 POPT_DIR
787 PBX_POPT
788 PGSQL_LIB
789 PGSQL_INCLUDE
790 PGSQL_DIR
791 PBX_PGSQL
792 PRI_LIB
793 PRI_INCLUDE
794 PRI_DIR
795 PBX_PRI
796 PWLIB_LIB
797 PWLIB_INCLUDE
798 PWLIB_DIR
799 PBX_PWLIB
800 OPENH323_LIB
801 OPENH323_INCLUDE
802 OPENH323_DIR
803 PBX_OPENH323
804 RADIUS_LIB
805 RADIUS_INCLUDE
806 RADIUS_DIR
807 PBX_RADIUS
808 SPEEX_LIB
809 SPEEX_INCLUDE
810 SPEEX_DIR
811 PBX_SPEEX
812 SPEEXDSP_LIB
813 SPEEXDSP_INCLUDE
814 SPEEXDSP_DIR
815 PBX_SPEEXDSP
816 SQLITE_LIB
817 SQLITE_INCLUDE
818 SQLITE_DIR
819 PBX_SQLITE
820 SUPPSERV_LIB
821 SUPPSERV_INCLUDE
822 SUPPSERV_DIR
823 PBX_SUPPSERV
824 OPENSSL_LIB
825 OPENSSL_INCLUDE
826 OPENSSL_DIR
827 PBX_OPENSSL
828 FREETDS_LIB
829 FREETDS_INCLUDE
830 FREETDS_DIR
831 PBX_FREETDS
832 TERMCAP_LIB
833 TERMCAP_INCLUDE
834 TERMCAP_DIR
835 PBX_TERMCAP
836 TINFO_LIB
837 TINFO_INCLUDE
838 TINFO_DIR
839 PBX_TINFO
840 TONEZONE_LIB
841 TONEZONE_INCLUDE
842 TONEZONE_DIR
843 PBX_TONEZONE
844 USB_LIB
845 USB_INCLUDE
846 USB_DIR
847 PBX_USB
848 VORBIS_LIB
849 VORBIS_INCLUDE
850 VORBIS_DIR
851 PBX_VORBIS
852 VPB_LIB
853 VPB_INCLUDE
854 VPB_DIR
855 PBX_VPB
856 ZLIB_LIB
857 ZLIB_INCLUDE
858 ZLIB_DIR
859 PBX_ZLIB
860 ZAPTEL_LIB
861 ZAPTEL_INCLUDE
862 ZAPTEL_DIR
863 PBX_ZAPTEL
864 ALLOCA
865 LIBOBJS
866 POW_LIB
867 GC_CFLAGS
868 GC_LDFLAGS
869 AST_DECLARATION_AFTER_STATEMENT
870 GSM_INTERNAL
871 KDEINIT
872 KDEDIR
873 NETSNMP_CONFIG
874 PG_CONFIG
875 PTLIB_CONFIG
876 PWLIBDIR
877 PWLIB_INCDIR
878 PWLIB_LIBDIR
879 PWLIB_PLATFORM
880 OPENH323DIR
881 OPENH323_INCDIR
882 OPENH323_LIBDIR
883 OPENH323_SUFFIX
884 OPENH323_BUILD
885 PBX_ZAPTEL_VLDTMF
886 PBX_ZAPTEL_TRANSCODE
887 EDITLINE_LIB
888 PBX_H323
889 PBX_IXJUSER
890 GTKCONFIG
891 PBX_GTK
892 GTK_INCLUDE
893 GTK_LIB
894 PKGCONFIG
895 PBX_GTK2
896 GTK2_INCLUDE
897 GTK2_LIB
898 CURL_CONFIG
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
905 CFLAGS
906 LDFLAGS
907 CPPFLAGS
910 CXXFLAGS
912 CXXCPP'
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
961 ac_prev=
962 ac_dashdash=
963 for ac_option
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
968 ac_prev=
969 continue
972 case $ac_option in
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *) ac_optarg=yes ;;
975 esac
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
981 ac_dashdash=yes ;;
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1022 eval enable_$ac_feature=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1231 -with-* | --with-*)
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package| sed 's/-/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/-/_/g'`
1247 eval with_$ac_package=no ;;
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 esac
1290 done
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 echo X"$0" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1365 /^X\(\/\/\)$/{
1366 s//\1/
1369 /^X\(\/\).*/{
1370 s//\1/
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1378 else
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1470 cat <<\_ACEOF
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of asterisk 1.4:";;
1481 esac
1482 cat <<\_ACEOF
1484 Optional Features:
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-dev-mode Turn on developer mode
1488 --disable-largefile omit support for large files
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1495 --with-curl=PATH use cURL files in PATH
1496 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1497 --with-curses=PATH use curses files in PATH
1498 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1499 PATH
1500 --with-gsm=PATH use GSM files in PATH , or 'internal'
1501 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1502 --with-imap=PATH use UW IMAP Toolkit files in PATH
1503 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1504 --with-kde=PATH use KDE files in PATH
1505 --with-ltdl=PATH use libtool files in PATH
1506 --with-misdn=PATH use mISDN User Library files in PATH
1507 --with-nbs=PATH use Network Broadcast Sound files in PATH
1508 --with-ncurses=PATH use ncurses files in PATH
1509 --with-netsnmp=PATH use Net-SNMP files in PATH
1510 --with-newt=PATH use newt files in PATH
1511 --with-odbc=PATH use unixODBC files in PATH
1512 --with-ogg=PATH use OGG files in PATH
1513 --with-osptk=PATH use OSP Toolkit files in PATH
1514 --with-oss=PATH use Open Sound System files in PATH
1515 --with-popt=PATH use popt files in PATH
1516 --with-postgres=PATH use PostgreSQL files in PATH
1517 --with-pri=PATH use ISDN PRI files in PATH
1518 --with-pwlib=PATH use PWlib files in PATH
1519 --with-h323=PATH use OpenH323 files in PATH
1520 --with-radius=PATH use Radius Client files in PATH
1521 --with-speex=PATH use Speex files in PATH
1522 --with-speexdsp=PATH use Speexdsp files in PATH
1523 --with-sqlite=PATH use SQLite files in PATH
1524 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1525 --with-ssl=PATH use OpenSSL files in PATH
1526 --with-tds=PATH use FreeTDS files in PATH
1527 --with-termcap=PATH use Termcap files in PATH
1528 --with-tinfo=PATH use Term Info files in PATH
1529 --with-tonezone=PATH use tonezone files in PATH
1530 --with-usb=PATH use usb files in PATH
1531 --with-vorbis=PATH use Vorbis files in PATH
1532 --with-vpb=PATH use Voicetronix API files in PATH
1533 --with-z=PATH use zlib files in PATH
1534 --with-zaptel=PATH use Zaptel files in PATH
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1546 CXXCPP C++ preprocessor
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 Report bugs to <www.asterisk.org>.
1552 _ACEOF
1553 ac_status=$?
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" || continue
1560 ac_builddir=.
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 asterisk configure 1.4
1613 generated by GNU Autoconf 2.60
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1620 "Asterisk"
1621 _ACEOF
1622 exit
1624 cat >config.log <<_ACEOF
1625 This file contains any messages produced by compilers while
1626 running configure, to aid debugging if configure makes a mistake.
1628 It was created by asterisk $as_me 1.4, which was
1629 generated by GNU Autoconf 2.60. Invocation command line was
1631 $ $0 $@
1633 _ACEOF
1634 exec 5>>config.log
1636 cat <<_ASUNAME
1637 ## --------- ##
1638 ## Platform. ##
1639 ## --------- ##
1641 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1642 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1643 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1644 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1645 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1647 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1648 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1650 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1651 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1652 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1653 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1654 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1655 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1656 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1658 _ASUNAME
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 echo "PATH: $as_dir"
1666 done
1667 IFS=$as_save_IFS
1669 } >&5
1671 cat >&5 <<_ACEOF
1674 ## ----------- ##
1675 ## Core tests. ##
1676 ## ----------- ##
1678 _ACEOF
1681 # Keep a trace of the command line.
1682 # Strip out --no-create and --no-recursion so they do not pile up.
1683 # Strip out --silent because we don't want to record it for future runs.
1684 # Also quote any args containing shell meta-characters.
1685 # Make two passes to allow for proper duplicate-argument suppression.
1686 ac_configure_args=
1687 ac_configure_args0=
1688 ac_configure_args1=
1689 ac_must_keep_next=false
1690 for ac_pass in 1 2
1692 for ac_arg
1694 case $ac_arg in
1695 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1697 | -silent | --silent | --silen | --sile | --sil)
1698 continue ;;
1699 *\'*)
1700 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1701 esac
1702 case $ac_pass in
1703 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1705 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1706 if test $ac_must_keep_next = true; then
1707 ac_must_keep_next=false # Got value, back to normal.
1708 else
1709 case $ac_arg in
1710 *=* | --config-cache | -C | -disable-* | --disable-* \
1711 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1712 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1713 | -with-* | --with-* | -without-* | --without-* | --x)
1714 case "$ac_configure_args0 " in
1715 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1716 esac
1718 -* ) ac_must_keep_next=true ;;
1719 esac
1721 ac_configure_args="$ac_configure_args '$ac_arg'"
1723 esac
1724 done
1725 done
1726 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1727 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1729 # When interrupted or exit'd, cleanup temporary files, and complete
1730 # config.log. We remove comments because anyway the quotes in there
1731 # would cause problems or look ugly.
1732 # WARNING: Use '\'' to represent an apostrophe within the trap.
1733 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1734 trap 'exit_status=$?
1735 # Save into config.log some information that might help in debugging.
1737 echo
1739 cat <<\_ASBOX
1740 ## ---------------- ##
1741 ## Cache variables. ##
1742 ## ---------------- ##
1743 _ASBOX
1744 echo
1745 # The following way of writing the cache mishandles newlines in values,
1747 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1748 eval ac_val=\$$ac_var
1749 case $ac_val in #(
1750 *${as_nl}*)
1751 case $ac_var in #(
1752 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1753 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1754 esac
1755 case $ac_var in #(
1756 _ | IFS | as_nl) ;; #(
1757 *) $as_unset $ac_var ;;
1758 esac ;;
1759 esac
1760 done
1761 (set) 2>&1 |
1762 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1763 *${as_nl}ac_space=\ *)
1764 sed -n \
1765 "s/'\''/'\''\\\\'\'''\''/g;
1766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1767 ;; #(
1769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1771 esac |
1772 sort
1774 echo
1776 cat <<\_ASBOX
1777 ## ----------------- ##
1778 ## Output variables. ##
1779 ## ----------------- ##
1780 _ASBOX
1781 echo
1782 for ac_var in $ac_subst_vars
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 echo "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1792 if test -n "$ac_subst_files"; then
1793 cat <<\_ASBOX
1794 ## ------------------- ##
1795 ## File substitutions. ##
1796 ## ------------------- ##
1797 _ASBOX
1798 echo
1799 for ac_var in $ac_subst_files
1801 eval ac_val=\$$ac_var
1802 case $ac_val in
1803 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 esac
1805 echo "$ac_var='\''$ac_val'\''"
1806 done | sort
1807 echo
1810 if test -s confdefs.h; then
1811 cat <<\_ASBOX
1812 ## ----------- ##
1813 ## confdefs.h. ##
1814 ## ----------- ##
1815 _ASBOX
1816 echo
1817 cat confdefs.h
1818 echo
1820 test "$ac_signal" != 0 &&
1821 echo "$as_me: caught signal $ac_signal"
1822 echo "$as_me: exit $exit_status"
1823 } >&5
1824 rm -f core *.core core.conftest.* &&
1825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1826 exit $exit_status
1828 for ac_signal in 1 2 13 15; do
1829 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1830 done
1831 ac_signal=0
1833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1834 rm -f -r conftest* confdefs.h
1836 # Predefined preprocessor variables.
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_NAME "$PACKAGE_NAME"
1840 _ACEOF
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1845 _ACEOF
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1850 _ACEOF
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_STRING "$PACKAGE_STRING"
1855 _ACEOF
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1860 _ACEOF
1863 # Let the site file select an alternate cache file if it wants to.
1864 # Prefer explicitly selected file to automatically selected ones.
1865 if test -n "$CONFIG_SITE"; then
1866 set x "$CONFIG_SITE"
1867 elif test "x$prefix" != xNONE; then
1868 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1869 else
1870 set x "$ac_default_prefix/share/config.site" \
1871 "$ac_default_prefix/etc/config.site"
1873 shift
1874 for ac_site_file
1876 if test -r "$ac_site_file"; then
1877 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1878 echo "$as_me: loading site script $ac_site_file" >&6;}
1879 sed 's/^/| /' "$ac_site_file" >&5
1880 . "$ac_site_file"
1882 done
1884 if test -r "$cache_file"; then
1885 # Some versions of bash will fail to source /dev/null (special
1886 # files actually), so we avoid doing that.
1887 if test -f "$cache_file"; then
1888 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1889 echo "$as_me: loading cache $cache_file" >&6;}
1890 case $cache_file in
1891 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1892 *) . "./$cache_file";;
1893 esac
1895 else
1896 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1897 echo "$as_me: creating cache $cache_file" >&6;}
1898 >$cache_file
1901 # Check that the precious variables saved in the cache have kept the same
1902 # value.
1903 ac_cache_corrupted=false
1904 for ac_var in $ac_precious_vars; do
1905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1906 eval ac_new_set=\$ac_env_${ac_var}_set
1907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1908 eval ac_new_val=\$ac_env_${ac_var}_value
1909 case $ac_old_set,$ac_new_set in
1910 set,)
1911 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1913 ac_cache_corrupted=: ;;
1914 ,set)
1915 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1917 ac_cache_corrupted=: ;;
1918 ,);;
1920 if test "x$ac_old_val" != "x$ac_new_val"; then
1921 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1923 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1924 echo "$as_me: former value: $ac_old_val" >&2;}
1925 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1926 echo "$as_me: current value: $ac_new_val" >&2;}
1927 ac_cache_corrupted=:
1928 fi;;
1929 esac
1930 # Pass precious variables to config.status.
1931 if test "$ac_new_set" = set; then
1932 case $ac_new_val in
1933 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1934 *) ac_arg=$ac_var=$ac_new_val ;;
1935 esac
1936 case " $ac_configure_args " in
1937 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1938 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1939 esac
1941 done
1942 if $ac_cache_corrupted; then
1943 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947 { (exit 1); exit 1; }; }
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 # cross-compile macros
1983 ac_aux_dir=
1984 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1985 if test -f "$ac_dir/install-sh"; then
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 break
1989 elif test -f "$ac_dir/install.sh"; then
1990 ac_aux_dir=$ac_dir
1991 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 break
1993 elif test -f "$ac_dir/shtool"; then
1994 ac_aux_dir=$ac_dir
1995 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 break
1998 done
1999 if test -z "$ac_aux_dir"; then
2000 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2001 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2002 { (exit 1); exit 1; }; }
2005 # These three variables are undocumented and unsupported,
2006 # and are intended to be withdrawn in a future Autoconf release.
2007 # They can cause serious problems if a builder's source tree is in a directory
2008 # whose full name contains unusual characters.
2009 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2010 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2011 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 # Make sure we can run config.sub.
2015 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2016 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2017 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2018 { (exit 1); exit 1; }; }
2020 { echo "$as_me:$LINENO: checking build system type" >&5
2021 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_build+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 ac_build_alias=$build_alias
2026 test "x$ac_build_alias" = x &&
2027 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2028 test "x$ac_build_alias" = x &&
2029 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2030 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2031 { (exit 1); exit 1; }; }
2032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2033 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2034 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2035 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2039 echo "${ECHO_T}$ac_cv_build" >&6; }
2040 case $ac_cv_build in
2041 *-*-*) ;;
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2043 echo "$as_me: error: invalid value of canonical build" >&2;}
2044 { (exit 1); exit 1; }; };;
2045 esac
2046 build=$ac_cv_build
2047 ac_save_IFS=$IFS; IFS='-'
2048 set x $ac_cv_build
2049 shift
2050 build_cpu=$1
2051 build_vendor=$2
2052 shift; shift
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2055 build_os=$*
2056 IFS=$ac_save_IFS
2057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060 { echo "$as_me:$LINENO: checking host system type" >&5
2061 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_host+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 if test "x$host_alias" = x; then
2066 ac_cv_host=$ac_cv_build
2067 else
2068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2075 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2076 echo "${ECHO_T}$ac_cv_host" >&6; }
2077 case $ac_cv_host in
2078 *-*-*) ;;
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2080 echo "$as_me: error: invalid value of canonical host" >&2;}
2081 { (exit 1); exit 1; }; };;
2082 esac
2083 host=$ac_cv_host
2084 ac_save_IFS=$IFS; IFS='-'
2085 set x $ac_cv_host
2086 shift
2087 host_cpu=$1
2088 host_vendor=$2
2089 shift; shift
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2092 host_os=$*
2093 IFS=$ac_save_IFS
2094 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 # check existence of the package
2101 # specify output header file
2102 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2109 cat >>confdefs.h <<\_ACEOF
2110 #define _GNU_SOURCE 1
2111 _ACEOF
2114 ac_ext=c
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2151 else
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2158 if test -z "$ac_cv_prog_CC"; then
2159 ac_ct_CC=$CC
2160 # Extract the first word of "gcc", so it can be a program name with args.
2161 set dummy gcc; ac_word=$2
2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_ac_ct_CC="gcc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2181 done
2182 done
2183 IFS=$as_save_IFS
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6; }
2191 else
2192 { echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6; }
2196 if test "x$ac_ct_CC" = x; then
2197 CC=""
2198 else
2199 case $cross_compiling:$ac_tool_warned in
2200 yes:)
2201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&5
2204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2205 whose name does not start with the host triplet. If you think this
2206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2207 ac_tool_warned=yes ;;
2208 esac
2209 CC=$ac_ct_CC
2211 else
2212 CC="$ac_cv_prog_CC"
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}cc; ac_word=$2
2219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2238 done
2239 done
2240 IFS=$as_save_IFS
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 { echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6; }
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2256 if test -z "$CC"; then
2257 # Extract the first word of "cc", so it can be a program name with args.
2258 set dummy cc; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$CC"; then
2265 ac_cv_prog_CC="$CC" # Let the user override the test.
2266 else
2267 ac_prog_rejected=no
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2276 ac_prog_rejected=yes
2277 continue
2279 ac_cv_prog_CC="cc"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2283 done
2284 done
2285 IFS=$as_save_IFS
2287 if test $ac_prog_rejected = yes; then
2288 # We found a bogon in the path, so make sure we never use it.
2289 set dummy $ac_cv_prog_CC
2290 shift
2291 if test $# != 0; then
2292 # We chose a different compiler from the bogus one.
2293 # However, it has the same basename, so the bogon will be chosen
2294 # first if we set CC to just the basename; use the full file name.
2295 shift
2296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303 { echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6; }
2305 else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2314 for ac_prog in cl.exe
2316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2337 done
2338 done
2339 IFS=$as_save_IFS
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2353 test -n "$CC" && break
2354 done
2356 if test -z "$CC"; then
2357 ac_ct_CC=$CC
2358 for ac_prog in cl.exe
2360 # Extract the first word of "$ac_prog", so it can be a program name with args.
2361 set dummy $ac_prog; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="$ac_prog"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2381 done
2382 done
2383 IFS=$as_save_IFS
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2391 else
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2397 test -n "$ac_ct_CC" && break
2398 done
2400 if test "x$ac_ct_CC" = x; then
2401 CC=""
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411 ac_tool_warned=yes ;;
2412 esac
2413 CC=$ac_ct_CC
2420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2426 # Provide some information about the compiler.
2427 echo "$as_me:$LINENO: checking for C compiler version" >&5
2428 ac_compiler=`set X $ac_compile; echo $2`
2429 { (ac_try="$ac_compiler --version >&5"
2430 case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_compiler --version >&5") 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (ac_try="$ac_compiler -v >&5"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compiler -v >&5") 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449 { (ac_try="$ac_compiler -V >&5"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler -V >&5") 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h. */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2468 main ()
2472 return 0;
2474 _ACEOF
2475 ac_clean_files_save=$ac_clean_files
2476 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2479 # of exeext.
2480 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484 # List of possible output files, starting from the most likely.
2485 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2486 # only as a last resort. b.out is created by i960 compilers.
2487 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2489 # The IRIX 6 linker writes into existing files which may not be
2490 # executable, retaining their permissions. Remove them first so a
2491 # subsequent execution test works.
2492 ac_rmfiles=
2493 for ac_file in $ac_files
2495 case $ac_file in
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2498 esac
2499 done
2500 rm -f $ac_rmfiles
2502 if { (ac_try="$ac_link_default"
2503 case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_link_default") 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2515 # so that the user can short-circuit this test for compilers unknown to
2516 # Autoconf.
2517 for ac_file in $ac_files
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2523 [ab].out )
2524 # We found the default executable, but exeext='' is most
2525 # certainly right.
2526 break;;
2527 *.* )
2528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2529 then :; else
2530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 # We set ac_cv_exeext here because the later test for it is not
2533 # safe: cross compilers may not add the suffix if given an `-o'
2534 # argument, so we may need to know it at that point already.
2535 # Even if this section looks crufty: it has the advantage of
2536 # actually working.
2537 break;;
2539 break;;
2540 esac
2541 done
2542 test "$ac_cv_exeext" = no && ac_cv_exeext=
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: C compiler cannot create executables
2551 See \`config.log' for more details." >&2;}
2552 { (exit 77); exit 77; }; }
2555 ac_exeext=$ac_cv_exeext
2556 { echo "$as_me:$LINENO: result: $ac_file" >&5
2557 echo "${ECHO_T}$ac_file" >&6; }
2559 # Check that the compiler produces executables we can run. If not, either
2560 # the compiler is broken, or we cross compile.
2561 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2562 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2563 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2564 # If not cross compiling, check that we can run a simple program.
2565 if test "$cross_compiling" != yes; then
2566 if { ac_try='./$ac_file'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 cross_compiling=no
2577 else
2578 if test "$cross_compiling" = maybe; then
2579 cross_compiling=yes
2580 else
2581 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2582 If you meant to cross compile, use \`--host'.
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: cannot run C compiled programs.
2585 If you meant to cross compile, use \`--host'.
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }
2591 { echo "$as_me:$LINENO: result: yes" >&5
2592 echo "${ECHO_T}yes" >&6; }
2594 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2595 ac_clean_files=$ac_clean_files_save
2596 # Check that the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2599 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2600 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2601 echo "${ECHO_T}$cross_compiling" >&6; }
2603 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2604 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2605 if { (ac_try="$ac_link"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_link") 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; then
2615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2616 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2617 # work properly (i.e., refer to `conftest.exe'), while it won't with
2618 # `rm'.
2619 for ac_file in conftest.exe conftest conftest.*; do
2620 test -f "$ac_file" || continue
2621 case $ac_file in
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 break;;
2625 * ) break;;
2626 esac
2627 done
2628 else
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2632 See \`config.log' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2636 rm -f conftest$ac_cv_exeext
2637 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2638 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2640 rm -f conftest.$ac_ext
2641 EXEEXT=$ac_cv_exeext
2642 ac_exeext=$EXEEXT
2643 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2644 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2645 if test "${ac_cv_objext+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h. */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2656 main ()
2660 return 0;
2662 _ACEOF
2663 rm -f conftest.o conftest.obj
2664 if { (ac_try="$ac_compile"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compile") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 for ac_file in conftest.o conftest.obj conftest.*; do
2675 test -f "$ac_file" || continue;
2676 case $ac_file in
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2679 break;;
2680 esac
2681 done
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2695 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2696 echo "${ECHO_T}$ac_cv_objext" >&6; }
2697 OBJEXT=$ac_cv_objext
2698 ac_objext=$OBJEXT
2699 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2712 main ()
2714 #ifndef __GNUC__
2715 choke me
2716 #endif
2719 return 0;
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compile") 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_try") 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_try") 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_compiler_gnu=yes
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2761 ac_compiler_gnu=no
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2770 GCC=`test $ac_compiler_gnu = yes && echo yes`
2771 ac_test_CFLAGS=${CFLAGS+set}
2772 ac_save_CFLAGS=$CFLAGS
2773 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 ac_save_c_werror_flag=$ac_c_werror_flag
2779 ac_c_werror_flag=yes
2780 ac_cv_prog_cc_g=no
2781 CFLAGS="-g"
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 main ()
2794 return 0;
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2812 { (case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_try") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_try") 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_prog_cc_g=yes
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 CFLAGS=""
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h. */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2845 main ()
2849 return 0;
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2854 case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compile") 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2867 { (case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_try") 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_try") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2891 ac_c_werror_flag=$ac_save_c_werror_flag
2892 CFLAGS="-g"
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2901 main ()
2905 return 0;
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compile") 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2923 { (case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_try") 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_try") 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_prog_cc_g=yes
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2959 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2961 if test "$ac_test_CFLAGS" = set; then
2962 CFLAGS=$ac_save_CFLAGS
2963 elif test $ac_cv_prog_cc_g = yes; then
2964 if test "$GCC" = yes; then
2965 CFLAGS="-g -O2"
2966 else
2967 CFLAGS="-g"
2969 else
2970 if test "$GCC" = yes; then
2971 CFLAGS="-O2"
2972 else
2973 CFLAGS=
2976 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2977 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_cc_c89+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 ac_cv_prog_cc_c89=no
2982 ac_save_CC=$CC
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <stdarg.h>
2990 #include <stdio.h>
2991 #include <sys/types.h>
2992 #include <sys/stat.h>
2993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2994 struct buf { int x; };
2995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2996 static char *e (p, i)
2997 char **p;
2998 int i;
3000 return p[i];
3002 static char *f (char * (*g) (char **, int), char **p, ...)
3004 char *s;
3005 va_list v;
3006 va_start (v,p);
3007 s = g (p, va_arg (v,int));
3008 va_end (v);
3009 return s;
3012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3013 function prototypes and stuff, but not '\xHH' hex character constants.
3014 These don't provoke an error unfortunately, instead are silently treated
3015 as 'x'. The following induces an error, until -std is added to get
3016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3017 array size at least. It's necessary to write '\x00'==0 to get something
3018 that's true only with -std. */
3019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3022 inside strings and character constants. */
3023 #define FOO(x) 'x'
3024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3026 int test (int i, double x);
3027 struct s1 {int (*f) (int a);};
3028 struct s2 {int (*f) (double a);};
3029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3030 int argc;
3031 char **argv;
3033 main ()
3035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3037 return 0;
3039 _ACEOF
3040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3043 CC="$ac_save_CC $ac_arg"
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cc_c89=$ac_arg
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext
3087 test "x$ac_cv_prog_cc_c89" != "xno" && break
3088 done
3089 rm -f conftest.$ac_ext
3090 CC=$ac_save_CC
3093 # AC_CACHE_VAL
3094 case "x$ac_cv_prog_cc_c89" in
3096 { echo "$as_me:$LINENO: result: none needed" >&5
3097 echo "${ECHO_T}none needed" >&6; } ;;
3098 xno)
3099 { echo "$as_me:$LINENO: result: unsupported" >&5
3100 echo "${ECHO_T}unsupported" >&6; } ;;
3102 CC="$CC $ac_cv_prog_cc_c89"
3103 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3105 esac
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3122 # On Suns, sometimes $CPP names a directory.
3123 if test -n "$CPP" && test -d "$CPP"; then
3124 CPP=
3126 if test -z "$CPP"; then
3127 if test "${ac_cv_prog_CPP+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 # Double quotes because CPP needs to be expanded
3131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3133 ac_preproc_ok=false
3134 for ac_c_preproc_warn_flag in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3148 #ifdef __STDC__
3149 # include <limits.h>
3150 #else
3151 # include <assert.h>
3152 #endif
3153 Syntax error
3154 _ACEOF
3155 if { (ac_try="$ac_cpp conftest.$ac_ext"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev/null; then
3168 if test -s conftest.err; then
3169 ac_cpp_err=$ac_c_preproc_warn_flag
3170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3171 else
3172 ac_cpp_err=
3174 else
3175 ac_cpp_err=yes
3177 if test -z "$ac_cpp_err"; then
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 # Broken: fails on valid input.
3184 continue
3187 rm -f conftest.err conftest.$ac_ext
3189 # OK, works on sane cases. Now check whether nonexistent headers
3190 # can be detected and how.
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 #include <ac_nonexistent.h>
3198 _ACEOF
3199 if { (ac_try="$ac_cpp conftest.$ac_ext"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null; then
3212 if test -s conftest.err; then
3213 ac_cpp_err=$ac_c_preproc_warn_flag
3214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3215 else
3216 ac_cpp_err=
3218 else
3219 ac_cpp_err=yes
3221 if test -z "$ac_cpp_err"; then
3222 # Broken: success on invalid input.
3223 continue
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 # Passes both tests.
3229 ac_preproc_ok=:
3230 break
3233 rm -f conftest.err conftest.$ac_ext
3235 done
3236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3237 rm -f conftest.err conftest.$ac_ext
3238 if $ac_preproc_ok; then
3239 break
3242 done
3243 ac_cv_prog_CPP=$CPP
3246 CPP=$ac_cv_prog_CPP
3247 else
3248 ac_cv_prog_CPP=$CPP
3250 { echo "$as_me:$LINENO: result: $CPP" >&5
3251 echo "${ECHO_T}$CPP" >&6; }
3252 ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272 Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3293 else
3294 ac_cpp_err=yes
3296 if test -z "$ac_cpp_err"; then
3298 else
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 # Broken: fails on valid input.
3303 continue
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether nonexistent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3317 _ACEOF
3318 if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null; then
3331 if test -s conftest.err; then
3332 ac_cpp_err=$ac_c_preproc_warn_flag
3333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334 else
3335 ac_cpp_err=
3337 else
3338 ac_cpp_err=yes
3340 if test -z "$ac_cpp_err"; then
3341 # Broken: success on invalid input.
3342 continue
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 # Passes both tests.
3348 ac_preproc_ok=:
3349 break
3352 rm -f conftest.err conftest.$ac_ext
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3359 else
3360 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3375 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3376 if test "${ac_cv_path_GREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 # Extract the first word of "grep ggrep" to use in msg output
3380 if test -z "$GREP"; then
3381 set dummy grep ggrep; ac_prog_name=$2
3382 if test "${ac_cv_path_GREP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 ac_path_GREP_found=false
3386 # Loop through the user's path and test for each of PROGNAME-LIST
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_prog in grep ggrep; do
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3395 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3396 # Check for GNU ac_path_GREP and select it if it is found.
3397 # Check for GNU $ac_path_GREP
3398 case `"$ac_path_GREP" --version 2>&1` in
3399 *GNU*)
3400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3402 ac_count=0
3403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3404 while :
3406 cat "conftest.in" "conftest.in" >"conftest.tmp"
3407 mv "conftest.tmp" "conftest.in"
3408 cp "conftest.in" "conftest.nl"
3409 echo 'GREP' >> "conftest.nl"
3410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3412 ac_count=`expr $ac_count + 1`
3413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3414 # Best one so far, save it but keep looking for a better one
3415 ac_cv_path_GREP="$ac_path_GREP"
3416 ac_path_GREP_max=$ac_count
3418 # 10*(2^10) chars as input seems more than enough
3419 test $ac_count -gt 10 && break
3420 done
3421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3422 esac
3425 $ac_path_GREP_found && break 3
3426 done
3427 done
3429 done
3430 IFS=$as_save_IFS
3435 GREP="$ac_cv_path_GREP"
3436 if test -z "$GREP"; then
3437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3439 { (exit 1); exit 1; }; }
3442 else
3443 ac_cv_path_GREP=$GREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3450 GREP="$ac_cv_path_GREP"
3453 { echo "$as_me:$LINENO: checking for egrep" >&5
3454 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3455 if test "${ac_cv_path_EGREP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3459 then ac_cv_path_EGREP="$GREP -E"
3460 else
3461 # Extract the first word of "egrep" to use in msg output
3462 if test -z "$EGREP"; then
3463 set dummy egrep; ac_prog_name=$2
3464 if test "${ac_cv_path_EGREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 ac_path_EGREP_found=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_prog in egrep; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3481 *GNU*)
3482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3484 ac_count=0
3485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3486 while :
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494 ac_count=`expr $ac_count + 1`
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP="$ac_path_EGREP"
3498 ac_path_EGREP_max=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3502 done
3503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3504 esac
3507 $ac_path_EGREP_found && break 3
3508 done
3509 done
3511 done
3512 IFS=$as_save_IFS
3517 EGREP="$ac_cv_path_EGREP"
3518 if test -z "$EGREP"; then
3519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3521 { (exit 1); exit 1; }; }
3524 else
3525 ac_cv_path_EGREP=$EGREP
3531 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3532 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3533 EGREP="$ac_cv_path_EGREP"
3537 { echo "$as_me:$LINENO: checking for AIX" >&5
3538 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #ifdef _AIX
3547 #endif
3549 _ACEOF
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "yes" >/dev/null 2>&1; then
3552 { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3554 cat >>confdefs.h <<\_ACEOF
3555 #define _ALL_SOURCE 1
3556 _ACEOF
3558 else
3559 { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3562 rm -f conftest*
3565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <stdlib.h>
3577 #include <stdarg.h>
3578 #include <string.h>
3579 #include <float.h>
3582 main ()
3586 return 0;
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_try") 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_try") 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_header_stdc=yes
3624 else
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_cv_header_stdc=no
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test $ac_cv_header_stdc = yes; then
3634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <string.h>
3643 _ACEOF
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 $EGREP "memchr" >/dev/null 2>&1; then
3647 else
3648 ac_cv_header_stdc=no
3650 rm -f conftest*
3654 if test $ac_cv_header_stdc = yes; then
3655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <stdlib.h>
3664 _ACEOF
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 $EGREP "free" >/dev/null 2>&1; then
3668 else
3669 ac_cv_header_stdc=no
3671 rm -f conftest*
3675 if test $ac_cv_header_stdc = yes; then
3676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3677 if test "$cross_compiling" = yes; then
3679 else
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <ctype.h>
3687 #include <stdlib.h>
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3691 #else
3692 # define ISLOWER(c) \
3693 (('a' <= (c) && (c) <= 'i') \
3694 || ('j' <= (c) && (c) <= 'r') \
3695 || ('s' <= (c) && (c) <= 'z'))
3696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3697 #endif
3699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3701 main ()
3703 int i;
3704 for (i = 0; i < 256; i++)
3705 if (XOR (islower (i), ISLOWER (i))
3706 || toupper (i) != TOUPPER (i))
3707 return 2;
3708 return 0;
3710 _ACEOF
3711 rm -f conftest$ac_exeext
3712 if { (ac_try="$ac_link"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_link") 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3722 { (case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3732 else
3733 echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ( exit $ac_status )
3738 ac_cv_header_stdc=no
3740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3748 if test $ac_cv_header_stdc = yes; then
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3752 _ACEOF
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3766 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3767 inttypes.h stdint.h unistd.h
3769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3783 #include <$ac_header>
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_try") 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_try") 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 eval "$as_ac_Header=yes"
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 eval "$as_ac_Header=no"
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_res=`eval echo '${'$as_ac_Header'}'`
3830 { echo "$as_me:$LINENO: result: $ac_res" >&5
3831 echo "${ECHO_T}$ac_res" >&6; }
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 _ACEOF
3839 done
3842 if test "${ac_cv_header_minix_config_h+set}" = set; then
3843 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3844 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3845 if test "${ac_cv_header_minix_config_h+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3849 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3850 else
3851 # Is the header compilable?
3852 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3853 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h. */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 $ac_includes_default
3861 #include <minix/config.h>
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_compile") 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3878 { (case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_try") 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_header_compiler=yes
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_header_compiler=no
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3907 echo "${ECHO_T}$ac_header_compiler" >&6; }
3909 # Is the header present?
3910 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3911 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <minix/config.h>
3919 _ACEOF
3920 if { (ac_try="$ac_cpp conftest.$ac_ext"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev/null; then
3933 if test -s conftest.err; then
3934 ac_cpp_err=$ac_c_preproc_warn_flag
3935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3936 else
3937 ac_cpp_err=
3939 else
3940 ac_cpp_err=yes
3942 if test -z "$ac_cpp_err"; then
3943 ac_header_preproc=yes
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 ac_header_preproc=no
3951 rm -f conftest.err conftest.$ac_ext
3952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3953 echo "${ECHO_T}$ac_header_preproc" >&6; }
3955 # So? What about this header?
3956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3957 yes:no: )
3958 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3959 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3961 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3962 ac_header_preproc=yes
3964 no:yes:* )
3965 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3966 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3967 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3968 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3969 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3970 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3971 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3972 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3973 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3974 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3976 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3977 ( cat <<\_ASBOX
3978 ## ------------------------------- ##
3979 ## Report this to www.asterisk.org ##
3980 ## ------------------------------- ##
3981 _ASBOX
3982 ) | sed "s/^/$as_me: WARNING: /" >&2
3984 esac
3985 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3986 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3987 if test "${ac_cv_header_minix_config_h+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 ac_cv_header_minix_config_h=$ac_header_preproc
3992 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3993 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3996 if test $ac_cv_header_minix_config_h = yes; then
3997 MINIX=yes
3998 else
3999 MINIX=
4003 if test "$MINIX" = yes; then
4005 cat >>confdefs.h <<\_ACEOF
4006 #define _POSIX_SOURCE 1
4007 _ACEOF
4010 cat >>confdefs.h <<\_ACEOF
4011 #define _POSIX_1_SOURCE 2
4012 _ACEOF
4015 cat >>confdefs.h <<\_ACEOF
4016 #define _MINIX 1
4017 _ACEOF
4031 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4032 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4033 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4043 # define __EXTENSIONS__ 1
4044 $ac_includes_default
4046 main ()
4050 return 0;
4052 _ACEOF
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_safe_to_define___extensions__=yes
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_safe_to_define___extensions__=no
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4098 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4099 test $ac_cv_safe_to_define___extensions__ = yes &&
4100 cat >>confdefs.h <<\_ACEOF
4101 #define __EXTENSIONS__ 1
4102 _ACEOF
4104 cat >>confdefs.h <<\_ACEOF
4105 #define _POSIX_PTHREAD_SEMANTICS 1
4106 _ACEOF
4108 # note- does not work on FreeBSD
4110 case "${host_os}" in
4111 freebsd*)
4112 ac_default_prefix=/usr/local
4113 CPPFLAGS=-I/usr/local/include
4114 LDFLAGS=-L/usr/local/lib
4117 ac_default_prefix=/usr
4118 if test ${sysconfdir} = '${prefix}/etc'; then
4119 sysconfdir=/etc
4121 if test ${mandir} = '${prefix}/man'; then
4122 mandir=/usr/share/man
4125 esac
4127 if test ${localstatedir} = '${prefix}/var'; then
4128 localstatedir=/var
4131 BUILD_PLATFORM=${build}
4132 BUILD_CPU=${build_cpu}
4133 BUILD_VENDOR=${build_vendor}
4134 BUILD_OS=${build_os}
4141 HOST_PLATFORM=${host}
4142 HOST_CPU=${host_cpu}
4143 HOST_VENDOR=${host_vendor}
4144 HOST_OS=${host_os}
4151 case "${host_os}" in
4152 freebsd*)
4153 OSARCH=FreeBSD
4155 netbsd*)
4156 OSARCH=NetBSD
4158 openbsd*)
4159 OSARCH=OpenBSD
4161 solaris*)
4162 OSARCH=SunOS
4165 OSARCH=${HOST_OS}
4167 esac
4171 # check for uname
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}uname; ac_word=$2
4175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4177 if test "${ac_cv_path_UNAME+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 case $UNAME in
4181 [\\/]* | ?:[\\/]*)
4182 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4196 done
4197 done
4198 IFS=$as_save_IFS
4201 esac
4203 UNAME=$ac_cv_path_UNAME
4204 if test -n "$UNAME"; then
4205 { echo "$as_me:$LINENO: result: $UNAME" >&5
4206 echo "${ECHO_T}$UNAME" >&6; }
4207 else
4208 { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4214 if test -z "$ac_cv_path_UNAME"; then
4215 ac_pt_UNAME=$UNAME
4216 # Extract the first word of "uname", so it can be a program name with args.
4217 set dummy uname; ac_word=$2
4218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4220 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 case $ac_pt_UNAME in
4224 [\\/]* | ?:[\\/]*)
4225 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4244 esac
4246 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4247 if test -n "$ac_pt_UNAME"; then
4248 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4249 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4250 else
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4255 if test "x$ac_pt_UNAME" = x; then
4256 UNAME="No"
4257 else
4258 case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4261 whose name does not start with the host triplet. If you think this
4262 configuration is useful to you, please write to autoconf@gnu.org." >&5
4263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet. If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268 UNAME=$ac_pt_UNAME
4270 else
4271 UNAME="$ac_cv_path_UNAME"
4274 if test ! x"${UNAME}" = xNo; then
4275 PBX_OSREV=$(${UNAME} -r)
4285 # cross-compile checks
4286 if test "${cross_compiling}" = "yes";
4287 then
4288 if test -n "$ac_tool_prefix"; then
4289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4290 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4310 done
4311 done
4312 IFS=$as_save_IFS
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318 { echo "$as_me:$LINENO: result: $CC" >&5
4319 echo "${ECHO_T}$CC" >&6; }
4320 else
4321 { echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6; }
4327 if test -z "$ac_cv_prog_CC"; then
4328 ac_ct_CC=$CC
4329 # Extract the first word of "gcc", so it can be a program name with args.
4330 set dummy gcc; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_ac_ct_CC="gcc"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4359 echo "${ECHO_T}$ac_ct_CC" >&6; }
4360 else
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4365 if test "x$ac_ct_CC" = x; then
4366 CC=":"
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369 yes:)
4370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4371 whose name does not start with the host triplet. If you think this
4372 configuration is useful to you, please write to autoconf@gnu.org." >&5
4373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4374 whose name does not start with the host triplet. If you think this
4375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4376 ac_tool_warned=yes ;;
4377 esac
4378 CC=$ac_ct_CC
4380 else
4381 CC="$ac_cv_prog_CC"
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}g++; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CXX+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$CXX"; then
4393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4412 CXX=$ac_cv_prog_CXX
4413 if test -n "$CXX"; then
4414 { echo "$as_me:$LINENO: result: $CXX" >&5
4415 echo "${ECHO_T}$CXX" >&6; }
4416 else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4423 if test -z "$ac_cv_prog_CXX"; then
4424 ac_ct_CXX=$CXX
4425 # Extract the first word of "g++", so it can be a program name with args.
4426 set dummy g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 if test -n "$ac_ct_CXX"; then
4433 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_ac_ct_CXX="g++"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4448 IFS=$as_save_IFS
4452 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4453 if test -n "$ac_ct_CXX"; then
4454 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4455 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4456 else
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4461 if test "x$ac_ct_CXX" = x; then
4462 CXX=":"
4463 else
4464 case $cross_compiling:$ac_tool_warned in
4465 yes:)
4466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4467 whose name does not start with the host triplet. If you think this
4468 configuration is useful to you, please write to autoconf@gnu.org." >&5
4469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet. If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 CXX=$ac_ct_CXX
4476 else
4477 CXX="$ac_cv_prog_CXX"
4480 if test -n "$ac_tool_prefix"; then
4481 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4482 set dummy ${ac_tool_prefix}ld; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_LD+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 if test -n "$LD"; then
4489 ac_cv_prog_LD="$LD" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_LD="${ac_tool_prefix}ld"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 LD=$ac_cv_prog_LD
4509 if test -n "$LD"; then
4510 { echo "$as_me:$LINENO: result: $LD" >&5
4511 echo "${ECHO_T}$LD" >&6; }
4512 else
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4519 if test -z "$ac_cv_prog_LD"; then
4520 ac_ct_LD=$LD
4521 # Extract the first word of "ld", so it can be a program name with args.
4522 set dummy ld; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 if test -n "$ac_ct_LD"; then
4529 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_ac_ct_LD="ld"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4549 if test -n "$ac_ct_LD"; then
4550 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4551 echo "${ECHO_T}$ac_ct_LD" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4557 if test "x$ac_ct_LD" = x; then
4558 LD=":"
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4563 whose name does not start with the host triplet. If you think this
4564 configuration is useful to you, please write to autoconf@gnu.org." >&5
4565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet. If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4568 ac_tool_warned=yes ;;
4569 esac
4570 LD=$ac_ct_LD
4572 else
4573 LD="$ac_cv_prog_LD"
4576 if test -n "$ac_tool_prefix"; then
4577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_RANLIB+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$RANLIB"; then
4585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 RANLIB=$ac_cv_prog_RANLIB
4605 if test -n "$RANLIB"; then
4606 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4607 echo "${ECHO_T}$RANLIB" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4615 if test -z "$ac_cv_prog_RANLIB"; then
4616 ac_ct_RANLIB=$RANLIB
4617 # Extract the first word of "ranlib", so it can be a program name with args.
4618 set dummy ranlib; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 if test -n "$ac_ct_RANLIB"; then
4625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_ac_ct_RANLIB="ranlib"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4644 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4645 if test -n "$ac_ct_RANLIB"; then
4646 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4647 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4648 else
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4653 if test "x$ac_ct_RANLIB" = x; then
4654 RANLIB=":"
4655 else
4656 case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet. If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&5
4661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet. If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 RANLIB=$ac_ct_RANLIB
4668 else
4669 RANLIB="$ac_cv_prog_RANLIB"
4674 # Checks for programs.
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_CC+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 if test -n "$CC"; then
4689 ac_cv_prog_CC="$CC" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 CC=$ac_cv_prog_CC
4709 if test -n "$CC"; then
4710 { echo "$as_me:$LINENO: result: $CC" >&5
4711 echo "${ECHO_T}$CC" >&6; }
4712 else
4713 { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4719 if test -z "$ac_cv_prog_CC"; then
4720 ac_ct_CC=$CC
4721 # Extract the first word of "gcc", so it can be a program name with args.
4722 set dummy gcc; ac_word=$2
4723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 if test -n "$ac_ct_CC"; then
4729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_CC="gcc"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4749 if test -n "$ac_ct_CC"; then
4750 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4751 echo "${ECHO_T}$ac_ct_CC" >&6; }
4752 else
4753 { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4757 if test "x$ac_ct_CC" = x; then
4758 CC=""
4759 else
4760 case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4763 whose name does not start with the host triplet. If you think this
4764 configuration is useful to you, please write to autoconf@gnu.org." >&5
4765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4766 whose name does not start with the host triplet. If you think this
4767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4768 ac_tool_warned=yes ;;
4769 esac
4770 CC=$ac_ct_CC
4772 else
4773 CC="$ac_cv_prog_CC"
4776 if test -z "$CC"; then
4777 if test -n "$ac_tool_prefix"; then
4778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}cc; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_CC+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$CC"; then
4786 ac_cv_prog_CC="$CC" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_CC="${ac_tool_prefix}cc"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 CC=$ac_cv_prog_CC
4806 if test -n "$CC"; then
4807 { echo "$as_me:$LINENO: result: $CC" >&5
4808 echo "${ECHO_T}$CC" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4817 if test -z "$CC"; then
4818 # Extract the first word of "cc", so it can be a program name with args.
4819 set dummy cc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$CC"; then
4826 ac_cv_prog_CC="$CC" # Let the user override the test.
4827 else
4828 ac_prog_rejected=no
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4837 ac_prog_rejected=yes
4838 continue
4840 ac_cv_prog_CC="cc"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4844 done
4845 done
4846 IFS=$as_save_IFS
4848 if test $ac_prog_rejected = yes; then
4849 # We found a bogon in the path, so make sure we never use it.
4850 set dummy $ac_cv_prog_CC
4851 shift
4852 if test $# != 0; then
4853 # We chose a different compiler from the bogus one.
4854 # However, it has the same basename, so the bogon will be chosen
4855 # first if we set CC to just the basename; use the full file name.
4856 shift
4857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4862 CC=$ac_cv_prog_CC
4863 if test -n "$CC"; then
4864 { echo "$as_me:$LINENO: result: $CC" >&5
4865 echo "${ECHO_T}$CC" >&6; }
4866 else
4867 { echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6; }
4873 if test -z "$CC"; then
4874 if test -n "$ac_tool_prefix"; then
4875 for ac_prog in cl.exe
4877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_prog_CC+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 if test -n "$CC"; then
4885 ac_cv_prog_CC="$CC" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4898 done
4899 done
4900 IFS=$as_save_IFS
4904 CC=$ac_cv_prog_CC
4905 if test -n "$CC"; then
4906 { echo "$as_me:$LINENO: result: $CC" >&5
4907 echo "${ECHO_T}$CC" >&6; }
4908 else
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4914 test -n "$CC" && break
4915 done
4917 if test -z "$CC"; then
4918 ac_ct_CC=$CC
4919 for ac_prog in cl.exe
4921 # Extract the first word of "$ac_prog", so it can be a program name with args.
4922 set dummy $ac_prog; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 if test -n "$ac_ct_CC"; then
4929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_ac_ct_CC="$ac_prog"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4949 if test -n "$ac_ct_CC"; then
4950 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4951 echo "${ECHO_T}$ac_ct_CC" >&6; }
4952 else
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4958 test -n "$ac_ct_CC" && break
4959 done
4961 if test "x$ac_ct_CC" = x; then
4962 CC=""
4963 else
4964 case $cross_compiling:$ac_tool_warned in
4965 yes:)
4966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4967 whose name does not start with the host triplet. If you think this
4968 configuration is useful to you, please write to autoconf@gnu.org." >&5
4969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4970 whose name does not start with the host triplet. If you think this
4971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4972 ac_tool_warned=yes ;;
4973 esac
4974 CC=$ac_ct_CC
4981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4982 See \`config.log' for more details." >&5
4983 echo "$as_me: error: no acceptable C compiler found in \$PATH
4984 See \`config.log' for more details." >&2;}
4985 { (exit 1); exit 1; }; }
4987 # Provide some information about the compiler.
4988 echo "$as_me:$LINENO: checking for C compiler version" >&5
4989 ac_compiler=`set X $ac_compile; echo $2`
4990 { (ac_try="$ac_compiler --version >&5"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_compiler --version >&5") 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }
5000 { (ac_try="$ac_compiler -v >&5"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compiler -v >&5") 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }
5010 { (ac_try="$ac_compiler -V >&5"
5011 case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_compiler -V >&5") 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }
5021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5034 main ()
5036 #ifndef __GNUC__
5037 choke me
5038 #endif
5041 return 0;
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5059 { (case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062 esac
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_try") 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_try") 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_compiler_gnu=yes
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 ac_compiler_gnu=no
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5090 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5092 GCC=`test $ac_compiler_gnu = yes && echo yes`
5093 ac_test_CFLAGS=${CFLAGS+set}
5094 ac_save_CFLAGS=$CFLAGS
5095 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5096 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_cc_g+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 ac_save_c_werror_flag=$ac_c_werror_flag
5101 ac_c_werror_flag=yes
5102 ac_cv_prog_cc_g=no
5103 CFLAGS="-g"
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5112 main ()
5116 return 0;
5118 _ACEOF
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5134 { (case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_try") 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147 esac
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_try") 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_prog_cc_g=yes
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 CFLAGS=""
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5167 main ()
5171 return 0;
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5176 case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_compile") 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_try") 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_c_werror_flag=$ac_save_c_werror_flag
5214 CFLAGS="-g"
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5223 main ()
5227 return 0;
5229 _ACEOF
5230 rm -f conftest.$ac_objext
5231 if { (ac_try="$ac_compile"
5232 case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compile") 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5245 { (case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_try") 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try='test -s conftest.$ac_objext'
5255 { (case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_try") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_prog_cc_g=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_c_werror_flag=$ac_save_c_werror_flag
5281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5283 if test "$ac_test_CFLAGS" = set; then
5284 CFLAGS=$ac_save_CFLAGS
5285 elif test $ac_cv_prog_cc_g = yes; then
5286 if test "$GCC" = yes; then
5287 CFLAGS="-g -O2"
5288 else
5289 CFLAGS="-g"
5291 else
5292 if test "$GCC" = yes; then
5293 CFLAGS="-O2"
5294 else
5295 CFLAGS=
5298 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5299 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5300 if test "${ac_cv_prog_cc_c89+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 ac_cv_prog_cc_c89=no
5304 ac_save_CC=$CC
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <stdarg.h>
5312 #include <stdio.h>
5313 #include <sys/types.h>
5314 #include <sys/stat.h>
5315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5316 struct buf { int x; };
5317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5318 static char *e (p, i)
5319 char **p;
5320 int i;
5322 return p[i];
5324 static char *f (char * (*g) (char **, int), char **p, ...)
5326 char *s;
5327 va_list v;
5328 va_start (v,p);
5329 s = g (p, va_arg (v,int));
5330 va_end (v);
5331 return s;
5334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5335 function prototypes and stuff, but not '\xHH' hex character constants.
5336 These don't provoke an error unfortunately, instead are silently treated
5337 as 'x'. The following induces an error, until -std is added to get
5338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5339 array size at least. It's necessary to write '\x00'==0 to get something
5340 that's true only with -std. */
5341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5344 inside strings and character constants. */
5345 #define FOO(x) 'x'
5346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5348 int test (int i, double x);
5349 struct s1 {int (*f) (int a);};
5350 struct s2 {int (*f) (double a);};
5351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5352 int argc;
5353 char **argv;
5355 main ()
5357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5359 return 0;
5361 _ACEOF
5362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5365 CC="$ac_save_CC $ac_arg"
5366 rm -f conftest.$ac_objext
5367 if { (ac_try="$ac_compile"
5368 case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_compile") 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5381 { (case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_try") 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; } &&
5390 { ac_try='test -s conftest.$ac_objext'
5391 { (case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_try") 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_cv_prog_cc_c89=$ac_arg
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5408 rm -f core conftest.err conftest.$ac_objext
5409 test "x$ac_cv_prog_cc_c89" != "xno" && break
5410 done
5411 rm -f conftest.$ac_ext
5412 CC=$ac_save_CC
5415 # AC_CACHE_VAL
5416 case "x$ac_cv_prog_cc_c89" in
5418 { echo "$as_me:$LINENO: result: none needed" >&5
5419 echo "${ECHO_T}none needed" >&6; } ;;
5420 xno)
5421 { echo "$as_me:$LINENO: result: unsupported" >&5
5422 echo "${ECHO_T}unsupported" >&6; } ;;
5424 CC="$CC $ac_cv_prog_cc_c89"
5425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5426 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5427 esac
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436 ac_ext=cpp
5437 ac_cpp='$CXXCPP $CPPFLAGS'
5438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5441 if test -z "$CXX"; then
5442 if test -n "$CCC"; then
5443 CXX=$CCC
5444 else
5445 if test -n "$ac_tool_prefix"; then
5446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5452 if test "${ac_cv_prog_CXX+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 if test -n "$CXX"; then
5456 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5475 CXX=$ac_cv_prog_CXX
5476 if test -n "$CXX"; then
5477 { echo "$as_me:$LINENO: result: $CXX" >&5
5478 echo "${ECHO_T}$CXX" >&6; }
5479 else
5480 { echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6; }
5485 test -n "$CXX" && break
5486 done
5488 if test -z "$CXX"; then
5489 ac_ct_CXX=$CXX
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 if test -n "$ac_ct_CXX"; then
5500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_ac_ct_CXX="$ac_prog"
5510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5520 if test -n "$ac_ct_CXX"; then
5521 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5522 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5523 else
5524 { echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6; }
5529 test -n "$ac_ct_CXX" && break
5530 done
5532 if test "x$ac_ct_CXX" = x; then
5533 CXX="g++"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5538 whose name does not start with the host triplet. If you think this
5539 configuration is useful to you, please write to autoconf@gnu.org." >&5
5540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5541 whose name does not start with the host triplet. If you think this
5542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545 CXX=$ac_ct_CXX
5551 # Provide some information about the compiler.
5552 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5553 ac_compiler=`set X $ac_compile; echo $2`
5554 { (ac_try="$ac_compiler --version >&5"
5555 case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compiler --version >&5") 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }
5564 { (ac_try="$ac_compiler -v >&5"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compiler -v >&5") 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }
5574 { (ac_try="$ac_compiler -V >&5"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compiler -V >&5") 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }
5585 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5586 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5587 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5598 main ()
5600 #ifndef __GNUC__
5601 choke me
5602 #endif
5605 return 0;
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5623 { (case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_try") 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest.$ac_objext'
5633 { (case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_try") 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_compiler_gnu=yes
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_compiler_gnu=no
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5654 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5655 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5656 GXX=`test $ac_compiler_gnu = yes && echo yes`
5657 ac_test_CXXFLAGS=${CXXFLAGS+set}
5658 ac_save_CXXFLAGS=$CXXFLAGS
5659 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5660 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5661 if test "${ac_cv_prog_cxx_g+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5665 ac_cxx_werror_flag=yes
5666 ac_cv_prog_cxx_g=no
5667 CXXFLAGS="-g"
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. */
5676 main ()
5680 return 0;
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_prog_cxx_g=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 CXXFLAGS=""
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5731 main ()
5735 return 0;
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5753 { (case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_try") 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5778 CXXFLAGS="-g"
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5787 main ()
5791 return 0;
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_try") 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_prog_cxx_g=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5845 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5846 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5847 if test "$ac_test_CXXFLAGS" = set; then
5848 CXXFLAGS=$ac_save_CXXFLAGS
5849 elif test $ac_cv_prog_cxx_g = yes; then
5850 if test "$GXX" = yes; then
5851 CXXFLAGS="-g -O2"
5852 else
5853 CXXFLAGS="-g"
5855 else
5856 if test "$GXX" = yes; then
5857 CXXFLAGS="-O2"
5858 else
5859 CXXFLAGS=
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5868 ac_ext=c
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5875 # On Suns, sometimes $CPP names a directory.
5876 if test -n "$CPP" && test -d "$CPP"; then
5877 CPP=
5879 if test -z "$CPP"; then
5880 if test "${ac_cv_prog_CPP+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 # Double quotes because CPP needs to be expanded
5884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5886 ac_preproc_ok=false
5887 for ac_c_preproc_warn_flag in '' yes
5889 # Use a header file that comes with gcc, so configuring glibc
5890 # with a fresh cross-compiler works.
5891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5892 # <limits.h> exists even on freestanding compilers.
5893 # On the NeXT, cc -E runs the code through the compiler's parser,
5894 # not just through cpp. "Syntax error" is here to catch this case.
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #ifdef __STDC__
5902 # include <limits.h>
5903 #else
5904 # include <assert.h>
5905 #endif
5906 Syntax error
5907 _ACEOF
5908 if { (ac_try="$ac_cpp conftest.$ac_ext"
5909 case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev/null; then
5921 if test -s conftest.err; then
5922 ac_cpp_err=$ac_c_preproc_warn_flag
5923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5924 else
5925 ac_cpp_err=
5927 else
5928 ac_cpp_err=yes
5930 if test -z "$ac_cpp_err"; then
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 # Broken: fails on valid input.
5937 continue
5940 rm -f conftest.err conftest.$ac_ext
5942 # OK, works on sane cases. Now check whether nonexistent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <ac_nonexistent.h>
5951 _ACEOF
5952 if { (ac_try="$ac_cpp conftest.$ac_ext"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } >/dev/null; then
5965 if test -s conftest.err; then
5966 ac_cpp_err=$ac_c_preproc_warn_flag
5967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5968 else
5969 ac_cpp_err=
5971 else
5972 ac_cpp_err=yes
5974 if test -z "$ac_cpp_err"; then
5975 # Broken: success on invalid input.
5976 continue
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 # Passes both tests.
5982 ac_preproc_ok=:
5983 break
5986 rm -f conftest.err conftest.$ac_ext
5988 done
5989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5990 rm -f conftest.err conftest.$ac_ext
5991 if $ac_preproc_ok; then
5992 break
5995 done
5996 ac_cv_prog_CPP=$CPP
5999 CPP=$ac_cv_prog_CPP
6000 else
6001 ac_cv_prog_CPP=$CPP
6003 { echo "$as_me:$LINENO: result: $CPP" >&5
6004 echo "${ECHO_T}$CPP" >&6; }
6005 ac_preproc_ok=false
6006 for ac_c_preproc_warn_flag in '' yes
6008 # Use a header file that comes with gcc, so configuring glibc
6009 # with a fresh cross-compiler works.
6010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6011 # <limits.h> exists even on freestanding compilers.
6012 # On the NeXT, cc -E runs the code through the compiler's parser,
6013 # not just through cpp. "Syntax error" is here to catch this case.
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #ifdef __STDC__
6021 # include <limits.h>
6022 #else
6023 # include <assert.h>
6024 #endif
6025 Syntax error
6026 _ACEOF
6027 if { (ac_try="$ac_cpp conftest.$ac_ext"
6028 case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev/null; then
6040 if test -s conftest.err; then
6041 ac_cpp_err=$ac_c_preproc_warn_flag
6042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6043 else
6044 ac_cpp_err=
6046 else
6047 ac_cpp_err=yes
6049 if test -z "$ac_cpp_err"; then
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 # Broken: fails on valid input.
6056 continue
6059 rm -f conftest.err conftest.$ac_ext
6061 # OK, works on sane cases. Now check whether nonexistent headers
6062 # can be detected and how.
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <ac_nonexistent.h>
6070 _ACEOF
6071 if { (ac_try="$ac_cpp conftest.$ac_ext"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } >/dev/null; then
6084 if test -s conftest.err; then
6085 ac_cpp_err=$ac_c_preproc_warn_flag
6086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6087 else
6088 ac_cpp_err=
6090 else
6091 ac_cpp_err=yes
6093 if test -z "$ac_cpp_err"; then
6094 # Broken: success on invalid input.
6095 continue
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 # Passes both tests.
6101 ac_preproc_ok=:
6102 break
6105 rm -f conftest.err conftest.$ac_ext
6107 done
6108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6109 rm -f conftest.err conftest.$ac_ext
6110 if $ac_preproc_ok; then
6112 else
6113 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6114 See \`config.log' for more details." >&5
6115 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6116 See \`config.log' for more details." >&2;}
6117 { (exit 1); exit 1; }; }
6120 ac_ext=c
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126 ac_ext=cpp
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6132 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6133 if test -z "$CXXCPP"; then
6134 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 # Double quotes because CXXCPP needs to be expanded
6138 for CXXCPP in "$CXX -E" "/lib/cpp"
6140 ac_preproc_ok=false
6141 for ac_cxx_preproc_warn_flag in '' yes
6143 # Use a header file that comes with gcc, so configuring glibc
6144 # with a fresh cross-compiler works.
6145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6146 # <limits.h> exists even on freestanding compilers.
6147 # On the NeXT, cc -E runs the code through the compiler's parser,
6148 # not just through cpp. "Syntax error" is here to catch this case.
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #ifdef __STDC__
6156 # include <limits.h>
6157 #else
6158 # include <assert.h>
6159 #endif
6160 Syntax error
6161 _ACEOF
6162 if { (ac_try="$ac_cpp conftest.$ac_ext"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null; then
6175 if test -s conftest.err; then
6176 ac_cpp_err=$ac_cxx_preproc_warn_flag
6177 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6178 else
6179 ac_cpp_err=
6181 else
6182 ac_cpp_err=yes
6184 if test -z "$ac_cpp_err"; then
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 # Broken: fails on valid input.
6191 continue
6194 rm -f conftest.err conftest.$ac_ext
6196 # OK, works on sane cases. Now check whether nonexistent headers
6197 # can be detected and how.
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include <ac_nonexistent.h>
6205 _ACEOF
6206 if { (ac_try="$ac_cpp conftest.$ac_ext"
6207 case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev/null; then
6219 if test -s conftest.err; then
6220 ac_cpp_err=$ac_cxx_preproc_warn_flag
6221 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6222 else
6223 ac_cpp_err=
6225 else
6226 ac_cpp_err=yes
6228 if test -z "$ac_cpp_err"; then
6229 # Broken: success on invalid input.
6230 continue
6231 else
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 # Passes both tests.
6236 ac_preproc_ok=:
6237 break
6240 rm -f conftest.err conftest.$ac_ext
6242 done
6243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6244 rm -f conftest.err conftest.$ac_ext
6245 if $ac_preproc_ok; then
6246 break
6249 done
6250 ac_cv_prog_CXXCPP=$CXXCPP
6253 CXXCPP=$ac_cv_prog_CXXCPP
6254 else
6255 ac_cv_prog_CXXCPP=$CXXCPP
6257 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6258 echo "${ECHO_T}$CXXCPP" >&6; }
6259 ac_preproc_ok=false
6260 for ac_cxx_preproc_warn_flag in '' yes
6262 # Use a header file that comes with gcc, so configuring glibc
6263 # with a fresh cross-compiler works.
6264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265 # <limits.h> exists even on freestanding compilers.
6266 # On the NeXT, cc -E runs the code through the compiler's parser,
6267 # not just through cpp. "Syntax error" is here to catch this case.
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #ifdef __STDC__
6275 # include <limits.h>
6276 #else
6277 # include <assert.h>
6278 #endif
6279 Syntax error
6280 _ACEOF
6281 if { (ac_try="$ac_cpp conftest.$ac_ext"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_cxx_preproc_warn_flag
6296 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6297 else
6298 ac_cpp_err=
6300 else
6301 ac_cpp_err=yes
6303 if test -z "$ac_cpp_err"; then
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 # Broken: fails on valid input.
6310 continue
6313 rm -f conftest.err conftest.$ac_ext
6315 # OK, works on sane cases. Now check whether nonexistent headers
6316 # can be detected and how.
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <ac_nonexistent.h>
6324 _ACEOF
6325 if { (ac_try="$ac_cpp conftest.$ac_ext"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev/null; then
6338 if test -s conftest.err; then
6339 ac_cpp_err=$ac_cxx_preproc_warn_flag
6340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6341 else
6342 ac_cpp_err=
6344 else
6345 ac_cpp_err=yes
6347 if test -z "$ac_cpp_err"; then
6348 # Broken: success on invalid input.
6349 continue
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 # Passes both tests.
6355 ac_preproc_ok=:
6356 break
6359 rm -f conftest.err conftest.$ac_ext
6361 done
6362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363 rm -f conftest.err conftest.$ac_ext
6364 if $ac_preproc_ok; then
6366 else
6367 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6368 See \`config.log' for more details." >&5
6369 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370 See \`config.log' for more details." >&2;}
6371 { (exit 1); exit 1; }; }
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6381 # the developers regenerating the configure script don't have to install libtool.
6382 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6383 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6384 if test "${ac_cv_path_SED+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6388 for ac_i in 1 2 3 4 5 6 7; do
6389 ac_script="$ac_script$as_nl$ac_script"
6390 done
6391 echo "$ac_script" | sed 99q >conftest.sed
6392 $as_unset ac_script || ac_script=
6393 # Extract the first word of "sed gsed" to use in msg output
6394 if test -z "$SED"; then
6395 set dummy sed gsed; ac_prog_name=$2
6396 if test "${ac_cv_path_SED+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 ac_path_SED_found=false
6400 # Loop through the user's path and test for each of PROGNAME-LIST
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_prog in sed gsed; do
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6409 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue
6410 # Check for GNU ac_path_SED and select it if it is found.
6411 # Check for GNU $ac_path_SED
6412 case `"$ac_path_SED" --version 2>&1` in
6413 *GNU*)
6414 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6416 ac_count=0
6417 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6418 while :
6420 cat "conftest.in" "conftest.in" >"conftest.tmp"
6421 mv "conftest.tmp" "conftest.in"
6422 cp "conftest.in" "conftest.nl"
6423 echo '' >> "conftest.nl"
6424 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6426 ac_count=`expr $ac_count + 1`
6427 if test $ac_count -gt ${ac_path_SED_max-0}; then
6428 # Best one so far, save it but keep looking for a better one
6429 ac_cv_path_SED="$ac_path_SED"
6430 ac_path_SED_max=$ac_count
6432 # 10*(2^10) chars as input seems more than enough
6433 test $ac_count -gt 10 && break
6434 done
6435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6436 esac
6439 $ac_path_SED_found && break 3
6440 done
6441 done
6443 done
6444 IFS=$as_save_IFS
6449 SED="$ac_cv_path_SED"
6450 if test -z "$SED"; then
6451 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6452 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6453 { (exit 1); exit 1; }; }
6456 else
6457 ac_cv_path_SED=$SED
6461 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6462 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6463 SED="$ac_cv_path_SED"
6464 rm -f conftest.sed
6466 { echo "$as_me:$LINENO: checking for egrep" >&5
6467 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6468 if test "${ac_cv_prog_egrep+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6472 then ac_cv_prog_egrep='grep -E'
6473 else ac_cv_prog_egrep='egrep'
6476 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6477 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6478 EGREP=$ac_cv_prog_egrep
6482 # Check whether --with-gnu-ld was given.
6483 if test "${with_gnu_ld+set}" = set; then
6484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6485 else
6486 with_gnu_ld=no
6489 ac_prog=ld
6490 if test "$GCC" = yes; then
6491 # Check if gcc -print-prog-name=ld gives a path.
6492 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6494 case $host in
6495 *-*-mingw*)
6496 # gcc leaves a trailing carriage return which upsets mingw
6497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6500 esac
6501 case $ac_prog in
6502 # Accept absolute paths.
6503 [\\/]* | ?:[\\/]*)
6504 re_direlt='/[^/][^/]*/\.\./'
6505 # Canonicalize the pathname of ld
6506 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6508 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6509 done
6510 test -z "$LD" && LD="$ac_prog"
6513 # If it fails, then pretend we aren't using GCC.
6514 ac_prog=ld
6517 # If it is relative, then search for the first ld in PATH.
6518 with_gnu_ld=unknown
6520 esac
6521 elif test "$with_gnu_ld" = yes; then
6522 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6524 else
6525 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6528 if test "${lt_cv_path_LD+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 if test -z "$LD"; then
6532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6533 for ac_dir in $PATH; do
6534 IFS="$lt_save_ifs"
6535 test -z "$ac_dir" && ac_dir=.
6536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6537 lt_cv_path_LD="$ac_dir/$ac_prog"
6538 # Check to see if the program is GNU ld. I'd rather use --version,
6539 # but apparently some variants of GNU ld only accept -v.
6540 # Break only if it was the GNU/non-GNU ld that we prefer.
6541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6542 *GNU* | *'with BFD'*)
6543 test "$with_gnu_ld" != no && break
6546 test "$with_gnu_ld" != yes && break
6548 esac
6550 done
6551 IFS="$lt_save_ifs"
6552 else
6553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6557 LD="$lt_cv_path_LD"
6558 if test -n "$LD"; then
6559 { echo "$as_me:$LINENO: result: $LD" >&5
6560 echo "${ECHO_T}$LD" >&6; }
6561 else
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6567 { (exit 1); exit 1; }; }
6568 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6574 case `$LD -v 2>&1 </dev/null` in
6575 *GNU* | *'with BFD'*)
6576 lt_cv_prog_gnu_ld=yes
6579 lt_cv_prog_gnu_ld=no
6581 esac
6583 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6585 with_gnu_ld=$lt_cv_prog_gnu_ld
6587 # note - does not work on freebsd
6588 for ac_prog in gawk mawk nawk awk
6590 # Extract the first word of "$ac_prog", so it can be a program name with args.
6591 set dummy $ac_prog; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_AWK+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 if test -n "$AWK"; then
6598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_AWK="$ac_prog"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6611 done
6612 done
6613 IFS=$as_save_IFS
6617 AWK=$ac_cv_prog_AWK
6618 if test -n "$AWK"; then
6619 { echo "$as_me:$LINENO: result: $AWK" >&5
6620 echo "${ECHO_T}$AWK" >&6; }
6621 else
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6627 test -n "$AWK" && break
6628 done
6630 # Find a good install program. We prefer a C program (faster),
6631 # so one script is as good as another. But avoid the broken or
6632 # incompatible versions:
6633 # SysV /etc/install, /usr/sbin/install
6634 # SunOS /usr/etc/install
6635 # IRIX /sbin/install
6636 # AIX /bin/install
6637 # AmigaOS /C/install, which installs bootblocks on floppy discs
6638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6641 # OS/2's system install, which has a completely different semantic
6642 # ./install, which can be erroneously created by make from ./install.sh.
6643 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6644 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6645 if test -z "$INSTALL"; then
6646 if test "${ac_cv_path_install+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 # Account for people who put trailing slashes in PATH elements.
6655 case $as_dir/ in
6656 ./ | .// | /cC/* | \
6657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6658 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6659 /usr/ucb/* ) ;;
6661 # OSF1 and SCO ODT 3.0 have their own names for install.
6662 # Don't use installbsd from OSF since it installs stuff as root
6663 # by default.
6664 for ac_prog in ginstall scoinst install; do
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6667 if test $ac_prog = install &&
6668 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6669 # AIX install. It has an incompatible calling convention.
6671 elif test $ac_prog = install &&
6672 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6673 # program-specific install script used by HP pwplus--don't use.
6675 else
6676 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6677 break 3
6680 done
6681 done
6683 esac
6684 done
6685 IFS=$as_save_IFS
6689 if test "${ac_cv_path_install+set}" = set; then
6690 INSTALL=$ac_cv_path_install
6691 else
6692 # As a last resort, use the slow shell script. Don't cache a
6693 # value for INSTALL within a source directory, because that will
6694 # break other packages using the cache if that directory is
6695 # removed, or if the value is a relative name.
6696 INSTALL=$ac_install_sh
6699 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6700 echo "${ECHO_T}$INSTALL" >&6; }
6702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6703 # It thinks the first close brace ends the variable substitution.
6704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6710 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6712 LN_S=$as_ln_s
6713 if test "$LN_S" = "ln -s"; then
6714 { echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6; }
6716 else
6717 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6718 echo "${ECHO_T}no, using $LN_S" >&6; }
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_prog_RANLIB+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 RANLIB=$ac_cv_prog_RANLIB
6750 if test -n "$RANLIB"; then
6751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752 echo "${ECHO_T}$RANLIB" >&6; }
6753 else
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6760 if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763 set dummy ranlib; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_RANLIB="ranlib"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6790 if test -n "$ac_ct_RANLIB"; then
6791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793 else
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6798 if test "x$ac_ct_RANLIB" = x; then
6799 RANLIB=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&5
6806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807 whose name does not start with the host triplet. If you think this
6808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 RANLIB=$ac_ct_RANLIB
6813 else
6814 RANLIB="$ac_cv_prog_RANLIB"
6817 { echo "$as_me:$LINENO: checking for GNU make" >&5
6818 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6819 if test "${GNU_MAKE+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 GNU_MAKE='Not Found' ;
6823 GNU_MAKE_VERSION_MAJOR=0 ;
6824 GNU_MAKE_VERSION_MINOR=0 ;
6825 for a in make gmake gnumake ; do
6826 if test -z "$a" ; then continue ; fi ;
6827 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6828 GNU_MAKE=$a ;
6829 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6830 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6831 break;
6833 done ;
6836 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6837 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6838 if test "x$GNU_MAKE" = "xNot Found" ; then
6839 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6840 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6841 { (exit 1); exit 1; }; }
6842 exit 1
6847 if test -n "$ac_tool_prefix"; then
6848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849 set dummy ${ac_tool_prefix}strip; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_STRIP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855 case $STRIP in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6871 done
6872 done
6873 IFS=$as_save_IFS
6876 esac
6878 STRIP=$ac_cv_path_STRIP
6879 if test -n "$STRIP"; then
6880 { echo "$as_me:$LINENO: result: $STRIP" >&5
6881 echo "${ECHO_T}$STRIP" >&6; }
6882 else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6889 if test -z "$ac_cv_path_STRIP"; then
6890 ac_pt_STRIP=$STRIP
6891 # Extract the first word of "strip", so it can be a program name with args.
6892 set dummy strip; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 case $ac_pt_STRIP in
6899 [\\/]* | ?:[\\/]*)
6900 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6916 IFS=$as_save_IFS
6919 esac
6921 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6922 if test -n "$ac_pt_STRIP"; then
6923 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6924 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6925 else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_pt_STRIP" = x; then
6931 STRIP=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943 STRIP=$ac_pt_STRIP
6945 else
6946 STRIP="$ac_cv_path_STRIP"
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}ar; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_AR+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 case $AR in
6958 [\\/]* | ?:[\\/]*)
6959 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6973 done
6974 done
6975 IFS=$as_save_IFS
6978 esac
6980 AR=$ac_cv_path_AR
6981 if test -n "$AR"; then
6982 { echo "$as_me:$LINENO: result: $AR" >&5
6983 echo "${ECHO_T}$AR" >&6; }
6984 else
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6991 if test -z "$ac_cv_path_AR"; then
6992 ac_pt_AR=$AR
6993 # Extract the first word of "ar", so it can be a program name with args.
6994 set dummy ar; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 case $ac_pt_AR in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7016 done
7017 done
7018 IFS=$as_save_IFS
7021 esac
7023 ac_pt_AR=$ac_cv_path_ac_pt_AR
7024 if test -n "$ac_pt_AR"; then
7025 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
7026 echo "${ECHO_T}$ac_pt_AR" >&6; }
7027 else
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7032 if test "x$ac_pt_AR" = x; then
7033 AR=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7038 whose name does not start with the host triplet. If you think this
7039 configuration is useful to you, please write to autoconf@gnu.org." >&5
7040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7041 whose name does not start with the host triplet. If you think this
7042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045 AR=$ac_pt_AR
7047 else
7048 AR="$ac_cv_path_AR"
7052 GNU_LD=0
7053 if test "x$with_gnu_ld" = "xyes" ; then
7054 GNU_LD=1
7058 # Extract the first word of "awk", so it can be a program name with args.
7059 set dummy awk; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_AWK+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 case $AWK in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7085 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
7087 esac
7089 AWK=$ac_cv_path_AWK
7090 if test -n "$AWK"; then
7091 { echo "$as_me:$LINENO: result: $AWK" >&5
7092 echo "${ECHO_T}$AWK" >&6; }
7093 else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "grep", so it can be a program name with args.
7100 set dummy grep; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_GREP+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 case $GREP in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7124 IFS=$as_save_IFS
7126 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
7128 esac
7130 GREP=$ac_cv_path_GREP
7131 if test -n "$GREP"; then
7132 { echo "$as_me:$LINENO: result: $GREP" >&5
7133 echo "${ECHO_T}$GREP" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 # Extract the first word of "find", so it can be a program name with args.
7141 set dummy find; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_FIND+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 case $FIND in
7148 [\\/]* | ?:[\\/]*)
7149 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7163 done
7164 done
7165 IFS=$as_save_IFS
7167 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
7169 esac
7171 FIND=$ac_cv_path_FIND
7172 if test -n "$FIND"; then
7173 { echo "$as_me:$LINENO: result: $FIND" >&5
7174 echo "${ECHO_T}$FIND" >&6; }
7175 else
7176 { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7181 # Extract the first word of "compress", so it can be a program name with args.
7182 set dummy compress; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_COMPRESS+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $COMPRESS in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7204 done
7205 done
7206 IFS=$as_save_IFS
7208 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
7210 esac
7212 COMPRESS=$ac_cv_path_COMPRESS
7213 if test -n "$COMPRESS"; then
7214 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
7215 echo "${ECHO_T}$COMPRESS" >&6; }
7216 else
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "basename", so it can be a program name with args.
7223 set dummy basename; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_BASENAME+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 case $BASENAME in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7249 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
7251 esac
7253 BASENAME=$ac_cv_path_BASENAME
7254 if test -n "$BASENAME"; then
7255 { echo "$as_me:$LINENO: result: $BASENAME" >&5
7256 echo "${ECHO_T}$BASENAME" >&6; }
7257 else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7263 # Extract the first word of "id", so it can be a program name with args.
7264 set dummy id; ac_word=$2
7265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267 if test "${ac_cv_path_ID+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 case $ID in
7271 [\\/]* | ?:[\\/]*)
7272 ac_cv_path_ID="$ID" # Let the user override the test with a path.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
7283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7286 done
7287 done
7288 IFS=$as_save_IFS
7290 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
7292 esac
7294 ID=$ac_cv_path_ID
7295 if test -n "$ID"; then
7296 { echo "$as_me:$LINENO: result: $ID" >&5
7297 echo "${ECHO_T}$ID" >&6; }
7298 else
7299 { echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6; }
7304 # Extract the first word of "dirname", so it can be a program name with args.
7305 set dummy dirname; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_DIRNAME+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 case $DIRNAME in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7327 done
7328 done
7329 IFS=$as_save_IFS
7331 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7333 esac
7335 DIRNAME=$ac_cv_path_DIRNAME
7336 if test -n "$DIRNAME"; then
7337 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7338 echo "${ECHO_T}$DIRNAME" >&6; }
7339 else
7340 { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7345 # Extract the first word of "sh", so it can be a program name with args.
7346 set dummy sh; ac_word=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_SHELL+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 case $SHELL in
7353 [\\/]* | ?:[\\/]*)
7354 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7370 IFS=$as_save_IFS
7372 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7374 esac
7376 SHELL=$ac_cv_path_SHELL
7377 if test -n "$SHELL"; then
7378 { echo "$as_me:$LINENO: result: $SHELL" >&5
7379 echo "${ECHO_T}$SHELL" >&6; }
7380 else
7381 { echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6; }
7386 # Extract the first word of "ln", so it can be a program name with args.
7387 set dummy ln; ac_word=$2
7388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7390 if test "${ac_cv_path_LN+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 case $LN in
7394 [\\/]* | ?:[\\/]*)
7395 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7409 done
7410 done
7411 IFS=$as_save_IFS
7413 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7415 esac
7417 LN=$ac_cv_path_LN
7418 if test -n "$LN"; then
7419 { echo "$as_me:$LINENO: result: $LN" >&5
7420 echo "${ECHO_T}$LN" >&6; }
7421 else
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7427 # Extract the first word of "dot", so it can be a program name with args.
7428 set dummy dot; ac_word=$2
7429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7431 if test "${ac_cv_path_DOT+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 case $DOT in
7435 [\\/]* | ?:[\\/]*)
7436 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7450 done
7451 done
7452 IFS=$as_save_IFS
7454 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7456 esac
7458 DOT=$ac_cv_path_DOT
7459 if test -n "$DOT"; then
7460 { echo "$as_me:$LINENO: result: $DOT" >&5
7461 echo "${ECHO_T}$DOT" >&6; }
7462 else
7463 { echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6; }
7468 # Extract the first word of "wget", so it can be a program name with args.
7469 set dummy wget; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_WGET+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 case $WGET in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7491 done
7492 done
7493 IFS=$as_save_IFS
7495 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7497 esac
7499 WGET=$ac_cv_path_WGET
7500 if test -n "$WGET"; then
7501 { echo "$as_me:$LINENO: result: $WGET" >&5
7502 echo "${ECHO_T}$WGET" >&6; }
7503 else
7504 { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7509 if test "${WGET}" != ":" ; then
7510 DOWNLOAD=${WGET}
7511 else
7512 # Extract the first word of "fetch", so it can be a program name with args.
7513 set dummy fetch; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_FETCH+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 case $FETCH in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7539 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7541 esac
7543 FETCH=$ac_cv_path_FETCH
7544 if test -n "$FETCH"; then
7545 { echo "$as_me:$LINENO: result: $FETCH" >&5
7546 echo "${ECHO_T}$FETCH" >&6; }
7547 else
7548 { echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6; }
7553 DOWNLOAD=${FETCH}
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 if test -n "$SOXMIX"; then
7566 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 SOXMIX=$ac_cv_prog_SOXMIX
7586 if test -n "$SOXMIX"; then
7587 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7588 echo "${ECHO_T}$SOXMIX" >&6; }
7589 else
7590 { echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6; }
7596 if test -z "$ac_cv_prog_SOXMIX"; then
7597 ac_ct_SOXMIX=$SOXMIX
7598 # Extract the first word of "soxmix", so it can be a program name with args.
7599 set dummy soxmix; ac_word=$2
7600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 if test -n "$ac_ct_SOXMIX"; then
7606 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7619 done
7620 done
7621 IFS=$as_save_IFS
7625 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7626 if test -n "$ac_ct_SOXMIX"; then
7627 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7628 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7629 else
7630 { echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6; }
7634 if test "x$ac_ct_SOXMIX" = x; then
7635 SOXMIX=":"
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7640 whose name does not start with the host triplet. If you think this
7641 configuration is useful to you, please write to autoconf@gnu.org." >&5
7642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7643 whose name does not start with the host triplet. If you think this
7644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7645 ac_tool_warned=yes ;;
7646 esac
7647 SOXMIX=$ac_ct_SOXMIX
7649 else
7650 SOXMIX="$ac_cv_prog_SOXMIX"
7653 if test "${SOXMIX}" != ":" ; then
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_SOXMIX 1
7657 _ACEOF
7664 ac_ext=c
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670 acx_pthread_ok=no
7672 # We used to check for pthread.h first, but this fails if pthread.h
7673 # requires special compiler flags (e.g. on True64 or Sequent).
7674 # It gets checked for in the link test anyway.
7676 # First of all, check if the user has set any of the PTHREAD_LIBS,
7677 # etcetera environment variables, and if threads linking works using
7678 # them:
7679 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7680 save_CFLAGS="$CFLAGS"
7681 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7682 save_LIBS="$LIBS"
7683 LIBS="$PTHREAD_LIBS $LIBS"
7684 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7685 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7693 /* Override any GCC internal prototype to avoid an error.
7694 Use char because int might match the return type of a GCC
7695 builtin and then its argument prototype would still apply. */
7696 #ifdef __cplusplus
7697 extern "C"
7698 #endif
7699 char pthread_join ();
7701 main ()
7703 return pthread_join ();
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (ac_try="$ac_link"
7710 case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_link") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_try") 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 acx_pthread_ok=yes
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -f core conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7752 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7753 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7754 if test x"$acx_pthread_ok" = xno; then
7755 PTHREAD_LIBS=""
7756 PTHREAD_CFLAGS=""
7758 LIBS="$save_LIBS"
7759 CFLAGS="$save_CFLAGS"
7762 # We must check for the threads library under a number of different
7763 # names; the ordering is very important because some systems
7764 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7765 # libraries is broken (non-POSIX).
7767 # Create a list of thread flags to try. Items starting with a "-" are
7768 # C compiler flags, and other items are library names, except for "none"
7769 # which indicates that we try without any flags at all, and "pthread-config"
7770 # which is a program returning the flags for the Pth emulation library.
7772 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7774 # The ordering *is* (sometimes) important. Some notes on the
7775 # individual items follow:
7777 # pthreads: AIX (must check this before -lpthread)
7778 # none: in case threads are in libc; should be tried before -Kthread and
7779 # other compiler flags to prevent continual compiler warnings
7780 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7781 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7782 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7783 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7784 # -pthreads: Solaris/gcc
7785 # -mthreads: Mingw32/gcc, Lynx/gcc
7786 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7787 # doesn't hurt to check since this sometimes defines pthreads too;
7788 # also defines -D_REENTRANT)
7789 # ... -mt is also the pthreads flag for HP/aCC
7790 # pthread: Linux, etcetera
7791 # --thread-safe: KAI C++
7792 # pthread-config: use pthread-config program (for GNU Pth library)
7794 case "${host_cpu}-${host_os}" in
7795 *solaris*)
7797 # On Solaris (at least, for some versions), libc contains stubbed
7798 # (non-functional) versions of the pthreads routines, so link-based
7799 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7800 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7801 # a function called by this macro, so we could check for that, but
7802 # who knows whether they'll stub that too in a future libc.) So,
7803 # we'll just look for -pthreads and -lpthread first:
7805 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7807 esac
7809 if test x"$acx_pthread_ok" = xno; then
7810 for flag in $acx_pthread_flags; do
7812 case $flag in
7813 none)
7814 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7815 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7819 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7820 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7821 PTHREAD_CFLAGS="$flag"
7824 pthread-config)
7825 # Extract the first word of "pthread-config", so it can be a program name with args.
7826 set dummy pthread-config; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 if test -n "$acx_pthread_config"; then
7833 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_acx_pthread_config="yes"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7850 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7853 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7854 if test -n "$acx_pthread_config"; then
7855 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7856 echo "${ECHO_T}$acx_pthread_config" >&6; }
7857 else
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7863 if test x"$acx_pthread_config" = xno; then continue; fi
7864 PTHREAD_CFLAGS="`pthread-config --cflags`"
7865 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7869 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7870 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7871 PTHREAD_LIBS="-l$flag"
7873 esac
7875 save_LIBS="$LIBS"
7876 save_CFLAGS="$CFLAGS"
7877 LIBS="$PTHREAD_LIBS $LIBS"
7878 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7880 # Check for various functions. We must include pthread.h,
7881 # since some functions may be macros. (On the Sequent, we
7882 # need a special flag -Kthread to make this header compile.)
7883 # We check for pthread_join because it is in -lpthread on IRIX
7884 # while pthread_create is in libc. We check for pthread_attr_init
7885 # due to DEC craziness with -lpthreads. We check for
7886 # pthread_cleanup_push because it is one of the few pthread
7887 # functions on Solaris that doesn't have a non-functional libc stub.
7888 # We try pthread_create on general principles.
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <pthread.h>
7897 main ()
7899 pthread_t th; pthread_join(th, 0);
7900 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7901 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7903 return 0;
7905 _ACEOF
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest$ac_exeext'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 acx_pthread_ok=yes
7941 else
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7951 LIBS="$save_LIBS"
7952 CFLAGS="$save_CFLAGS"
7954 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7955 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7956 if test "x$acx_pthread_ok" = xyes; then
7957 break;
7960 PTHREAD_LIBS=""
7961 PTHREAD_CFLAGS=""
7962 done
7965 # Various other checks:
7966 if test "x$acx_pthread_ok" = xyes; then
7967 save_LIBS="$LIBS"
7968 LIBS="$PTHREAD_LIBS $LIBS"
7969 save_CFLAGS="$CFLAGS"
7970 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7972 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7973 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7974 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7975 attr_name=unknown
7976 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <pthread.h>
7985 main ()
7987 int attr=$attr; return attr;
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext conftest$ac_exeext
7993 if { (ac_try="$ac_link"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_link") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 attr_name=$attr; break
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8034 rm -f core conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8036 done
8037 { echo "$as_me:$LINENO: result: $attr_name" >&5
8038 echo "${ECHO_T}$attr_name" >&6; }
8039 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8041 cat >>confdefs.h <<_ACEOF
8042 #define PTHREAD_CREATE_JOINABLE $attr_name
8043 _ACEOF
8047 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
8048 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
8049 flag=no
8050 case "${host_cpu}-${host_os}" in
8051 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8052 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8053 esac
8054 { echo "$as_me:$LINENO: result: ${flag}" >&5
8055 echo "${ECHO_T}${flag}" >&6; }
8056 if test "x$flag" != xno; then
8057 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8060 LIBS="$save_LIBS"
8061 CFLAGS="$save_CFLAGS"
8063 # More AIX lossage: must compile with xlc_r or cc_r
8064 if test x"$GCC" != xyes; then
8065 for ac_prog in xlc_r cc_r
8067 # Extract the first word of "$ac_prog", so it can be a program name with args.
8068 set dummy $ac_prog; ac_word=$2
8069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 if test -n "$PTHREAD_CC"; then
8075 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_PTHREAD_CC="$ac_prog"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8095 if test -n "$PTHREAD_CC"; then
8096 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
8097 echo "${ECHO_T}$PTHREAD_CC" >&6; }
8098 else
8099 { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8104 test -n "$PTHREAD_CC" && break
8105 done
8106 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8108 else
8109 PTHREAD_CC=$CC
8111 else
8112 PTHREAD_CC="$CC"
8119 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8120 if test x"$acx_pthread_ok" = xyes; then
8122 cat >>confdefs.h <<\_ACEOF
8123 #define HAVE_PTHREAD 1
8124 _ACEOF
8127 else
8128 acx_pthread_ok=no
8131 ac_ext=c
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139 ac_ext=c
8140 ac_cpp='$CPP $CPPFLAGS'
8141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146 # Check whether --enable-dev-mode was given.
8147 if test "${enable_dev_mode+set}" = set; then
8148 enableval=$enable_dev_mode; case "${enableval}" in
8149 y|ye|yes) AST_DEVMODE=yes ;;
8150 n|no) AST_DEVMODE=no ;;
8151 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
8152 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
8153 { (exit 1); exit 1; }; } ;;
8154 esac
8159 # package option names should be in alphabetical order
8160 # by the --with option name, to make things easier for the users :-)
8163 ALSA_DESCRIP="Advanced Linux Sound Architecture"
8164 ALSA_OPTION="asound"
8166 # Check whether --with-asound was given.
8167 if test "${with_asound+set}" = set; then
8168 withval=$with_asound;
8169 case ${withval} in
8170 n|no)
8171 USE_ALSA=no
8173 y|ye|yes)
8174 ALSA_MANDATORY="yes"
8177 ALSA_DIR="${withval}"
8178 ALSA_MANDATORY="yes"
8180 esac
8184 PBX_ALSA=0
8191 CURL_DESCRIP="cURL"
8192 CURL_OPTION="curl"
8194 # Check whether --with-curl was given.
8195 if test "${with_curl+set}" = set; then
8196 withval=$with_curl;
8197 case ${withval} in
8198 n|no)
8199 USE_CURL=no
8201 y|ye|yes)
8202 CURL_MANDATORY="yes"
8205 CURL_DIR="${withval}"
8206 CURL_MANDATORY="yes"
8208 esac
8212 PBX_CURL=0
8219 CAP_DESCRIP="POSIX 1.e capabilities"
8220 CAP_OPTION="cap"
8222 # Check whether --with-cap was given.
8223 if test "${with_cap+set}" = set; then
8224 withval=$with_cap;
8225 case ${withval} in
8226 n|no)
8227 USE_CAP=no
8229 y|ye|yes)
8230 CAP_MANDATORY="yes"
8233 CAP_DIR="${withval}"
8234 CAP_MANDATORY="yes"
8236 esac
8240 PBX_CAP=0
8247 CURSES_DESCRIP="curses"
8248 CURSES_OPTION="curses"
8250 # Check whether --with-curses was given.
8251 if test "${with_curses+set}" = set; then
8252 withval=$with_curses;
8253 case ${withval} in
8254 n|no)
8255 USE_CURSES=no
8257 y|ye|yes)
8258 CURSES_MANDATORY="yes"
8261 CURSES_DIR="${withval}"
8262 CURSES_MANDATORY="yes"
8264 esac
8268 PBX_CURSES=0
8275 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
8276 GNUTLS_OPTION="gnutls"
8278 # Check whether --with-gnutls was given.
8279 if test "${with_gnutls+set}" = set; then
8280 withval=$with_gnutls;
8281 case ${withval} in
8282 n|no)
8283 USE_GNUTLS=no
8285 y|ye|yes)
8286 GNUTLS_MANDATORY="yes"
8289 GNUTLS_DIR="${withval}"
8290 GNUTLS_MANDATORY="yes"
8292 esac
8296 PBX_GNUTLS=0
8303 GSM_DESCRIP="GSM"
8304 GSM_OPTION="gsm"
8306 # Check whether --with-gsm was given.
8307 if test "${with_gsm+set}" = set; then
8308 withval=$with_gsm;
8309 case ${withval} in
8310 n|no)
8311 USE_GSM=no
8313 y|ye|yes)
8314 GSM_MANDATORY="yes"
8317 GSM_DIR="${withval}"
8318 GSM_MANDATORY="yes"
8320 esac
8324 PBX_GSM=0
8331 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8332 IKSEMEL_OPTION="iksemel"
8334 # Check whether --with-iksemel was given.
8335 if test "${with_iksemel+set}" = set; then
8336 withval=$with_iksemel;
8337 case ${withval} in
8338 n|no)
8339 USE_IKSEMEL=no
8341 y|ye|yes)
8342 IKSEMEL_MANDATORY="yes"
8345 IKSEMEL_DIR="${withval}"
8346 IKSEMEL_MANDATORY="yes"
8348 esac
8352 PBX_IKSEMEL=0
8359 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8360 IMAP_TK_OPTION="imap"
8362 # Check whether --with-imap was given.
8363 if test "${with_imap+set}" = set; then
8364 withval=$with_imap;
8365 case ${withval} in
8366 n|no)
8367 USE_IMAP_TK=no
8369 y|ye|yes)
8370 IMAP_TK_MANDATORY="yes"
8373 IMAP_TK_DIR="${withval}"
8374 IMAP_TK_MANDATORY="yes"
8376 esac
8380 PBX_IMAP_TK=0
8387 ISDNNET_DESCRIP="ISDN4Linux Library"
8388 ISDNNET_OPTION="isdnnet"
8390 # Check whether --with-isdnnet was given.
8391 if test "${with_isdnnet+set}" = set; then
8392 withval=$with_isdnnet;
8393 case ${withval} in
8394 n|no)
8395 USE_ISDNNET=no
8397 y|ye|yes)
8398 ISDNNET_MANDATORY="yes"
8401 ISDNNET_DIR="${withval}"
8402 ISDNNET_MANDATORY="yes"
8404 esac
8408 PBX_ISDNNET=0
8415 KDE_DESCRIP="KDE"
8416 KDE_OPTION="kde"
8418 # Check whether --with-kde was given.
8419 if test "${with_kde+set}" = set; then
8420 withval=$with_kde;
8421 case ${withval} in
8422 n|no)
8423 USE_KDE=no
8425 y|ye|yes)
8426 KDE_MANDATORY="yes"
8429 KDE_DIR="${withval}"
8430 KDE_MANDATORY="yes"
8432 esac
8436 PBX_KDE=0
8443 LTDL_DESCRIP="libtool"
8444 LTDL_OPTION="ltdl"
8446 # Check whether --with-ltdl was given.
8447 if test "${with_ltdl+set}" = set; then
8448 withval=$with_ltdl;
8449 case ${withval} in
8450 n|no)
8451 USE_LTDL=no
8453 y|ye|yes)
8454 LTDL_MANDATORY="yes"
8457 LTDL_DIR="${withval}"
8458 LTDL_MANDATORY="yes"
8460 esac
8464 PBX_LTDL=0
8471 MISDN_DESCRIP="mISDN User Library"
8472 MISDN_OPTION="misdn"
8474 # Check whether --with-misdn was given.
8475 if test "${with_misdn+set}" = set; then
8476 withval=$with_misdn;
8477 case ${withval} in
8478 n|no)
8479 USE_MISDN=no
8481 y|ye|yes)
8482 MISDN_MANDATORY="yes"
8485 MISDN_DIR="${withval}"
8486 MISDN_MANDATORY="yes"
8488 esac
8492 PBX_MISDN=0
8499 NBS_DESCRIP="Network Broadcast Sound"
8500 NBS_OPTION="nbs"
8502 # Check whether --with-nbs was given.
8503 if test "${with_nbs+set}" = set; then
8504 withval=$with_nbs;
8505 case ${withval} in
8506 n|no)
8507 USE_NBS=no
8509 y|ye|yes)
8510 NBS_MANDATORY="yes"
8513 NBS_DIR="${withval}"
8514 NBS_MANDATORY="yes"
8516 esac
8520 PBX_NBS=0
8527 NCURSES_DESCRIP="ncurses"
8528 NCURSES_OPTION="ncurses"
8530 # Check whether --with-ncurses was given.
8531 if test "${with_ncurses+set}" = set; then
8532 withval=$with_ncurses;
8533 case ${withval} in
8534 n|no)
8535 USE_NCURSES=no
8537 y|ye|yes)
8538 NCURSES_MANDATORY="yes"
8541 NCURSES_DIR="${withval}"
8542 NCURSES_MANDATORY="yes"
8544 esac
8548 PBX_NCURSES=0
8555 NETSNMP_DESCRIP="Net-SNMP"
8556 NETSNMP_OPTION="netsnmp"
8558 # Check whether --with-netsnmp was given.
8559 if test "${with_netsnmp+set}" = set; then
8560 withval=$with_netsnmp;
8561 case ${withval} in
8562 n|no)
8563 USE_NETSNMP=no
8565 y|ye|yes)
8566 NETSNMP_MANDATORY="yes"
8569 NETSNMP_DIR="${withval}"
8570 NETSNMP_MANDATORY="yes"
8572 esac
8576 PBX_NETSNMP=0
8583 NEWT_DESCRIP="newt"
8584 NEWT_OPTION="newt"
8586 # Check whether --with-newt was given.
8587 if test "${with_newt+set}" = set; then
8588 withval=$with_newt;
8589 case ${withval} in
8590 n|no)
8591 USE_NEWT=no
8593 y|ye|yes)
8594 NEWT_MANDATORY="yes"
8597 NEWT_DIR="${withval}"
8598 NEWT_MANDATORY="yes"
8600 esac
8604 PBX_NEWT=0
8611 UNIXODBC_DESCRIP="unixODBC"
8612 UNIXODBC_OPTION="odbc"
8614 # Check whether --with-odbc was given.
8615 if test "${with_odbc+set}" = set; then
8616 withval=$with_odbc;
8617 case ${withval} in
8618 n|no)
8619 USE_UNIXODBC=no
8621 y|ye|yes)
8622 UNIXODBC_MANDATORY="yes"
8625 UNIXODBC_DIR="${withval}"
8626 UNIXODBC_MANDATORY="yes"
8628 esac
8632 PBX_UNIXODBC=0
8639 OGG_DESCRIP="OGG"
8640 OGG_OPTION="ogg"
8642 # Check whether --with-ogg was given.
8643 if test "${with_ogg+set}" = set; then
8644 withval=$with_ogg;
8645 case ${withval} in
8646 n|no)
8647 USE_OGG=no
8649 y|ye|yes)
8650 OGG_MANDATORY="yes"
8653 OGG_DIR="${withval}"
8654 OGG_MANDATORY="yes"
8656 esac
8660 PBX_OGG=0
8667 OSPTK_DESCRIP="OSP Toolkit"
8668 OSPTK_OPTION="osptk"
8670 # Check whether --with-osptk was given.
8671 if test "${with_osptk+set}" = set; then
8672 withval=$with_osptk;
8673 case ${withval} in
8674 n|no)
8675 USE_OSPTK=no
8677 y|ye|yes)
8678 OSPTK_MANDATORY="yes"
8681 OSPTK_DIR="${withval}"
8682 OSPTK_MANDATORY="yes"
8684 esac
8688 PBX_OSPTK=0
8695 OSS_DESCRIP="Open Sound System"
8696 OSS_OPTION="oss"
8698 # Check whether --with-oss was given.
8699 if test "${with_oss+set}" = set; then
8700 withval=$with_oss;
8701 case ${withval} in
8702 n|no)
8703 USE_OSS=no
8705 y|ye|yes)
8706 OSS_MANDATORY="yes"
8709 OSS_DIR="${withval}"
8710 OSS_MANDATORY="yes"
8712 esac
8716 PBX_OSS=0
8723 POPT_DESCRIP="popt"
8724 POPT_OPTION="popt"
8726 # Check whether --with-popt was given.
8727 if test "${with_popt+set}" = set; then
8728 withval=$with_popt;
8729 case ${withval} in
8730 n|no)
8731 USE_POPT=no
8733 y|ye|yes)
8734 POPT_MANDATORY="yes"
8737 POPT_DIR="${withval}"
8738 POPT_MANDATORY="yes"
8740 esac
8744 PBX_POPT=0
8751 PGSQL_DESCRIP="PostgreSQL"
8752 PGSQL_OPTION="postgres"
8754 # Check whether --with-postgres was given.
8755 if test "${with_postgres+set}" = set; then
8756 withval=$with_postgres;
8757 case ${withval} in
8758 n|no)
8759 USE_PGSQL=no
8761 y|ye|yes)
8762 PGSQL_MANDATORY="yes"
8765 PGSQL_DIR="${withval}"
8766 PGSQL_MANDATORY="yes"
8768 esac
8772 PBX_PGSQL=0
8779 PRI_DESCRIP="ISDN PRI"
8780 PRI_OPTION="pri"
8782 # Check whether --with-pri was given.
8783 if test "${with_pri+set}" = set; then
8784 withval=$with_pri;
8785 case ${withval} in
8786 n|no)
8787 USE_PRI=no
8789 y|ye|yes)
8790 PRI_MANDATORY="yes"
8793 PRI_DIR="${withval}"
8794 PRI_MANDATORY="yes"
8796 esac
8800 PBX_PRI=0
8807 PWLIB_DESCRIP="PWlib"
8808 PWLIB_OPTION="pwlib"
8810 # Check whether --with-pwlib was given.
8811 if test "${with_pwlib+set}" = set; then
8812 withval=$with_pwlib;
8813 case ${withval} in
8814 n|no)
8815 USE_PWLIB=no
8817 y|ye|yes)
8818 PWLIB_MANDATORY="yes"
8821 PWLIB_DIR="${withval}"
8822 PWLIB_MANDATORY="yes"
8824 esac
8828 PBX_PWLIB=0
8835 OPENH323_DESCRIP="OpenH323"
8836 OPENH323_OPTION="h323"
8838 # Check whether --with-h323 was given.
8839 if test "${with_h323+set}" = set; then
8840 withval=$with_h323;
8841 case ${withval} in
8842 n|no)
8843 USE_OPENH323=no
8845 y|ye|yes)
8846 OPENH323_MANDATORY="yes"
8849 OPENH323_DIR="${withval}"
8850 OPENH323_MANDATORY="yes"
8852 esac
8856 PBX_OPENH323=0
8863 RADIUS_DESCRIP="Radius Client"
8864 RADIUS_OPTION="radius"
8866 # Check whether --with-radius was given.
8867 if test "${with_radius+set}" = set; then
8868 withval=$with_radius;
8869 case ${withval} in
8870 n|no)
8871 USE_RADIUS=no
8873 y|ye|yes)
8874 RADIUS_MANDATORY="yes"
8877 RADIUS_DIR="${withval}"
8878 RADIUS_MANDATORY="yes"
8880 esac
8884 PBX_RADIUS=0
8891 SPEEX_DESCRIP="Speex"
8892 SPEEX_OPTION="speex"
8894 # Check whether --with-speex was given.
8895 if test "${with_speex+set}" = set; then
8896 withval=$with_speex;
8897 case ${withval} in
8898 n|no)
8899 USE_SPEEX=no
8901 y|ye|yes)
8902 SPEEX_MANDATORY="yes"
8905 SPEEX_DIR="${withval}"
8906 SPEEX_MANDATORY="yes"
8908 esac
8912 PBX_SPEEX=0
8919 SPEEXDSP_DESCRIP="Speexdsp"
8920 SPEEXDSP_OPTION="speexdsp"
8922 # Check whether --with-speexdsp was given.
8923 if test "${with_speexdsp+set}" = set; then
8924 withval=$with_speexdsp;
8925 case ${withval} in
8926 n|no)
8927 USE_SPEEXDSP=no
8929 y|ye|yes)
8930 SPEEXDSP_MANDATORY="yes"
8933 SPEEXDSP_DIR="${withval}"
8934 SPEEXDSP_MANDATORY="yes"
8936 esac
8940 PBX_SPEEXDSP=0
8947 SQLITE_DESCRIP="SQLite"
8948 SQLITE_OPTION="sqlite"
8950 # Check whether --with-sqlite was given.
8951 if test "${with_sqlite+set}" = set; then
8952 withval=$with_sqlite;
8953 case ${withval} in
8954 n|no)
8955 USE_SQLITE=no
8957 y|ye|yes)
8958 SQLITE_MANDATORY="yes"
8961 SQLITE_DIR="${withval}"
8962 SQLITE_MANDATORY="yes"
8964 esac
8968 PBX_SQLITE=0
8975 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8976 SUPPSERV_OPTION="suppserv"
8978 # Check whether --with-suppserv was given.
8979 if test "${with_suppserv+set}" = set; then
8980 withval=$with_suppserv;
8981 case ${withval} in
8982 n|no)
8983 USE_SUPPSERV=no
8985 y|ye|yes)
8986 SUPPSERV_MANDATORY="yes"
8989 SUPPSERV_DIR="${withval}"
8990 SUPPSERV_MANDATORY="yes"
8992 esac
8996 PBX_SUPPSERV=0
9003 OPENSSL_DESCRIP="OpenSSL"
9004 OPENSSL_OPTION="ssl"
9006 # Check whether --with-ssl was given.
9007 if test "${with_ssl+set}" = set; then
9008 withval=$with_ssl;
9009 case ${withval} in
9010 n|no)
9011 USE_OPENSSL=no
9013 y|ye|yes)
9014 OPENSSL_MANDATORY="yes"
9017 OPENSSL_DIR="${withval}"
9018 OPENSSL_MANDATORY="yes"
9020 esac
9024 PBX_OPENSSL=0
9031 FREETDS_DESCRIP="FreeTDS"
9032 FREETDS_OPTION="tds"
9034 # Check whether --with-tds was given.
9035 if test "${with_tds+set}" = set; then
9036 withval=$with_tds;
9037 case ${withval} in
9038 n|no)
9039 USE_FREETDS=no
9041 y|ye|yes)
9042 FREETDS_MANDATORY="yes"
9045 FREETDS_DIR="${withval}"
9046 FREETDS_MANDATORY="yes"
9048 esac
9052 PBX_FREETDS=0
9059 TERMCAP_DESCRIP="Termcap"
9060 TERMCAP_OPTION="termcap"
9062 # Check whether --with-termcap was given.
9063 if test "${with_termcap+set}" = set; then
9064 withval=$with_termcap;
9065 case ${withval} in
9066 n|no)
9067 USE_TERMCAP=no
9069 y|ye|yes)
9070 TERMCAP_MANDATORY="yes"
9073 TERMCAP_DIR="${withval}"
9074 TERMCAP_MANDATORY="yes"
9076 esac
9080 PBX_TERMCAP=0
9087 TINFO_DESCRIP="Term Info"
9088 TINFO_OPTION="tinfo"
9090 # Check whether --with-tinfo was given.
9091 if test "${with_tinfo+set}" = set; then
9092 withval=$with_tinfo;
9093 case ${withval} in
9094 n|no)
9095 USE_TINFO=no
9097 y|ye|yes)
9098 TINFO_MANDATORY="yes"
9101 TINFO_DIR="${withval}"
9102 TINFO_MANDATORY="yes"
9104 esac
9108 PBX_TINFO=0
9115 TONEZONE_DESCRIP="tonezone"
9116 TONEZONE_OPTION="tonezone"
9118 # Check whether --with-tonezone was given.
9119 if test "${with_tonezone+set}" = set; then
9120 withval=$with_tonezone;
9121 case ${withval} in
9122 n|no)
9123 USE_TONEZONE=no
9125 y|ye|yes)
9126 TONEZONE_MANDATORY="yes"
9129 TONEZONE_DIR="${withval}"
9130 TONEZONE_MANDATORY="yes"
9132 esac
9136 PBX_TONEZONE=0
9143 USB_DESCRIP="usb"
9144 USB_OPTION="usb"
9146 # Check whether --with-usb was given.
9147 if test "${with_usb+set}" = set; then
9148 withval=$with_usb;
9149 case ${withval} in
9150 n|no)
9151 USE_USB=no
9153 y|ye|yes)
9154 USB_MANDATORY="yes"
9157 USB_DIR="${withval}"
9158 USB_MANDATORY="yes"
9160 esac
9164 PBX_USB=0
9171 VORBIS_DESCRIP="Vorbis"
9172 VORBIS_OPTION="vorbis"
9174 # Check whether --with-vorbis was given.
9175 if test "${with_vorbis+set}" = set; then
9176 withval=$with_vorbis;
9177 case ${withval} in
9178 n|no)
9179 USE_VORBIS=no
9181 y|ye|yes)
9182 VORBIS_MANDATORY="yes"
9185 VORBIS_DIR="${withval}"
9186 VORBIS_MANDATORY="yes"
9188 esac
9192 PBX_VORBIS=0
9199 VPB_DESCRIP="Voicetronix API"
9200 VPB_OPTION="vpb"
9202 # Check whether --with-vpb was given.
9203 if test "${with_vpb+set}" = set; then
9204 withval=$with_vpb;
9205 case ${withval} in
9206 n|no)
9207 USE_VPB=no
9209 y|ye|yes)
9210 VPB_MANDATORY="yes"
9213 VPB_DIR="${withval}"
9214 VPB_MANDATORY="yes"
9216 esac
9220 PBX_VPB=0
9227 ZLIB_DESCRIP="zlib"
9228 ZLIB_OPTION="z"
9230 # Check whether --with-z was given.
9231 if test "${with_z+set}" = set; then
9232 withval=$with_z;
9233 case ${withval} in
9234 n|no)
9235 USE_ZLIB=no
9237 y|ye|yes)
9238 ZLIB_MANDATORY="yes"
9241 ZLIB_DIR="${withval}"
9242 ZLIB_MANDATORY="yes"
9244 esac
9248 PBX_ZLIB=0
9255 ZAPTEL_DESCRIP="Zaptel"
9256 ZAPTEL_OPTION="zaptel"
9258 # Check whether --with-zaptel was given.
9259 if test "${with_zaptel+set}" = set; then
9260 withval=$with_zaptel;
9261 case ${withval} in
9262 n|no)
9263 USE_ZAPTEL=no
9265 y|ye|yes)
9266 ZAPTEL_MANDATORY="yes"
9269 ZAPTEL_DIR="${withval}"
9270 ZAPTEL_MANDATORY="yes"
9272 esac
9276 PBX_ZAPTEL=0
9283 # check for basic system features and functionality before
9284 # checking for package libraries
9286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9287 # for constant arguments. Useless!
9288 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9289 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9290 if test "${ac_cv_working_alloca_h+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h. */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 #include <alloca.h>
9301 main ()
9303 char *p = (char *) alloca (2 * sizeof (int));
9304 if (p) return 0;
9306 return 0;
9308 _ACEOF
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9311 case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9324 { (case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_try") 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest$ac_exeext'
9334 { (case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_try") 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_working_alloca_h=yes
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ac_cv_working_alloca_h=no
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9354 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9355 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9356 if test $ac_cv_working_alloca_h = yes; then
9358 cat >>confdefs.h <<\_ACEOF
9359 #define HAVE_ALLOCA_H 1
9360 _ACEOF
9364 { echo "$as_me:$LINENO: checking for alloca" >&5
9365 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9366 if test "${ac_cv_func_alloca_works+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 #ifdef __GNUC__
9376 # define alloca __builtin_alloca
9377 #else
9378 # ifdef _MSC_VER
9379 # include <malloc.h>
9380 # define alloca _alloca
9381 # else
9382 # if HAVE_ALLOCA_H
9383 # include <alloca.h>
9384 # else
9385 # ifdef _AIX
9386 #pragma alloca
9387 # else
9388 # ifndef alloca /* predefined by HP cc +Olibcalls */
9389 char *alloca ();
9390 # endif
9391 # endif
9392 # endif
9393 # endif
9394 #endif
9397 main ()
9399 char *p = (char *) alloca (1);
9400 if (p) return 0;
9402 return 0;
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest$ac_exeext'
9430 { (case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_try") 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_func_alloca_works=yes
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_cv_func_alloca_works=no
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9450 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9451 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9453 if test $ac_cv_func_alloca_works = yes; then
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_ALLOCA 1
9457 _ACEOF
9459 else
9460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9461 # that cause trouble. Some versions do not even contain alloca or
9462 # contain a buggy version. If you still want to use their alloca,
9463 # use ar to extract alloca.o from them instead of compiling alloca.c.
9465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9467 cat >>confdefs.h <<\_ACEOF
9468 #define C_ALLOCA 1
9469 _ACEOF
9472 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9473 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9474 if test "${ac_cv_os_cray+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #if defined CRAY && ! defined CRAY2
9484 webecray
9485 #else
9486 wenotbecray
9487 #endif
9489 _ACEOF
9490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9491 $EGREP "webecray" >/dev/null 2>&1; then
9492 ac_cv_os_cray=yes
9493 else
9494 ac_cv_os_cray=no
9496 rm -f conftest*
9499 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9500 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9501 if test $ac_cv_os_cray = yes; then
9502 for ac_func in _getb67 GETB67 getb67; do
9503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9517 #define $ac_func innocuous_$ac_func
9519 /* System header to define __stub macros and hopefully few prototypes,
9520 which can conflict with char $ac_func (); below.
9521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9522 <limits.h> exists even on freestanding compilers. */
9524 #ifdef __STDC__
9525 # include <limits.h>
9526 #else
9527 # include <assert.h>
9528 #endif
9530 #undef $ac_func
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9535 #ifdef __cplusplus
9536 extern "C"
9537 #endif
9538 char $ac_func ();
9539 /* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542 #if defined __stub_$ac_func || defined __stub___$ac_func
9543 choke me
9544 #endif
9547 main ()
9549 return $ac_func ();
9551 return 0;
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9556 case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9569 { (case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 eval "$as_ac_var=yes"
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 eval "$as_ac_var=no"
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9599 ac_res=`eval echo '${'$as_ac_var'}'`
9600 { echo "$as_me:$LINENO: result: $ac_res" >&5
9601 echo "${ECHO_T}$ac_res" >&6; }
9602 if test `eval echo '${'$as_ac_var'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define CRAY_STACKSEG_END $ac_func
9606 _ACEOF
9608 break
9611 done
9614 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9615 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9616 if test "${ac_cv_c_stack_direction+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 if test "$cross_compiling" = yes; then
9620 ac_cv_c_stack_direction=0
9621 else
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h. */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 $ac_includes_default
9630 find_stack_direction ()
9632 static char *addr = 0;
9633 auto char dummy;
9634 if (addr == 0)
9636 addr = &dummy;
9637 return find_stack_direction ();
9639 else
9640 return (&dummy > addr) ? 1 : -1;
9644 main ()
9646 return find_stack_direction () < 0;
9648 _ACEOF
9649 rm -f conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_c_stack_direction=1
9670 else
9671 echo "$as_me: program exited with status $ac_status" >&5
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ( exit $ac_status )
9676 ac_cv_c_stack_direction=-1
9678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9683 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9684 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9686 cat >>confdefs.h <<_ACEOF
9687 #define STACK_DIRECTION $ac_cv_c_stack_direction
9688 _ACEOF
9698 ac_header_dirent=no
9699 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9700 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9701 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9702 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 #include <sys/types.h>
9713 #include <$ac_hdr>
9716 main ()
9718 if ((DIR *) 0)
9719 return 0;
9721 return 0;
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (ac_try="$ac_compile"
9726 case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_compile") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 eval "$as_ac_Header=yes"
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 eval "$as_ac_Header=no"
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 ac_res=`eval echo '${'$as_ac_Header'}'`
9769 { echo "$as_me:$LINENO: result: $ac_res" >&5
9770 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9774 _ACEOF
9776 ac_header_dirent=$ac_hdr; break
9779 done
9780 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9781 if test $ac_header_dirent = dirent.h; then
9782 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9783 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9784 if test "${ac_cv_search_opendir+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 ac_func_search_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char opendir ();
9803 main ()
9805 return opendir ();
9807 return 0;
9809 _ACEOF
9810 for ac_lib in '' dir; do
9811 if test -z "$ac_lib"; then
9812 ac_res="none required"
9813 else
9814 ac_res=-l$ac_lib
9815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_search_opendir=$ac_res
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext
9861 if test "${ac_cv_search_opendir+set}" = set; then
9862 break
9864 done
9865 if test "${ac_cv_search_opendir+set}" = set; then
9867 else
9868 ac_cv_search_opendir=no
9870 rm conftest.$ac_ext
9871 LIBS=$ac_func_search_save_LIBS
9873 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9874 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9875 ac_res=$ac_cv_search_opendir
9876 if test "$ac_res" != no; then
9877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9881 else
9882 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9884 if test "${ac_cv_search_opendir+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887 ac_func_search_save_LIBS=$LIBS
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9895 /* Override any GCC internal prototype to avoid an error.
9896 Use char because int might match the return type of a GCC
9897 builtin and then its argument prototype would still apply. */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 char opendir ();
9903 main ()
9905 return opendir ();
9907 return 0;
9909 _ACEOF
9910 for ac_lib in '' x; do
9911 if test -z "$ac_lib"; then
9912 ac_res="none required"
9913 else
9914 ac_res=-l$ac_lib
9915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9919 case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9932 { (case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_try") 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_search_opendir=$ac_res
9952 else
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext
9961 if test "${ac_cv_search_opendir+set}" = set; then
9962 break
9964 done
9965 if test "${ac_cv_search_opendir+set}" = set; then
9967 else
9968 ac_cv_search_opendir=no
9970 rm conftest.$ac_ext
9971 LIBS=$ac_func_search_save_LIBS
9973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9975 ac_res=$ac_cv_search_opendir
9976 if test "$ac_res" != no; then
9977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9983 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9985 if test "${ac_cv_header_stdc+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <stdlib.h>
9995 #include <stdarg.h>
9996 #include <string.h>
9997 #include <float.h>
10000 main ()
10004 return 0;
10006 _ACEOF
10007 rm -f conftest.$ac_objext
10008 if { (ac_try="$ac_compile"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012 esac
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_compile") 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10035 esac
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_try") 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_header_stdc=yes
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_header_stdc=no
10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 if test $ac_cv_header_stdc = yes; then
10052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 #include <string.h>
10061 _ACEOF
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063 $EGREP "memchr" >/dev/null 2>&1; then
10065 else
10066 ac_cv_header_stdc=no
10068 rm -f conftest*
10072 if test $ac_cv_header_stdc = yes; then
10073 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 #include <stdlib.h>
10082 _ACEOF
10083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10084 $EGREP "free" >/dev/null 2>&1; then
10086 else
10087 ac_cv_header_stdc=no
10089 rm -f conftest*
10093 if test $ac_cv_header_stdc = yes; then
10094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10095 if test "$cross_compiling" = yes; then
10097 else
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 #include <ctype.h>
10105 #include <stdlib.h>
10106 #if ((' ' & 0x0FF) == 0x020)
10107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10109 #else
10110 # define ISLOWER(c) \
10111 (('a' <= (c) && (c) <= 'i') \
10112 || ('j' <= (c) && (c) <= 'r') \
10113 || ('s' <= (c) && (c) <= 'z'))
10114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10115 #endif
10117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10119 main ()
10121 int i;
10122 for (i = 0; i < 256; i++)
10123 if (XOR (islower (i), ISLOWER (i))
10124 || toupper (i) != TOUPPER (i))
10125 return 2;
10126 return 0;
10128 _ACEOF
10129 rm -f conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10140 { (case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_try") 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10150 else
10151 echo "$as_me: program exited with status $ac_status" >&5
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ( exit $ac_status )
10156 ac_cv_header_stdc=no
10158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10165 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10166 if test $ac_cv_header_stdc = yes; then
10168 cat >>confdefs.h <<\_ACEOF
10169 #define STDC_HEADERS 1
10170 _ACEOF
10174 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10175 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10176 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 #include <sys/types.h>
10186 #include <sys/wait.h>
10187 #ifndef WEXITSTATUS
10188 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10189 #endif
10190 #ifndef WIFEXITED
10191 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10192 #endif
10195 main ()
10197 int s;
10198 wait (&s);
10199 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10201 return 0;
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest.$ac_objext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_header_sys_wait_h=yes
10239 else
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_header_sys_wait_h=no
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10249 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10250 if test $ac_cv_header_sys_wait_h = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_SYS_WAIT_H 1
10254 _ACEOF
10281 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
10283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 ac_res=`eval echo '${'$as_ac_Header'}'`
10291 { echo "$as_me:$LINENO: result: $ac_res" >&5
10292 echo "${ECHO_T}$ac_res" >&6; }
10293 else
10294 # Is the header compilable?
10295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 $ac_includes_default
10304 #include <$ac_header>
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (ac_try="$ac_compile"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_compile") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_header_compiler=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_header_compiler=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10350 echo "${ECHO_T}$ac_header_compiler" >&6; }
10352 # Is the header present?
10353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 #include <$ac_header>
10362 _ACEOF
10363 if { (ac_try="$ac_cpp conftest.$ac_ext"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } >/dev/null; then
10376 if test -s conftest.err; then
10377 ac_cpp_err=$ac_c_preproc_warn_flag
10378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10379 else
10380 ac_cpp_err=
10382 else
10383 ac_cpp_err=yes
10385 if test -z "$ac_cpp_err"; then
10386 ac_header_preproc=yes
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_header_preproc=no
10394 rm -f conftest.err conftest.$ac_ext
10395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10396 echo "${ECHO_T}$ac_header_preproc" >&6; }
10398 # So? What about this header?
10399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10400 yes:no: )
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10405 ac_header_preproc=yes
10407 no:yes:* )
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10420 ( cat <<\_ASBOX
10421 ## ------------------------------- ##
10422 ## Report this to www.asterisk.org ##
10423 ## ------------------------------- ##
10424 _ASBOX
10425 ) | sed "s/^/$as_me: WARNING: /" >&2
10427 esac
10428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 eval "$as_ac_Header=\$ac_header_preproc"
10435 ac_res=`eval echo '${'$as_ac_Header'}'`
10436 { echo "$as_me:$LINENO: result: $ac_res" >&5
10437 echo "${ECHO_T}$ac_res" >&6; }
10440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10441 cat >>confdefs.h <<_ACEOF
10442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10443 _ACEOF
10447 done
10450 # Check whether --enable-largefile was given.
10451 if test "${enable_largefile+set}" = set; then
10452 enableval=$enable_largefile;
10455 if test "$enable_largefile" != no; then
10457 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10458 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10459 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462 ac_cv_sys_largefile_CC=no
10463 if test "$GCC" != yes; then
10464 ac_save_CC=$CC
10465 while :; do
10466 # IRIX 6.2 and later do not support large files by default,
10467 # so use the C compiler's -n32 option if that helps.
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 #include <sys/types.h>
10475 /* Check that off_t can represent 2**63 - 1 correctly.
10476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10477 since some C++ compilers masquerading as C compilers
10478 incorrectly reject 9223372036854775807. */
10479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10481 && LARGE_OFF_T % 2147483647 == 1)
10482 ? 1 : -1];
10484 main ()
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519 esac
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_try") 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 break
10526 else
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10533 rm -f core conftest.err conftest.$ac_objext
10534 CC="$CC -n32"
10535 rm -f conftest.$ac_objext
10536 if { (ac_try="$ac_compile"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_compile") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_cv_sys_largefile_CC=' -n32'; break
10570 else
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10577 rm -f core conftest.err conftest.$ac_objext
10578 break
10579 done
10580 CC=$ac_save_CC
10581 rm -f conftest.$ac_ext
10584 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10585 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10586 if test "$ac_cv_sys_largefile_CC" != no; then
10587 CC=$CC$ac_cv_sys_largefile_CC
10590 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10591 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10592 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 while :; do
10596 ac_cv_sys_file_offset_bits=no
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 #include <sys/types.h>
10604 /* Check that off_t can represent 2**63 - 1 correctly.
10605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10606 since some C++ compilers masquerading as C compilers
10607 incorrectly reject 9223372036854775807. */
10608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10610 && LARGE_OFF_T % 2147483647 == 1)
10611 ? 1 : -1];
10613 main ()
10617 return 0;
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (ac_try="$ac_compile"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_compile") 2>conftest.er1
10628 ac_status=$?
10629 grep -v '^ *+' conftest.er1 >conftest.err
10630 rm -f conftest.er1
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_try") 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 break
10655 else
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #define _FILE_OFFSET_BITS 64
10670 #include <sys/types.h>
10671 /* Check that off_t can represent 2**63 - 1 correctly.
10672 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10673 since some C++ compilers masquerading as C compilers
10674 incorrectly reject 9223372036854775807. */
10675 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10677 && LARGE_OFF_T % 2147483647 == 1)
10678 ? 1 : -1];
10680 main ()
10684 return 0;
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_compile") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_sys_file_offset_bits=64; break
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 break
10731 done
10733 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10734 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10735 if test "$ac_cv_sys_file_offset_bits" != no; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10739 _ACEOF
10742 rm -f conftest*
10743 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10744 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10745 if test "${ac_cv_sys_large_files+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 while :; do
10749 ac_cv_sys_large_files=no
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <sys/types.h>
10757 /* Check that off_t can represent 2**63 - 1 correctly.
10758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10759 since some C++ compilers masquerading as C compilers
10760 incorrectly reject 9223372036854775807. */
10761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10763 && LARGE_OFF_T % 2147483647 == 1)
10764 ? 1 : -1];
10766 main ()
10770 return 0;
10772 _ACEOF
10773 rm -f conftest.$ac_objext
10774 if { (ac_try="$ac_compile"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_compile") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
10807 break
10808 else
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #define _LARGE_FILES 1
10823 #include <sys/types.h>
10824 /* Check that off_t can represent 2**63 - 1 correctly.
10825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10826 since some C++ compilers masquerading as C compilers
10827 incorrectly reject 9223372036854775807. */
10828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10830 && LARGE_OFF_T % 2147483647 == 1)
10831 ? 1 : -1];
10833 main ()
10837 return 0;
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_sys_large_files=1; break
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 break
10884 done
10886 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10887 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10888 if test "$ac_cv_sys_large_files" != no; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define _LARGE_FILES $ac_cv_sys_large_files
10892 _ACEOF
10895 rm -f conftest*
10899 # Checks for typedefs, structures, and compiler characteristics.
10900 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10901 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10902 if test "${ac_cv_header_stdbool_h+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 #include <stdbool.h>
10913 #ifndef bool
10914 "error: bool is not defined"
10915 #endif
10916 #ifndef false
10917 "error: false is not defined"
10918 #endif
10919 #if false
10920 "error: false is not 0"
10921 #endif
10922 #ifndef true
10923 "error: true is not defined"
10924 #endif
10925 #if true != 1
10926 "error: true is not 1"
10927 #endif
10928 #ifndef __bool_true_false_are_defined
10929 "error: __bool_true_false_are_defined is not defined"
10930 #endif
10932 struct s { _Bool s: 1; _Bool t; } s;
10934 char a[true == 1 ? 1 : -1];
10935 char b[false == 0 ? 1 : -1];
10936 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10937 char d[(bool) 0.5 == true ? 1 : -1];
10938 bool e = &s;
10939 char f[(_Bool) 0.0 == false ? 1 : -1];
10940 char g[true];
10941 char h[sizeof (_Bool)];
10942 char i[sizeof s.t];
10943 enum { j = false, k = true, l = false * true, m = true * 256 };
10944 _Bool n[m];
10945 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10946 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10947 # if defined __xlc__ || defined __GNUC__
10948 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10949 reported by James Lemley on 2005-10-05; see
10950 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10951 This test is not quite right, since xlc is allowed to
10952 reject this program, as the initializer for xlcbug is
10953 not one of the forms that C requires support for.
10954 However, doing the test right would require a runtime
10955 test, and that would make cross-compilation harder.
10956 Let us hope that IBM fixes the xlc bug, and also adds
10957 support for this kind of constant expression. In the
10958 meantime, this test will reject xlc, which is OK, since
10959 our stdbool.h substitute should suffice. We also test
10960 this with GCC, where it should work, to detect more
10961 quickly whether someone messes up the test in the
10962 future. */
10963 char digs[] = "0123456789";
10964 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10965 # endif
10966 /* Catch a bug in an HP-UX C compiler. See
10967 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10968 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10970 _Bool q = true;
10971 _Bool *pq = &q;
10974 main ()
10977 *pq |= q;
10978 *pq |= ! q;
10979 /* Refer to every declared value, to avoid compiler optimizations. */
10980 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10981 + !m + !n + !o + !p + !q + !pq);
10984 return 0;
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002 { (case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_try") 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_cv_header_stdbool_h=yes
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_cv_header_stdbool_h=no
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11032 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11033 { echo "$as_me:$LINENO: checking for _Bool" >&5
11034 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11035 if test "${ac_cv_type__Bool+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 $ac_includes_default
11045 typedef _Bool ac__type_new_;
11047 main ()
11049 if ((ac__type_new_ *) 0)
11050 return 0;
11051 if (sizeof (ac__type_new_))
11052 return 0;
11054 return 0;
11056 _ACEOF
11057 rm -f conftest.$ac_objext
11058 if { (ac_try="$ac_compile"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_compile") 2>conftest.er1
11065 ac_status=$?
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } &&
11071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_type__Bool=yes
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_type__Bool=no
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11102 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11103 if test $ac_cv_type__Bool = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106 #define HAVE__BOOL 1
11107 _ACEOF
11112 if test $ac_cv_header_stdbool_h = yes; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_STDBOOL_H 1
11116 _ACEOF
11120 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11121 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11122 if test "${ac_cv_c_const+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11133 main ()
11135 /* FIXME: Include the comments suggested by Paul. */
11136 #ifndef __cplusplus
11137 /* Ultrix mips cc rejects this. */
11138 typedef int charset[2];
11139 const charset x;
11140 /* SunOS 4.1.1 cc rejects this. */
11141 char const *const *ccp;
11142 char **p;
11143 /* NEC SVR4.0.2 mips cc rejects this. */
11144 struct point {int x, y;};
11145 static struct point const zero = {0,0};
11146 /* AIX XL C 1.02.0.0 rejects this.
11147 It does not let you subtract one const X* pointer from another in
11148 an arm of an if-expression whose if-part is not a constant
11149 expression */
11150 const char *g = "string";
11151 ccp = &g + (g ? g-g : 0);
11152 /* HPUX 7.0 cc rejects these. */
11153 ++ccp;
11154 p = (char**) ccp;
11155 ccp = (char const *const *) p;
11156 { /* SCO 3.2v4 cc rejects this. */
11157 char *t;
11158 char const *s = 0 ? (char *) 0 : (char const *) 0;
11160 *t++ = 0;
11161 if (s) return 0;
11163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11164 int x[] = {25, 17};
11165 const int *foo = &x[0];
11166 ++foo;
11168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11169 typedef const int *iptr;
11170 iptr p = 0;
11171 ++p;
11173 { /* AIX XL C 1.02.0.0 rejects this saying
11174 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11175 struct s { int j; const int *ap[3]; };
11176 struct s *b; b->j = 5;
11178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11179 const int foo = 10;
11180 if (!foo) return 0;
11182 return !x[0] && !zero.x;
11183 #endif
11186 return 0;
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_cv_c_const=yes
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ac_cv_c_const=no
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11234 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11235 if test $ac_cv_c_const = no; then
11237 cat >>confdefs.h <<\_ACEOF
11238 #define const
11239 _ACEOF
11243 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11244 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11245 if test "${ac_cv_type_uid_t+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h. */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <sys/types.h>
11256 _ACEOF
11257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11258 $EGREP "uid_t" >/dev/null 2>&1; then
11259 ac_cv_type_uid_t=yes
11260 else
11261 ac_cv_type_uid_t=no
11263 rm -f conftest*
11266 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11268 if test $ac_cv_type_uid_t = no; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define uid_t int
11272 _ACEOF
11275 cat >>confdefs.h <<\_ACEOF
11276 #define gid_t int
11277 _ACEOF
11281 { echo "$as_me:$LINENO: checking for inline" >&5
11282 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11283 if test "${ac_cv_c_inline+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286 ac_cv_c_inline=no
11287 for ac_kw in inline __inline__ __inline; do
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #ifndef __cplusplus
11295 typedef int foo_t;
11296 static $ac_kw foo_t static_foo () {return 0; }
11297 $ac_kw foo_t foo () {return 0; }
11298 #endif
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_c_inline=$ac_kw
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 test "$ac_cv_c_inline" != no && break
11345 done
11348 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11349 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11352 case $ac_cv_c_inline in
11353 inline | yes) ;;
11355 case $ac_cv_c_inline in
11356 no) ac_val=;;
11357 *) ac_val=$ac_cv_c_inline;;
11358 esac
11359 cat >>confdefs.h <<_ACEOF
11360 #ifndef __cplusplus
11361 #define inline $ac_val
11362 #endif
11363 _ACEOF
11365 esac
11367 { echo "$as_me:$LINENO: checking for mode_t" >&5
11368 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11369 if test "${ac_cv_type_mode_t+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 $ac_includes_default
11379 typedef mode_t ac__type_new_;
11381 main ()
11383 if ((ac__type_new_ *) 0)
11384 return 0;
11385 if (sizeof (ac__type_new_))
11386 return 0;
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_type_mode_t=yes
11426 else
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_type_mode_t=no
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11437 if test $ac_cv_type_mode_t = yes; then
11439 else
11441 cat >>confdefs.h <<_ACEOF
11442 #define mode_t int
11443 _ACEOF
11447 { echo "$as_me:$LINENO: checking for off_t" >&5
11448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11449 if test "${ac_cv_type_off_t+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 typedef off_t ac__type_new_;
11461 main ()
11463 if ((ac__type_new_ *) 0)
11464 return 0;
11465 if (sizeof (ac__type_new_))
11466 return 0;
11468 return 0;
11470 _ACEOF
11471 rm -f conftest.$ac_objext
11472 if { (ac_try="$ac_compile"
11473 case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_compile") 2>conftest.er1
11479 ac_status=$?
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_type_off_t=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_cv_type_off_t=no
11513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11516 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11517 if test $ac_cv_type_off_t = yes; then
11519 else
11521 cat >>confdefs.h <<_ACEOF
11522 #define off_t long int
11523 _ACEOF
11527 { echo "$as_me:$LINENO: checking for pid_t" >&5
11528 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11529 if test "${ac_cv_type_pid_t+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 typedef pid_t ac__type_new_;
11541 main ()
11543 if ((ac__type_new_ *) 0)
11544 return 0;
11545 if (sizeof (ac__type_new_))
11546 return 0;
11548 return 0;
11550 _ACEOF
11551 rm -f conftest.$ac_objext
11552 if { (ac_try="$ac_compile"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_compile") 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest.$ac_objext'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_cv_type_pid_t=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_cv_type_pid_t=no
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11596 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11597 if test $ac_cv_type_pid_t = yes; then
11599 else
11601 cat >>confdefs.h <<_ACEOF
11602 #define pid_t int
11603 _ACEOF
11607 { echo "$as_me:$LINENO: checking for size_t" >&5
11608 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11609 if test "${ac_cv_type_size_t+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11619 typedef size_t ac__type_new_;
11621 main ()
11623 if ((ac__type_new_ *) 0)
11624 return 0;
11625 if (sizeof (ac__type_new_))
11626 return 0;
11628 return 0;
11630 _ACEOF
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_try") 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_cv_type_size_t=yes
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_cv_type_size_t=no
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11676 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11677 if test $ac_cv_type_size_t = yes; then
11679 else
11681 cat >>confdefs.h <<_ACEOF
11682 #define size_t unsigned int
11683 _ACEOF
11687 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11688 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11689 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11700 main ()
11702 static struct stat ac_aggr;
11703 if (ac_aggr.st_blksize)
11704 return 0;
11706 return 0;
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_compile") 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest.$ac_objext'
11734 { (case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_try") 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_member_struct_stat_st_blksize=yes
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 $ac_includes_default
11756 main ()
11758 static struct stat ac_aggr;
11759 if (sizeof ac_aggr.st_blksize)
11760 return 0;
11762 return 0;
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (ac_try="$ac_compile"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_compile") 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_member_struct_stat_st_blksize=yes
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_cv_member_struct_stat_st_blksize=no
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11813 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11814 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11818 _ACEOF
11823 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11824 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11825 if test "${ac_cv_header_time+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <sys/types.h>
11835 #include <sys/time.h>
11836 #include <time.h>
11839 main ()
11841 if ((struct tm *) 0)
11842 return 0;
11844 return 0;
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_header_time=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_cv_header_time=no
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11892 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11893 if test $ac_cv_header_time = yes; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define TIME_WITH_SYS_TIME 1
11897 _ACEOF
11901 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11902 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11903 if test "${ac_cv_struct_tm+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 #include <sys/types.h>
11913 #include <time.h>
11916 main ()
11918 struct tm *tp; tp->tm_sec;
11920 return 0;
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951 esac
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_struct_tm=time.h
11958 else
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_struct_tm=sys/time.h
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11968 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11969 if test $ac_cv_struct_tm = sys/time.h; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define TM_IN_SYS_TIME 1
11973 _ACEOF
11977 { echo "$as_me:$LINENO: checking for working volatile" >&5
11978 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11979 if test "${ac_cv_c_volatile+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11990 main ()
11993 volatile int x;
11994 int * volatile y = (int *) 0;
11995 return !x && !y;
11997 return 0;
11999 _ACEOF
12000 rm -f conftest.$ac_objext
12001 if { (ac_try="$ac_compile"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_compile") 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest.$ac_objext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_c_volatile=yes
12035 else
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_cv_c_volatile=no
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12045 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12046 if test $ac_cv_c_volatile = no; then
12048 cat >>confdefs.h <<\_ACEOF
12049 #define volatile
12050 _ACEOF
12054 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12055 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12056 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
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
12066 typedef ptrdiff_t ac__type_new_;
12068 main ()
12070 if ((ac__type_new_ *) 0)
12071 return 0;
12072 if (sizeof (ac__type_new_))
12073 return 0;
12075 return 0;
12077 _ACEOF
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_compile") 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_type_ptrdiff_t=yes
12113 else
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_cv_type_ptrdiff_t=no
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12123 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12124 if test $ac_cv_type_ptrdiff_t = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_PTRDIFF_T 1
12128 _ACEOF
12134 # Checks for library functions.
12136 for ac_header in unistd.h
12138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 ac_res=`eval echo '${'$as_ac_Header'}'`
12146 { echo "$as_me:$LINENO: result: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12148 else
12149 # Is the header compilable?
12150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 $ac_includes_default
12159 #include <$ac_header>
12160 _ACEOF
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_compile") 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_header_compiler=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_compiler=no
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12205 echo "${ECHO_T}$ac_header_compiler" >&6; }
12207 # Is the header present?
12208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <$ac_header>
12217 _ACEOF
12218 if { (ac_try="$ac_cpp conftest.$ac_ext"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } >/dev/null; then
12231 if test -s conftest.err; then
12232 ac_cpp_err=$ac_c_preproc_warn_flag
12233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12234 else
12235 ac_cpp_err=
12237 else
12238 ac_cpp_err=yes
12240 if test -z "$ac_cpp_err"; then
12241 ac_header_preproc=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_preproc=no
12249 rm -f conftest.err conftest.$ac_ext
12250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12251 echo "${ECHO_T}$ac_header_preproc" >&6; }
12253 # So? What about this header?
12254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12255 yes:no: )
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12260 ac_header_preproc=yes
12262 no:yes:* )
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12275 ( cat <<\_ASBOX
12276 ## ------------------------------- ##
12277 ## Report this to www.asterisk.org ##
12278 ## ------------------------------- ##
12279 _ASBOX
12280 ) | sed "s/^/$as_me: WARNING: /" >&2
12282 esac
12283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 eval "$as_ac_Header=\$ac_header_preproc"
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12298 _ACEOF
12302 done
12304 { echo "$as_me:$LINENO: checking for working chown" >&5
12305 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12306 if test "${ac_cv_func_chown_works+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 if test "$cross_compiling" = yes; then
12310 ac_cv_func_chown_works=no
12311 else
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 #include <fcntl.h>
12322 main ()
12324 char *f = "conftest.chown";
12325 struct stat before, after;
12327 if (creat (f, 0600) < 0)
12328 return 1;
12329 if (stat (f, &before) < 0)
12330 return 1;
12331 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12332 return 1;
12333 if (stat (f, &after) < 0)
12334 return 1;
12335 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12338 return 0;
12340 _ACEOF
12341 rm -f conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12352 { (case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_try") 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_func_chown_works=yes
12362 else
12363 echo "$as_me: program exited with status $ac_status" >&5
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ( exit $ac_status )
12368 ac_cv_func_chown_works=no
12370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12374 rm -f conftest.chown
12377 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12378 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12379 if test $ac_cv_func_chown_works = yes; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_CHOWN 1
12383 _ACEOF
12387 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12388 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12389 if test "${ac_cv_func_closedir_void+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 if test "$cross_compiling" = yes; then
12393 ac_cv_func_closedir_void=yes
12394 else
12395 cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h. */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12402 #include <$ac_header_dirent>
12403 #ifndef __cplusplus
12404 int closedir ();
12405 #endif
12408 main ()
12410 return closedir (opendir (".")) != 0;
12412 return 0;
12414 _ACEOF
12415 rm -f conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_func_closedir_void=no
12436 else
12437 echo "$as_me: program exited with status $ac_status" >&5
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ( exit $ac_status )
12442 ac_cv_func_closedir_void=yes
12444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12450 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12451 if test $ac_cv_func_closedir_void = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define CLOSEDIR_VOID 1
12455 _ACEOF
12459 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12460 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12461 if test "${ac_cv_lib_error_at_line+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 $ac_includes_default
12472 main ()
12474 error_at_line (0, 0, "", 0, "");
12476 return 0;
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest$ac_exeext'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_lib_error_at_line=yes
12514 else
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_cv_lib_error_at_line=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12524 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12525 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12526 if test $ac_cv_lib_error_at_line = no; then
12527 case " $LIBOBJS " in
12528 *" error.$ac_objext "* ) ;;
12529 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12531 esac
12536 for ac_header in vfork.h
12538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 ac_res=`eval echo '${'$as_ac_Header'}'`
12546 { echo "$as_me:$LINENO: result: $ac_res" >&5
12547 echo "${ECHO_T}$ac_res" >&6; }
12548 else
12549 # Is the header compilable?
12550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12559 #include <$ac_header>
12560 _ACEOF
12561 rm -f conftest.$ac_objext
12562 if { (ac_try="$ac_compile"
12563 case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566 esac
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_compile") 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_header_compiler=yes
12596 else
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_header_compiler=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12605 echo "${ECHO_T}$ac_header_compiler" >&6; }
12607 # Is the header present?
12608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <$ac_header>
12617 _ACEOF
12618 if { (ac_try="$ac_cpp conftest.$ac_ext"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } >/dev/null; then
12631 if test -s conftest.err; then
12632 ac_cpp_err=$ac_c_preproc_warn_flag
12633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12634 else
12635 ac_cpp_err=
12637 else
12638 ac_cpp_err=yes
12640 if test -z "$ac_cpp_err"; then
12641 ac_header_preproc=yes
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_preproc=no
12649 rm -f conftest.err conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12651 echo "${ECHO_T}$ac_header_preproc" >&6; }
12653 # So? What about this header?
12654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12655 yes:no: )
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12660 ac_header_preproc=yes
12662 no:yes:* )
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12675 ( cat <<\_ASBOX
12676 ## ------------------------------- ##
12677 ## Report this to www.asterisk.org ##
12678 ## ------------------------------- ##
12679 _ASBOX
12680 ) | sed "s/^/$as_me: WARNING: /" >&2
12682 esac
12683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 eval "$as_ac_Header=\$ac_header_preproc"
12690 ac_res=`eval echo '${'$as_ac_Header'}'`
12691 { echo "$as_me:$LINENO: result: $ac_res" >&5
12692 echo "${ECHO_T}$ac_res" >&6; }
12695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12696 cat >>confdefs.h <<_ACEOF
12697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12698 _ACEOF
12702 done
12706 for ac_func in fork vfork
12708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h. */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722 #define $ac_func innocuous_$ac_func
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12729 #ifdef __STDC__
12730 # include <limits.h>
12731 #else
12732 # include <assert.h>
12733 #endif
12735 #undef $ac_func
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12740 #ifdef __cplusplus
12741 extern "C"
12742 #endif
12743 char $ac_func ();
12744 /* The GNU C library defines this for functions which it implements
12745 to always fail with ENOSYS. Some functions are actually named
12746 something starting with __ and the normal name is an alias. */
12747 #if defined __stub_$ac_func || defined __stub___$ac_func
12748 choke me
12749 #endif
12752 main ()
12754 return $ac_func ();
12756 return 0;
12758 _ACEOF
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (ac_try="$ac_link"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 eval "$as_ac_var=yes"
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 eval "$as_ac_var=no"
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12804 ac_res=`eval echo '${'$as_ac_var'}'`
12805 { echo "$as_me:$LINENO: result: $ac_res" >&5
12806 echo "${ECHO_T}$ac_res" >&6; }
12807 if test `eval echo '${'$as_ac_var'}'` = yes; then
12808 cat >>confdefs.h <<_ACEOF
12809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12810 _ACEOF
12813 done
12815 if test "x$ac_cv_func_fork" = xyes; then
12816 { echo "$as_me:$LINENO: checking for working fork" >&5
12817 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12818 if test "${ac_cv_func_fork_works+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 if test "$cross_compiling" = yes; then
12822 ac_cv_func_fork_works=cross
12823 else
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h. */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12832 main ()
12835 /* By Ruediger Kuhlmann. */
12836 return fork () < 0;
12839 return 0;
12841 _ACEOF
12842 rm -f conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_cv_func_fork_works=yes
12863 else
12864 echo "$as_me: program exited with status $ac_status" >&5
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ( exit $ac_status )
12869 ac_cv_func_fork_works=no
12871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12876 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12877 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12879 else
12880 ac_cv_func_fork_works=$ac_cv_func_fork
12882 if test "x$ac_cv_func_fork_works" = xcross; then
12883 case $host in
12884 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12885 # Override, as these systems have only a dummy fork() stub
12886 ac_cv_func_fork_works=no
12889 ac_cv_func_fork_works=yes
12891 esac
12892 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12893 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12895 ac_cv_func_vfork_works=$ac_cv_func_vfork
12896 if test "x$ac_cv_func_vfork" = xyes; then
12897 { echo "$as_me:$LINENO: checking for working vfork" >&5
12898 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12899 if test "${ac_cv_func_vfork_works+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902 if test "$cross_compiling" = yes; then
12903 ac_cv_func_vfork_works=cross
12904 else
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 /* Thanks to Paul Eggert for this test. */
12912 $ac_includes_default
12913 #include <sys/wait.h>
12914 #if HAVE_VFORK_H
12915 # include <vfork.h>
12916 #endif
12917 /* On some sparc systems, changes by the child to local and incoming
12918 argument registers are propagated back to the parent. The compiler
12919 is told about this with #include <vfork.h>, but some compilers
12920 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12921 static variable whose address is put into a register that is
12922 clobbered by the vfork. */
12923 static void
12924 #ifdef __cplusplus
12925 sparc_address_test (int arg)
12926 # else
12927 sparc_address_test (arg) int arg;
12928 #endif
12930 static pid_t child;
12931 if (!child) {
12932 child = vfork ();
12933 if (child < 0) {
12934 perror ("vfork");
12935 _exit(2);
12937 if (!child) {
12938 arg = getpid();
12939 write(-1, "", 0);
12940 _exit (arg);
12946 main ()
12948 pid_t parent = getpid ();
12949 pid_t child;
12951 sparc_address_test (0);
12953 child = vfork ();
12955 if (child == 0) {
12956 /* Here is another test for sparc vfork register problems. This
12957 test uses lots of local variables, at least as many local
12958 variables as main has allocated so far including compiler
12959 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12960 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12961 reuse the register of parent for one of the local variables,
12962 since it will think that parent can't possibly be used any more
12963 in this routine. Assigning to the local variable will thus
12964 munge parent in the parent process. */
12965 pid_t
12966 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12967 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12968 /* Convince the compiler that p..p7 are live; otherwise, it might
12969 use the same hardware register for all 8 local variables. */
12970 if (p != p1 || p != p2 || p != p3 || p != p4
12971 || p != p5 || p != p6 || p != p7)
12972 _exit(1);
12974 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12975 from child file descriptors. If the child closes a descriptor
12976 before it execs or exits, this munges the parent's descriptor
12977 as well. Test for this by closing stdout in the child. */
12978 _exit(close(fileno(stdout)) != 0);
12979 } else {
12980 int status;
12981 struct stat st;
12983 while (wait(&status) != child)
12985 return (
12986 /* Was there some problem with vforking? */
12987 child < 0
12989 /* Did the child fail? (This shouldn't happen.) */
12990 || status
12992 /* Did the vfork/compiler bug occur? */
12993 || parent != getpid()
12995 /* Did the file descriptor bug occur? */
12996 || fstat(fileno(stdout), &st) != 0
13000 _ACEOF
13001 rm -f conftest$ac_exeext
13002 if { (ac_try="$ac_link"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_link") 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13012 { (case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_try") 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 ac_cv_func_vfork_works=yes
13022 else
13023 echo "$as_me: program exited with status $ac_status" >&5
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ( exit $ac_status )
13028 ac_cv_func_vfork_works=no
13030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13036 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
13039 if test "x$ac_cv_func_fork_works" = xcross; then
13040 ac_cv_func_vfork_works=$ac_cv_func_vfork
13041 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13042 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13045 if test "x$ac_cv_func_vfork_works" = xyes; then
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_WORKING_VFORK 1
13049 _ACEOF
13051 else
13053 cat >>confdefs.h <<\_ACEOF
13054 #define vfork fork
13055 _ACEOF
13058 if test "x$ac_cv_func_fork_works" = xyes; then
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_WORKING_FORK 1
13062 _ACEOF
13066 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13067 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
13068 if test "${ac_cv_sys_largefile_source+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 while :; do
13072 ac_cv_sys_largefile_source=no
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h. */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <stdio.h>
13081 main ()
13083 return !fseeko;
13085 return 0;
13087 _ACEOF
13088 rm -f conftest.$ac_objext
13089 if { (ac_try="$ac_compile"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_compile") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116 esac
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 break
13123 else
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #define _LARGEFILE_SOURCE 1
13138 #include <stdio.h>
13140 main ()
13142 return !fseeko;
13144 return 0;
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13162 { (case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_try") 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 ac_cv_sys_largefile_source=1; break
13182 else
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190 break
13191 done
13193 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13194 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
13195 if test "$ac_cv_sys_largefile_source" != no; then
13197 cat >>confdefs.h <<_ACEOF
13198 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13199 _ACEOF
13202 rm -f conftest*
13204 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13205 # in glibc 2.1.3, but that breaks too many other things.
13206 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13207 { echo "$as_me:$LINENO: checking for fseeko" >&5
13208 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
13209 if test "${ac_cv_func_fseeko+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <stdio.h>
13220 main ()
13222 return fseeko && fseeko (stdin, 0, 0);
13224 return 0;
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232 esac
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_link") 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest$ac_exeext'
13252 { (case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255 esac
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_try") 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_func_fseeko=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_cv_func_fseeko=no
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13272 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13273 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
13274 if test $ac_cv_func_fseeko = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_FSEEKO 1
13278 _ACEOF
13282 if test $ac_cv_c_compiler_gnu = yes; then
13283 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13284 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
13285 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 ac_pattern="Autoconf.*'x'"
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 #include <sgtty.h>
13296 Autoconf TIOCGETP
13297 _ACEOF
13298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13299 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13300 ac_cv_prog_gcc_traditional=yes
13301 else
13302 ac_cv_prog_gcc_traditional=no
13304 rm -f conftest*
13307 if test $ac_cv_prog_gcc_traditional = no; then
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 #include <termio.h>
13315 Autoconf TCGETA
13316 _ACEOF
13317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13318 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13319 ac_cv_prog_gcc_traditional=yes
13321 rm -f conftest*
13325 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13326 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13327 if test $ac_cv_prog_gcc_traditional = yes; then
13328 CC="$CC -traditional"
13332 # XXX: these are commented out until we determine whether it matters if our malloc()
13333 # acts exactly like glibc's or not
13334 # AC_FUNC_MALLOC
13335 # AC_FUNC_REALLOC
13336 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13337 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13338 if test "${ac_cv_func_memcmp_working+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341 if test "$cross_compiling" = yes; then
13342 ac_cv_func_memcmp_working=no
13343 else
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 $ac_includes_default
13352 main ()
13355 /* Some versions of memcmp are not 8-bit clean. */
13356 char c0 = '\100', c1 = '\200', c2 = '\201';
13357 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13358 return 1;
13360 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13361 or more and with at least one buffer not starting on a 4-byte boundary.
13362 William Lewis provided this test program. */
13364 char foo[21];
13365 char bar[21];
13366 int i;
13367 for (i = 0; i < 4; i++)
13369 char *a = foo + i;
13370 char *b = bar + i;
13371 strcpy (a, "--------01111111");
13372 strcpy (b, "--------10000000");
13373 if (memcmp (a, b, 16) >= 0)
13374 return 1;
13376 return 0;
13380 return 0;
13382 _ACEOF
13383 rm -f conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_func_memcmp_working=yes
13404 else
13405 echo "$as_me: program exited with status $ac_status" >&5
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ( exit $ac_status )
13410 ac_cv_func_memcmp_working=no
13412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13417 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13418 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13419 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13420 *" memcmp.$ac_objext "* ) ;;
13421 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13423 esac
13429 for ac_header in stdlib.h sys/time.h unistd.h
13431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_res=`eval echo '${'$as_ac_Header'}'`
13439 { echo "$as_me:$LINENO: result: $ac_res" >&5
13440 echo "${ECHO_T}$ac_res" >&6; }
13441 else
13442 # Is the header compilable?
13443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13445 cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h. */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13452 #include <$ac_header>
13453 _ACEOF
13454 rm -f conftest.$ac_objext
13455 if { (ac_try="$ac_compile"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_compile") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13469 { (case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_try") 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_header_compiler=yes
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13493 ac_header_compiler=no
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13498 echo "${ECHO_T}$ac_header_compiler" >&6; }
13500 # Is the header present?
13501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 #include <$ac_header>
13510 _ACEOF
13511 if { (ac_try="$ac_cpp conftest.$ac_ext"
13512 case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515 esac
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } >/dev/null; then
13524 if test -s conftest.err; then
13525 ac_cpp_err=$ac_c_preproc_warn_flag
13526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13527 else
13528 ac_cpp_err=
13530 else
13531 ac_cpp_err=yes
13533 if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13542 rm -f conftest.err conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13544 echo "${ECHO_T}$ac_header_preproc" >&6; }
13546 # So? What about this header?
13547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13548 yes:no: )
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13553 ac_header_preproc=yes
13555 no:yes:* )
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13568 ( cat <<\_ASBOX
13569 ## ------------------------------- ##
13570 ## Report this to www.asterisk.org ##
13571 ## ------------------------------- ##
13572 _ASBOX
13573 ) | sed "s/^/$as_me: WARNING: /" >&2
13575 esac
13576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 eval "$as_ac_Header=\$ac_header_preproc"
13583 ac_res=`eval echo '${'$as_ac_Header'}'`
13584 { echo "$as_me:$LINENO: result: $ac_res" >&5
13585 echo "${ECHO_T}$ac_res" >&6; }
13588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591 _ACEOF
13595 done
13598 for ac_func in alarm
13600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13614 #define $ac_func innocuous_$ac_func
13616 /* System header to define __stub macros and hopefully few prototypes,
13617 which can conflict with char $ac_func (); below.
13618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13619 <limits.h> exists even on freestanding compilers. */
13621 #ifdef __STDC__
13622 # include <limits.h>
13623 #else
13624 # include <assert.h>
13625 #endif
13627 #undef $ac_func
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 char $ac_func ();
13636 /* The GNU C library defines this for functions which it implements
13637 to always fail with ENOSYS. Some functions are actually named
13638 something starting with __ and the normal name is an alias. */
13639 #if defined __stub_$ac_func || defined __stub___$ac_func
13640 choke me
13641 #endif
13644 main ()
13646 return $ac_func ();
13648 return 0;
13650 _ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (ac_try="$ac_link"
13653 case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_link") 2>conftest.er1
13659 ac_status=$?
13660 grep -v '^ *+' conftest.er1 >conftest.err
13661 rm -f conftest.er1
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666 { (case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_try") 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 eval "$as_ac_var=yes"
13686 else
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 eval "$as_ac_var=no"
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13696 ac_res=`eval echo '${'$as_ac_var'}'`
13697 { echo "$as_me:$LINENO: result: $ac_res" >&5
13698 echo "${ECHO_T}$ac_res" >&6; }
13699 if test `eval echo '${'$as_ac_var'}'` = yes; then
13700 cat >>confdefs.h <<_ACEOF
13701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13702 _ACEOF
13705 done
13707 { echo "$as_me:$LINENO: checking for working mktime" >&5
13708 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
13709 if test "${ac_cv_func_working_mktime+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 if test "$cross_compiling" = yes; then
13713 ac_cv_func_working_mktime=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 /* Test program from Paul Eggert and Tony Leneis. */
13722 #if TIME_WITH_SYS_TIME
13723 # include <sys/time.h>
13724 # include <time.h>
13725 #else
13726 # if HAVE_SYS_TIME_H
13727 # include <sys/time.h>
13728 # else
13729 # include <time.h>
13730 # endif
13731 #endif
13733 #if HAVE_STDLIB_H
13734 # include <stdlib.h>
13735 #endif
13737 #if HAVE_UNISTD_H
13738 # include <unistd.h>
13739 #endif
13741 #if !HAVE_ALARM
13742 # define alarm(X) /* empty */
13743 #endif
13745 /* Work around redefinition to rpl_putenv by other config tests. */
13746 #undef putenv
13748 static time_t time_t_max;
13749 static time_t time_t_min;
13751 /* Values we'll use to set the TZ environment variable. */
13752 static char *tz_strings[] = {
13753 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13754 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13756 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13758 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13759 Based on a problem report from Andreas Jaeger. */
13760 static int
13761 spring_forward_gap ()
13763 /* glibc (up to about 1998-10-07) failed this test. */
13764 struct tm tm;
13766 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13767 instead of "TZ=America/Vancouver" in order to detect the bug even
13768 on systems that don't support the Olson extension, or don't have the
13769 full zoneinfo tables installed. */
13770 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13772 tm.tm_year = 98;
13773 tm.tm_mon = 3;
13774 tm.tm_mday = 5;
13775 tm.tm_hour = 2;
13776 tm.tm_min = 0;
13777 tm.tm_sec = 0;
13778 tm.tm_isdst = -1;
13779 return mktime (&tm) != (time_t) -1;
13782 static int
13783 mktime_test1 (now)
13784 time_t now;
13786 struct tm *lt;
13787 return ! (lt = localtime (&now)) || mktime (lt) == now;
13790 static int
13791 mktime_test (now)
13792 time_t now;
13794 return (mktime_test1 (now)
13795 && mktime_test1 ((time_t) (time_t_max - now))
13796 && mktime_test1 ((time_t) (time_t_min + now)));
13799 static int
13800 irix_6_4_bug ()
13802 /* Based on code from Ariel Faigon. */
13803 struct tm tm;
13804 tm.tm_year = 96;
13805 tm.tm_mon = 3;
13806 tm.tm_mday = 0;
13807 tm.tm_hour = 0;
13808 tm.tm_min = 0;
13809 tm.tm_sec = 0;
13810 tm.tm_isdst = -1;
13811 mktime (&tm);
13812 return tm.tm_mon == 2 && tm.tm_mday == 31;
13815 static int
13816 bigtime_test (j)
13817 int j;
13819 struct tm tm;
13820 time_t now;
13821 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13822 now = mktime (&tm);
13823 if (now != (time_t) -1)
13825 struct tm *lt = localtime (&now);
13826 if (! (lt
13827 && lt->tm_year == tm.tm_year
13828 && lt->tm_mon == tm.tm_mon
13829 && lt->tm_mday == tm.tm_mday
13830 && lt->tm_hour == tm.tm_hour
13831 && lt->tm_min == tm.tm_min
13832 && lt->tm_sec == tm.tm_sec
13833 && lt->tm_yday == tm.tm_yday
13834 && lt->tm_wday == tm.tm_wday
13835 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13836 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13837 return 0;
13839 return 1;
13843 main ()
13845 time_t t, delta;
13846 int i, j;
13848 /* This test makes some buggy mktime implementations loop.
13849 Give up after 60 seconds; a mktime slower than that
13850 isn't worth using anyway. */
13851 alarm (60);
13853 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13854 continue;
13855 time_t_max--;
13856 if ((time_t) -1 < 0)
13857 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13858 continue;
13859 delta = time_t_max / 997; /* a suitable prime number */
13860 for (i = 0; i < N_STRINGS; i++)
13862 if (tz_strings[i])
13863 putenv (tz_strings[i]);
13865 for (t = 0; t <= time_t_max - delta; t += delta)
13866 if (! mktime_test (t))
13867 return 1;
13868 if (! (mktime_test ((time_t) 1)
13869 && mktime_test ((time_t) (60 * 60))
13870 && mktime_test ((time_t) (60 * 60 * 24))))
13871 return 1;
13873 for (j = 1; 0 < j; j *= 2)
13874 if (! bigtime_test (j))
13875 return 1;
13876 if (! bigtime_test (j - 1))
13877 return 1;
13879 return ! (irix_6_4_bug () && spring_forward_gap ());
13881 _ACEOF
13882 rm -f conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_func_working_mktime=yes
13903 else
13904 echo "$as_me: program exited with status $ac_status" >&5
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ( exit $ac_status )
13909 ac_cv_func_working_mktime=no
13911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13916 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13917 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
13918 if test $ac_cv_func_working_mktime = no; then
13919 case " $LIBOBJS " in
13920 *" mktime.$ac_objext "* ) ;;
13921 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13923 esac
13929 for ac_header in stdlib.h unistd.h
13931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 ac_res=`eval echo '${'$as_ac_Header'}'`
13939 { echo "$as_me:$LINENO: result: $ac_res" >&5
13940 echo "${ECHO_T}$ac_res" >&6; }
13941 else
13942 # Is the header compilable?
13943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13952 #include <$ac_header>
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (ac_try="$ac_compile"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_compile") 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_header_compiler=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <$ac_header>
14010 _ACEOF
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev/null; then
14024 if test -s conftest.err; then
14025 ac_cpp_err=$ac_c_preproc_warn_flag
14026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14027 else
14028 ac_cpp_err=
14030 else
14031 ac_cpp_err=yes
14033 if test -z "$ac_cpp_err"; then
14034 ac_header_preproc=yes
14035 else
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_header_preproc=no
14042 rm -f conftest.err conftest.$ac_ext
14043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14044 echo "${ECHO_T}$ac_header_preproc" >&6; }
14046 # So? What about this header?
14047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14048 yes:no: )
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14053 ac_header_preproc=yes
14055 no:yes:* )
14056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14068 ( cat <<\_ASBOX
14069 ## ------------------------------- ##
14070 ## Report this to www.asterisk.org ##
14071 ## ------------------------------- ##
14072 _ASBOX
14073 ) | sed "s/^/$as_me: WARNING: /" >&2
14075 esac
14076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 eval "$as_ac_Header=\$ac_header_preproc"
14083 ac_res=`eval echo '${'$as_ac_Header'}'`
14084 { echo "$as_me:$LINENO: result: $ac_res" >&5
14085 echo "${ECHO_T}$ac_res" >&6; }
14088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14089 cat >>confdefs.h <<_ACEOF
14090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14091 _ACEOF
14095 done
14098 for ac_func in getpagesize
14100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h. */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14114 #define $ac_func innocuous_$ac_func
14116 /* System header to define __stub macros and hopefully few prototypes,
14117 which can conflict with char $ac_func (); below.
14118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14119 <limits.h> exists even on freestanding compilers. */
14121 #ifdef __STDC__
14122 # include <limits.h>
14123 #else
14124 # include <assert.h>
14125 #endif
14127 #undef $ac_func
14129 /* Override any GCC internal prototype to avoid an error.
14130 Use char because int might match the return type of a GCC
14131 builtin and then its argument prototype would still apply. */
14132 #ifdef __cplusplus
14133 extern "C"
14134 #endif
14135 char $ac_func ();
14136 /* The GNU C library defines this for functions which it implements
14137 to always fail with ENOSYS. Some functions are actually named
14138 something starting with __ and the normal name is an alias. */
14139 #if defined __stub_$ac_func || defined __stub___$ac_func
14140 choke me
14141 #endif
14144 main ()
14146 return $ac_func ();
14148 return 0;
14150 _ACEOF
14151 rm -f conftest.$ac_objext conftest$ac_exeext
14152 if { (ac_try="$ac_link"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_link") 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest$ac_exeext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 eval "$as_ac_var=yes"
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 eval "$as_ac_var=no"
14193 rm -f core conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14196 ac_res=`eval echo '${'$as_ac_var'}'`
14197 { echo "$as_me:$LINENO: result: $ac_res" >&5
14198 echo "${ECHO_T}$ac_res" >&6; }
14199 if test `eval echo '${'$as_ac_var'}'` = yes; then
14200 cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14202 _ACEOF
14205 done
14207 { echo "$as_me:$LINENO: checking for working mmap" >&5
14208 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
14209 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212 if test "$cross_compiling" = yes; then
14213 ac_cv_func_mmap_fixed_mapped=no
14214 else
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 $ac_includes_default
14222 /* malloc might have been renamed as rpl_malloc. */
14223 #undef malloc
14225 /* Thanks to Mike Haertel and Jim Avera for this test.
14226 Here is a matrix of mmap possibilities:
14227 mmap private not fixed
14228 mmap private fixed at somewhere currently unmapped
14229 mmap private fixed at somewhere already mapped
14230 mmap shared not fixed
14231 mmap shared fixed at somewhere currently unmapped
14232 mmap shared fixed at somewhere already mapped
14233 For private mappings, we should verify that changes cannot be read()
14234 back from the file, nor mmap's back from the file at a different
14235 address. (There have been systems where private was not correctly
14236 implemented like the infamous i386 svr4.0, and systems where the
14237 VM page cache was not coherent with the file system buffer cache
14238 like early versions of FreeBSD and possibly contemporary NetBSD.)
14239 For shared mappings, we should conversely verify that changes get
14240 propagated back to all the places they're supposed to be.
14242 Grep wants private fixed already mapped.
14243 The main things grep needs to know about mmap are:
14244 * does it exist and is it safe to write into the mmap'd area
14245 * how to use it (BSD variants) */
14247 #include <fcntl.h>
14248 #include <sys/mman.h>
14250 #if !STDC_HEADERS && !HAVE_STDLIB_H
14251 char *malloc ();
14252 #endif
14254 /* This mess was copied from the GNU getpagesize.h. */
14255 #if !HAVE_GETPAGESIZE
14256 /* Assume that all systems that can run configure have sys/param.h. */
14257 # if !HAVE_SYS_PARAM_H
14258 # define HAVE_SYS_PARAM_H 1
14259 # endif
14261 # ifdef _SC_PAGESIZE
14262 # define getpagesize() sysconf(_SC_PAGESIZE)
14263 # else /* no _SC_PAGESIZE */
14264 # if HAVE_SYS_PARAM_H
14265 # include <sys/param.h>
14266 # ifdef EXEC_PAGESIZE
14267 # define getpagesize() EXEC_PAGESIZE
14268 # else /* no EXEC_PAGESIZE */
14269 # ifdef NBPG
14270 # define getpagesize() NBPG * CLSIZE
14271 # ifndef CLSIZE
14272 # define CLSIZE 1
14273 # endif /* no CLSIZE */
14274 # else /* no NBPG */
14275 # ifdef NBPC
14276 # define getpagesize() NBPC
14277 # else /* no NBPC */
14278 # ifdef PAGESIZE
14279 # define getpagesize() PAGESIZE
14280 # endif /* PAGESIZE */
14281 # endif /* no NBPC */
14282 # endif /* no NBPG */
14283 # endif /* no EXEC_PAGESIZE */
14284 # else /* no HAVE_SYS_PARAM_H */
14285 # define getpagesize() 8192 /* punt totally */
14286 # endif /* no HAVE_SYS_PARAM_H */
14287 # endif /* no _SC_PAGESIZE */
14289 #endif /* no HAVE_GETPAGESIZE */
14292 main ()
14294 char *data, *data2, *data3;
14295 int i, pagesize;
14296 int fd;
14298 pagesize = getpagesize ();
14300 /* First, make a file with some known garbage in it. */
14301 data = (char *) malloc (pagesize);
14302 if (!data)
14303 return 1;
14304 for (i = 0; i < pagesize; ++i)
14305 *(data + i) = rand ();
14306 umask (0);
14307 fd = creat ("conftest.mmap", 0600);
14308 if (fd < 0)
14309 return 1;
14310 if (write (fd, data, pagesize) != pagesize)
14311 return 1;
14312 close (fd);
14314 /* Next, try to mmap the file at a fixed address which already has
14315 something else allocated at it. If we can, also make sure that
14316 we see the same garbage. */
14317 fd = open ("conftest.mmap", O_RDWR);
14318 if (fd < 0)
14319 return 1;
14320 data2 = (char *) malloc (2 * pagesize);
14321 if (!data2)
14322 return 1;
14323 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14324 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14325 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14326 return 1;
14327 for (i = 0; i < pagesize; ++i)
14328 if (*(data + i) != *(data2 + i))
14329 return 1;
14331 /* Finally, make sure that changes to the mapped area do not
14332 percolate back to the file as seen by read(). (This is a bug on
14333 some variants of i386 svr4.0.) */
14334 for (i = 0; i < pagesize; ++i)
14335 *(data2 + i) = *(data2 + i) + 1;
14336 data3 = (char *) malloc (pagesize);
14337 if (!data3)
14338 return 1;
14339 if (read (fd, data3, pagesize) != pagesize)
14340 return 1;
14341 for (i = 0; i < pagesize; ++i)
14342 if (*(data + i) != *(data3 + i))
14343 return 1;
14344 close (fd);
14345 return 0;
14347 _ACEOF
14348 rm -f conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_func_mmap_fixed_mapped=yes
14369 else
14370 echo "$as_me: program exited with status $ac_status" >&5
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ( exit $ac_status )
14375 ac_cv_func_mmap_fixed_mapped=no
14377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14382 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14383 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
14384 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define HAVE_MMAP 1
14388 _ACEOF
14391 rm -f conftest.mmap
14395 for ac_header in sys/select.h sys/socket.h
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 ac_res=`eval echo '${'$as_ac_Header'}'`
14405 { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 else
14408 # Is the header compilable?
14409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h. */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14417 $ac_includes_default
14418 #include <$ac_header>
14419 _ACEOF
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_header_compiler=yes
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_header_compiler=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14464 echo "${ECHO_T}$ac_header_compiler" >&6; }
14466 # Is the header present?
14467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h. */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 #include <$ac_header>
14476 _ACEOF
14477 if { (ac_try="$ac_cpp conftest.$ac_ext"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } >/dev/null; then
14490 if test -s conftest.err; then
14491 ac_cpp_err=$ac_c_preproc_warn_flag
14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14493 else
14494 ac_cpp_err=
14496 else
14497 ac_cpp_err=yes
14499 if test -z "$ac_cpp_err"; then
14500 ac_header_preproc=yes
14501 else
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_preproc=no
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14512 # So? What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14514 yes:no: )
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519 ac_header_preproc=yes
14521 no:yes:* )
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14534 ( cat <<\_ASBOX
14535 ## ------------------------------- ##
14536 ## Report this to www.asterisk.org ##
14537 ## ------------------------------- ##
14538 _ASBOX
14539 ) | sed "s/^/$as_me: WARNING: /" >&2
14541 esac
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547 eval "$as_ac_Header=\$ac_header_preproc"
14549 ac_res=`eval echo '${'$as_ac_Header'}'`
14550 { echo "$as_me:$LINENO: result: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14557 _ACEOF
14561 done
14563 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
14564 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
14565 if test "${ac_cv_func_select_args+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14569 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14570 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 #if HAVE_SYS_SELECT_H
14579 # include <sys/select.h>
14580 #endif
14581 #if HAVE_SYS_SOCKET_H
14582 # include <sys/socket.h>
14583 #endif
14586 main ()
14588 extern int select ($ac_arg1,
14589 $ac_arg234, $ac_arg234, $ac_arg234,
14590 $ac_arg5);
14592 return 0;
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 done
14639 done
14640 done
14641 # Provide a safe default value.
14642 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14645 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14646 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
14647 ac_save_IFS=$IFS; IFS=','
14648 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14649 IFS=$ac_save_IFS
14650 shift
14652 cat >>confdefs.h <<_ACEOF
14653 #define SELECT_TYPE_ARG1 $1
14654 _ACEOF
14657 cat >>confdefs.h <<_ACEOF
14658 #define SELECT_TYPE_ARG234 ($2)
14659 _ACEOF
14662 cat >>confdefs.h <<_ACEOF
14663 #define SELECT_TYPE_ARG5 ($3)
14664 _ACEOF
14666 rm -f conftest*
14668 { echo "$as_me:$LINENO: checking for function prototypes" >&5
14669 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
14670 if test "$ac_cv_prog_cc_c89" != no; then
14671 { echo "$as_me:$LINENO: result: yes" >&5
14672 echo "${ECHO_T}yes" >&6; }
14674 cat >>confdefs.h <<\_ACEOF
14675 #define PROTOTYPES 1
14676 _ACEOF
14679 cat >>confdefs.h <<\_ACEOF
14680 #define __PROTOTYPES 1
14681 _ACEOF
14683 else
14684 { echo "$as_me:$LINENO: result: no" >&5
14685 echo "${ECHO_T}no" >&6; }
14688 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
14689 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
14690 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693 ac_cv_func_setvbuf_reversed=no
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 #include <stdio.h>
14701 # if PROTOTYPES
14702 int (setvbuf) (FILE *, int, char *, size_t);
14703 # endif
14705 main ()
14707 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
14709 return 0;
14711 _ACEOF
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (ac_try="$ac_link"
14714 case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_link") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 #include <stdio.h>
14753 # if PROTOTYPES
14754 int (setvbuf) (FILE *, int, char *, size_t);
14755 # endif
14757 main ()
14759 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
14761 return 0;
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 # It compiles and links either way, so it must not be declared
14799 # with a prototype and most likely this is a K&R C compiler.
14800 # Try running it.
14801 if test "$cross_compiling" = yes; then
14802 : # Assume setvbuf is not reversed when cross-compiling.
14803 else
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h. */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 $ac_includes_default
14812 main ()
14814 /* This call has the arguments reversed.
14815 A reversed system may check and see that the address of buf
14816 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14817 char buf;
14818 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
14819 return 1;
14820 putchar ('\r');
14821 return 0; /* Non-reversed systems SEGV here. */
14823 return 0;
14825 _ACEOF
14826 rm -f conftest$ac_exeext
14827 if { (ac_try="$ac_link"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_func_setvbuf_reversed=yes
14847 else
14848 echo "$as_me: program exited with status $ac_status" >&5
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14857 ac_cv_func_setvbuf_reversed=yes
14858 else
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14865 rm -f core conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14867 else
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
14878 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
14879 if test $ac_cv_func_setvbuf_reversed = yes; then
14881 cat >>confdefs.h <<\_ACEOF
14882 #define SETVBUF_REVERSED 1
14883 _ACEOF
14887 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14889 if test "${ac_cv_type_signal+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 #include <sys/types.h>
14899 #include <signal.h>
14902 main ()
14904 return *(signal (0, 0)) (0) == 1;
14906 return 0;
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_compile") 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_type_signal=int
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ac_cv_type_signal=void
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14954 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14956 cat >>confdefs.h <<_ACEOF
14957 #define RETSIGTYPE $ac_cv_type_signal
14958 _ACEOF
14961 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14962 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14963 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966 rm -f conftest.sym conftest.file
14967 echo >conftest.file
14968 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14969 if test "$cross_compiling" = yes; then
14970 ac_cv_func_lstat_dereferences_slashed_symlink=no
14971 else
14972 cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h. */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14980 main ()
14982 struct stat sbuf;
14983 /* Linux will dereference the symlink and fail.
14984 That is better in the sense that it means we will not
14985 have to compile and use the lstat wrapper. */
14986 return lstat ("conftest.sym/", &sbuf) == 0;
14988 return 0;
14990 _ACEOF
14991 rm -f conftest$ac_exeext
14992 if { (ac_try="$ac_link"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_link") 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15002 { (case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_try") 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_cv_func_lstat_dereferences_slashed_symlink=yes
15012 else
15013 echo "$as_me: program exited with status $ac_status" >&5
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 ( exit $ac_status )
15018 ac_cv_func_lstat_dereferences_slashed_symlink=no
15020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15024 else
15025 # If the `ln -s' command failed, then we probably don't even
15026 # have an lstat function.
15027 ac_cv_func_lstat_dereferences_slashed_symlink=no
15029 rm -f conftest.sym conftest.file
15032 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15033 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15035 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15037 cat >>confdefs.h <<_ACEOF
15038 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15039 _ACEOF
15042 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15043 case " $LIBOBJS " in
15044 *" lstat.$ac_objext "* ) ;;
15045 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15047 esac
15051 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
15052 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
15053 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 if test "$cross_compiling" = yes; then
15057 ac_cv_func_stat_empty_string_bug=yes
15058 else
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15067 main ()
15069 struct stat sbuf;
15070 return stat ("", &sbuf) == 0;
15072 return 0;
15074 _ACEOF
15075 rm -f conftest$ac_exeext
15076 if { (ac_try="$ac_link"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_link") 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_cv_func_stat_empty_string_bug=no
15096 else
15097 echo "$as_me: program exited with status $ac_status" >&5
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ( exit $ac_status )
15102 ac_cv_func_stat_empty_string_bug=yes
15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
15110 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
15111 if test $ac_cv_func_stat_empty_string_bug = yes; then
15112 case " $LIBOBJS " in
15113 *" stat.$ac_objext "* ) ;;
15114 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15116 esac
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_STAT_EMPTY_STRING_BUG 1
15121 _ACEOF
15125 { echo "$as_me:$LINENO: checking for working strcoll" >&5
15126 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
15127 if test "${ac_cv_func_strcoll_works+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 if test "$cross_compiling" = yes; then
15131 ac_cv_func_strcoll_works=no
15132 else
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 $ac_includes_default
15141 main ()
15143 return (strcoll ("abc", "def") >= 0 ||
15144 strcoll ("ABC", "DEF") >= 0 ||
15145 strcoll ("123", "456") >= 0)
15147 return 0;
15149 _ACEOF
15150 rm -f conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_func_strcoll_works=yes
15171 else
15172 echo "$as_me: program exited with status $ac_status" >&5
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ( exit $ac_status )
15177 ac_cv_func_strcoll_works=no
15179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
15185 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
15186 if test $ac_cv_func_strcoll_works = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_STRCOLL 1
15190 _ACEOF
15195 for ac_func in strftime
15197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15211 #define $ac_func innocuous_$ac_func
15213 /* System header to define __stub macros and hopefully few prototypes,
15214 which can conflict with char $ac_func (); below.
15215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15216 <limits.h> exists even on freestanding compilers. */
15218 #ifdef __STDC__
15219 # include <limits.h>
15220 #else
15221 # include <assert.h>
15222 #endif
15224 #undef $ac_func
15226 /* Override any GCC internal prototype to avoid an error.
15227 Use char because int might match the return type of a GCC
15228 builtin and then its argument prototype would still apply. */
15229 #ifdef __cplusplus
15230 extern "C"
15231 #endif
15232 char $ac_func ();
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined __stub_$ac_func || defined __stub___$ac_func
15237 choke me
15238 #endif
15241 main ()
15243 return $ac_func ();
15245 return 0;
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest$ac_exeext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 eval "$as_ac_var=yes"
15283 else
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 eval "$as_ac_var=no"
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15293 ac_res=`eval echo '${'$as_ac_var'}'`
15294 { echo "$as_me:$LINENO: result: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15296 if test `eval echo '${'$as_ac_var'}'` = yes; then
15297 cat >>confdefs.h <<_ACEOF
15298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15299 _ACEOF
15301 else
15302 # strftime is in -lintl on SCO UNIX.
15303 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15304 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
15305 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 ac_check_lib_save_LIBS=$LIBS
15309 LIBS="-lintl $LIBS"
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 char strftime ();
15325 main ()
15327 return strftime ();
15329 return 0;
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_cv_lib_intl_strftime=yes
15367 else
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_lib_intl_strftime=no
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LIBS=$ac_check_lib_save_LIBS
15378 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15379 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
15380 if test $ac_cv_lib_intl_strftime = yes; then
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_STRFTIME 1
15383 _ACEOF
15385 LIBS="-lintl $LIBS"
15389 done
15391 { echo "$as_me:$LINENO: checking for working strnlen" >&5
15392 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
15393 if test "${ac_cv_func_strnlen_working+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 if test "$cross_compiling" = yes; then
15397 ac_cv_func_strnlen_working=no
15398 else
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15407 main ()
15410 #define S "foobar"
15411 #define S_LEN (sizeof S - 1)
15413 /* At least one implementation is buggy: that of AIX 4.3 would
15414 give strnlen (S, 1) == 3. */
15416 int i;
15417 for (i = 0; i < S_LEN + 1; ++i)
15419 int expected = i <= S_LEN ? i : S_LEN;
15420 if (strnlen (S, i) != expected)
15421 return 1;
15423 return 0;
15426 return 0;
15428 _ACEOF
15429 rm -f conftest$ac_exeext
15430 if { (ac_try="$ac_link"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_link") 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_func_strnlen_working=yes
15450 else
15451 echo "$as_me: program exited with status $ac_status" >&5
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ( exit $ac_status )
15456 ac_cv_func_strnlen_working=no
15458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
15464 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
15465 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
15466 *" strnlen.$ac_objext "* ) ;;
15467 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
15469 esac
15472 { echo "$as_me:$LINENO: checking for working strtod" >&5
15473 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
15474 if test "${ac_cv_func_strtod+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477 if test "$cross_compiling" = yes; then
15478 ac_cv_func_strtod=no
15479 else
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15487 $ac_includes_default
15488 #ifndef strtod
15489 double strtod ();
15490 #endif
15492 main()
15495 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
15496 char *string = " +69";
15497 char *term;
15498 double value;
15499 value = strtod (string, &term);
15500 if (value != 69 || term != (string + 4))
15501 return 1;
15505 /* Under Solaris 2.4, strtod returns the wrong value for the
15506 terminating character under some conditions. */
15507 char *string = "NaN";
15508 char *term;
15509 strtod (string, &term);
15510 if (term != string && *(term - 1) == 0)
15511 return 1;
15513 return 0;
15516 _ACEOF
15517 rm -f conftest$ac_exeext
15518 if { (ac_try="$ac_link"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_link") 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15528 { (case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_try") 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_func_strtod=yes
15538 else
15539 echo "$as_me: program exited with status $ac_status" >&5
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ( exit $ac_status )
15544 ac_cv_func_strtod=no
15546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15551 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
15552 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
15553 if test $ac_cv_func_strtod = no; then
15554 case " $LIBOBJS " in
15555 *" strtod.$ac_objext "* ) ;;
15556 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15558 esac
15560 { echo "$as_me:$LINENO: checking for pow" >&5
15561 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
15562 if test "${ac_cv_func_pow+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
15572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15573 #define pow innocuous_pow
15575 /* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char pow (); below.
15577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15578 <limits.h> exists even on freestanding compilers. */
15580 #ifdef __STDC__
15581 # include <limits.h>
15582 #else
15583 # include <assert.h>
15584 #endif
15586 #undef pow
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15591 #ifdef __cplusplus
15592 extern "C"
15593 #endif
15594 char pow ();
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined __stub_pow || defined __stub___pow
15599 choke me
15600 #endif
15603 main ()
15605 return pow ();
15607 return 0;
15609 _ACEOF
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest$ac_exeext'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_cv_func_pow=yes
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_cv_func_pow=no
15652 rm -f core conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
15656 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
15658 if test $ac_cv_func_pow = no; then
15659 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
15660 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
15661 if test "${ac_cv_lib_m_pow+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664 ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lm $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15673 /* Override any GCC internal prototype to avoid an error.
15674 Use char because int might match the return type of a GCC
15675 builtin and then its argument prototype would still apply. */
15676 #ifdef __cplusplus
15677 extern "C"
15678 #endif
15679 char pow ();
15681 main ()
15683 return pow ();
15685 return 0;
15687 _ACEOF
15688 rm -f conftest.$ac_objext conftest$ac_exeext
15689 if { (ac_try="$ac_link"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693 esac
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_link") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest$ac_exeext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_lib_m_pow=yes
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_cv_lib_m_pow=no
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15734 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
15735 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
15736 if test $ac_cv_lib_m_pow = yes; then
15737 POW_LIB=-lm
15738 else
15739 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
15740 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
15747 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
15748 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
15749 if test "${ac_cv_func_utime_null+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 rm -f conftest.data; >conftest.data
15753 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
15754 if test "$cross_compiling" = yes; then
15755 ac_cv_func_utime_null=no
15756 else
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15765 main ()
15767 struct stat s, t;
15768 return ! (stat ("conftest.data", &s) == 0
15769 && utime ("conftest.data", 0) == 0
15770 && stat ("conftest.data", &t) == 0
15771 && t.st_mtime >= s.st_mtime
15772 && t.st_mtime - s.st_mtime < 120);
15774 return 0;
15776 _ACEOF
15777 rm -f conftest$ac_exeext
15778 if { (ac_try="$ac_link"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_link") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_cv_func_utime_null=yes
15798 else
15799 echo "$as_me: program exited with status $ac_status" >&5
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ( exit $ac_status )
15804 ac_cv_func_utime_null=no
15806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
15812 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
15813 if test $ac_cv_func_utime_null = yes; then
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_UTIME_NULL 1
15817 _ACEOF
15820 rm -f conftest.data
15823 for ac_func in vprintf
15825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15839 #define $ac_func innocuous_$ac_func
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func (); below.
15843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15844 <limits.h> exists even on freestanding compilers. */
15846 #ifdef __STDC__
15847 # include <limits.h>
15848 #else
15849 # include <assert.h>
15850 #endif
15852 #undef $ac_func
15854 /* Override any GCC internal prototype to avoid an error.
15855 Use char because int might match the return type of a GCC
15856 builtin and then its argument prototype would still apply. */
15857 #ifdef __cplusplus
15858 extern "C"
15859 #endif
15860 char $ac_func ();
15861 /* The GNU C library defines this for functions which it implements
15862 to always fail with ENOSYS. Some functions are actually named
15863 something starting with __ and the normal name is an alias. */
15864 #if defined __stub_$ac_func || defined __stub___$ac_func
15865 choke me
15866 #endif
15869 main ()
15871 return $ac_func ();
15873 return 0;
15875 _ACEOF
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (ac_try="$ac_link"
15878 case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_link") 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15891 { (case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_try") 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest$ac_exeext'
15901 { (case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_try") 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 eval "$as_ac_var=yes"
15911 else
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 eval "$as_ac_var=no"
15918 rm -f core conftest.err conftest.$ac_objext \
15919 conftest$ac_exeext conftest.$ac_ext
15921 ac_res=`eval echo '${'$as_ac_var'}'`
15922 { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15924 if test `eval echo '${'$as_ac_var'}'` = yes; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15927 _ACEOF
15929 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15930 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15931 if test "${ac_cv_func__doprnt+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15942 #define _doprnt innocuous__doprnt
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char _doprnt (); below.
15946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15947 <limits.h> exists even on freestanding compilers. */
15949 #ifdef __STDC__
15950 # include <limits.h>
15951 #else
15952 # include <assert.h>
15953 #endif
15955 #undef _doprnt
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply. */
15960 #ifdef __cplusplus
15961 extern "C"
15962 #endif
15963 char _doprnt ();
15964 /* The GNU C library defines this for functions which it implements
15965 to always fail with ENOSYS. Some functions are actually named
15966 something starting with __ and the normal name is an alias. */
15967 #if defined __stub__doprnt || defined __stub____doprnt
15968 choke me
15969 #endif
15972 main ()
15974 return _doprnt ();
15976 return 0;
15978 _ACEOF
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_link") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15994 { (case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_try") 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest$ac_exeext'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_cv_func__doprnt=yes
16014 else
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_cv_func__doprnt=no
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16025 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
16026 if test $ac_cv_func__doprnt = yes; then
16028 cat >>confdefs.h <<\_ACEOF
16029 #define HAVE_DOPRNT 1
16030 _ACEOF
16035 done
16087 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
16089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16110 #ifdef __STDC__
16111 # include <limits.h>
16112 #else
16113 # include <assert.h>
16114 #endif
16116 #undef $ac_func
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 char $ac_func ();
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined __stub_$ac_func || defined __stub___$ac_func
16129 choke me
16130 #endif
16133 main ()
16135 return $ac_func ();
16137 return 0;
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_try") 2>&5
16171 ac_status=$?
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 eval "$as_ac_var=yes"
16175 else
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 eval "$as_ac_var=no"
16182 rm -f core conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16185 ac_res=`eval echo '${'$as_ac_var'}'`
16186 { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16188 if test `eval echo '${'$as_ac_var'}'` = yes; then
16189 cat >>confdefs.h <<_ACEOF
16190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16191 _ACEOF
16194 done
16197 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
16198 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
16199 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
16200 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203 ac_func_search_save_LIBS=$LIBS
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16211 /* Override any GCC internal prototype to avoid an error.
16212 Use char because int might match the return type of a GCC
16213 builtin and then its argument prototype would still apply. */
16214 #ifdef __cplusplus
16215 extern "C"
16216 #endif
16217 char gethostbyname_r ();
16219 main ()
16221 return gethostbyname_r ();
16223 return 0;
16225 _ACEOF
16226 for ac_lib in '' socket nsl; do
16227 if test -z "$ac_lib"; then
16228 ac_res="none required"
16229 else
16230 ac_res=-l$ac_lib
16231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238 esac
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_link") 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest$ac_exeext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_cv_search_gethostbyname_r=$ac_res
16268 else
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16275 rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext
16277 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16278 break
16280 done
16281 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
16283 else
16284 ac_cv_search_gethostbyname_r=no
16286 rm conftest.$ac_ext
16287 LIBS=$ac_func_search_save_LIBS
16289 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
16290 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
16291 ac_res=$ac_cv_search_gethostbyname_r
16292 if test "$ac_res" != no; then
16293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16298 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
16299 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
16300 cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h. */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 #include <stdlib.h>
16307 #include <netdb.h>
16309 main ()
16311 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
16313 return 0;
16315 _ACEOF
16316 rm -f conftest.$ac_objext conftest$ac_exeext
16317 if { (ac_try="$ac_link"
16318 case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_link") 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16331 { (case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334 esac
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_try") 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest$ac_exeext'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_try") 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 { echo "$as_me:$LINENO: result: yes" >&5
16351 echo "${ECHO_T}yes" >&6; }
16353 cat >>confdefs.h <<\_ACEOF
16354 #define HAVE_GETHOSTBYNAME_R_6 1
16355 _ACEOF
16357 else
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 { echo "$as_me:$LINENO: result: no" >&5
16362 echo "${ECHO_T}no" >&6; }
16366 rm -f core conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
16370 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h. */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <stdlib.h>
16378 #include <netdb.h>
16380 main ()
16382 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16384 return 0;
16386 _ACEOF
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (ac_try="$ac_link"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_link") 2>conftest.er1
16395 ac_status=$?
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 { echo "$as_me:$LINENO: result: yes" >&5
16422 echo "${ECHO_T}yes" >&6; }
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_GETHOSTBYNAME_R_5 1
16426 _ACEOF
16428 else
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16432 { echo "$as_me:$LINENO: result: no" >&5
16433 echo "${ECHO_T}no" >&6; }
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16440 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
16441 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 #include <pthread.h>
16450 main ()
16452 int foo = PTHREAD_RWLOCK_INITIALIZER;
16454 return 0;
16456 _ACEOF
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest$ac_exeext'
16482 { (case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_try") 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 { echo "$as_me:$LINENO: result: yes" >&5
16492 echo "${ECHO_T}yes" >&6; }
16494 cat >>confdefs.h <<\_ACEOF
16495 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16496 _ACEOF
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 { echo "$as_me:$LINENO: result: no" >&5
16503 echo "${ECHO_T}no" >&6; }
16507 rm -f core conftest.err conftest.$ac_objext \
16508 conftest$ac_exeext conftest.$ac_ext
16510 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
16511 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <pthread.h>
16520 main ()
16522 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16524 return 0;
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16566 _ACEOF
16568 else
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 { echo "$as_me:$LINENO: result: no" >&5
16573 echo "${ECHO_T}no" >&6; }
16577 rm -f core conftest.err conftest.$ac_objext \
16578 conftest$ac_exeext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16581 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16582 cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h. */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16590 main ()
16592 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16594 return 0;
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest$ac_exeext'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 { echo "$as_me:$LINENO: result: yes" >&5
16632 echo "${ECHO_T}yes" >&6; }
16634 cat >>confdefs.h <<\_ACEOF
16635 #define HAVE_GCC_ATOMICS 1
16636 _ACEOF
16638 else
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 { echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6; }
16647 rm -f core conftest.err conftest.$ac_objext \
16648 conftest$ac_exeext conftest.$ac_ext
16651 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16652 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 static int __attribute__((pure)) test(void) {}
16661 main ()
16665 return 0;
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (ac_try="$ac_compile"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 { echo "$as_me:$LINENO: result: yes" >&5
16703 echo "${ECHO_T}yes" >&6; }
16705 cat >>confdefs.h <<_ACEOF
16706 #define HAVE_ATTRIBUTE_pure 1
16707 _ACEOF
16709 else
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 { echo "$as_me:$LINENO: result: no" >&5
16714 echo "${ECHO_T}no" >&6; }
16717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16721 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 static int __attribute__((malloc)) test(void) {}
16730 main ()
16734 return 0;
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 { echo "$as_me:$LINENO: result: yes" >&5
16772 echo "${ECHO_T}yes" >&6; }
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_ATTRIBUTE_malloc 1
16776 _ACEOF
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 { echo "$as_me:$LINENO: result: no" >&5
16783 echo "${ECHO_T}no" >&6; }
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16790 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16791 cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h. */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 static int __attribute__((const)) test(void) {}
16799 main ()
16803 return 0;
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 { echo "$as_me:$LINENO: result: yes" >&5
16841 echo "${ECHO_T}yes" >&6; }
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_ATTRIBUTE_const 1
16845 _ACEOF
16847 else
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16851 { echo "$as_me:$LINENO: result: no" >&5
16852 echo "${ECHO_T}no" >&6; }
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16859 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h. */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 static int __attribute__((unused)) test(void) {}
16868 main ()
16872 return 0;
16874 _ACEOF
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_compile") 2>conftest.er1
16883 ac_status=$?
16884 grep -v '^ *+' conftest.er1 >conftest.err
16885 rm -f conftest.er1
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 { echo "$as_me:$LINENO: result: yes" >&5
16910 echo "${ECHO_T}yes" >&6; }
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_ATTRIBUTE_unused 1
16914 _ACEOF
16916 else
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 { echo "$as_me:$LINENO: result: no" >&5
16921 echo "${ECHO_T}no" >&6; }
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16928 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 static int __attribute__((always_inline)) test(void) {}
16937 main ()
16941 return 0;
16943 _ACEOF
16944 rm -f conftest.$ac_objext
16945 if { (ac_try="$ac_compile"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_compile") 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
16958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_try") 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 { echo "$as_me:$LINENO: result: yes" >&5
16979 echo "${ECHO_T}yes" >&6; }
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_ATTRIBUTE_always_inline 1
16983 _ACEOF
16985 else
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 { echo "$as_me:$LINENO: result: no" >&5
16990 echo "${ECHO_T}no" >&6; }
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16997 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16998 cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h. */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 static int __attribute__((deprecated)) test(void) {}
17006 main ()
17010 return 0;
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 { echo "$as_me:$LINENO: result: yes" >&5
17048 echo "${ECHO_T}yes" >&6; }
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_ATTRIBUTE_deprecated 1
17052 _ACEOF
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 { echo "$as_me:$LINENO: result: no" >&5
17059 echo "${ECHO_T}no" >&6; }
17062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
17066 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
17067 saved_CFLAGS="${CFLAGS}"
17068 CFLAGS="${CFLAGS} -ffunction-sections"
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17077 main ()
17079 int x = 1;
17081 return 0;
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (ac_try="$ac_compile"
17086 case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_compile") 2>conftest.er1
17092 ac_status=$?
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
17109 { (case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112 esac
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_try") 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 { echo "$as_me:$LINENO: result: yes" >&5
17119 echo "${ECHO_T}yes" >&6; }
17120 saved_LDFLAGS="${LDFLAGS}"
17121 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17122 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17123 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17132 main ()
17134 int x = 1;
17136 return 0;
17138 _ACEOF
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (ac_try="$ac_link"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_link") 2>conftest.er1
17147 ac_status=$?
17148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 { echo "$as_me:$LINENO: result: yes" >&5
17174 echo "${ECHO_T}yes" >&6; }
17175 GC_CFLAGS="-ffunction-sections"
17176 GC_LDFLAGS="-Wl,--gc-sections"
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 { echo "$as_me:$LINENO: result: no" >&5
17182 echo "${ECHO_T}no" >&6; }
17186 rm -f core conftest.err conftest.$ac_objext \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LDFLAGS="${saved_LDFLAGS}"
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 CFLAGS="${saved_CFLAGS}"
17203 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17204 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17205 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17206 { echo "$as_me:$LINENO: result: yes" >&5
17207 echo "${ECHO_T}yes" >&6; }
17208 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17209 else
17210 { echo "$as_me:$LINENO: result: no" >&5
17211 echo "${ECHO_T}no" >&6; }
17212 AST_DECLARATION_AFTER_STATEMENT=
17216 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17217 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #include <resolv.h>
17226 main ()
17228 int foo = res_ninit(NULL);
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 { echo "$as_me:$LINENO: result: yes" >&5
17268 echo "${ECHO_T}yes" >&6; }
17270 cat >>confdefs.h <<\_ACEOF
17271 #define HAVE_RES_NINIT 1
17272 _ACEOF
17274 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17275 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h. */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <resolv.h>
17284 main ()
17286 int foo = res_ndestroy(NULL);
17288 return 0;
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 { echo "$as_me:$LINENO: result: yes" >&5
17326 echo "${ECHO_T}yes" >&6; }
17328 cat >>confdefs.h <<\_ACEOF
17329 #define HAVE_RES_NDESTROY 1
17330 _ACEOF
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 { echo "$as_me:$LINENO: result: no" >&5
17337 echo "${ECHO_T}no" >&6; }
17341 rm -f core conftest.err conftest.$ac_objext \
17342 conftest$ac_exeext conftest.$ac_ext
17343 else
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 { echo "$as_me:$LINENO: result: no" >&5
17348 echo "${ECHO_T}no" >&6; }
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17355 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
17356 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
17357 cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h. */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363 #include <dlfcn.h>
17365 main ()
17367 int foo = RTLD_NOLOAD;
17369 return 0;
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 { echo "$as_me:$LINENO: result: yes" >&5
17407 echo "${ECHO_T}yes" >&6; }
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_RTLD_NOLOAD 1
17411 _ACEOF
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 { echo "$as_me:$LINENO: result: no" >&5
17418 echo "${ECHO_T}no" >&6; }
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
17426 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <netinet/in.h>
17435 main ()
17437 int foo = IP_MTU_DISCOVER;
17439 return 0;
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest$ac_exeext'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 { echo "$as_me:$LINENO: result: yes" >&5
17477 echo "${ECHO_T}yes" >&6; }
17479 cat >>confdefs.h <<\_ACEOF
17480 #define HAVE_IP_MTU_DISCOVER 1
17481 _ACEOF
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 { echo "$as_me:$LINENO: result: no" >&5
17488 echo "${ECHO_T}no" >&6; }
17492 rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17495 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17496 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17497 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17498 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17502 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17503 else
17504 # Is the header compilable?
17505 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17506 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17507 cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h. */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 $ac_includes_default
17514 #include <libkern/OSAtomic.h>
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_compile") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest.$ac_objext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_header_compiler=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_header_compiler=no
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17560 echo "${ECHO_T}$ac_header_compiler" >&6; }
17562 # Is the header present?
17563 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17564 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <libkern/OSAtomic.h>
17572 _ACEOF
17573 if { (ac_try="$ac_cpp conftest.$ac_ext"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } >/dev/null; then
17586 if test -s conftest.err; then
17587 ac_cpp_err=$ac_c_preproc_warn_flag
17588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17589 else
17590 ac_cpp_err=
17592 else
17593 ac_cpp_err=yes
17595 if test -z "$ac_cpp_err"; then
17596 ac_header_preproc=yes
17597 else
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_header_preproc=no
17604 rm -f conftest.err conftest.$ac_ext
17605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17606 echo "${ECHO_T}$ac_header_preproc" >&6; }
17608 # So? What about this header?
17609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17610 yes:no: )
17611 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17612 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17613 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17614 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17615 ac_header_preproc=yes
17617 no:yes:* )
17618 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17619 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17620 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17621 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17622 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17623 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17624 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17625 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17626 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17627 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17628 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17629 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17630 ( cat <<\_ASBOX
17631 ## ------------------------------- ##
17632 ## Report this to www.asterisk.org ##
17633 ## ------------------------------- ##
17634 _ASBOX
17635 ) | sed "s/^/$as_me: WARNING: /" >&2
17637 esac
17638 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17639 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17640 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17645 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17646 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17649 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define HAVE_OSX_ATOMICS 1
17653 _ACEOF
17659 { echo "$as_me:$LINENO: checking for int" >&5
17660 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17661 if test "${ac_cv_type_int+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 $ac_includes_default
17671 typedef int ac__type_new_;
17673 main ()
17675 if ((ac__type_new_ *) 0)
17676 return 0;
17677 if (sizeof (ac__type_new_))
17678 return 0;
17680 return 0;
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_compile") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17701 esac
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ac_cv_type_int=yes
17718 else
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_type_int=no
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17728 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17730 { echo "$as_me:$LINENO: checking size of int" >&5
17731 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17732 if test "${ac_cv_sizeof_int+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735 if test "$ac_cv_type_int" = yes; then
17736 # The cast to long int works around a bug in the HP C Compiler
17737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17739 # This bug is HP SR number 8606223364.
17740 if test "$cross_compiling" = yes; then
17741 # Depending upon the size, compute the lo and hi bounds.
17742 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h. */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 typedef int ac__type_sizeof_;
17751 main ()
17753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17754 test_array [0] = 0
17757 return 0;
17759 _ACEOF
17760 rm -f conftest.$ac_objext
17761 if { (ac_try="$ac_compile"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_compile") 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest.$ac_objext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_lo=0 ac_mid=0
17795 while :; do
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 $ac_includes_default
17803 typedef int ac__type_sizeof_;
17805 main ()
17807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17808 test_array [0] = 0
17811 return 0;
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_hi=$ac_mid; break
17849 else
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_lo=`expr $ac_mid + 1`
17854 if test $ac_lo -le $ac_mid; then
17855 ac_lo= ac_hi=
17856 break
17858 ac_mid=`expr 2 '*' $ac_mid + 1`
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862 done
17863 else
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873 $ac_includes_default
17874 typedef int ac__type_sizeof_;
17876 main ()
17878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17879 test_array [0] = 0
17882 return 0;
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_hi=-1 ac_mid=-1
17920 while :; do
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 $ac_includes_default
17928 typedef int ac__type_sizeof_;
17930 main ()
17932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17933 test_array [0] = 0
17936 return 0;
17938 _ACEOF
17939 rm -f conftest.$ac_objext
17940 if { (ac_try="$ac_compile"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_compile") 2>conftest.er1
17947 ac_status=$?
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_try") 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_lo=$ac_mid; break
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 ac_hi=`expr '(' $ac_mid ')' - 1`
17979 if test $ac_mid -le $ac_hi; then
17980 ac_lo= ac_hi=
17981 break
17983 ac_mid=`expr 2 '*' $ac_mid`
17986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 done
17988 else
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_lo= ac_hi=
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 # Binary search between lo and hi bounds.
18000 while test "x$ac_lo" != "x$ac_hi"; do
18001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 $ac_includes_default
18009 typedef int ac__type_sizeof_;
18011 main ()
18013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18014 test_array [0] = 0
18017 return 0;
18019 _ACEOF
18020 rm -f conftest.$ac_objext
18021 if { (ac_try="$ac_compile"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_compile") 2>conftest.er1
18028 ac_status=$?
18029 grep -v '^ *+' conftest.er1 >conftest.err
18030 rm -f conftest.er1
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18035 { (case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_try") 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest.$ac_objext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_try") 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_hi=$ac_mid
18055 else
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 ac_lo=`expr '(' $ac_mid ')' + 1`
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 done
18064 case $ac_lo in
18065 ?*) ac_cv_sizeof_int=$ac_lo;;
18066 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18067 See \`config.log' for more details." >&5
18068 echo "$as_me: error: cannot compute sizeof (int)
18069 See \`config.log' for more details." >&2;}
18070 { (exit 77); exit 77; }; } ;;
18071 esac
18072 else
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 $ac_includes_default
18080 typedef int ac__type_sizeof_;
18081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18083 #include <stdio.h>
18084 #include <stdlib.h>
18086 main ()
18089 FILE *f = fopen ("conftest.val", "w");
18090 if (! f)
18091 return 1;
18092 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18094 long int i = longval ();
18095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18096 return 1;
18097 fprintf (f, "%ld\n", i);
18099 else
18101 unsigned long int i = ulongval ();
18102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18103 return 1;
18104 fprintf (f, "%lu\n", i);
18106 return ferror (f) || fclose (f) != 0;
18109 return 0;
18111 _ACEOF
18112 rm -f conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_link") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 { (case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_try") 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_cv_sizeof_int=`cat conftest.val`
18133 else
18134 echo "$as_me: program exited with status $ac_status" >&5
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ( exit $ac_status )
18139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18140 See \`config.log' for more details." >&5
18141 echo "$as_me: error: cannot compute sizeof (int)
18142 See \`config.log' for more details." >&2;}
18143 { (exit 77); exit 77; }; }
18145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18147 rm -f conftest.val
18148 else
18149 ac_cv_sizeof_int=0
18152 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18153 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18154 cat >>confdefs.h <<_ACEOF
18155 #define SIZEOF_INT $ac_cv_sizeof_int
18156 _ACEOF
18160 # do the package library checks now
18163 if test "${USE_ALSA}" != "no"; then
18164 pbxlibdir=""
18165 if test "x${ALSA_DIR}" != "x"; then
18166 if test -d ${ALSA_DIR}/lib; then
18167 pbxlibdir="-L${ALSA_DIR}/lib"
18168 else
18169 pbxlibdir="-L${ALSA_DIR}"
18172 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
18173 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
18174 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 else
18177 ac_check_lib_save_LIBS=$LIBS
18178 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18179 cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h. */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18189 #ifdef __cplusplus
18190 extern "C"
18191 #endif
18192 char snd_spcm_init ();
18194 main ()
18196 return snd_spcm_init ();
18198 return 0;
18200 _ACEOF
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (ac_try="$ac_link"
18203 case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_link") 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18216 { (case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_try") 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest$ac_exeext'
18226 { (case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18229 esac
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231 (eval "$ac_try") 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_cv_lib_asound_snd_spcm_init=yes
18236 else
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_cv_lib_asound_snd_spcm_init=no
18243 rm -f core conftest.err conftest.$ac_objext \
18244 conftest$ac_exeext conftest.$ac_ext
18245 LIBS=$ac_check_lib_save_LIBS
18247 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
18248 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
18249 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
18250 AST_ALSA_FOUND=yes
18251 else
18252 AST_ALSA_FOUND=no
18256 if test "${AST_ALSA_FOUND}" = "yes"; then
18257 ALSA_LIB="-lasound -lm -ldl"
18258 ALSA_HEADER_FOUND="1"
18259 if test "x${ALSA_DIR}" != "x"; then
18260 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
18261 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18262 saved_cppflags="${CPPFLAGS}"
18263 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
18264 if test "xalsa/asoundlib.h" != "x" ; then
18265 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
18266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
18268 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
18269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_res=`eval echo '${'$as_ac_Header'}'`
18273 { echo "$as_me:$LINENO: result: $ac_res" >&5
18274 echo "${ECHO_T}$ac_res" >&6; }
18275 else
18276 # Is the header compilable?
18277 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
18278 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 $ac_includes_default
18286 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
18287 _ACEOF
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest.$ac_objext'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_header_compiler=yes
18323 else
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_header_compiler=no
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18332 echo "${ECHO_T}$ac_header_compiler" >&6; }
18334 # Is the header present?
18335 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
18336 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h. */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
18344 _ACEOF
18345 if { (ac_try="$ac_cpp conftest.$ac_ext"
18346 case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } >/dev/null; then
18358 if test -s conftest.err; then
18359 ac_cpp_err=$ac_c_preproc_warn_flag
18360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18361 else
18362 ac_cpp_err=
18364 else
18365 ac_cpp_err=yes
18367 if test -z "$ac_cpp_err"; then
18368 ac_header_preproc=yes
18369 else
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 ac_header_preproc=no
18376 rm -f conftest.err conftest.$ac_ext
18377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18378 echo "${ECHO_T}$ac_header_preproc" >&6; }
18380 # So? What about this header?
18381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18382 yes:no: )
18383 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18384 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
18386 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18387 ac_header_preproc=yes
18389 no:yes:* )
18390 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
18391 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
18392 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18393 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
18395 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18397 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18399 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18401 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18402 ( cat <<\_ASBOX
18403 ## ------------------------------- ##
18404 ## Report this to www.asterisk.org ##
18405 ## ------------------------------- ##
18406 _ASBOX
18407 ) | sed "s/^/$as_me: WARNING: /" >&2
18409 esac
18410 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
18411 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
18412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415 eval "$as_ac_Header=\$ac_header_preproc"
18417 ac_res=`eval echo '${'$as_ac_Header'}'`
18418 { echo "$as_me:$LINENO: result: $ac_res" >&5
18419 echo "${ECHO_T}$ac_res" >&6; }
18422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18423 ALSA_HEADER_FOUND=1
18424 else
18425 ALSA_HEADER_FOUND=0
18430 CPPFLAGS="${saved_cppflags}"
18431 else
18432 if test "xalsa/asoundlib.h" != "x" ; then
18433 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18434 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18435 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18436 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18440 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18441 else
18442 # Is the header compilable?
18443 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18444 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h. */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 $ac_includes_default
18452 #include <alsa/asoundlib.h>
18453 _ACEOF
18454 rm -f conftest.$ac_objext
18455 if { (ac_try="$ac_compile"
18456 case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_compile") 2>conftest.er1
18462 ac_status=$?
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_try") 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
18479 { (case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_try") 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_header_compiler=yes
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_header_compiler=no
18496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18498 echo "${ECHO_T}$ac_header_compiler" >&6; }
18500 # Is the header present?
18501 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18502 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <alsa/asoundlib.h>
18510 _ACEOF
18511 if { (ac_try="$ac_cpp conftest.$ac_ext"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } >/dev/null; then
18524 if test -s conftest.err; then
18525 ac_cpp_err=$ac_c_preproc_warn_flag
18526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18527 else
18528 ac_cpp_err=
18530 else
18531 ac_cpp_err=yes
18533 if test -z "$ac_cpp_err"; then
18534 ac_header_preproc=yes
18535 else
18536 echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_header_preproc=no
18542 rm -f conftest.err conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18544 echo "${ECHO_T}$ac_header_preproc" >&6; }
18546 # So? What about this header?
18547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18548 yes:no: )
18549 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18550 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18551 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18552 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18553 ac_header_preproc=yes
18555 no:yes:* )
18556 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18557 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18559 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18561 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18563 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18565 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18567 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18568 ( cat <<\_ASBOX
18569 ## ------------------------------- ##
18570 ## Report this to www.asterisk.org ##
18571 ## ------------------------------- ##
18572 _ASBOX
18573 ) | sed "s/^/$as_me: WARNING: /" >&2
18575 esac
18576 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18577 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18578 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18583 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18584 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18587 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18588 ALSA_HEADER_FOUND=1
18589 else
18590 ALSA_HEADER_FOUND=0
18596 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18597 if test -n "${ALSA_MANDATORY}" ;
18598 then
18599 { echo "$as_me:$LINENO: ***" >&5
18600 echo "$as_me: ***" >&6;}
18601 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
18602 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
18603 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
18604 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
18605 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
18606 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
18607 exit 1
18609 ALSA_LIB=""
18610 ALSA_INCLUDE=""
18611 PBX_ALSA=0
18612 else
18613 PBX_ALSA=1
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_ALSA 1
18617 _ACEOF
18620 elif test -n "${ALSA_MANDATORY}";
18621 then
18622 { echo "$as_me:$LINENO: ***" >&5
18623 echo "$as_me: ***" >&6;}
18624 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
18625 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
18626 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18627 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18628 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
18629 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
18630 exit 1
18636 if test "${USE_CURSES}" != "no"; then
18637 pbxlibdir=""
18638 if test "x${CURSES_DIR}" != "x"; then
18639 if test -d ${CURSES_DIR}/lib; then
18640 pbxlibdir="-L${CURSES_DIR}/lib"
18641 else
18642 pbxlibdir="-L${CURSES_DIR}"
18645 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
18646 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
18647 if test "${ac_cv_lib_curses_initscr+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650 ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lcurses ${pbxlibdir} $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h. */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any GCC internal prototype to avoid an error.
18660 Use char because int might match the return type of a GCC
18661 builtin and then its argument prototype would still apply. */
18662 #ifdef __cplusplus
18663 extern "C"
18664 #endif
18665 char initscr ();
18667 main ()
18669 return initscr ();
18671 return 0;
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18702 esac
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_cv_lib_curses_initscr=yes
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_lib_curses_initscr=no
18716 rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18720 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
18721 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
18722 if test $ac_cv_lib_curses_initscr = yes; then
18723 AST_CURSES_FOUND=yes
18724 else
18725 AST_CURSES_FOUND=no
18729 if test "${AST_CURSES_FOUND}" = "yes"; then
18730 CURSES_LIB="-lcurses "
18731 CURSES_HEADER_FOUND="1"
18732 if test "x${CURSES_DIR}" != "x"; then
18733 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
18734 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18735 saved_cppflags="${CPPFLAGS}"
18736 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
18737 if test "xcurses.h" != "x" ; then
18738 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
18739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18740 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
18741 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 ac_res=`eval echo '${'$as_ac_Header'}'`
18746 { echo "$as_me:$LINENO: result: $ac_res" >&5
18747 echo "${ECHO_T}$ac_res" >&6; }
18748 else
18749 # Is the header compilable?
18750 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
18751 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
18752 cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h. */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 $ac_includes_default
18759 #include <${CURSES_DIR}/include/curses.h>
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_compile") 2>conftest.er1
18769 ac_status=$?
18770 grep -v '^ *+' conftest.er1 >conftest.err
18771 rm -f conftest.er1
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776 { (case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18779 esac
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_header_compiler=yes
18796 else
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18800 ac_header_compiler=no
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18805 echo "${ECHO_T}$ac_header_compiler" >&6; }
18807 # Is the header present?
18808 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
18809 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h. */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 #include <${CURSES_DIR}/include/curses.h>
18817 _ACEOF
18818 if { (ac_try="$ac_cpp conftest.$ac_ext"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18822 esac
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } >/dev/null; then
18831 if test -s conftest.err; then
18832 ac_cpp_err=$ac_c_preproc_warn_flag
18833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18834 else
18835 ac_cpp_err=
18837 else
18838 ac_cpp_err=yes
18840 if test -z "$ac_cpp_err"; then
18841 ac_header_preproc=yes
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_preproc=no
18849 rm -f conftest.err conftest.$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18851 echo "${ECHO_T}$ac_header_preproc" >&6; }
18853 # So? What about this header?
18854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18855 yes:no: )
18856 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18857 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
18859 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
18860 ac_header_preproc=yes
18862 no:yes:* )
18863 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
18864 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
18865 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
18866 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
18868 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
18870 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
18872 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
18874 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
18875 ( cat <<\_ASBOX
18876 ## ------------------------------- ##
18877 ## Report this to www.asterisk.org ##
18878 ## ------------------------------- ##
18879 _ASBOX
18880 ) | sed "s/^/$as_me: WARNING: /" >&2
18882 esac
18883 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
18884 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
18885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888 eval "$as_ac_Header=\$ac_header_preproc"
18890 ac_res=`eval echo '${'$as_ac_Header'}'`
18891 { echo "$as_me:$LINENO: result: $ac_res" >&5
18892 echo "${ECHO_T}$ac_res" >&6; }
18895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18896 CURSES_HEADER_FOUND=1
18897 else
18898 CURSES_HEADER_FOUND=0
18903 CPPFLAGS="${saved_cppflags}"
18904 else
18905 if test "xcurses.h" != "x" ; then
18906 if test "${ac_cv_header_curses_h+set}" = set; then
18907 { echo "$as_me:$LINENO: checking for curses.h" >&5
18908 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18909 if test "${ac_cv_header_curses_h+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18913 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18914 else
18915 # Is the header compilable?
18916 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18917 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18918 cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h. */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18924 $ac_includes_default
18925 #include <curses.h>
18926 _ACEOF
18927 rm -f conftest.$ac_objext
18928 if { (ac_try="$ac_compile"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_compile") 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; 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 curses.h presence" >&5
18975 echo $ECHO_N "checking curses.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 <curses.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; then
18997 if test -s conftest.err; then
18998 ac_cpp_err=$ac_c_preproc_warn_flag
18999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19000 else
19001 ac_cpp_err=
19003 else
19004 ac_cpp_err=yes
19006 if test -z "$ac_cpp_err"; then
19007 ac_header_preproc=yes
19008 else
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 ac_header_preproc=no
19015 rm -f conftest.err conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19017 echo "${ECHO_T}$ac_header_preproc" >&6; }
19019 # So? What about this header?
19020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19021 yes:no: )
19022 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
19023 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
19025 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
19026 ac_header_preproc=yes
19028 no:yes:* )
19029 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
19030 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
19032 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
19034 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
19036 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
19038 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
19040 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
19041 ( cat <<\_ASBOX
19042 ## ------------------------------- ##
19043 ## Report this to www.asterisk.org ##
19044 ## ------------------------------- ##
19045 _ASBOX
19046 ) | sed "s/^/$as_me: WARNING: /" >&2
19048 esac
19049 { echo "$as_me:$LINENO: checking for curses.h" >&5
19050 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
19051 if test "${ac_cv_header_curses_h+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054 ac_cv_header_curses_h=$ac_header_preproc
19056 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
19057 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
19060 if test $ac_cv_header_curses_h = yes; then
19061 CURSES_HEADER_FOUND=1
19062 else
19063 CURSES_HEADER_FOUND=0
19069 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
19070 if test -n "${CURSES_MANDATORY}" ;
19071 then
19072 { echo "$as_me:$LINENO: ***" >&5
19073 echo "$as_me: ***" >&6;}
19074 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
19075 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
19076 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
19077 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
19078 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
19079 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
19080 exit 1
19082 CURSES_LIB=""
19083 CURSES_INCLUDE=""
19084 PBX_CURSES=0
19085 else
19086 PBX_CURSES=1
19088 cat >>confdefs.h <<_ACEOF
19089 #define HAVE_CURSES 1
19090 _ACEOF
19093 elif test -n "${CURSES_MANDATORY}";
19094 then
19095 { echo "$as_me:$LINENO: ***" >&5
19096 echo "$as_me: ***" >&6;}
19097 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
19098 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
19099 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19100 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19101 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
19102 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
19103 exit 1
19108 if test "x${host_os}" = "xlinux-gnu" ; then
19110 if test "${USE_CAP}" != "no"; then
19111 pbxlibdir=""
19112 if test "x${CAP_DIR}" != "x"; then
19113 if test -d ${CAP_DIR}/lib; then
19114 pbxlibdir="-L${CAP_DIR}/lib"
19115 else
19116 pbxlibdir="-L${CAP_DIR}"
19119 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
19120 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
19121 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124 ac_check_lib_save_LIBS=$LIBS
19125 LIBS="-lcap ${pbxlibdir} $LIBS"
19126 cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h. */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19133 /* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19136 #ifdef __cplusplus
19137 extern "C"
19138 #endif
19139 char cap_from_text ();
19141 main ()
19143 return cap_from_text ();
19145 return 0;
19147 _ACEOF
19148 rm -f conftest.$ac_objext conftest$ac_exeext
19149 if { (ac_try="$ac_link"
19150 case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_link") 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest$ac_exeext'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_lib_cap_cap_from_text=yes
19183 else
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19187 ac_cv_lib_cap_cap_from_text=no
19190 rm -f core conftest.err conftest.$ac_objext \
19191 conftest$ac_exeext conftest.$ac_ext
19192 LIBS=$ac_check_lib_save_LIBS
19194 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
19195 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
19196 if test $ac_cv_lib_cap_cap_from_text = yes; then
19197 AST_CAP_FOUND=yes
19198 else
19199 AST_CAP_FOUND=no
19203 if test "${AST_CAP_FOUND}" = "yes"; then
19204 CAP_LIB="-lcap "
19205 CAP_HEADER_FOUND="1"
19206 if test "x${CAP_DIR}" != "x"; then
19207 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
19208 CAP_INCLUDE="-I${CAP_DIR}/include"
19209 saved_cppflags="${CPPFLAGS}"
19210 CPPFLAGS="${CPPFLAGS} -I${CAP_DIR}/include"
19211 if test "xsys/capability.h" != "x" ; then
19212 as_ac_Header=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
19213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19214 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
19215 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
19216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 ac_res=`eval echo '${'$as_ac_Header'}'`
19220 { echo "$as_me:$LINENO: result: $ac_res" >&5
19221 echo "${ECHO_T}$ac_res" >&6; }
19222 else
19223 # Is the header compilable?
19224 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
19225 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 $ac_includes_default
19233 #include <${CAP_DIR}/include/sys/capability.h>
19234 _ACEOF
19235 rm -f conftest.$ac_objext
19236 if { (ac_try="$ac_compile"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_header_compiler=yes
19270 else
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_header_compiler=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19279 echo "${ECHO_T}$ac_header_compiler" >&6; }
19281 # Is the header present?
19282 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
19283 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <${CAP_DIR}/include/sys/capability.h>
19291 _ACEOF
19292 if { (ac_try="$ac_cpp conftest.$ac_ext"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } >/dev/null; then
19305 if test -s conftest.err; then
19306 ac_cpp_err=$ac_c_preproc_warn_flag
19307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19308 else
19309 ac_cpp_err=
19311 else
19312 ac_cpp_err=yes
19314 if test -z "$ac_cpp_err"; then
19315 ac_header_preproc=yes
19316 else
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_header_preproc=no
19323 rm -f conftest.err conftest.$ac_ext
19324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 echo "${ECHO_T}$ac_header_preproc" >&6; }
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 yes:no: )
19330 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
19333 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc=yes
19336 no:yes:* )
19337 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
19338 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
19340 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
19342 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19344 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
19346 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
19348 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
19349 ( cat <<\_ASBOX
19350 ## ------------------------------- ##
19351 ## Report this to www.asterisk.org ##
19352 ## ------------------------------- ##
19353 _ASBOX
19354 ) | sed "s/^/$as_me: WARNING: /" >&2
19356 esac
19357 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
19358 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
19359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 eval "$as_ac_Header=\$ac_header_preproc"
19364 ac_res=`eval echo '${'$as_ac_Header'}'`
19365 { echo "$as_me:$LINENO: result: $ac_res" >&5
19366 echo "${ECHO_T}$ac_res" >&6; }
19369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19370 CAP_HEADER_FOUND=1
19371 else
19372 CAP_HEADER_FOUND=0
19377 CPPFLAGS="${saved_cppflags}"
19378 else
19379 if test "xsys/capability.h" != "x" ; then
19380 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19381 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19382 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19383 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19387 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19388 else
19389 # Is the header compilable?
19390 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
19391 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 $ac_includes_default
19399 #include <sys/capability.h>
19400 _ACEOF
19401 rm -f conftest.$ac_objext
19402 if { (ac_try="$ac_compile"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19416 { (case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_try") 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest.$ac_objext'
19426 { (case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19429 esac
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_try") 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_header_compiler=yes
19436 else
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_header_compiler=no
19443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19445 echo "${ECHO_T}$ac_header_compiler" >&6; }
19447 # Is the header present?
19448 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
19449 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h. */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 #include <sys/capability.h>
19457 _ACEOF
19458 if { (ac_try="$ac_cpp conftest.$ac_ext"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } >/dev/null; then
19471 if test -s conftest.err; then
19472 ac_cpp_err=$ac_c_preproc_warn_flag
19473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19474 else
19475 ac_cpp_err=
19477 else
19478 ac_cpp_err=yes
19480 if test -z "$ac_cpp_err"; then
19481 ac_header_preproc=yes
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_header_preproc=no
19489 rm -f conftest.err conftest.$ac_ext
19490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19491 echo "${ECHO_T}$ac_header_preproc" >&6; }
19493 # So? What about this header?
19494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19495 yes:no: )
19496 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
19497 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19498 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
19499 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
19500 ac_header_preproc=yes
19502 no:yes:* )
19503 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
19504 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
19506 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
19508 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
19509 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19510 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19511 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
19512 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
19513 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
19514 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
19515 ( cat <<\_ASBOX
19516 ## ------------------------------- ##
19517 ## Report this to www.asterisk.org ##
19518 ## ------------------------------- ##
19519 _ASBOX
19520 ) | sed "s/^/$as_me: WARNING: /" >&2
19522 esac
19523 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19524 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19525 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528 ac_cv_header_sys_capability_h=$ac_header_preproc
19530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19531 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19534 if test $ac_cv_header_sys_capability_h = yes; then
19535 CAP_HEADER_FOUND=1
19536 else
19537 CAP_HEADER_FOUND=0
19543 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
19544 if test -n "${CAP_MANDATORY}" ;
19545 then
19546 { echo "$as_me:$LINENO: ***" >&5
19547 echo "$as_me: ***" >&6;}
19548 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
19549 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
19550 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
19551 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
19552 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
19553 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
19554 exit 1
19556 CAP_LIB=""
19557 CAP_INCLUDE=""
19558 PBX_CAP=0
19559 else
19560 PBX_CAP=1
19562 cat >>confdefs.h <<_ACEOF
19563 #define HAVE_CAP 1
19564 _ACEOF
19567 elif test -n "${CAP_MANDATORY}";
19568 then
19569 { echo "$as_me:$LINENO: ***" >&5
19570 echo "$as_me: ***" >&6;}
19571 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
19572 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
19573 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19574 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19575 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
19576 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
19577 exit 1
19584 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
19585 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
19586 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
19587 saved_cppflags="${CPPFLAGS}"
19588 if test "x${GETIFADDRS_DIR}" != "x"; then
19589 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
19591 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h. */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <ifaddrs.h>
19601 main ()
19603 struct ifaddrs *p; getifaddrs(&p);
19606 return 0;
19608 _ACEOF
19609 rm -f conftest.$ac_objext
19610 if { (ac_try="$ac_compile"
19611 case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19614 esac
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest.$ac_objext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 { echo "$as_me:$LINENO: result: yes" >&5
19644 echo "${ECHO_T}yes" >&6; }
19645 PBX_GETIFADDRS=1
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_GETIFADDRS 1
19649 _ACEOF
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_GETIFADDRS_VERSION
19654 _ACEOF
19657 else
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 { echo "$as_me:$LINENO: result: no" >&5
19662 echo "${ECHO_T}no" >&6; }
19666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667 CPPFLAGS="${saved_cppflags}"
19671 GSM_INTERNAL="yes"
19673 GSM_SYSTEM="yes"
19674 if test "${USE_GSM}" != "no"; then
19675 if test "${GSM_DIR}" = "internal"; then
19676 GSM_SYSTEM="no"
19677 elif test "${GSM_DIR}" != ""; then
19678 GSM_INTERNAL="no"
19680 if test "${GSM_SYSTEM}" = "yes"; then
19681 gsmlibdir=""
19682 if test "x${GSM_DIR}" != "x"; then
19683 if test -d ${GSM_DIR}/lib; then
19684 gsmlibdir="-L${GSM_DIR}/lib"
19685 else
19686 gsmlibdir="-L${GSM_DIR}"
19689 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
19690 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgsm ${gsmlibdir} $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 char gsm_create ();
19711 main ()
19713 return gsm_create ();
19715 return 0;
19717 _ACEOF
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_lib_gsm_gsm_create=yes
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ac_cv_lib_gsm_gsm_create=no
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762 LIBS=$ac_check_lib_save_LIBS
19764 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
19765 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
19766 if test $ac_cv_lib_gsm_gsm_create = yes; then
19768 cat >>confdefs.h <<_ACEOF
19769 #define HAVE_GSM 1
19770 _ACEOF
19774 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
19775 if test "x${GSM_DIR}" != "x" ; then
19776 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
19777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19778 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
19779 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 ac_res=`eval echo '${'$as_ac_Header'}'`
19784 { echo "$as_me:$LINENO: result: $ac_res" >&5
19785 echo "${ECHO_T}$ac_res" >&6; }
19786 else
19787 # Is the header compilable?
19788 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
19789 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h. */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 $ac_includes_default
19797 #include <${GSM_DIR}/include/gsm.h>
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_header_compiler=yes
19834 else
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_header_compiler=no
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6; }
19845 # Is the header present?
19846 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
19847 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <${GSM_DIR}/include/gsm.h>
19855 _ACEOF
19856 if { (ac_try="$ac_cpp conftest.$ac_ext"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } >/dev/null; then
19869 if test -s conftest.err; then
19870 ac_cpp_err=$ac_c_preproc_warn_flag
19871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19872 else
19873 ac_cpp_err=
19875 else
19876 ac_cpp_err=yes
19878 if test -z "$ac_cpp_err"; 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: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19895 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
19897 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
19898 ac_header_preproc=yes
19900 no:yes:* )
19901 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
19902 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
19904 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
19906 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
19908 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
19910 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
19912 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
19913 ( cat <<\_ASBOX
19914 ## ------------------------------- ##
19915 ## Report this to www.asterisk.org ##
19916 ## ------------------------------- ##
19917 _ASBOX
19918 ) | sed "s/^/$as_me: WARNING: /" >&2
19920 esac
19921 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
19922 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
19923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926 eval "$as_ac_Header=\$ac_header_preproc"
19928 ac_res=`eval echo '${'$as_ac_Header'}'`
19929 { echo "$as_me:$LINENO: result: $ac_res" >&5
19930 echo "${ECHO_T}$ac_res" >&6; }
19933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19934 GSM_HEADER_FOUND=1
19935 else
19936 GSM_HEADER_FOUND=0
19940 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
19943 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 ac_res=`eval echo '${'$as_ac_Header'}'`
19948 { echo "$as_me:$LINENO: result: $ac_res" >&5
19949 echo "${ECHO_T}$ac_res" >&6; }
19950 else
19951 # Is the header compilable?
19952 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
19953 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 $ac_includes_default
19961 #include <${GSM_DIR}/include/gsm/gsm.h>
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_compile") 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19978 { (case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_try") 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest.$ac_objext'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_header_compiler=yes
19998 else
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_header_compiler=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20007 echo "${ECHO_T}$ac_header_compiler" >&6; }
20009 # Is the header present?
20010 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
20011 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018 #include <${GSM_DIR}/include/gsm/gsm.h>
20019 _ACEOF
20020 if { (ac_try="$ac_cpp conftest.$ac_ext"
20021 case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20024 esac
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } >/dev/null; then
20033 if test -s conftest.err; then
20034 ac_cpp_err=$ac_c_preproc_warn_flag
20035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20036 else
20037 ac_cpp_err=
20039 else
20040 ac_cpp_err=yes
20042 if test -z "$ac_cpp_err"; then
20043 ac_header_preproc=yes
20044 else
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_header_preproc=no
20051 rm -f conftest.err conftest.$ac_ext
20052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20053 echo "${ECHO_T}$ac_header_preproc" >&6; }
20055 # So? What about this header?
20056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20057 yes:no: )
20058 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20059 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
20061 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
20062 ac_header_preproc=yes
20064 no:yes:* )
20065 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
20066 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
20068 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
20070 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
20072 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
20074 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
20076 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
20077 ( cat <<\_ASBOX
20078 ## ------------------------------- ##
20079 ## Report this to www.asterisk.org ##
20080 ## ------------------------------- ##
20081 _ASBOX
20082 ) | sed "s/^/$as_me: WARNING: /" >&2
20084 esac
20085 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
20086 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
20087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090 eval "$as_ac_Header=\$ac_header_preproc"
20092 ac_res=`eval echo '${'$as_ac_Header'}'`
20093 { echo "$as_me:$LINENO: result: $ac_res" >&5
20094 echo "${ECHO_T}$ac_res" >&6; }
20097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20098 GSM_GSM_HEADER_FOUND=1
20099 else
20100 GSM_GSM_HEADER_FOUND=0
20104 else
20105 if test "${ac_cv_header_gsm_h+set}" = set; then
20106 { echo "$as_me:$LINENO: checking for gsm.h" >&5
20107 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
20108 if test "${ac_cv_header_gsm_h+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
20112 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
20113 else
20114 # Is the header compilable?
20115 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
20116 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 $ac_includes_default
20124 #include <gsm.h>
20125 _ACEOF
20126 rm -f conftest.$ac_objext
20127 if { (ac_try="$ac_compile"
20128 case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20131 esac
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_compile") 2>conftest.er1
20134 ac_status=$?
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
20140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20141 { (case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_try") 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest.$ac_objext'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_try") 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_header_compiler=yes
20161 else
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_header_compiler=no
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6; }
20172 # Is the header present?
20173 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
20174 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 #include <gsm.h>
20182 _ACEOF
20183 if { (ac_try="$ac_cpp conftest.$ac_ext"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } >/dev/null; then
20196 if test -s conftest.err; then
20197 ac_cpp_err=$ac_c_preproc_warn_flag
20198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20199 else
20200 ac_cpp_err=
20202 else
20203 ac_cpp_err=yes
20205 if test -z "$ac_cpp_err"; then
20206 ac_header_preproc=yes
20207 else
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_header_preproc=no
20214 rm -f conftest.err conftest.$ac_ext
20215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20216 echo "${ECHO_T}$ac_header_preproc" >&6; }
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220 yes:no: )
20221 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20222 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
20224 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
20225 ac_header_preproc=yes
20227 no:yes:* )
20228 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
20229 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
20231 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
20233 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
20235 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
20237 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
20239 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
20240 ( cat <<\_ASBOX
20241 ## ------------------------------- ##
20242 ## Report this to www.asterisk.org ##
20243 ## ------------------------------- ##
20244 _ASBOX
20245 ) | sed "s/^/$as_me: WARNING: /" >&2
20247 esac
20248 { echo "$as_me:$LINENO: checking for gsm.h" >&5
20249 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
20250 if test "${ac_cv_header_gsm_h+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 ac_cv_header_gsm_h=$ac_header_preproc
20255 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
20256 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
20259 if test $ac_cv_header_gsm_h = yes; then
20260 GSM_HEADER_FOUND=1
20261 else
20262 GSM_HEADER_FOUND=0
20266 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
20267 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
20268 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
20269 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
20274 else
20275 # Is the header compilable?
20276 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
20277 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <gsm/gsm.h>
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (ac_try="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20302 { (case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_try") 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
20312 { (case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_try") 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_header_compiler=yes
20322 else
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ac_header_compiler=no
20329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20331 echo "${ECHO_T}$ac_header_compiler" >&6; }
20333 # Is the header present?
20334 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
20335 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h. */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342 #include <gsm/gsm.h>
20343 _ACEOF
20344 if { (ac_try="$ac_cpp conftest.$ac_ext"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20351 ac_status=$?
20352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } >/dev/null; then
20357 if test -s conftest.err; then
20358 ac_cpp_err=$ac_c_preproc_warn_flag
20359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20360 else
20361 ac_cpp_err=
20363 else
20364 ac_cpp_err=yes
20366 if test -z "$ac_cpp_err"; then
20367 ac_header_preproc=yes
20368 else
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ac_header_preproc=no
20375 rm -f conftest.err conftest.$ac_ext
20376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20377 echo "${ECHO_T}$ac_header_preproc" >&6; }
20379 # So? What about this header?
20380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20381 yes:no: )
20382 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20383 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
20385 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
20386 ac_header_preproc=yes
20388 no:yes:* )
20389 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
20390 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
20392 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
20394 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
20396 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
20398 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
20400 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
20401 ( cat <<\_ASBOX
20402 ## ------------------------------- ##
20403 ## Report this to www.asterisk.org ##
20404 ## ------------------------------- ##
20405 _ASBOX
20406 ) | sed "s/^/$as_me: WARNING: /" >&2
20408 esac
20409 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
20410 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
20411 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414 ac_cv_header_gsm_gsm_h=$ac_header_preproc
20416 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
20417 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
20420 if test $ac_cv_header_gsm_gsm_h = yes; then
20421 GSM_GSM_HEADER_FOUND=1
20422 else
20423 GSM_GSM_HEADER_FOUND=0
20428 if test "${GSM_HEADER_FOUND}" = "0" ; then
20429 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
20430 if test "x${GSM_MANDATORY}" = "xyes" ; then
20431 { echo "$as_me:$LINENO: ***" >&5
20432 echo "$as_me: ***" >&6;}
20433 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
20434 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
20435 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
20436 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
20437 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
20438 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
20439 exit 1
20443 GSM_OK=0
20444 if test "${GSM_HEADER_FOUND}" = "1" ; then
20446 cat >>confdefs.h <<_ACEOF
20447 #define HAVE_GSM_HEADER 1
20448 _ACEOF
20450 GSM_OK=1
20451 else
20452 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
20454 cat >>confdefs.h <<_ACEOF
20455 #define HAVE_GSM_GSM_HEADER 1
20456 _ACEOF
20458 GSM_OK=1
20461 if test "${GSM_OK}" = "1" ; then
20462 GSM_LIB="-lgsm"
20463 if test "x${GSM_DIR}" != "x"; then
20464 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
20465 GSM_INCLUDE="-I${GSM_DIR}/include"
20467 PBX_GSM=1
20468 GSM_INTERNAL="no"
20472 if test "${GSM_INTERNAL}" = "yes"; then
20473 PBX_GSM=1
20475 cat >>confdefs.h <<_ACEOF
20476 #define HAVE_GSM_HEADER 1
20477 _ACEOF
20483 if test "${USE_IKSEMEL}" != "no"; then
20484 pbxlibdir=""
20485 if test "x${IKSEMEL_DIR}" != "x"; then
20486 if test -d ${IKSEMEL_DIR}/lib; then
20487 pbxlibdir="-L${IKSEMEL_DIR}/lib"
20488 else
20489 pbxlibdir="-L${IKSEMEL_DIR}"
20492 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
20493 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
20494 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 ac_check_lib_save_LIBS=$LIBS
20498 LIBS="-liksemel ${pbxlibdir} $LIBS"
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h. */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply. */
20509 #ifdef __cplusplus
20510 extern "C"
20511 #endif
20512 char iks_start_sasl ();
20514 main ()
20516 return iks_start_sasl ();
20518 return 0;
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_link") 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
20535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20536 { (case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_try") 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest$ac_exeext'
20546 { (case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_try") 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_lib_iksemel_iks_start_sasl=yes
20556 else
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_lib_iksemel_iks_start_sasl=no
20563 rm -f core conftest.err conftest.$ac_objext \
20564 conftest$ac_exeext conftest.$ac_ext
20565 LIBS=$ac_check_lib_save_LIBS
20567 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
20568 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
20569 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
20570 AST_IKSEMEL_FOUND=yes
20571 else
20572 AST_IKSEMEL_FOUND=no
20576 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
20577 IKSEMEL_LIB="-liksemel "
20578 IKSEMEL_HEADER_FOUND="1"
20579 if test "x${IKSEMEL_DIR}" != "x"; then
20580 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
20581 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
20582 saved_cppflags="${CPPFLAGS}"
20583 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
20584 if test "xiksemel.h" != "x" ; then
20585 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
20586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20587 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
20588 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
20589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593 { echo "$as_me:$LINENO: result: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20595 else
20596 # Is the header compilable?
20597 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
20598 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h. */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 #include <${IKSEMEL_DIR}/include/iksemel.h>
20607 _ACEOF
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20623 { (case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try='test -s conftest.$ac_objext'
20633 { (case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_try") 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_header_compiler=yes
20643 else
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_header_compiler=no
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20652 echo "${ECHO_T}$ac_header_compiler" >&6; }
20654 # Is the header present?
20655 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
20656 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h. */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 #include <${IKSEMEL_DIR}/include/iksemel.h>
20664 _ACEOF
20665 if { (ac_try="$ac_cpp conftest.$ac_ext"
20666 case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20672 ac_status=$?
20673 grep -v '^ *+' conftest.er1 >conftest.err
20674 rm -f conftest.er1
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } >/dev/null; then
20678 if test -s conftest.err; then
20679 ac_cpp_err=$ac_c_preproc_warn_flag
20680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20681 else
20682 ac_cpp_err=
20684 else
20685 ac_cpp_err=yes
20687 if test -z "$ac_cpp_err"; then
20688 ac_header_preproc=yes
20689 else
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_header_preproc=no
20696 rm -f conftest.err conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6; }
20700 # So? What about this header?
20701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20702 yes:no: )
20703 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
20706 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
20707 ac_header_preproc=yes
20709 no:yes:* )
20710 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
20711 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
20713 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
20715 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
20717 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
20719 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
20721 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
20722 ( cat <<\_ASBOX
20723 ## ------------------------------- ##
20724 ## Report this to www.asterisk.org ##
20725 ## ------------------------------- ##
20726 _ASBOX
20727 ) | sed "s/^/$as_me: WARNING: /" >&2
20729 esac
20730 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
20731 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
20732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735 eval "$as_ac_Header=\$ac_header_preproc"
20737 ac_res=`eval echo '${'$as_ac_Header'}'`
20738 { echo "$as_me:$LINENO: result: $ac_res" >&5
20739 echo "${ECHO_T}$ac_res" >&6; }
20742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20743 IKSEMEL_HEADER_FOUND=1
20744 else
20745 IKSEMEL_HEADER_FOUND=0
20750 CPPFLAGS="${saved_cppflags}"
20751 else
20752 if test "xiksemel.h" != "x" ; then
20753 if test "${ac_cv_header_iksemel_h+set}" = set; then
20754 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
20755 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
20756 if test "${ac_cv_header_iksemel_h+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
20760 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
20761 else
20762 # Is the header compilable?
20763 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
20764 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 #include <iksemel.h>
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_header_compiler=yes
20809 else
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_header_compiler=no
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20818 echo "${ECHO_T}$ac_header_compiler" >&6; }
20820 # Is the header present?
20821 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
20822 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
20823 cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h. */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 #include <iksemel.h>
20830 _ACEOF
20831 if { (ac_try="$ac_cpp conftest.$ac_ext"
20832 case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } >/dev/null; then
20844 if test -s conftest.err; then
20845 ac_cpp_err=$ac_c_preproc_warn_flag
20846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20847 else
20848 ac_cpp_err=
20850 else
20851 ac_cpp_err=yes
20853 if test -z "$ac_cpp_err"; then
20854 ac_header_preproc=yes
20855 else
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ac_header_preproc=no
20862 rm -f conftest.err conftest.$ac_ext
20863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20864 echo "${ECHO_T}$ac_header_preproc" >&6; }
20866 # So? What about this header?
20867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20868 yes:no: )
20869 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
20870 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
20872 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
20873 ac_header_preproc=yes
20875 no:yes:* )
20876 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
20877 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
20879 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
20881 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
20883 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
20885 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
20887 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
20888 ( cat <<\_ASBOX
20889 ## ------------------------------- ##
20890 ## Report this to www.asterisk.org ##
20891 ## ------------------------------- ##
20892 _ASBOX
20893 ) | sed "s/^/$as_me: WARNING: /" >&2
20895 esac
20896 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
20897 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
20898 if test "${ac_cv_header_iksemel_h+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 else
20901 ac_cv_header_iksemel_h=$ac_header_preproc
20903 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
20904 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
20907 if test $ac_cv_header_iksemel_h = yes; then
20908 IKSEMEL_HEADER_FOUND=1
20909 else
20910 IKSEMEL_HEADER_FOUND=0
20916 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
20917 if test -n "${IKSEMEL_MANDATORY}" ;
20918 then
20919 { echo "$as_me:$LINENO: ***" >&5
20920 echo "$as_me: ***" >&6;}
20921 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
20922 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
20923 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
20924 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
20925 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
20926 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
20927 exit 1
20929 IKSEMEL_LIB=""
20930 IKSEMEL_INCLUDE=""
20931 PBX_IKSEMEL=0
20932 else
20933 PBX_IKSEMEL=1
20935 cat >>confdefs.h <<_ACEOF
20936 #define HAVE_IKSEMEL 1
20937 _ACEOF
20940 elif test -n "${IKSEMEL_MANDATORY}";
20941 then
20942 { echo "$as_me:$LINENO: ***" >&5
20943 echo "$as_me: ***" >&6;}
20944 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
20945 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
20946 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20947 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20948 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
20949 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
20950 exit 1
20955 if test "${PBX_IKSEMEL}" = 1; then
20957 if test "${USE_GNUTLS}" != "no"; then
20958 pbxlibdir=""
20959 if test "x${GNUTLS_DIR}" != "x"; then
20960 if test -d ${GNUTLS_DIR}/lib; then
20961 pbxlibdir="-L${GNUTLS_DIR}/lib"
20962 else
20963 pbxlibdir="-L${GNUTLS_DIR}"
20966 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
20967 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
20968 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971 ac_check_lib_save_LIBS=$LIBS
20972 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
20973 cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h. */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20980 /* Override any GCC internal prototype to avoid an error.
20981 Use char because int might match the return type of a GCC
20982 builtin and then its argument prototype would still apply. */
20983 #ifdef __cplusplus
20984 extern "C"
20985 #endif
20986 char gnutls_bye ();
20988 main ()
20990 return gnutls_bye ();
20992 return 0;
20994 _ACEOF
20995 rm -f conftest.$ac_objext conftest$ac_exeext
20996 if { (ac_try="$ac_link"
20997 case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_link") 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest$ac_exeext'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ac_cv_lib_gnutls_gnutls_bye=yes
21030 else
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_cv_lib_gnutls_gnutls_bye=no
21037 rm -f core conftest.err conftest.$ac_objext \
21038 conftest$ac_exeext conftest.$ac_ext
21039 LIBS=$ac_check_lib_save_LIBS
21041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
21042 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
21043 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
21044 AST_GNUTLS_FOUND=yes
21045 else
21046 AST_GNUTLS_FOUND=no
21050 if test "${AST_GNUTLS_FOUND}" = "yes"; then
21051 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
21052 GNUTLS_HEADER_FOUND="1"
21053 if test "x${GNUTLS_DIR}" != "x"; then
21054 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
21055 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
21056 saved_cppflags="${CPPFLAGS}"
21057 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
21058 if test "xgnutls/gnutls.h" != "x" ; then
21059 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
21060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21061 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
21062 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
21063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 ac_res=`eval echo '${'$as_ac_Header'}'`
21067 { echo "$as_me:$LINENO: result: $ac_res" >&5
21068 echo "${ECHO_T}$ac_res" >&6; }
21069 else
21070 # Is the header compilable?
21071 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
21072 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21080 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097 { (case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_try") 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_header_compiler=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_header_compiler=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6; }
21128 # Is the header present?
21129 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
21130 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
21138 _ACEOF
21139 if { (ac_try="$ac_cpp conftest.$ac_ext"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } >/dev/null; then
21152 if test -s conftest.err; then
21153 ac_cpp_err=$ac_c_preproc_warn_flag
21154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21155 else
21156 ac_cpp_err=
21158 else
21159 ac_cpp_err=yes
21161 if test -z "$ac_cpp_err"; then
21162 ac_header_preproc=yes
21163 else
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_header_preproc=no
21170 rm -f conftest.err conftest.$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21172 echo "${ECHO_T}$ac_header_preproc" >&6; }
21174 # So? What about this header?
21175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21176 yes:no: )
21177 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
21178 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
21180 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
21181 ac_header_preproc=yes
21183 no:yes:* )
21184 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
21185 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
21187 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
21189 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
21191 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
21193 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
21195 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
21196 ( cat <<\_ASBOX
21197 ## ------------------------------- ##
21198 ## Report this to www.asterisk.org ##
21199 ## ------------------------------- ##
21200 _ASBOX
21201 ) | sed "s/^/$as_me: WARNING: /" >&2
21203 esac
21204 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
21205 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
21206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209 eval "$as_ac_Header=\$ac_header_preproc"
21211 ac_res=`eval echo '${'$as_ac_Header'}'`
21212 { echo "$as_me:$LINENO: result: $ac_res" >&5
21213 echo "${ECHO_T}$ac_res" >&6; }
21216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21217 GNUTLS_HEADER_FOUND=1
21218 else
21219 GNUTLS_HEADER_FOUND=0
21224 CPPFLAGS="${saved_cppflags}"
21225 else
21226 if test "xgnutls/gnutls.h" != "x" ; then
21227 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
21228 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
21229 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
21230 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
21234 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
21235 else
21236 # Is the header compilable?
21237 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
21238 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
21239 cat >conftest.$ac_ext <<_ACEOF
21240 /* confdefs.h. */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245 $ac_includes_default
21246 #include <gnutls/gnutls.h>
21247 _ACEOF
21248 rm -f conftest.$ac_objext
21249 if { (ac_try="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21263 { (case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_try") 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_try") 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_header_compiler=yes
21283 else
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_header_compiler=no
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21292 echo "${ECHO_T}$ac_header_compiler" >&6; }
21294 # Is the header present?
21295 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
21296 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h. */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <gnutls/gnutls.h>
21304 _ACEOF
21305 if { (ac_try="$ac_cpp conftest.$ac_ext"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } >/dev/null; then
21318 if test -s conftest.err; then
21319 ac_cpp_err=$ac_c_preproc_warn_flag
21320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21321 else
21322 ac_cpp_err=
21324 else
21325 ac_cpp_err=yes
21327 if test -z "$ac_cpp_err"; then
21328 ac_header_preproc=yes
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_header_preproc=no
21336 rm -f conftest.err conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6; }
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342 yes:no: )
21343 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc=yes
21349 no:yes:* )
21350 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
21362 ( cat <<\_ASBOX
21363 ## ------------------------------- ##
21364 ## Report this to www.asterisk.org ##
21365 ## ------------------------------- ##
21366 _ASBOX
21367 ) | sed "s/^/$as_me: WARNING: /" >&2
21369 esac
21370 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
21371 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
21372 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 else
21375 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
21377 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
21378 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
21381 if test $ac_cv_header_gnutls_gnutls_h = yes; then
21382 GNUTLS_HEADER_FOUND=1
21383 else
21384 GNUTLS_HEADER_FOUND=0
21390 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
21391 if test -n "${GNUTLS_MANDATORY}" ;
21392 then
21393 { echo "$as_me:$LINENO: ***" >&5
21394 echo "$as_me: ***" >&6;}
21395 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
21396 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
21397 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
21398 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
21399 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
21400 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
21401 exit 1
21403 GNUTLS_LIB=""
21404 GNUTLS_INCLUDE=""
21405 PBX_GNUTLS=0
21406 else
21407 PBX_GNUTLS=1
21409 cat >>confdefs.h <<_ACEOF
21410 #define HAVE_GNUTLS 1
21411 _ACEOF
21414 elif test -n "${GNUTLS_MANDATORY}";
21415 then
21416 { echo "$as_me:$LINENO: ***" >&5
21417 echo "$as_me: ***" >&6;}
21418 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
21419 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
21420 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21421 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21422 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
21423 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
21424 exit 1
21430 if test "${USE_IMAP_TK}" != "no"; then
21431 if test "${IMAP_TK_DIR}" = ""; then
21432 IMAP_TK_DIR=`pwd`"/../imap-2004g"
21433 if test -n "${IMAP_TK_MANDATORY}"; then
21434 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
21435 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
21436 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
21437 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
21438 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
21439 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
21440 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
21441 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
21444 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
21445 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
21446 saved_cppflags="${CPPFLAGS}"
21447 saved_libs="${LIBS}"
21448 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
21449 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
21451 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
21452 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h. */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include "c-client.h"
21460 void mm_searched (MAILSTREAM *stream,unsigned long number)
21463 void mm_exists (MAILSTREAM *stream,unsigned long number)
21466 void mm_expunged (MAILSTREAM *stream,unsigned long number)
21469 void mm_flags (MAILSTREAM *stream,unsigned long number)
21472 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
21475 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21478 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21481 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
21484 void mm_log (char *string,long errflg)
21487 void mm_dlog (char *string)
21490 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
21493 void mm_critical (MAILSTREAM *stream)
21496 void mm_nocritical (MAILSTREAM *stream)
21499 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
21502 void mm_fatal (char *string)
21506 main ()
21509 MAILSTREAM *foo = mail_open(NULL, "", 0);
21513 return 0;
21515 _ACEOF
21516 rm -f conftest.$ac_objext conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_link") 2>conftest.er1
21524 ac_status=$?
21525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21531 { (case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_try") 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest$ac_exeext'
21541 { (case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_try") 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_imap_tk="yes"
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 ac_cv_imap_tk="no"
21559 rm -f core conftest.err conftest.$ac_objext \
21560 conftest$ac_exeext conftest.$ac_ext
21561 if test "${ac_cv_imap_tk}" = "yes"; then
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h. */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 #include "c-client.h"
21569 void mm_searched (MAILSTREAM *stream,unsigned long number)
21572 void mm_exists (MAILSTREAM *stream,unsigned long number)
21575 void mm_expunged (MAILSTREAM *stream,unsigned long number)
21578 void mm_flags (MAILSTREAM *stream,unsigned long number)
21581 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
21584 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21587 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
21590 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
21593 void mm_log (char *string,long errflg)
21596 void mm_dlog (char *string)
21599 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
21602 void mm_critical (MAILSTREAM *stream)
21605 void mm_nocritical (MAILSTREAM *stream)
21608 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
21611 void mm_fatal (char *string)
21615 main ()
21618 long check = mail_expunge_full(NULL, "", 0);
21622 return 0;
21624 _ACEOF
21625 rm -f conftest.$ac_objext conftest$ac_exeext
21626 if { (ac_try="$ac_link"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_link") 2>conftest.er1
21633 ac_status=$?
21634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
21639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21640 { (case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_try") 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; } &&
21649 { ac_try='test -s conftest$ac_exeext'
21650 { (case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21653 esac
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_try") 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_cv_imap_tk2006="yes"
21660 else
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_cv_imap_tk2006="no"
21668 rm -f core conftest.err conftest.$ac_objext \
21669 conftest$ac_exeext conftest.$ac_ext
21671 CPPFLAGS="${saved_cppflags}"
21672 LIBS="${saved_libs}"
21673 if test "${ac_cv_imap_tk}" = "yes"; then
21674 { echo "$as_me:$LINENO: result: yes" >&5
21675 echo "${ECHO_T}yes" >&6; }
21676 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
21677 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
21678 PBX_IMAP_TK=1
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_IMAP_TK 1
21682 _ACEOF
21684 if test "${ac_cv_imap_tk2006}" = "yes"; then
21686 cat >>confdefs.h <<\_ACEOF
21687 #define HAVE_IMAP_TK2006 1
21688 _ACEOF
21691 elif test -n "${IMAP_TK_MANDATORY}"; then
21692 { echo "$as_me:$LINENO: result: no" >&5
21693 echo "${ECHO_T}no" >&6; }
21694 { echo "$as_me:$LINENO: ***" >&5
21695 echo "$as_me: ***" >&6;}
21696 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
21697 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
21698 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21699 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21700 { echo "$as_me:$LINENO: *** including --without-imap." >&5
21701 echo "$as_me: *** including --without-imap." >&6;}
21702 exit 1
21703 else
21704 { echo "$as_me:$LINENO: result: no" >&5
21705 echo "${ECHO_T}no" >&6; }
21709 # Needed by unixodbc
21711 if test "${USE_LTDL}" != "no"; then
21712 pbxlibdir=""
21713 if test "x${LTDL_DIR}" != "x"; then
21714 if test -d ${LTDL_DIR}/lib; then
21715 pbxlibdir="-L${LTDL_DIR}/lib"
21716 else
21717 pbxlibdir="-L${LTDL_DIR}"
21720 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
21721 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
21722 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725 ac_check_lib_save_LIBS=$LIBS
21726 LIBS="-lltdl ${pbxlibdir} $LIBS"
21727 cat >conftest.$ac_ext <<_ACEOF
21728 /* confdefs.h. */
21729 _ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21734 /* Override any GCC internal prototype to avoid an error.
21735 Use char because int might match the return type of a GCC
21736 builtin and then its argument prototype would still apply. */
21737 #ifdef __cplusplus
21738 extern "C"
21739 #endif
21740 char lt_dlinit ();
21742 main ()
21744 return lt_dlinit ();
21746 return 0;
21748 _ACEOF
21749 rm -f conftest.$ac_objext conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_link") 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21764 { (case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_try") 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest$ac_exeext'
21774 { (case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_try") 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_lib_ltdl_lt_dlinit=yes
21784 else
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 ac_cv_lib_ltdl_lt_dlinit=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
21796 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
21797 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
21798 AST_LTDL_FOUND=yes
21799 else
21800 AST_LTDL_FOUND=no
21804 if test "${AST_LTDL_FOUND}" = "yes"; then
21805 LTDL_LIB="-lltdl "
21806 LTDL_HEADER_FOUND="1"
21807 if test "x${LTDL_DIR}" != "x"; then
21808 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
21809 LTDL_INCLUDE="-I${LTDL_DIR}/include"
21810 saved_cppflags="${CPPFLAGS}"
21811 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
21812 if test "xltdl.h" != "x" ; then
21813 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
21816 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 ac_res=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21823 else
21824 # Is the header compilable?
21825 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
21826 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h. */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <${LTDL_DIR}/include/ltdl.h>
21835 _ACEOF
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
21844 ac_status=$?
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
21850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21851 { (case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21854 esac
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_try") 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try='test -s conftest.$ac_objext'
21861 { (case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 ac_header_compiler=yes
21871 else
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 ac_header_compiler=no
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21880 echo "${ECHO_T}$ac_header_compiler" >&6; }
21882 # Is the header present?
21883 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
21884 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
21885 cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h. */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 #include <${LTDL_DIR}/include/ltdl.h>
21892 _ACEOF
21893 if { (ac_try="$ac_cpp conftest.$ac_ext"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21900 ac_status=$?
21901 grep -v '^ *+' conftest.er1 >conftest.err
21902 rm -f conftest.er1
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } >/dev/null; then
21906 if test -s conftest.err; then
21907 ac_cpp_err=$ac_c_preproc_warn_flag
21908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21909 else
21910 ac_cpp_err=
21912 else
21913 ac_cpp_err=yes
21915 if test -z "$ac_cpp_err"; then
21916 ac_header_preproc=yes
21917 else
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 ac_header_preproc=no
21924 rm -f conftest.err conftest.$ac_ext
21925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21926 echo "${ECHO_T}$ac_header_preproc" >&6; }
21928 # So? What about this header?
21929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21930 yes:no: )
21931 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21932 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
21934 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
21935 ac_header_preproc=yes
21937 no:yes:* )
21938 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
21939 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
21941 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
21943 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
21945 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
21947 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
21949 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
21950 ( cat <<\_ASBOX
21951 ## ------------------------------- ##
21952 ## Report this to www.asterisk.org ##
21953 ## ------------------------------- ##
21954 _ASBOX
21955 ) | sed "s/^/$as_me: WARNING: /" >&2
21957 esac
21958 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
21959 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
21960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963 eval "$as_ac_Header=\$ac_header_preproc"
21965 ac_res=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21971 LTDL_HEADER_FOUND=1
21972 else
21973 LTDL_HEADER_FOUND=0
21978 CPPFLAGS="${saved_cppflags}"
21979 else
21980 if test "xltdl.h" != "x" ; then
21981 if test "${ac_cv_header_ltdl_h+set}" = set; then
21982 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
21983 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
21984 if test "${ac_cv_header_ltdl_h+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
21988 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
21989 else
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
21992 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <ltdl.h>
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest.$ac_objext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 ac_header_compiler=yes
22037 else
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_header_compiler=no
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048 # Is the header present?
22049 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
22050 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 #include <ltdl.h>
22058 _ACEOF
22059 if { (ac_try="$ac_cpp conftest.$ac_ext"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } >/dev/null; then
22072 if test -s conftest.err; then
22073 ac_cpp_err=$ac_c_preproc_warn_flag
22074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22075 else
22076 ac_cpp_err=
22078 else
22079 ac_cpp_err=yes
22081 if test -z "$ac_cpp_err"; then
22082 ac_header_preproc=yes
22083 else
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_preproc=no
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22094 # So? What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22096 yes:no: )
22097 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
22101 ac_header_preproc=yes
22103 no:yes:* )
22104 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
22116 ( cat <<\_ASBOX
22117 ## ------------------------------- ##
22118 ## Report this to www.asterisk.org ##
22119 ## ------------------------------- ##
22120 _ASBOX
22121 ) | sed "s/^/$as_me: WARNING: /" >&2
22123 esac
22124 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
22125 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
22126 if test "${ac_cv_header_ltdl_h+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129 ac_cv_header_ltdl_h=$ac_header_preproc
22131 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
22132 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
22135 if test $ac_cv_header_ltdl_h = yes; then
22136 LTDL_HEADER_FOUND=1
22137 else
22138 LTDL_HEADER_FOUND=0
22144 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
22145 if test -n "${LTDL_MANDATORY}" ;
22146 then
22147 { echo "$as_me:$LINENO: ***" >&5
22148 echo "$as_me: ***" >&6;}
22149 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
22150 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
22151 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
22152 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
22153 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
22154 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
22155 exit 1
22157 LTDL_LIB=""
22158 LTDL_INCLUDE=""
22159 PBX_LTDL=0
22160 else
22161 PBX_LTDL=1
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_LTDL 1
22165 _ACEOF
22168 elif test -n "${LTDL_MANDATORY}";
22169 then
22170 { echo "$as_me:$LINENO: ***" >&5
22171 echo "$as_me: ***" >&6;}
22172 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
22173 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
22174 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22175 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22176 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
22177 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
22178 exit 1
22183 ac_ext=cpp
22184 ac_cpp='$CXXCPP $CPPFLAGS'
22185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22190 if test "${USE_KDE}" != "no"; then
22191 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
22192 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
22193 saved_libs="${LIBS}"
22194 saved_cppflags="${CPPFLAGS}"
22195 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
22196 if test -d ${KDE_DIR}/lib; then
22197 kdelibdir="${KDE_DIR}/lib"
22198 else
22199 kdelibdir="${KDE_DIR}"
22201 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
22204 cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h. */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 #include "kcrash.h"
22212 main ()
22214 KCrash::defaultCrashHandler(1);
22216 return 0;
22219 _ACEOF
22220 rm -f conftest.$ac_objext conftest$ac_exeext
22221 if { (ac_try="$ac_link"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_link") 2>conftest.er1
22228 ac_status=$?
22229 grep -v '^ *+' conftest.er1 >conftest.err
22230 rm -f conftest.er1
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } &&
22234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22235 { (case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22238 esac
22239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_try") 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; } &&
22244 { ac_try='test -s conftest$ac_exeext'
22245 { (case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_try") 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_lib_kde_crash="yes"
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_lib_kde_crash="no"
22262 rm -f core conftest.err conftest.$ac_objext \
22263 conftest$ac_exeext conftest.$ac_ext
22265 LIBS="${saved_libs}"
22266 CPPFLAGS="${saved_cppflags}"
22268 if test "${ac_cv_lib_kde_crash}" = "yes"; then
22269 { echo "$as_me:$LINENO: result: yes" >&5
22270 echo "${ECHO_T}yes" >&6; }
22271 KDE_LIB="-lkdecore -lkdeui"
22272 if test "${KDE_DIR}" != ""; then
22273 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
22274 KDE_INCLUDE="-I${KDE_DIR}/include"
22276 PBX_KDE=1
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_LIBKDE 1
22280 _ACEOF
22282 elif test -n "${KDE_MANDATORY}"; then
22283 { echo "$as_me:$LINENO: result: no" >&5
22284 echo "${ECHO_T}no" >&6; }
22285 { echo "$as_me:$LINENO: ***" >&5
22286 echo "$as_me: ***" >&6;}
22287 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
22288 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
22289 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22290 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22291 { echo "$as_me:$LINENO: *** including --without-kde." >&5
22292 echo "$as_me: *** including --without-kde." >&6;}
22293 exit 1
22294 else
22295 { echo "$as_me:$LINENO: result: no" >&5
22296 echo "${ECHO_T}no" >&6; }
22299 if test "${PBX_KDE}" = 1; then
22300 if test -n "$ac_tool_prefix"; then
22301 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
22302 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
22303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22305 if test "${ac_cv_path_KDEINIT+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22307 else
22308 case $KDEINIT in
22309 [\\/]* | ?:[\\/]*)
22310 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
22313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22314 for as_dir in $PATH
22316 IFS=$as_save_IFS
22317 test -z "$as_dir" && as_dir=.
22318 for ac_exec_ext in '' $ac_executable_extensions; do
22319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22320 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
22321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22322 break 2
22324 done
22325 done
22326 IFS=$as_save_IFS
22329 esac
22331 KDEINIT=$ac_cv_path_KDEINIT
22332 if test -n "$KDEINIT"; then
22333 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
22334 echo "${ECHO_T}$KDEINIT" >&6; }
22335 else
22336 { echo "$as_me:$LINENO: result: no" >&5
22337 echo "${ECHO_T}no" >&6; }
22342 if test -z "$ac_cv_path_KDEINIT"; then
22343 ac_pt_KDEINIT=$KDEINIT
22344 # Extract the first word of "kdeinit", so it can be a program name with args.
22345 set dummy kdeinit; ac_word=$2
22346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22348 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351 case $ac_pt_KDEINIT in
22352 [\\/]* | ?:[\\/]*)
22353 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
22356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22357 for as_dir in $PATH
22359 IFS=$as_save_IFS
22360 test -z "$as_dir" && as_dir=.
22361 for ac_exec_ext in '' $ac_executable_extensions; do
22362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22363 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
22364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22365 break 2
22367 done
22368 done
22369 IFS=$as_save_IFS
22372 esac
22374 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
22375 if test -n "$ac_pt_KDEINIT"; then
22376 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
22377 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
22378 else
22379 { echo "$as_me:$LINENO: result: no" >&5
22380 echo "${ECHO_T}no" >&6; }
22383 if test "x$ac_pt_KDEINIT" = x; then
22384 KDEINIT="No"
22385 else
22386 case $cross_compiling:$ac_tool_warned in
22387 yes:)
22388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22389 whose name does not start with the host triplet. If you think this
22390 configuration is useful to you, please write to autoconf@gnu.org." >&5
22391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22392 whose name does not start with the host triplet. If you think this
22393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22394 ac_tool_warned=yes ;;
22395 esac
22396 KDEINIT=$ac_pt_KDEINIT
22398 else
22399 KDEINIT="$ac_cv_path_KDEINIT"
22402 if test ! x"${KDEINIT}" = xNo; then
22403 KDEDIR=$(${DIRNAME} ${KDEINIT})
22404 KDEDIR=$(${DIRNAME} ${KDEDIR})
22409 ac_ext=c
22410 ac_cpp='$CPP $CPPFLAGS'
22411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22417 if test "${USE_MISDN}" != "no"; then
22418 pbxlibdir=""
22419 if test "x${MISDN_DIR}" != "x"; then
22420 if test -d ${MISDN_DIR}/lib; then
22421 pbxlibdir="-L${MISDN_DIR}/lib"
22422 else
22423 pbxlibdir="-L${MISDN_DIR}"
22426 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
22427 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
22428 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431 ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-lmISDN ${pbxlibdir} $LIBS"
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22440 /* Override any GCC internal prototype to avoid an error.
22441 Use char because int might match the return type of a GCC
22442 builtin and then its argument prototype would still apply. */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char mISDN_open ();
22448 main ()
22450 return mISDN_open ();
22452 return 0;
22454 _ACEOF
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_link") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest$ac_exeext'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_lib_mISDN_mISDN_open=yes
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_cv_lib_mISDN_mISDN_open=no
22497 rm -f core conftest.err conftest.$ac_objext \
22498 conftest$ac_exeext conftest.$ac_ext
22499 LIBS=$ac_check_lib_save_LIBS
22501 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
22502 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
22503 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
22504 AST_MISDN_FOUND=yes
22505 else
22506 AST_MISDN_FOUND=no
22510 if test "${AST_MISDN_FOUND}" = "yes"; then
22511 MISDN_LIB="-lmISDN "
22512 MISDN_HEADER_FOUND="1"
22513 if test "x${MISDN_DIR}" != "x"; then
22514 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
22515 MISDN_INCLUDE="-I${MISDN_DIR}/include"
22516 saved_cppflags="${CPPFLAGS}"
22517 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
22518 if test "xmISDNuser/mISDNlib.h" != "x" ; then
22519 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
22520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22521 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
22522 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
22523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 ac_res=`eval echo '${'$as_ac_Header'}'`
22527 { echo "$as_me:$LINENO: result: $ac_res" >&5
22528 echo "${ECHO_T}$ac_res" >&6; }
22529 else
22530 # Is the header compilable?
22531 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
22532 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h. */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22540 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22550 ac_status=$?
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
22556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22557 { (case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22560 esac
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_try") 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest.$ac_objext'
22567 { (case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_try") 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_header_compiler=yes
22577 else
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22581 ac_header_compiler=no
22584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22586 echo "${ECHO_T}$ac_header_compiler" >&6; }
22588 # Is the header present?
22589 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
22590 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
22598 _ACEOF
22599 if { (ac_try="$ac_cpp conftest.$ac_ext"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22606 ac_status=$?
22607 grep -v '^ *+' conftest.er1 >conftest.err
22608 rm -f conftest.er1
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } >/dev/null; then
22612 if test -s conftest.err; then
22613 ac_cpp_err=$ac_c_preproc_warn_flag
22614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22615 else
22616 ac_cpp_err=
22618 else
22619 ac_cpp_err=yes
22621 if test -z "$ac_cpp_err"; then
22622 ac_header_preproc=yes
22623 else
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_header_preproc=no
22630 rm -f conftest.err conftest.$ac_ext
22631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22632 echo "${ECHO_T}$ac_header_preproc" >&6; }
22634 # So? What about this header?
22635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22636 yes:no: )
22637 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22638 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22639 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
22640 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
22641 ac_header_preproc=yes
22643 no:yes:* )
22644 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
22645 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
22646 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
22647 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
22648 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
22649 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
22650 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
22651 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22652 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
22653 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
22654 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
22655 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
22656 ( cat <<\_ASBOX
22657 ## ------------------------------- ##
22658 ## Report this to www.asterisk.org ##
22659 ## ------------------------------- ##
22660 _ASBOX
22661 ) | sed "s/^/$as_me: WARNING: /" >&2
22663 esac
22664 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
22665 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
22666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669 eval "$as_ac_Header=\$ac_header_preproc"
22671 ac_res=`eval echo '${'$as_ac_Header'}'`
22672 { echo "$as_me:$LINENO: result: $ac_res" >&5
22673 echo "${ECHO_T}$ac_res" >&6; }
22676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22677 MISDN_HEADER_FOUND=1
22678 else
22679 MISDN_HEADER_FOUND=0
22684 CPPFLAGS="${saved_cppflags}"
22685 else
22686 if test "xmISDNuser/mISDNlib.h" != "x" ; then
22687 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
22688 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
22689 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
22690 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
22691 echo $ECHO_N "(cached) $ECHO_C" >&6
22693 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
22694 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
22695 else
22696 # Is the header compilable?
22697 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
22698 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 $ac_includes_default
22706 #include <mISDNuser/mISDNlib.h>
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } &&
22722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22723 { (case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_try") 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest.$ac_objext'
22733 { (case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_try") 2>&5
22739 ac_status=$?
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; }; then
22742 ac_header_compiler=yes
22743 else
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_header_compiler=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22752 echo "${ECHO_T}$ac_header_compiler" >&6; }
22754 # Is the header present?
22755 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
22756 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 #include <mISDNuser/mISDNlib.h>
22764 _ACEOF
22765 if { (ac_try="$ac_cpp conftest.$ac_ext"
22766 case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22769 esac
22770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22772 ac_status=$?
22773 grep -v '^ *+' conftest.er1 >conftest.err
22774 rm -f conftest.er1
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } >/dev/null; then
22778 if test -s conftest.err; then
22779 ac_cpp_err=$ac_c_preproc_warn_flag
22780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22781 else
22782 ac_cpp_err=
22784 else
22785 ac_cpp_err=yes
22787 if test -z "$ac_cpp_err"; then
22788 ac_header_preproc=yes
22789 else
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 ac_header_preproc=no
22796 rm -f conftest.err conftest.$ac_ext
22797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22798 echo "${ECHO_T}$ac_header_preproc" >&6; }
22800 # So? What about this header?
22801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22802 yes:no: )
22803 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22804 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22805 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
22806 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
22807 ac_header_preproc=yes
22809 no:yes:* )
22810 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
22811 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
22812 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
22813 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
22815 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
22817 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
22819 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
22821 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
22822 ( cat <<\_ASBOX
22823 ## ------------------------------- ##
22824 ## Report this to www.asterisk.org ##
22825 ## ------------------------------- ##
22826 _ASBOX
22827 ) | sed "s/^/$as_me: WARNING: /" >&2
22829 esac
22830 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
22831 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
22832 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
22837 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
22838 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
22841 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
22842 MISDN_HEADER_FOUND=1
22843 else
22844 MISDN_HEADER_FOUND=0
22850 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
22851 if test -n "${MISDN_MANDATORY}" ;
22852 then
22853 { echo "$as_me:$LINENO: ***" >&5
22854 echo "$as_me: ***" >&6;}
22855 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
22856 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
22857 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
22858 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
22859 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
22860 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
22861 exit 1
22863 MISDN_LIB=""
22864 MISDN_INCLUDE=""
22865 PBX_MISDN=0
22866 else
22867 PBX_MISDN=1
22869 cat >>confdefs.h <<_ACEOF
22870 #define HAVE_MISDN 1
22871 _ACEOF
22874 elif test -n "${MISDN_MANDATORY}";
22875 then
22876 { echo "$as_me:$LINENO: ***" >&5
22877 echo "$as_me: ***" >&6;}
22878 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
22879 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
22880 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22881 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22882 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
22883 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
22884 exit 1
22889 if test "${PBX_MISDN}" = 1; then
22891 if test "${USE_ISDNNET}" != "no"; then
22892 pbxlibdir=""
22893 if test "x${ISDNNET_DIR}" != "x"; then
22894 if test -d ${ISDNNET_DIR}/lib; then
22895 pbxlibdir="-L${ISDNNET_DIR}/lib"
22896 else
22897 pbxlibdir="-L${ISDNNET_DIR}"
22900 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
22901 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
22902 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905 ac_check_lib_save_LIBS=$LIBS
22906 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h. */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22914 /* Override any GCC internal prototype to avoid an error.
22915 Use char because int might match the return type of a GCC
22916 builtin and then its argument prototype would still apply. */
22917 #ifdef __cplusplus
22918 extern "C"
22919 #endif
22920 char init_manager ();
22922 main ()
22924 return init_manager ();
22926 return 0;
22928 _ACEOF
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_link") 2>conftest.er1
22937 ac_status=$?
22938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22944 { (case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_try") 2>&5
22950 ac_status=$?
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; } &&
22953 { ac_try='test -s conftest$ac_exeext'
22954 { (case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22957 esac
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_try") 2>&5
22960 ac_status=$?
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; }; then
22963 ac_cv_lib_isdnnet_init_manager=yes
22964 else
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ac_cv_lib_isdnnet_init_manager=no
22971 rm -f core conftest.err conftest.$ac_objext \
22972 conftest$ac_exeext conftest.$ac_ext
22973 LIBS=$ac_check_lib_save_LIBS
22975 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
22976 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
22977 if test $ac_cv_lib_isdnnet_init_manager = yes; then
22978 AST_ISDNNET_FOUND=yes
22979 else
22980 AST_ISDNNET_FOUND=no
22984 if test "${AST_ISDNNET_FOUND}" = "yes"; then
22985 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
22986 ISDNNET_HEADER_FOUND="1"
22987 if test "x${ISDNNET_DIR}" != "x"; then
22988 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
22989 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
22990 saved_cppflags="${CPPFLAGS}"
22991 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
22992 if test "xmISDNuser/isdn_net.h" != "x" ; then
22993 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
22994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22995 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
22996 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
22997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 ac_res=`eval echo '${'$as_ac_Header'}'`
23001 { echo "$as_me:$LINENO: result: $ac_res" >&5
23002 echo "${ECHO_T}$ac_res" >&6; }
23003 else
23004 # Is the header compilable?
23005 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
23006 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
23007 cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h. */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 $ac_includes_default
23014 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
23015 _ACEOF
23016 rm -f conftest.$ac_objext
23017 if { (ac_try="$ac_compile"
23018 case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_compile") 2>conftest.er1
23024 ac_status=$?
23025 grep -v '^ *+' conftest.er1 >conftest.err
23026 rm -f conftest.er1
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } &&
23030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23031 { (case "(($ac_try" in
23032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033 *) ac_try_echo=$ac_try;;
23034 esac
23035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23036 (eval "$ac_try") 2>&5
23037 ac_status=$?
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; } &&
23040 { ac_try='test -s conftest.$ac_objext'
23041 { (case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_try") 2>&5
23047 ac_status=$?
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 ac_header_compiler=yes
23051 else
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_header_compiler=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
23064 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
23072 _ACEOF
23073 if { (ac_try="$ac_cpp conftest.$ac_ext"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null; then
23086 if test -s conftest.err; then
23087 ac_cpp_err=$ac_c_preproc_warn_flag
23088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23089 else
23090 ac_cpp_err=
23092 else
23093 ac_cpp_err=yes
23095 if test -z "$ac_cpp_err"; then
23096 ac_header_preproc=yes
23097 else
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ac_header_preproc=no
23104 rm -f conftest.err conftest.$ac_ext
23105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23106 echo "${ECHO_T}$ac_header_preproc" >&6; }
23108 # So? What about this header?
23109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23110 yes:no: )
23111 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
23112 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
23114 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
23115 ac_header_preproc=yes
23117 no:yes:* )
23118 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
23119 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
23120 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
23121 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
23122 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
23123 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
23124 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
23125 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
23126 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
23127 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
23128 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
23129 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
23130 ( cat <<\_ASBOX
23131 ## ------------------------------- ##
23132 ## Report this to www.asterisk.org ##
23133 ## ------------------------------- ##
23134 _ASBOX
23135 ) | sed "s/^/$as_me: WARNING: /" >&2
23137 esac
23138 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
23139 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
23140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143 eval "$as_ac_Header=\$ac_header_preproc"
23145 ac_res=`eval echo '${'$as_ac_Header'}'`
23146 { echo "$as_me:$LINENO: result: $ac_res" >&5
23147 echo "${ECHO_T}$ac_res" >&6; }
23150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23151 ISDNNET_HEADER_FOUND=1
23152 else
23153 ISDNNET_HEADER_FOUND=0
23158 CPPFLAGS="${saved_cppflags}"
23159 else
23160 if test "xmISDNuser/isdn_net.h" != "x" ; then
23161 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
23162 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
23163 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
23164 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
23168 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
23169 else
23170 # Is the header compilable?
23171 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
23172 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
23173 cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h. */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23179 $ac_includes_default
23180 #include <mISDNuser/isdn_net.h>
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } &&
23196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23197 { (case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_try") 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest.$ac_objext'
23207 { (case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_try") 2>&5
23213 ac_status=$?
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_header_compiler=yes
23217 else
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_header_compiler=no
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23226 echo "${ECHO_T}$ac_header_compiler" >&6; }
23228 # Is the header present?
23229 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
23230 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
23231 cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h. */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 #include <mISDNuser/isdn_net.h>
23238 _ACEOF
23239 if { (ac_try="$ac_cpp conftest.$ac_ext"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23246 ac_status=$?
23247 grep -v '^ *+' conftest.er1 >conftest.err
23248 rm -f conftest.er1
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } >/dev/null; then
23252 if test -s conftest.err; then
23253 ac_cpp_err=$ac_c_preproc_warn_flag
23254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23255 else
23256 ac_cpp_err=
23258 else
23259 ac_cpp_err=yes
23261 if test -z "$ac_cpp_err"; then
23262 ac_header_preproc=yes
23263 else
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ac_header_preproc=no
23270 rm -f conftest.err conftest.$ac_ext
23271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23272 echo "${ECHO_T}$ac_header_preproc" >&6; }
23274 # So? What about this header?
23275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23276 yes:no: )
23277 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
23278 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23279 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
23280 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
23281 ac_header_preproc=yes
23283 no:yes:* )
23284 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
23285 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
23286 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
23287 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
23288 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
23289 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
23291 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
23293 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
23294 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
23295 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
23296 ( cat <<\_ASBOX
23297 ## ------------------------------- ##
23298 ## Report this to www.asterisk.org ##
23299 ## ------------------------------- ##
23300 _ASBOX
23301 ) | sed "s/^/$as_me: WARNING: /" >&2
23303 esac
23304 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
23305 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
23306 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23309 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
23311 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
23312 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
23315 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
23316 ISDNNET_HEADER_FOUND=1
23317 else
23318 ISDNNET_HEADER_FOUND=0
23324 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
23325 if test -n "${ISDNNET_MANDATORY}" ;
23326 then
23327 { echo "$as_me:$LINENO: ***" >&5
23328 echo "$as_me: ***" >&6;}
23329 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
23330 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
23331 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
23332 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
23333 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
23334 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
23335 exit 1
23337 ISDNNET_LIB=""
23338 ISDNNET_INCLUDE=""
23339 PBX_ISDNNET=0
23340 else
23341 PBX_ISDNNET=1
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_ISDNNET 1
23345 _ACEOF
23348 elif test -n "${ISDNNET_MANDATORY}";
23349 then
23350 { echo "$as_me:$LINENO: ***" >&5
23351 echo "$as_me: ***" >&6;}
23352 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
23353 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
23354 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23355 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23356 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
23357 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
23358 exit 1
23363 if test "${USE_SUPPSERV}" != "no"; then
23364 pbxlibdir=""
23365 if test "x${SUPPSERV_DIR}" != "x"; then
23366 if test -d ${SUPPSERV_DIR}/lib; then
23367 pbxlibdir="-L${SUPPSERV_DIR}/lib"
23368 else
23369 pbxlibdir="-L${SUPPSERV_DIR}"
23372 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
23373 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
23374 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377 ac_check_lib_save_LIBS=$LIBS
23378 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23386 /* Override any GCC internal prototype to avoid an error.
23387 Use char because int might match the return type of a GCC
23388 builtin and then its argument prototype would still apply. */
23389 #ifdef __cplusplus
23390 extern "C"
23391 #endif
23392 char encodeFac ();
23394 main ()
23396 return encodeFac ();
23398 return 0;
23400 _ACEOF
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (ac_try="$ac_link"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_link") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23416 { (case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23419 esac
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_try") 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; } &&
23425 { ac_try='test -s conftest$ac_exeext'
23426 { (case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_try") 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 ac_cv_lib_suppserv_encodeFac=yes
23436 else
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 ac_cv_lib_suppserv_encodeFac=no
23443 rm -f core conftest.err conftest.$ac_objext \
23444 conftest$ac_exeext conftest.$ac_ext
23445 LIBS=$ac_check_lib_save_LIBS
23447 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
23448 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
23449 if test $ac_cv_lib_suppserv_encodeFac = yes; then
23450 AST_SUPPSERV_FOUND=yes
23451 else
23452 AST_SUPPSERV_FOUND=no
23456 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
23457 SUPPSERV_LIB="-lsuppserv "
23458 SUPPSERV_HEADER_FOUND="1"
23459 if test "x${SUPPSERV_DIR}" != "x"; then
23460 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
23461 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
23462 saved_cppflags="${CPPFLAGS}"
23463 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
23464 if test "xmISDNuser/suppserv.h" != "x" ; then
23465 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
23466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
23468 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
23469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23472 ac_res=`eval echo '${'$as_ac_Header'}'`
23473 { echo "$as_me:$LINENO: result: $ac_res" >&5
23474 echo "${ECHO_T}$ac_res" >&6; }
23475 else
23476 # Is the header compilable?
23477 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
23478 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
23479 cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h. */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485 $ac_includes_default
23486 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
23487 _ACEOF
23488 rm -f conftest.$ac_objext
23489 if { (ac_try="$ac_compile"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493 esac
23494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_compile") 2>conftest.er1
23496 ac_status=$?
23497 grep -v '^ *+' conftest.er1 >conftest.err
23498 rm -f conftest.er1
23499 cat conftest.err >&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } &&
23502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23503 { (case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23506 esac
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_try") 2>&5
23509 ac_status=$?
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); }; } &&
23512 { ac_try='test -s conftest.$ac_objext'
23513 { (case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_try") 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_header_compiler=yes
23523 else
23524 echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 ac_header_compiler=no
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23532 echo "${ECHO_T}$ac_header_compiler" >&6; }
23534 # Is the header present?
23535 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
23536 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
23537 cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h. */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
23544 _ACEOF
23545 if { (ac_try="$ac_cpp conftest.$ac_ext"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23549 esac
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23552 ac_status=$?
23553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } >/dev/null; then
23558 if test -s conftest.err; then
23559 ac_cpp_err=$ac_c_preproc_warn_flag
23560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23561 else
23562 ac_cpp_err=
23564 else
23565 ac_cpp_err=yes
23567 if test -z "$ac_cpp_err"; then
23568 ac_header_preproc=yes
23569 else
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23573 ac_header_preproc=no
23576 rm -f conftest.err conftest.$ac_ext
23577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23578 echo "${ECHO_T}$ac_header_preproc" >&6; }
23580 # So? What about this header?
23581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23582 yes:no: )
23583 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
23584 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23585 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
23586 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
23587 ac_header_preproc=yes
23589 no:yes:* )
23590 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
23591 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
23592 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
23593 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
23594 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
23595 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
23596 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
23597 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
23598 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
23599 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
23600 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
23601 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
23602 ( cat <<\_ASBOX
23603 ## ------------------------------- ##
23604 ## Report this to www.asterisk.org ##
23605 ## ------------------------------- ##
23606 _ASBOX
23607 ) | sed "s/^/$as_me: WARNING: /" >&2
23609 esac
23610 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
23611 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
23612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615 eval "$as_ac_Header=\$ac_header_preproc"
23617 ac_res=`eval echo '${'$as_ac_Header'}'`
23618 { echo "$as_me:$LINENO: result: $ac_res" >&5
23619 echo "${ECHO_T}$ac_res" >&6; }
23622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23623 SUPPSERV_HEADER_FOUND=1
23624 else
23625 SUPPSERV_HEADER_FOUND=0
23630 CPPFLAGS="${saved_cppflags}"
23631 else
23632 if test "xmISDNuser/suppserv.h" != "x" ; then
23633 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
23634 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
23635 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
23636 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
23640 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
23641 else
23642 # Is the header compilable?
23643 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
23644 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
23645 cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h. */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23651 $ac_includes_default
23652 #include <mISDNuser/suppserv.h>
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658 *) ac_try_echo=$ac_try;;
23659 esac
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661 (eval "$ac_compile") 2>conftest.er1
23662 ac_status=$?
23663 grep -v '^ *+' conftest.er1 >conftest.err
23664 rm -f conftest.er1
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23669 { (case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23672 esac
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_try") 2>&5
23675 ac_status=$?
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; } &&
23678 { ac_try='test -s conftest.$ac_objext'
23679 { (case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_try") 2>&5
23685 ac_status=$?
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; }; then
23688 ac_header_compiler=yes
23689 else
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_header_compiler=no
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23698 echo "${ECHO_T}$ac_header_compiler" >&6; }
23700 # Is the header present?
23701 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
23702 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 #include <mISDNuser/suppserv.h>
23710 _ACEOF
23711 if { (ac_try="$ac_cpp conftest.$ac_ext"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715 esac
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } >/dev/null; then
23724 if test -s conftest.err; then
23725 ac_cpp_err=$ac_c_preproc_warn_flag
23726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23727 else
23728 ac_cpp_err=
23730 else
23731 ac_cpp_err=yes
23733 if test -z "$ac_cpp_err"; then
23734 ac_header_preproc=yes
23735 else
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ac_header_preproc=no
23742 rm -f conftest.err conftest.$ac_ext
23743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23744 echo "${ECHO_T}$ac_header_preproc" >&6; }
23746 # So? What about this header?
23747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23748 yes:no: )
23749 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
23750 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23751 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
23752 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
23753 ac_header_preproc=yes
23755 no:yes:* )
23756 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
23757 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
23758 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
23759 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
23760 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
23761 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
23762 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
23763 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
23764 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
23765 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
23766 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
23767 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
23768 ( cat <<\_ASBOX
23769 ## ------------------------------- ##
23770 ## Report this to www.asterisk.org ##
23771 ## ------------------------------- ##
23772 _ASBOX
23773 ) | sed "s/^/$as_me: WARNING: /" >&2
23775 esac
23776 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
23777 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
23778 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
23783 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
23784 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
23787 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
23788 SUPPSERV_HEADER_FOUND=1
23789 else
23790 SUPPSERV_HEADER_FOUND=0
23796 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
23797 if test -n "${SUPPSERV_MANDATORY}" ;
23798 then
23799 { echo "$as_me:$LINENO: ***" >&5
23800 echo "$as_me: ***" >&6;}
23801 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
23802 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
23803 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
23804 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
23805 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
23806 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
23807 exit 1
23809 SUPPSERV_LIB=""
23810 SUPPSERV_INCLUDE=""
23811 PBX_SUPPSERV=0
23812 else
23813 PBX_SUPPSERV=1
23815 cat >>confdefs.h <<_ACEOF
23816 #define HAVE_SUPPSERV 1
23817 _ACEOF
23820 elif test -n "${SUPPSERV_MANDATORY}";
23821 then
23822 { echo "$as_me:$LINENO: ***" >&5
23823 echo "$as_me: ***" >&6;}
23824 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
23825 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
23826 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23827 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23828 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
23829 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
23830 exit 1
23834 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23835 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
23836 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
23837 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23838 echo $ECHO_N "(cached) $ECHO_C" >&6
23840 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
23841 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
23842 else
23843 # Is the header compilable?
23844 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
23845 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
23846 cat >conftest.$ac_ext <<_ACEOF
23847 /* confdefs.h. */
23848 _ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h. */
23852 $ac_includes_default
23853 #include <linux/mISDNdsp.h>
23854 _ACEOF
23855 rm -f conftest.$ac_objext
23856 if { (ac_try="$ac_compile"
23857 case "(($ac_try" in
23858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859 *) ac_try_echo=$ac_try;;
23860 esac
23861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23862 (eval "$ac_compile") 2>conftest.er1
23863 ac_status=$?
23864 grep -v '^ *+' conftest.er1 >conftest.err
23865 rm -f conftest.er1
23866 cat conftest.err >&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } &&
23869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23870 { (case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_try") 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; } &&
23879 { ac_try='test -s conftest.$ac_objext'
23880 { (case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883 esac
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885 (eval "$ac_try") 2>&5
23886 ac_status=$?
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); }; }; then
23889 ac_header_compiler=yes
23890 else
23891 echo "$as_me: failed program was:" >&5
23892 sed 's/^/| /' conftest.$ac_ext >&5
23894 ac_header_compiler=no
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23899 echo "${ECHO_T}$ac_header_compiler" >&6; }
23901 # Is the header present?
23902 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
23903 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
23904 cat >conftest.$ac_ext <<_ACEOF
23905 /* confdefs.h. */
23906 _ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h. */
23910 #include <linux/mISDNdsp.h>
23911 _ACEOF
23912 if { (ac_try="$ac_cpp conftest.$ac_ext"
23913 case "(($ac_try" in
23914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23916 esac
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23919 ac_status=$?
23920 grep -v '^ *+' conftest.er1 >conftest.err
23921 rm -f conftest.er1
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } >/dev/null; then
23925 if test -s conftest.err; then
23926 ac_cpp_err=$ac_c_preproc_warn_flag
23927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23928 else
23929 ac_cpp_err=
23931 else
23932 ac_cpp_err=yes
23934 if test -z "$ac_cpp_err"; then
23935 ac_header_preproc=yes
23936 else
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23940 ac_header_preproc=no
23943 rm -f conftest.err conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23945 echo "${ECHO_T}$ac_header_preproc" >&6; }
23947 # So? What about this header?
23948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23949 yes:no: )
23950 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
23951 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23952 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
23953 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
23954 ac_header_preproc=yes
23956 no:yes:* )
23957 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
23958 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
23959 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
23960 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
23961 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
23962 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
23963 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
23964 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
23965 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
23966 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
23967 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
23968 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
23969 ( cat <<\_ASBOX
23970 ## ------------------------------- ##
23971 ## Report this to www.asterisk.org ##
23972 ## ------------------------------- ##
23973 _ASBOX
23974 ) | sed "s/^/$as_me: WARNING: /" >&2
23976 esac
23977 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
23978 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
23979 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 else
23982 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
23984 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
23985 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
23988 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
23990 cat >>confdefs.h <<_ACEOF
23991 #define MISDN_1_2 1
23992 _ACEOF
24000 if test "${USE_NBS}" != "no"; then
24001 pbxlibdir=""
24002 if test "x${NBS_DIR}" != "x"; then
24003 if test -d ${NBS_DIR}/lib; then
24004 pbxlibdir="-L${NBS_DIR}/lib"
24005 else
24006 pbxlibdir="-L${NBS_DIR}"
24009 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
24010 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
24011 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014 ac_check_lib_save_LIBS=$LIBS
24015 LIBS="-lnbs ${pbxlibdir} $LIBS"
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h. */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24023 /* Override any GCC internal prototype to avoid an error.
24024 Use char because int might match the return type of a GCC
24025 builtin and then its argument prototype would still apply. */
24026 #ifdef __cplusplus
24027 extern "C"
24028 #endif
24029 char nbs_connect ();
24031 main ()
24033 return nbs_connect ();
24035 return 0;
24037 _ACEOF
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (ac_try="$ac_link"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_link") 2>conftest.er1
24046 ac_status=$?
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } &&
24052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24053 { (case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056 esac
24057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_try") 2>&5
24059 ac_status=$?
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest$ac_exeext'
24063 { (case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_try") 2>&5
24069 ac_status=$?
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); }; }; then
24072 ac_cv_lib_nbs_nbs_connect=yes
24073 else
24074 echo "$as_me: failed program was:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24077 ac_cv_lib_nbs_nbs_connect=no
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24082 LIBS=$ac_check_lib_save_LIBS
24084 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
24085 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
24086 if test $ac_cv_lib_nbs_nbs_connect = yes; then
24087 AST_NBS_FOUND=yes
24088 else
24089 AST_NBS_FOUND=no
24093 if test "${AST_NBS_FOUND}" = "yes"; then
24094 NBS_LIB="-lnbs "
24095 NBS_HEADER_FOUND="1"
24096 if test "x${NBS_DIR}" != "x"; then
24097 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
24098 NBS_INCLUDE="-I${NBS_DIR}/include"
24099 saved_cppflags="${CPPFLAGS}"
24100 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
24101 if test "xnbs.h" != "x" ; then
24102 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
24103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24104 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
24105 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
24106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24107 echo $ECHO_N "(cached) $ECHO_C" >&6
24109 ac_res=`eval echo '${'$as_ac_Header'}'`
24110 { echo "$as_me:$LINENO: result: $ac_res" >&5
24111 echo "${ECHO_T}$ac_res" >&6; }
24112 else
24113 # Is the header compilable?
24114 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
24115 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h. */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 $ac_includes_default
24123 #include <${NBS_DIR}/include/nbs.h>
24124 _ACEOF
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24130 esac
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_compile") 2>conftest.er1
24133 ac_status=$?
24134 grep -v '^ *+' conftest.er1 >conftest.err
24135 rm -f conftest.er1
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } &&
24139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24140 { (case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_try") 2>&5
24146 ac_status=$?
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; } &&
24149 { ac_try='test -s conftest.$ac_objext'
24150 { (case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_try") 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 ac_header_compiler=yes
24160 else
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 ac_header_compiler=no
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24169 echo "${ECHO_T}$ac_header_compiler" >&6; }
24171 # Is the header present?
24172 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
24173 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
24174 cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h. */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 #include <${NBS_DIR}/include/nbs.h>
24181 _ACEOF
24182 if { (ac_try="$ac_cpp conftest.$ac_ext"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } >/dev/null; then
24195 if test -s conftest.err; then
24196 ac_cpp_err=$ac_c_preproc_warn_flag
24197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24198 else
24199 ac_cpp_err=
24201 else
24202 ac_cpp_err=yes
24204 if test -z "$ac_cpp_err"; then
24205 ac_header_preproc=yes
24206 else
24207 echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24210 ac_header_preproc=no
24213 rm -f conftest.err conftest.$ac_ext
24214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24215 echo "${ECHO_T}$ac_header_preproc" >&6; }
24217 # So? What about this header?
24218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24219 yes:no: )
24220 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24221 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24222 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
24223 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
24224 ac_header_preproc=yes
24226 no:yes:* )
24227 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
24228 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
24230 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
24231 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
24232 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
24233 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
24234 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
24236 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
24238 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
24239 ( cat <<\_ASBOX
24240 ## ------------------------------- ##
24241 ## Report this to www.asterisk.org ##
24242 ## ------------------------------- ##
24243 _ASBOX
24244 ) | sed "s/^/$as_me: WARNING: /" >&2
24246 esac
24247 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
24248 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
24249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24251 else
24252 eval "$as_ac_Header=\$ac_header_preproc"
24254 ac_res=`eval echo '${'$as_ac_Header'}'`
24255 { echo "$as_me:$LINENO: result: $ac_res" >&5
24256 echo "${ECHO_T}$ac_res" >&6; }
24259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24260 NBS_HEADER_FOUND=1
24261 else
24262 NBS_HEADER_FOUND=0
24267 CPPFLAGS="${saved_cppflags}"
24268 else
24269 if test "xnbs.h" != "x" ; then
24270 if test "${ac_cv_header_nbs_h+set}" = set; then
24271 { echo "$as_me:$LINENO: checking for nbs.h" >&5
24272 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
24273 if test "${ac_cv_header_nbs_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
24277 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
24278 else
24279 # Is the header compilable?
24280 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
24281 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
24282 cat >conftest.$ac_ext <<_ACEOF
24283 /* confdefs.h. */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24289 #include <nbs.h>
24290 _ACEOF
24291 rm -f conftest.$ac_objext
24292 if { (ac_try="$ac_compile"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24296 esac
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
24305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24306 { (case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24309 esac
24310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24311 (eval "$ac_try") 2>&5
24312 ac_status=$?
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; } &&
24315 { ac_try='test -s conftest.$ac_objext'
24316 { (case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_try") 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_header_compiler=yes
24326 else
24327 echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24330 ac_header_compiler=no
24333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24335 echo "${ECHO_T}$ac_header_compiler" >&6; }
24337 # Is the header present?
24338 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
24339 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
24340 cat >conftest.$ac_ext <<_ACEOF
24341 /* confdefs.h. */
24342 _ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h. */
24346 #include <nbs.h>
24347 _ACEOF
24348 if { (ac_try="$ac_cpp conftest.$ac_ext"
24349 case "(($ac_try" in
24350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351 *) ac_try_echo=$ac_try;;
24352 esac
24353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24355 ac_status=$?
24356 grep -v '^ *+' conftest.er1 >conftest.err
24357 rm -f conftest.er1
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } >/dev/null; then
24361 if test -s conftest.err; then
24362 ac_cpp_err=$ac_c_preproc_warn_flag
24363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24364 else
24365 ac_cpp_err=
24367 else
24368 ac_cpp_err=yes
24370 if test -z "$ac_cpp_err"; then
24371 ac_header_preproc=yes
24372 else
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_header_preproc=no
24379 rm -f conftest.err conftest.$ac_ext
24380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24381 echo "${ECHO_T}$ac_header_preproc" >&6; }
24383 # So? What about this header?
24384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24385 yes:no: )
24386 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24387 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
24389 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
24390 ac_header_preproc=yes
24392 no:yes:* )
24393 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
24394 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
24395 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
24396 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
24397 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
24398 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
24400 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
24402 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
24404 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
24405 ( cat <<\_ASBOX
24406 ## ------------------------------- ##
24407 ## Report this to www.asterisk.org ##
24408 ## ------------------------------- ##
24409 _ASBOX
24410 ) | sed "s/^/$as_me: WARNING: /" >&2
24412 esac
24413 { echo "$as_me:$LINENO: checking for nbs.h" >&5
24414 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
24415 if test "${ac_cv_header_nbs_h+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418 ac_cv_header_nbs_h=$ac_header_preproc
24420 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
24421 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
24424 if test $ac_cv_header_nbs_h = yes; then
24425 NBS_HEADER_FOUND=1
24426 else
24427 NBS_HEADER_FOUND=0
24433 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
24434 if test -n "${NBS_MANDATORY}" ;
24435 then
24436 { echo "$as_me:$LINENO: ***" >&5
24437 echo "$as_me: ***" >&6;}
24438 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
24439 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
24440 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
24441 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
24442 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
24443 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
24444 exit 1
24446 NBS_LIB=""
24447 NBS_INCLUDE=""
24448 PBX_NBS=0
24449 else
24450 PBX_NBS=1
24452 cat >>confdefs.h <<_ACEOF
24453 #define HAVE_NBS 1
24454 _ACEOF
24457 elif test -n "${NBS_MANDATORY}";
24458 then
24459 { echo "$as_me:$LINENO: ***" >&5
24460 echo "$as_me: ***" >&6;}
24461 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
24462 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
24463 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24464 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24465 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
24466 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
24467 exit 1
24473 if test "${USE_NCURSES}" != "no"; then
24474 pbxlibdir=""
24475 if test "x${NCURSES_DIR}" != "x"; then
24476 if test -d ${NCURSES_DIR}/lib; then
24477 pbxlibdir="-L${NCURSES_DIR}/lib"
24478 else
24479 pbxlibdir="-L${NCURSES_DIR}"
24482 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
24483 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
24484 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 else
24487 ac_check_lib_save_LIBS=$LIBS
24488 LIBS="-lncurses ${pbxlibdir} $LIBS"
24489 cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h. */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24496 /* Override any GCC internal prototype to avoid an error.
24497 Use char because int might match the return type of a GCC
24498 builtin and then its argument prototype would still apply. */
24499 #ifdef __cplusplus
24500 extern "C"
24501 #endif
24502 char initscr ();
24504 main ()
24506 return initscr ();
24508 return 0;
24510 _ACEOF
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24516 esac
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_link") 2>conftest.er1
24519 ac_status=$?
24520 grep -v '^ *+' conftest.er1 >conftest.err
24521 rm -f conftest.er1
24522 cat conftest.err >&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } &&
24525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24526 { (case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24529 esac
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531 (eval "$ac_try") 2>&5
24532 ac_status=$?
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); }; } &&
24535 { ac_try='test -s conftest$ac_exeext'
24536 { (case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24539 esac
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_try") 2>&5
24542 ac_status=$?
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_cv_lib_ncurses_initscr=yes
24546 else
24547 echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_cv_lib_ncurses_initscr=no
24553 rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
24555 LIBS=$ac_check_lib_save_LIBS
24557 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
24558 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
24559 if test $ac_cv_lib_ncurses_initscr = yes; then
24560 AST_NCURSES_FOUND=yes
24561 else
24562 AST_NCURSES_FOUND=no
24566 if test "${AST_NCURSES_FOUND}" = "yes"; then
24567 NCURSES_LIB="-lncurses "
24568 NCURSES_HEADER_FOUND="1"
24569 if test "x${NCURSES_DIR}" != "x"; then
24570 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
24571 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
24572 saved_cppflags="${CPPFLAGS}"
24573 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
24574 if test "xcurses.h" != "x" ; then
24575 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
24576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24577 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
24578 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
24579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24582 ac_res=`eval echo '${'$as_ac_Header'}'`
24583 { echo "$as_me:$LINENO: result: $ac_res" >&5
24584 echo "${ECHO_T}$ac_res" >&6; }
24585 else
24586 # Is the header compilable?
24587 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
24588 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
24589 cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h. */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24595 $ac_includes_default
24596 #include <${NCURSES_DIR}/include/curses.h>
24597 _ACEOF
24598 rm -f conftest.$ac_objext
24599 if { (ac_try="$ac_compile"
24600 case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_compile") 2>conftest.er1
24606 ac_status=$?
24607 grep -v '^ *+' conftest.er1 >conftest.err
24608 rm -f conftest.er1
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } &&
24612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24613 { (case "(($ac_try" in
24614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615 *) ac_try_echo=$ac_try;;
24616 esac
24617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24618 (eval "$ac_try") 2>&5
24619 ac_status=$?
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); }; } &&
24622 { ac_try='test -s conftest.$ac_objext'
24623 { (case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_try") 2>&5
24629 ac_status=$?
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; }; then
24632 ac_header_compiler=yes
24633 else
24634 echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24637 ac_header_compiler=no
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24642 echo "${ECHO_T}$ac_header_compiler" >&6; }
24644 # Is the header present?
24645 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
24646 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
24647 cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h. */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24653 #include <${NCURSES_DIR}/include/curses.h>
24654 _ACEOF
24655 if { (ac_try="$ac_cpp conftest.$ac_ext"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24662 ac_status=$?
24663 grep -v '^ *+' conftest.er1 >conftest.err
24664 rm -f conftest.er1
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } >/dev/null; then
24668 if test -s conftest.err; then
24669 ac_cpp_err=$ac_c_preproc_warn_flag
24670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24671 else
24672 ac_cpp_err=
24674 else
24675 ac_cpp_err=yes
24677 if test -z "$ac_cpp_err"; then
24678 ac_header_preproc=yes
24679 else
24680 echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24683 ac_header_preproc=no
24686 rm -f conftest.err conftest.$ac_ext
24687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24688 echo "${ECHO_T}$ac_header_preproc" >&6; }
24690 # So? What about this header?
24691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24692 yes:no: )
24693 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24694 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
24696 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
24697 ac_header_preproc=yes
24699 no:yes:* )
24700 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
24701 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
24702 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
24703 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
24705 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
24706 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
24707 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
24708 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
24709 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
24711 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
24712 ( cat <<\_ASBOX
24713 ## ------------------------------- ##
24714 ## Report this to www.asterisk.org ##
24715 ## ------------------------------- ##
24716 _ASBOX
24717 ) | sed "s/^/$as_me: WARNING: /" >&2
24719 esac
24720 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
24721 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
24722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24724 else
24725 eval "$as_ac_Header=\$ac_header_preproc"
24727 ac_res=`eval echo '${'$as_ac_Header'}'`
24728 { echo "$as_me:$LINENO: result: $ac_res" >&5
24729 echo "${ECHO_T}$ac_res" >&6; }
24732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24733 NCURSES_HEADER_FOUND=1
24734 else
24735 NCURSES_HEADER_FOUND=0
24740 CPPFLAGS="${saved_cppflags}"
24741 else
24742 if test "xcurses.h" != "x" ; then
24743 if test "${ac_cv_header_curses_h+set}" = set; then
24744 { echo "$as_me:$LINENO: checking for curses.h" >&5
24745 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24746 if test "${ac_cv_header_curses_h+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
24749 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24750 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24751 else
24752 # Is the header compilable?
24753 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24754 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h. */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24761 $ac_includes_default
24762 #include <curses.h>
24763 _ACEOF
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768 *) ac_try_echo=$ac_try;;
24769 esac
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771 (eval "$ac_compile") 2>conftest.er1
24772 ac_status=$?
24773 grep -v '^ *+' conftest.er1 >conftest.err
24774 rm -f conftest.er1
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } &&
24778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24779 { (case "(($ac_try" in
24780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24782 esac
24783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24784 (eval "$ac_try") 2>&5
24785 ac_status=$?
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; } &&
24788 { ac_try='test -s conftest.$ac_objext'
24789 { (case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_try") 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_header_compiler=yes
24799 else
24800 echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24803 ac_header_compiler=no
24806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24808 echo "${ECHO_T}$ac_header_compiler" >&6; }
24810 # Is the header present?
24811 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24812 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24813 cat >conftest.$ac_ext <<_ACEOF
24814 /* confdefs.h. */
24815 _ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h. */
24819 #include <curses.h>
24820 _ACEOF
24821 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
24834 if test -s conftest.err; then
24835 ac_cpp_err=$ac_c_preproc_warn_flag
24836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24837 else
24838 ac_cpp_err=
24840 else
24841 ac_cpp_err=yes
24843 if test -z "$ac_cpp_err"; then
24844 ac_header_preproc=yes
24845 else
24846 echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24849 ac_header_preproc=no
24852 rm -f conftest.err conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24854 echo "${ECHO_T}$ac_header_preproc" >&6; }
24856 # So? What about this header?
24857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24858 yes:no: )
24859 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24860 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24862 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24863 ac_header_preproc=yes
24865 no:yes:* )
24866 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24867 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24868 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
24869 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
24870 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24871 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24872 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
24873 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24875 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24876 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24877 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24878 ( cat <<\_ASBOX
24879 ## ------------------------------- ##
24880 ## Report this to www.asterisk.org ##
24881 ## ------------------------------- ##
24882 _ASBOX
24883 ) | sed "s/^/$as_me: WARNING: /" >&2
24885 esac
24886 { echo "$as_me:$LINENO: checking for curses.h" >&5
24887 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24888 if test "${ac_cv_header_curses_h+set}" = set; then
24889 echo $ECHO_N "(cached) $ECHO_C" >&6
24890 else
24891 ac_cv_header_curses_h=$ac_header_preproc
24893 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24894 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24897 if test $ac_cv_header_curses_h = yes; then
24898 NCURSES_HEADER_FOUND=1
24899 else
24900 NCURSES_HEADER_FOUND=0
24906 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
24907 if test -n "${NCURSES_MANDATORY}" ;
24908 then
24909 { echo "$as_me:$LINENO: ***" >&5
24910 echo "$as_me: ***" >&6;}
24911 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
24912 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
24913 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
24914 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
24915 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
24916 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
24917 exit 1
24919 NCURSES_LIB=""
24920 NCURSES_INCLUDE=""
24921 PBX_NCURSES=0
24922 else
24923 PBX_NCURSES=1
24925 cat >>confdefs.h <<_ACEOF
24926 #define HAVE_NCURSES 1
24927 _ACEOF
24930 elif test -n "${NCURSES_MANDATORY}";
24931 then
24932 { echo "$as_me:$LINENO: ***" >&5
24933 echo "$as_me: ***" >&6;}
24934 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
24935 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
24936 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24937 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24938 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
24939 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
24940 exit 1
24945 NETSNMP_CONFIG=No
24946 if test "${USE_NETSNMP}" != "no"; then
24947 if test "x${NETSNMP_DIR}" != "x"; then
24948 if test -n "$ac_tool_prefix"; then
24949 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
24950 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
24951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24953 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
24954 echo $ECHO_N "(cached) $ECHO_C" >&6
24955 else
24956 case $NETSNMP_CONFIG in
24957 [\\/]* | ?:[\\/]*)
24958 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
24961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24962 for as_dir in ${NETSNMP_DIR}/bin
24964 IFS=$as_save_IFS
24965 test -z "$as_dir" && as_dir=.
24966 for ac_exec_ext in '' $ac_executable_extensions; do
24967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24968 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24970 break 2
24972 done
24973 done
24974 IFS=$as_save_IFS
24977 esac
24979 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
24980 if test -n "$NETSNMP_CONFIG"; then
24981 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
24982 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
24983 else
24984 { echo "$as_me:$LINENO: result: no" >&5
24985 echo "${ECHO_T}no" >&6; }
24990 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
24991 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
24992 # Extract the first word of "net-snmp-config", so it can be a program name with args.
24993 set dummy net-snmp-config; ac_word=$2
24994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24996 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 else
24999 case $ac_pt_NETSNMP_CONFIG in
25000 [\\/]* | ?:[\\/]*)
25001 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
25004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25005 for as_dir in ${NETSNMP_DIR}/bin
25007 IFS=$as_save_IFS
25008 test -z "$as_dir" && as_dir=.
25009 for ac_exec_ext in '' $ac_executable_extensions; do
25010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25011 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25013 break 2
25015 done
25016 done
25017 IFS=$as_save_IFS
25020 esac
25022 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
25023 if test -n "$ac_pt_NETSNMP_CONFIG"; then
25024 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
25025 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
25026 else
25027 { echo "$as_me:$LINENO: result: no" >&5
25028 echo "${ECHO_T}no" >&6; }
25031 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
25032 NETSNMP_CONFIG="No"
25033 else
25034 case $cross_compiling:$ac_tool_warned in
25035 yes:)
25036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25037 whose name does not start with the host triplet. If you think this
25038 configuration is useful to you, please write to autoconf@gnu.org." >&5
25039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25040 whose name does not start with the host triplet. If you think this
25041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25042 ac_tool_warned=yes ;;
25043 esac
25044 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
25046 else
25047 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
25050 if test x"${NETSNMP_CONFIG}" = xNo; then
25051 { echo "$as_me:$LINENO: ***" >&5
25052 echo "$as_me: ***" >&6;}
25053 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
25054 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
25055 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
25056 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
25057 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25058 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25059 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
25060 echo "$as_me: *** including --without-netsnmp" >&6;}
25061 exit 1
25063 else
25064 if test -n "$ac_tool_prefix"; then
25065 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
25066 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
25067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25069 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25071 else
25072 case $NETSNMP_CONFIG in
25073 [\\/]* | ?:[\\/]*)
25074 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
25077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25078 for as_dir in $PATH
25080 IFS=$as_save_IFS
25081 test -z "$as_dir" && as_dir=.
25082 for ac_exec_ext in '' $ac_executable_extensions; do
25083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25084 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25086 break 2
25088 done
25089 done
25090 IFS=$as_save_IFS
25093 esac
25095 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
25096 if test -n "$NETSNMP_CONFIG"; then
25097 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
25098 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
25099 else
25100 { echo "$as_me:$LINENO: result: no" >&5
25101 echo "${ECHO_T}no" >&6; }
25106 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
25107 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
25108 # Extract the first word of "net-snmp-config", so it can be a program name with args.
25109 set dummy net-snmp-config; ac_word=$2
25110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25112 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
25114 else
25115 case $ac_pt_NETSNMP_CONFIG in
25116 [\\/]* | ?:[\\/]*)
25117 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
25120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25121 for as_dir in $PATH
25123 IFS=$as_save_IFS
25124 test -z "$as_dir" && as_dir=.
25125 for ac_exec_ext in '' $ac_executable_extensions; do
25126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25127 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25129 break 2
25131 done
25132 done
25133 IFS=$as_save_IFS
25136 esac
25138 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
25139 if test -n "$ac_pt_NETSNMP_CONFIG"; then
25140 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
25141 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
25142 else
25143 { echo "$as_me:$LINENO: result: no" >&5
25144 echo "${ECHO_T}no" >&6; }
25147 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
25148 NETSNMP_CONFIG="No"
25149 else
25150 case $cross_compiling:$ac_tool_warned in
25151 yes:)
25152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25153 whose name does not start with the host triplet. If you think this
25154 configuration is useful to you, please write to autoconf@gnu.org." >&5
25155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25156 whose name does not start with the host triplet. If you think this
25157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25158 ac_tool_warned=yes ;;
25159 esac
25160 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
25162 else
25163 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
25168 if test x"${NETSNMP_CONFIG}" != xNo; then
25169 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
25171 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
25172 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
25173 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 else
25176 ac_check_lib_save_LIBS=$LIBS
25177 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25185 /* Override any GCC internal prototype to avoid an error.
25186 Use char because int might match the return type of a GCC
25187 builtin and then its argument prototype would still apply. */
25188 #ifdef __cplusplus
25189 extern "C"
25190 #endif
25191 char snmp_register_callback ();
25193 main ()
25195 return snmp_register_callback ();
25197 return 0;
25199 _ACEOF
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (ac_try="$ac_link"
25202 case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25205 esac
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207 (eval "$ac_link") 2>conftest.er1
25208 ac_status=$?
25209 grep -v '^ *+' conftest.er1 >conftest.err
25210 rm -f conftest.er1
25211 cat conftest.err >&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } &&
25214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25215 { (case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25218 esac
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_try") 2>&5
25221 ac_status=$?
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; } &&
25224 { ac_try='test -s conftest$ac_exeext'
25225 { (case "(($ac_try" in
25226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25228 esac
25229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25230 (eval "$ac_try") 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; }; then
25234 ac_cv_lib_netsnmp_snmp_register_callback=yes
25235 else
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 ac_cv_lib_netsnmp_snmp_register_callback=no
25242 rm -f core conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
25244 LIBS=$ac_check_lib_save_LIBS
25246 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
25247 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
25248 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
25250 cat >>confdefs.h <<_ACEOF
25251 #define HAVE_NETSNMP 1
25252 _ACEOF
25257 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
25258 NETSNMP_LIB="${NETSNMP_libs}"
25259 PBX_NETSNMP=1
25260 elif test -n "${NETSNMP_MANDATORY}";
25261 then
25262 { echo "$as_me:$LINENO: ***" >&5
25263 echo "$as_me: ***" >&6;}
25264 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
25265 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
25266 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25267 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25268 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
25269 echo "$as_me: *** including --without-netsnmp" >&6;}
25270 exit 1
25272 elif test -n "${NETSNMP_MANDATORY}";
25273 then
25274 { echo "$as_me:$LINENO: ***" >&5
25275 echo "$as_me: ***" >&6;}
25276 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
25277 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
25278 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25279 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25280 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
25281 echo "$as_me: *** including --without-netsnmp" >&6;}
25282 exit 1
25286 if test "${USE_NEWT}" != "no"; then
25287 pbxlibdir=""
25288 if test "x${NEWT_DIR}" != "x"; then
25289 if test -d ${NEWT_DIR}/lib; then
25290 pbxlibdir="-L${NEWT_DIR}/lib"
25291 else
25292 pbxlibdir="-L${NEWT_DIR}"
25295 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
25296 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
25297 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 else
25300 ac_check_lib_save_LIBS=$LIBS
25301 LIBS="-lnewt ${pbxlibdir} $LIBS"
25302 cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h. */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25309 /* Override any GCC internal prototype to avoid an error.
25310 Use char because int might match the return type of a GCC
25311 builtin and then its argument prototype would still apply. */
25312 #ifdef __cplusplus
25313 extern "C"
25314 #endif
25315 char newtBell ();
25317 main ()
25319 return newtBell ();
25321 return 0;
25323 _ACEOF
25324 rm -f conftest.$ac_objext conftest$ac_exeext
25325 if { (ac_try="$ac_link"
25326 case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25329 esac
25330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25331 (eval "$ac_link") 2>conftest.er1
25332 ac_status=$?
25333 grep -v '^ *+' conftest.er1 >conftest.err
25334 rm -f conftest.er1
25335 cat conftest.err >&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } &&
25338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25339 { (case "(($ac_try" in
25340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341 *) ac_try_echo=$ac_try;;
25342 esac
25343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25344 (eval "$ac_try") 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; } &&
25348 { ac_try='test -s conftest$ac_exeext'
25349 { (case "(($ac_try" in
25350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351 *) ac_try_echo=$ac_try;;
25352 esac
25353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25354 (eval "$ac_try") 2>&5
25355 ac_status=$?
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 ac_cv_lib_newt_newtBell=yes
25359 else
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_cv_lib_newt_newtBell=no
25366 rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
25368 LIBS=$ac_check_lib_save_LIBS
25370 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
25371 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
25372 if test $ac_cv_lib_newt_newtBell = yes; then
25373 AST_NEWT_FOUND=yes
25374 else
25375 AST_NEWT_FOUND=no
25379 if test "${AST_NEWT_FOUND}" = "yes"; then
25380 NEWT_LIB="-lnewt "
25381 NEWT_HEADER_FOUND="1"
25382 if test "x${NEWT_DIR}" != "x"; then
25383 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
25384 NEWT_INCLUDE="-I${NEWT_DIR}/include"
25385 saved_cppflags="${CPPFLAGS}"
25386 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
25387 if test "xnewt.h" != "x" ; then
25388 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
25389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25390 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
25391 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
25392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25395 ac_res=`eval echo '${'$as_ac_Header'}'`
25396 { echo "$as_me:$LINENO: result: $ac_res" >&5
25397 echo "${ECHO_T}$ac_res" >&6; }
25398 else
25399 # Is the header compilable?
25400 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
25401 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h. */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 $ac_includes_default
25409 #include <${NEWT_DIR}/include/newt.h>
25410 _ACEOF
25411 rm -f conftest.$ac_objext
25412 if { (ac_try="$ac_compile"
25413 case "(($ac_try" in
25414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25415 *) ac_try_echo=$ac_try;;
25416 esac
25417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25418 (eval "$ac_compile") 2>conftest.er1
25419 ac_status=$?
25420 grep -v '^ *+' conftest.er1 >conftest.err
25421 rm -f conftest.er1
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
25425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25426 { (case "(($ac_try" in
25427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428 *) ac_try_echo=$ac_try;;
25429 esac
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431 (eval "$ac_try") 2>&5
25432 ac_status=$?
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest.$ac_objext'
25436 { (case "(($ac_try" in
25437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438 *) ac_try_echo=$ac_try;;
25439 esac
25440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25441 (eval "$ac_try") 2>&5
25442 ac_status=$?
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); }; }; then
25445 ac_header_compiler=yes
25446 else
25447 echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25450 ac_header_compiler=no
25453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25455 echo "${ECHO_T}$ac_header_compiler" >&6; }
25457 # Is the header present?
25458 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
25459 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
25460 cat >conftest.$ac_ext <<_ACEOF
25461 /* confdefs.h. */
25462 _ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h. */
25466 #include <${NEWT_DIR}/include/newt.h>
25467 _ACEOF
25468 if { (ac_try="$ac_cpp conftest.$ac_ext"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25472 esac
25473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25475 ac_status=$?
25476 grep -v '^ *+' conftest.er1 >conftest.err
25477 rm -f conftest.er1
25478 cat conftest.err >&5
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); } >/dev/null; then
25481 if test -s conftest.err; then
25482 ac_cpp_err=$ac_c_preproc_warn_flag
25483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25484 else
25485 ac_cpp_err=
25487 else
25488 ac_cpp_err=yes
25490 if test -z "$ac_cpp_err"; then
25491 ac_header_preproc=yes
25492 else
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25496 ac_header_preproc=no
25499 rm -f conftest.err conftest.$ac_ext
25500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25501 echo "${ECHO_T}$ac_header_preproc" >&6; }
25503 # So? What about this header?
25504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25505 yes:no: )
25506 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25507 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25508 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
25509 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
25510 ac_header_preproc=yes
25512 no:yes:* )
25513 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
25514 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
25516 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
25517 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
25518 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
25519 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
25520 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
25522 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
25524 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
25525 ( cat <<\_ASBOX
25526 ## ------------------------------- ##
25527 ## Report this to www.asterisk.org ##
25528 ## ------------------------------- ##
25529 _ASBOX
25530 ) | sed "s/^/$as_me: WARNING: /" >&2
25532 esac
25533 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
25534 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
25535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25536 echo $ECHO_N "(cached) $ECHO_C" >&6
25537 else
25538 eval "$as_ac_Header=\$ac_header_preproc"
25540 ac_res=`eval echo '${'$as_ac_Header'}'`
25541 { echo "$as_me:$LINENO: result: $ac_res" >&5
25542 echo "${ECHO_T}$ac_res" >&6; }
25545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25546 NEWT_HEADER_FOUND=1
25547 else
25548 NEWT_HEADER_FOUND=0
25553 CPPFLAGS="${saved_cppflags}"
25554 else
25555 if test "xnewt.h" != "x" ; then
25556 if test "${ac_cv_header_newt_h+set}" = set; then
25557 { echo "$as_me:$LINENO: checking for newt.h" >&5
25558 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
25559 if test "${ac_cv_header_newt_h+set}" = set; then
25560 echo $ECHO_N "(cached) $ECHO_C" >&6
25562 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
25563 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
25564 else
25565 # Is the header compilable?
25566 { echo "$as_me:$LINENO: checking newt.h usability" >&5
25567 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
25568 cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h. */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 $ac_includes_default
25575 #include <newt.h>
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25582 esac
25583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25584 (eval "$ac_compile") 2>conftest.er1
25585 ac_status=$?
25586 grep -v '^ *+' conftest.er1 >conftest.err
25587 rm -f conftest.er1
25588 cat conftest.err >&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
25591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25592 { (case "(($ac_try" in
25593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25594 *) ac_try_echo=$ac_try;;
25595 esac
25596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25597 (eval "$ac_try") 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; } &&
25601 { ac_try='test -s conftest.$ac_objext'
25602 { (case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25605 esac
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607 (eval "$ac_try") 2>&5
25608 ac_status=$?
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_header_compiler=yes
25612 else
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ac_header_compiler=no
25619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25621 echo "${ECHO_T}$ac_header_compiler" >&6; }
25623 # Is the header present?
25624 { echo "$as_me:$LINENO: checking newt.h presence" >&5
25625 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
25626 cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h. */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 #include <newt.h>
25633 _ACEOF
25634 if { (ac_try="$ac_cpp conftest.$ac_ext"
25635 case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25641 ac_status=$?
25642 grep -v '^ *+' conftest.er1 >conftest.err
25643 rm -f conftest.er1
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } >/dev/null; then
25647 if test -s conftest.err; then
25648 ac_cpp_err=$ac_c_preproc_warn_flag
25649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25650 else
25651 ac_cpp_err=
25653 else
25654 ac_cpp_err=yes
25656 if test -z "$ac_cpp_err"; then
25657 ac_header_preproc=yes
25658 else
25659 echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25662 ac_header_preproc=no
25665 rm -f conftest.err conftest.$ac_ext
25666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25667 echo "${ECHO_T}$ac_header_preproc" >&6; }
25669 # So? What about this header?
25670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25671 yes:no: )
25672 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25673 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25674 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
25675 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
25676 ac_header_preproc=yes
25678 no:yes:* )
25679 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
25680 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
25681 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
25682 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
25683 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
25684 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
25685 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
25686 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25687 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
25688 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
25689 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
25690 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
25691 ( cat <<\_ASBOX
25692 ## ------------------------------- ##
25693 ## Report this to www.asterisk.org ##
25694 ## ------------------------------- ##
25695 _ASBOX
25696 ) | sed "s/^/$as_me: WARNING: /" >&2
25698 esac
25699 { echo "$as_me:$LINENO: checking for newt.h" >&5
25700 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
25701 if test "${ac_cv_header_newt_h+set}" = set; then
25702 echo $ECHO_N "(cached) $ECHO_C" >&6
25703 else
25704 ac_cv_header_newt_h=$ac_header_preproc
25706 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
25707 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
25710 if test $ac_cv_header_newt_h = yes; then
25711 NEWT_HEADER_FOUND=1
25712 else
25713 NEWT_HEADER_FOUND=0
25719 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
25720 if test -n "${NEWT_MANDATORY}" ;
25721 then
25722 { echo "$as_me:$LINENO: ***" >&5
25723 echo "$as_me: ***" >&6;}
25724 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
25725 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
25726 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
25727 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
25728 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
25729 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
25730 exit 1
25732 NEWT_LIB=""
25733 NEWT_INCLUDE=""
25734 PBX_NEWT=0
25735 else
25736 PBX_NEWT=1
25738 cat >>confdefs.h <<_ACEOF
25739 #define HAVE_NEWT 1
25740 _ACEOF
25743 elif test -n "${NEWT_MANDATORY}";
25744 then
25745 { echo "$as_me:$LINENO: ***" >&5
25746 echo "$as_me: ***" >&6;}
25747 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
25748 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
25749 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25750 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25751 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
25752 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
25753 exit 1
25759 if test "${USE_UNIXODBC}" != "no"; then
25760 pbxlibdir=""
25761 if test "x${UNIXODBC_DIR}" != "x"; then
25762 if test -d ${UNIXODBC_DIR}/lib; then
25763 pbxlibdir="-L${UNIXODBC_DIR}/lib"
25764 else
25765 pbxlibdir="-L${UNIXODBC_DIR}"
25768 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
25769 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
25770 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
25771 echo $ECHO_N "(cached) $ECHO_C" >&6
25772 else
25773 ac_check_lib_save_LIBS=$LIBS
25774 LIBS="-lodbc ${pbxlibdir} $LIBS"
25775 cat >conftest.$ac_ext <<_ACEOF
25776 /* confdefs.h. */
25777 _ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h. */
25782 /* Override any GCC internal prototype to avoid an error.
25783 Use char because int might match the return type of a GCC
25784 builtin and then its argument prototype would still apply. */
25785 #ifdef __cplusplus
25786 extern "C"
25787 #endif
25788 char SQLConnect ();
25790 main ()
25792 return SQLConnect ();
25794 return 0;
25796 _ACEOF
25797 rm -f conftest.$ac_objext conftest$ac_exeext
25798 if { (ac_try="$ac_link"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25802 esac
25803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25804 (eval "$ac_link") 2>conftest.er1
25805 ac_status=$?
25806 grep -v '^ *+' conftest.er1 >conftest.err
25807 rm -f conftest.er1
25808 cat conftest.err >&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } &&
25811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25812 { (case "(($ac_try" in
25813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25814 *) ac_try_echo=$ac_try;;
25815 esac
25816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25817 (eval "$ac_try") 2>&5
25818 ac_status=$?
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); }; } &&
25821 { ac_try='test -s conftest$ac_exeext'
25822 { (case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25825 esac
25826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25827 (eval "$ac_try") 2>&5
25828 ac_status=$?
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); }; }; then
25831 ac_cv_lib_odbc_SQLConnect=yes
25832 else
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25836 ac_cv_lib_odbc_SQLConnect=no
25839 rm -f core conftest.err conftest.$ac_objext \
25840 conftest$ac_exeext conftest.$ac_ext
25841 LIBS=$ac_check_lib_save_LIBS
25843 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
25844 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
25845 if test $ac_cv_lib_odbc_SQLConnect = yes; then
25846 AST_UNIXODBC_FOUND=yes
25847 else
25848 AST_UNIXODBC_FOUND=no
25852 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
25853 UNIXODBC_LIB="-lodbc "
25854 UNIXODBC_HEADER_FOUND="1"
25855 if test "x${UNIXODBC_DIR}" != "x"; then
25856 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
25857 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
25858 saved_cppflags="${CPPFLAGS}"
25859 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
25860 if test "xsql.h" != "x" ; then
25861 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
25862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25863 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
25864 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
25865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25868 ac_res=`eval echo '${'$as_ac_Header'}'`
25869 { echo "$as_me:$LINENO: result: $ac_res" >&5
25870 echo "${ECHO_T}$ac_res" >&6; }
25871 else
25872 # Is the header compilable?
25873 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
25874 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
25875 cat >conftest.$ac_ext <<_ACEOF
25876 /* confdefs.h. */
25877 _ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h. */
25881 $ac_includes_default
25882 #include <${UNIXODBC_DIR}/include/sql.h>
25883 _ACEOF
25884 rm -f conftest.$ac_objext
25885 if { (ac_try="$ac_compile"
25886 case "(($ac_try" in
25887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888 *) ac_try_echo=$ac_try;;
25889 esac
25890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25891 (eval "$ac_compile") 2>conftest.er1
25892 ac_status=$?
25893 grep -v '^ *+' conftest.er1 >conftest.err
25894 rm -f conftest.er1
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } &&
25898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25899 { (case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25902 esac
25903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25904 (eval "$ac_try") 2>&5
25905 ac_status=$?
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); }; } &&
25908 { ac_try='test -s conftest.$ac_objext'
25909 { (case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25912 esac
25913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25914 (eval "$ac_try") 2>&5
25915 ac_status=$?
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; }; then
25918 ac_header_compiler=yes
25919 else
25920 echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25923 ac_header_compiler=no
25926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25928 echo "${ECHO_T}$ac_header_compiler" >&6; }
25930 # Is the header present?
25931 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
25932 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
25933 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h. */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 #include <${UNIXODBC_DIR}/include/sql.h>
25940 _ACEOF
25941 if { (ac_try="$ac_cpp conftest.$ac_ext"
25942 case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25945 esac
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25948 ac_status=$?
25949 grep -v '^ *+' conftest.er1 >conftest.err
25950 rm -f conftest.er1
25951 cat conftest.err >&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } >/dev/null; then
25954 if test -s conftest.err; then
25955 ac_cpp_err=$ac_c_preproc_warn_flag
25956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25957 else
25958 ac_cpp_err=
25960 else
25961 ac_cpp_err=yes
25963 if test -z "$ac_cpp_err"; then
25964 ac_header_preproc=yes
25965 else
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ac_header_preproc=no
25972 rm -f conftest.err conftest.$ac_ext
25973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25974 echo "${ECHO_T}$ac_header_preproc" >&6; }
25976 # So? What about this header?
25977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25978 yes:no: )
25979 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25980 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
25982 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
25983 ac_header_preproc=yes
25985 no:yes:* )
25986 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
25987 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
25989 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
25991 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
25993 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
25995 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
25997 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
25998 ( cat <<\_ASBOX
25999 ## ------------------------------- ##
26000 ## Report this to www.asterisk.org ##
26001 ## ------------------------------- ##
26002 _ASBOX
26003 ) | sed "s/^/$as_me: WARNING: /" >&2
26005 esac
26006 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
26007 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
26008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26010 else
26011 eval "$as_ac_Header=\$ac_header_preproc"
26013 ac_res=`eval echo '${'$as_ac_Header'}'`
26014 { echo "$as_me:$LINENO: result: $ac_res" >&5
26015 echo "${ECHO_T}$ac_res" >&6; }
26018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26019 UNIXODBC_HEADER_FOUND=1
26020 else
26021 UNIXODBC_HEADER_FOUND=0
26026 CPPFLAGS="${saved_cppflags}"
26027 else
26028 if test "xsql.h" != "x" ; then
26029 if test "${ac_cv_header_sql_h+set}" = set; then
26030 { echo "$as_me:$LINENO: checking for sql.h" >&5
26031 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
26032 if test "${ac_cv_header_sql_h+set}" = set; then
26033 echo $ECHO_N "(cached) $ECHO_C" >&6
26035 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26036 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
26037 else
26038 # Is the header compilable?
26039 { echo "$as_me:$LINENO: checking sql.h usability" >&5
26040 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
26041 cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h. */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 $ac_includes_default
26048 #include <sql.h>
26049 _ACEOF
26050 rm -f conftest.$ac_objext
26051 if { (ac_try="$ac_compile"
26052 case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_compile") 2>conftest.er1
26058 ac_status=$?
26059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } &&
26064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26065 { (case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_try") 2>&5
26071 ac_status=$?
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; } &&
26074 { ac_try='test -s conftest.$ac_objext'
26075 { (case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26078 esac
26079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26080 (eval "$ac_try") 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_header_compiler=yes
26085 else
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 ac_header_compiler=no
26092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26094 echo "${ECHO_T}$ac_header_compiler" >&6; }
26096 # Is the header present?
26097 { echo "$as_me:$LINENO: checking sql.h presence" >&5
26098 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
26099 cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h. */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 #include <sql.h>
26106 _ACEOF
26107 if { (ac_try="$ac_cpp conftest.$ac_ext"
26108 case "(($ac_try" in
26109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110 *) ac_try_echo=$ac_try;;
26111 esac
26112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26114 ac_status=$?
26115 grep -v '^ *+' conftest.er1 >conftest.err
26116 rm -f conftest.er1
26117 cat conftest.err >&5
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); } >/dev/null; then
26120 if test -s conftest.err; then
26121 ac_cpp_err=$ac_c_preproc_warn_flag
26122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26123 else
26124 ac_cpp_err=
26126 else
26127 ac_cpp_err=yes
26129 if test -z "$ac_cpp_err"; then
26130 ac_header_preproc=yes
26131 else
26132 echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26135 ac_header_preproc=no
26138 rm -f conftest.err conftest.$ac_ext
26139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26140 echo "${ECHO_T}$ac_header_preproc" >&6; }
26142 # So? What about this header?
26143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26144 yes:no: )
26145 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26146 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26147 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26148 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26149 ac_header_preproc=yes
26151 no:yes:* )
26152 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26153 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26155 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26156 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26157 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26158 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26159 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26160 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26161 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26162 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26163 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26164 ( cat <<\_ASBOX
26165 ## ------------------------------- ##
26166 ## Report this to www.asterisk.org ##
26167 ## ------------------------------- ##
26168 _ASBOX
26169 ) | sed "s/^/$as_me: WARNING: /" >&2
26171 esac
26172 { echo "$as_me:$LINENO: checking for sql.h" >&5
26173 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
26174 if test "${ac_cv_header_sql_h+set}" = set; then
26175 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 else
26177 ac_cv_header_sql_h=$ac_header_preproc
26179 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26180 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
26183 if test $ac_cv_header_sql_h = yes; then
26184 UNIXODBC_HEADER_FOUND=1
26185 else
26186 UNIXODBC_HEADER_FOUND=0
26192 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
26193 if test -n "${UNIXODBC_MANDATORY}" ;
26194 then
26195 { echo "$as_me:$LINENO: ***" >&5
26196 echo "$as_me: ***" >&6;}
26197 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
26198 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
26199 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
26200 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
26201 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
26202 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
26203 exit 1
26205 UNIXODBC_LIB=""
26206 UNIXODBC_INCLUDE=""
26207 PBX_UNIXODBC=0
26208 else
26209 PBX_UNIXODBC=1
26211 cat >>confdefs.h <<_ACEOF
26212 #define HAVE_UNIXODBC 1
26213 _ACEOF
26216 elif test -n "${UNIXODBC_MANDATORY}";
26217 then
26218 { echo "$as_me:$LINENO: ***" >&5
26219 echo "$as_me: ***" >&6;}
26220 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
26221 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
26222 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26223 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26224 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
26225 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
26226 exit 1
26232 if test "${USE_OGG}" != "no"; then
26233 pbxlibdir=""
26234 if test "x${OGG_DIR}" != "x"; then
26235 if test -d ${OGG_DIR}/lib; then
26236 pbxlibdir="-L${OGG_DIR}/lib"
26237 else
26238 pbxlibdir="-L${OGG_DIR}"
26241 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
26242 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
26243 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
26244 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 else
26246 ac_check_lib_save_LIBS=$LIBS
26247 LIBS="-logg ${pbxlibdir} $LIBS"
26248 cat >conftest.$ac_ext <<_ACEOF
26249 /* confdefs.h. */
26250 _ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h. */
26255 /* Override any GCC internal prototype to avoid an error.
26256 Use char because int might match the return type of a GCC
26257 builtin and then its argument prototype would still apply. */
26258 #ifdef __cplusplus
26259 extern "C"
26260 #endif
26261 char ogg_sync_init ();
26263 main ()
26265 return ogg_sync_init ();
26267 return 0;
26269 _ACEOF
26270 rm -f conftest.$ac_objext conftest$ac_exeext
26271 if { (ac_try="$ac_link"
26272 case "(($ac_try" in
26273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274 *) ac_try_echo=$ac_try;;
26275 esac
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277 (eval "$ac_link") 2>conftest.er1
26278 ac_status=$?
26279 grep -v '^ *+' conftest.er1 >conftest.err
26280 rm -f conftest.er1
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } &&
26284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287 *) ac_try_echo=$ac_try;;
26288 esac
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest$ac_exeext'
26295 { (case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26298 esac
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_try") 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 ac_cv_lib_ogg_ogg_sync_init=yes
26305 else
26306 echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 ac_cv_lib_ogg_ogg_sync_init=no
26312 rm -f core conftest.err conftest.$ac_objext \
26313 conftest$ac_exeext conftest.$ac_ext
26314 LIBS=$ac_check_lib_save_LIBS
26316 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
26317 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
26318 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
26319 AST_OGG_FOUND=yes
26320 else
26321 AST_OGG_FOUND=no
26325 if test "${AST_OGG_FOUND}" = "yes"; then
26326 OGG_LIB="-logg "
26327 OGG_HEADER_FOUND="1"
26328 if test "x${OGG_DIR}" != "x"; then
26329 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
26330 OGG_INCLUDE="-I${OGG_DIR}/include"
26331 saved_cppflags="${CPPFLAGS}"
26332 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
26333 if test "x" != "x" ; then
26334 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
26335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26336 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
26337 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
26338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 ac_res=`eval echo '${'$as_ac_Header'}'`
26342 { echo "$as_me:$LINENO: result: $ac_res" >&5
26343 echo "${ECHO_T}$ac_res" >&6; }
26344 else
26345 # Is the header compilable?
26346 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
26347 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
26348 cat >conftest.$ac_ext <<_ACEOF
26349 /* confdefs.h. */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26354 $ac_includes_default
26355 #include <${OGG_DIR}/include/>
26356 _ACEOF
26357 rm -f conftest.$ac_objext
26358 if { (ac_try="$ac_compile"
26359 case "(($ac_try" in
26360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361 *) ac_try_echo=$ac_try;;
26362 esac
26363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26364 (eval "$ac_compile") 2>conftest.er1
26365 ac_status=$?
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } &&
26371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26372 { (case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_try") 2>&5
26378 ac_status=$?
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); }; } &&
26381 { ac_try='test -s conftest.$ac_objext'
26382 { (case "(($ac_try" in
26383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384 *) ac_try_echo=$ac_try;;
26385 esac
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387 (eval "$ac_try") 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_header_compiler=yes
26392 else
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ac_header_compiler=no
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6; }
26403 # Is the header present?
26404 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
26405 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
26406 cat >conftest.$ac_ext <<_ACEOF
26407 /* confdefs.h. */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 #include <${OGG_DIR}/include/>
26413 _ACEOF
26414 if { (ac_try="$ac_cpp conftest.$ac_ext"
26415 case "(($ac_try" in
26416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417 *) ac_try_echo=$ac_try;;
26418 esac
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26421 ac_status=$?
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } >/dev/null; then
26427 if test -s conftest.err; then
26428 ac_cpp_err=$ac_c_preproc_warn_flag
26429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26430 else
26431 ac_cpp_err=
26433 else
26434 ac_cpp_err=yes
26436 if test -z "$ac_cpp_err"; then
26437 ac_header_preproc=yes
26438 else
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_header_preproc=no
26445 rm -f conftest.err conftest.$ac_ext
26446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26447 echo "${ECHO_T}$ac_header_preproc" >&6; }
26449 # So? What about this header?
26450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26451 yes:no: )
26452 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
26453 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
26454 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
26455 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
26456 ac_header_preproc=yes
26458 no:yes:* )
26459 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
26460 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
26461 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
26462 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
26463 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
26464 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
26465 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
26466 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
26467 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
26468 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
26469 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
26470 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
26471 ( cat <<\_ASBOX
26472 ## ------------------------------- ##
26473 ## Report this to www.asterisk.org ##
26474 ## ------------------------------- ##
26475 _ASBOX
26476 ) | sed "s/^/$as_me: WARNING: /" >&2
26478 esac
26479 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
26480 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
26481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 else
26484 eval "$as_ac_Header=\$ac_header_preproc"
26486 ac_res=`eval echo '${'$as_ac_Header'}'`
26487 { echo "$as_me:$LINENO: result: $ac_res" >&5
26488 echo "${ECHO_T}$ac_res" >&6; }
26491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26492 OGG_HEADER_FOUND=1
26493 else
26494 OGG_HEADER_FOUND=0
26499 CPPFLAGS="${saved_cppflags}"
26500 else
26501 if test "x" != "x" ; then
26502 if test "${ac_cv_header_+set}" = set; then
26503 { echo "$as_me:$LINENO: checking for " >&5
26504 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26505 if test "${ac_cv_header_+set}" = set; then
26506 echo $ECHO_N "(cached) $ECHO_C" >&6
26508 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26509 echo "${ECHO_T}$ac_cv_header_" >&6; }
26510 else
26511 # Is the header compilable?
26512 { echo "$as_me:$LINENO: checking usability" >&5
26513 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26514 cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h. */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26520 $ac_includes_default
26521 #include <>
26522 _ACEOF
26523 rm -f conftest.$ac_objext
26524 if { (ac_try="$ac_compile"
26525 case "(($ac_try" in
26526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26528 esac
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_compile") 2>conftest.er1
26531 ac_status=$?
26532 grep -v '^ *+' conftest.er1 >conftest.err
26533 rm -f conftest.er1
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } &&
26537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26538 { (case "(($ac_try" in
26539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540 *) ac_try_echo=$ac_try;;
26541 esac
26542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26543 (eval "$ac_try") 2>&5
26544 ac_status=$?
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest.$ac_objext'
26548 { (case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_try") 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ac_header_compiler=yes
26558 else
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ac_header_compiler=no
26565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26567 echo "${ECHO_T}$ac_header_compiler" >&6; }
26569 # Is the header present?
26570 { echo "$as_me:$LINENO: checking presence" >&5
26571 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26572 cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h. */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26578 #include <>
26579 _ACEOF
26580 if { (ac_try="$ac_cpp conftest.$ac_ext"
26581 case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26584 esac
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26587 ac_status=$?
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } >/dev/null; then
26593 if test -s conftest.err; then
26594 ac_cpp_err=$ac_c_preproc_warn_flag
26595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26596 else
26597 ac_cpp_err=
26599 else
26600 ac_cpp_err=yes
26602 if test -z "$ac_cpp_err"; then
26603 ac_header_preproc=yes
26604 else
26605 echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26608 ac_header_preproc=no
26611 rm -f conftest.err conftest.$ac_ext
26612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26613 echo "${ECHO_T}$ac_header_preproc" >&6; }
26615 # So? What about this header?
26616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26617 yes:no: )
26618 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26619 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26620 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26621 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26622 ac_header_preproc=yes
26624 no:yes:* )
26625 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26626 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26627 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26628 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26630 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26632 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26634 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26636 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26637 ( cat <<\_ASBOX
26638 ## ------------------------------- ##
26639 ## Report this to www.asterisk.org ##
26640 ## ------------------------------- ##
26641 _ASBOX
26642 ) | sed "s/^/$as_me: WARNING: /" >&2
26644 esac
26645 { echo "$as_me:$LINENO: checking for " >&5
26646 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26647 if test "${ac_cv_header_+set}" = set; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26649 else
26650 ac_cv_header_=$ac_header_preproc
26652 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26653 echo "${ECHO_T}$ac_cv_header_" >&6; }
26656 if test $ac_cv_header_ = yes; then
26657 OGG_HEADER_FOUND=1
26658 else
26659 OGG_HEADER_FOUND=0
26665 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
26666 if test -n "${OGG_MANDATORY}" ;
26667 then
26668 { echo "$as_me:$LINENO: ***" >&5
26669 echo "$as_me: ***" >&6;}
26670 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
26671 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
26672 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
26673 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
26674 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
26675 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
26676 exit 1
26678 OGG_LIB=""
26679 OGG_INCLUDE=""
26680 PBX_OGG=0
26681 else
26682 PBX_OGG=1
26684 cat >>confdefs.h <<_ACEOF
26685 #define HAVE_OGG 1
26686 _ACEOF
26689 elif test -n "${OGG_MANDATORY}";
26690 then
26691 { echo "$as_me:$LINENO: ***" >&5
26692 echo "$as_me: ***" >&6;}
26693 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
26694 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
26695 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26696 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26697 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
26698 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
26699 exit 1
26704 if test "${USE_OSS}" != "no"; then
26705 PBX_OSS=0
26706 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
26707 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
26708 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
26709 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
26713 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
26714 else
26715 # Is the header compilable?
26716 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
26717 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
26718 cat >conftest.$ac_ext <<_ACEOF
26719 /* confdefs.h. */
26720 _ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h. */
26724 $ac_includes_default
26725 #include <linux/soundcard.h>
26726 _ACEOF
26727 rm -f conftest.$ac_objext
26728 if { (ac_try="$ac_compile"
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_compile") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26742 { (case "(($ac_try" in
26743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26744 *) ac_try_echo=$ac_try;;
26745 esac
26746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26747 (eval "$ac_try") 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
26752 { (case "(($ac_try" in
26753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754 *) ac_try_echo=$ac_try;;
26755 esac
26756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26757 (eval "$ac_try") 2>&5
26758 ac_status=$?
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; }; then
26761 ac_header_compiler=yes
26762 else
26763 echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26766 ac_header_compiler=no
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26771 echo "${ECHO_T}$ac_header_compiler" >&6; }
26773 # Is the header present?
26774 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
26775 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
26776 cat >conftest.$ac_ext <<_ACEOF
26777 /* confdefs.h. */
26778 _ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <linux/soundcard.h>
26783 _ACEOF
26784 if { (ac_try="$ac_cpp conftest.$ac_ext"
26785 case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26788 esac
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26791 ac_status=$?
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } >/dev/null; then
26797 if test -s conftest.err; then
26798 ac_cpp_err=$ac_c_preproc_warn_flag
26799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26800 else
26801 ac_cpp_err=
26803 else
26804 ac_cpp_err=yes
26806 if test -z "$ac_cpp_err"; then
26807 ac_header_preproc=yes
26808 else
26809 echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26812 ac_header_preproc=no
26815 rm -f conftest.err conftest.$ac_ext
26816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26817 echo "${ECHO_T}$ac_header_preproc" >&6; }
26819 # So? What about this header?
26820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26821 yes:no: )
26822 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
26823 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
26825 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
26826 ac_header_preproc=yes
26828 no:yes:* )
26829 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
26830 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
26832 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
26834 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
26836 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
26838 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
26840 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
26841 ( cat <<\_ASBOX
26842 ## ------------------------------- ##
26843 ## Report this to www.asterisk.org ##
26844 ## ------------------------------- ##
26845 _ASBOX
26846 ) | sed "s/^/$as_me: WARNING: /" >&2
26848 esac
26849 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
26850 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
26851 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853 else
26854 ac_cv_header_linux_soundcard_h=$ac_header_preproc
26856 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
26857 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
26860 if test $ac_cv_header_linux_soundcard_h = yes; then
26862 PBX_OSS=1
26864 cat >>confdefs.h <<_ACEOF
26865 #define HAVE_OSS 1
26866 _ACEOF
26872 if test "$PBX_OSS" = "0"; then
26873 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
26874 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
26875 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
26876 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26879 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
26880 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
26881 else
26882 # Is the header compilable?
26883 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
26884 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
26885 cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h. */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 $ac_includes_default
26892 #include <sys/soundcard.h>
26893 _ACEOF
26894 rm -f conftest.$ac_objext
26895 if { (ac_try="$ac_compile"
26896 case "(($ac_try" in
26897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898 *) ac_try_echo=$ac_try;;
26899 esac
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_compile") 2>conftest.er1
26902 ac_status=$?
26903 grep -v '^ *+' conftest.er1 >conftest.err
26904 rm -f conftest.er1
26905 cat conftest.err >&5
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } &&
26908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26909 { (case "(($ac_try" in
26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911 *) ac_try_echo=$ac_try;;
26912 esac
26913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26914 (eval "$ac_try") 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; } &&
26918 { ac_try='test -s conftest.$ac_objext'
26919 { (case "(($ac_try" in
26920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921 *) ac_try_echo=$ac_try;;
26922 esac
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_try") 2>&5
26925 ac_status=$?
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); }; }; then
26928 ac_header_compiler=yes
26929 else
26930 echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26933 ac_header_compiler=no
26936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26938 echo "${ECHO_T}$ac_header_compiler" >&6; }
26940 # Is the header present?
26941 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
26942 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
26943 cat >conftest.$ac_ext <<_ACEOF
26944 /* confdefs.h. */
26945 _ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 #include <sys/soundcard.h>
26950 _ACEOF
26951 if { (ac_try="$ac_cpp conftest.$ac_ext"
26952 case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26955 esac
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26958 ac_status=$?
26959 grep -v '^ *+' conftest.er1 >conftest.err
26960 rm -f conftest.er1
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } >/dev/null; then
26964 if test -s conftest.err; then
26965 ac_cpp_err=$ac_c_preproc_warn_flag
26966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26967 else
26968 ac_cpp_err=
26970 else
26971 ac_cpp_err=yes
26973 if test -z "$ac_cpp_err"; then
26974 ac_header_preproc=yes
26975 else
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_header_preproc=no
26982 rm -f conftest.err conftest.$ac_ext
26983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26984 echo "${ECHO_T}$ac_header_preproc" >&6; }
26986 # So? What about this header?
26987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26988 yes:no: )
26989 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
26990 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
26992 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
26993 ac_header_preproc=yes
26995 no:yes:* )
26996 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
26997 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
26998 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
26999 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
27001 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
27002 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
27003 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
27004 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
27005 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
27006 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
27007 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
27008 ( cat <<\_ASBOX
27009 ## ------------------------------- ##
27010 ## Report this to www.asterisk.org ##
27011 ## ------------------------------- ##
27012 _ASBOX
27013 ) | sed "s/^/$as_me: WARNING: /" >&2
27015 esac
27016 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
27017 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
27018 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27020 else
27021 ac_cv_header_sys_soundcard_h=$ac_header_preproc
27023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
27024 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
27027 if test $ac_cv_header_sys_soundcard_h = yes; then
27029 PBX_OSS=1
27031 cat >>confdefs.h <<_ACEOF
27032 #define HAVE_OSS 1
27033 _ACEOF
27040 if test "$PBX_OSS" = "0"; then
27042 if test "${USE_OSS}" != "no"; then
27043 pbxlibdir=""
27044 if test "x${OSS_DIR}" != "x"; then
27045 if test -d ${OSS_DIR}/lib; then
27046 pbxlibdir="-L${OSS_DIR}/lib"
27047 else
27048 pbxlibdir="-L${OSS_DIR}"
27051 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
27052 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
27053 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
27054 echo $ECHO_N "(cached) $ECHO_C" >&6
27055 else
27056 ac_check_lib_save_LIBS=$LIBS
27057 LIBS="-lossaudio ${pbxlibdir} $LIBS"
27058 cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h. */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27065 /* Override any GCC internal prototype to avoid an error.
27066 Use char because int might match the return type of a GCC
27067 builtin and then its argument prototype would still apply. */
27068 #ifdef __cplusplus
27069 extern "C"
27070 #endif
27071 char oss_ioctl_mixer ();
27073 main ()
27075 return oss_ioctl_mixer ();
27077 return 0;
27079 _ACEOF
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081 if { (ac_try="$ac_link"
27082 case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085 esac
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_link") 2>conftest.er1
27088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } &&
27094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27095 { (case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_try") 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try='test -s conftest$ac_exeext'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
27115 else
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27119 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
27122 rm -f core conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext conftest.$ac_ext
27124 LIBS=$ac_check_lib_save_LIBS
27126 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
27127 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
27128 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
27129 AST_OSS_FOUND=yes
27130 else
27131 AST_OSS_FOUND=no
27135 if test "${AST_OSS_FOUND}" = "yes"; then
27136 OSS_LIB="-lossaudio "
27137 OSS_HEADER_FOUND="1"
27138 if test "x${OSS_DIR}" != "x"; then
27139 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
27140 OSS_INCLUDE="-I${OSS_DIR}/include"
27141 saved_cppflags="${CPPFLAGS}"
27142 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
27143 if test "xsoundcard.h" != "x" ; then
27144 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
27145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27146 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
27147 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
27148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27151 ac_res=`eval echo '${'$as_ac_Header'}'`
27152 { echo "$as_me:$LINENO: result: $ac_res" >&5
27153 echo "${ECHO_T}$ac_res" >&6; }
27154 else
27155 # Is the header compilable?
27156 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
27157 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
27158 cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h. */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 $ac_includes_default
27165 #include <${OSS_DIR}/include/soundcard.h>
27166 _ACEOF
27167 rm -f conftest.$ac_objext
27168 if { (ac_try="$ac_compile"
27169 case "(($ac_try" in
27170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27171 *) ac_try_echo=$ac_try;;
27172 esac
27173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27174 (eval "$ac_compile") 2>conftest.er1
27175 ac_status=$?
27176 grep -v '^ *+' conftest.er1 >conftest.err
27177 rm -f conftest.er1
27178 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } &&
27181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27182 { (case "(($ac_try" in
27183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184 *) ac_try_echo=$ac_try;;
27185 esac
27186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27187 (eval "$ac_try") 2>&5
27188 ac_status=$?
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; } &&
27191 { ac_try='test -s conftest.$ac_objext'
27192 { (case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_try") 2>&5
27198 ac_status=$?
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; }; 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 ${OSS_DIR}/include/soundcard.h presence" >&5
27215 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.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 <${OSS_DIR}/include/soundcard.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; then
27237 if test -s conftest.err; then
27238 ac_cpp_err=$ac_c_preproc_warn_flag
27239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27240 else
27241 ac_cpp_err=
27243 else
27244 ac_cpp_err=yes
27246 if test -z "$ac_cpp_err"; then
27247 ac_header_preproc=yes
27248 else
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_header_preproc=no
27255 rm -f conftest.err conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27257 echo "${ECHO_T}$ac_header_preproc" >&6; }
27259 # So? What about this header?
27260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27261 yes:no: )
27262 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
27263 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27264 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
27265 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
27266 ac_header_preproc=yes
27268 no:yes:* )
27269 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
27270 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
27271 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
27272 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
27274 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
27275 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
27276 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
27278 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
27280 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
27281 ( cat <<\_ASBOX
27282 ## ------------------------------- ##
27283 ## Report this to www.asterisk.org ##
27284 ## ------------------------------- ##
27285 _ASBOX
27286 ) | sed "s/^/$as_me: WARNING: /" >&2
27288 esac
27289 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
27290 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
27291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
27293 else
27294 eval "$as_ac_Header=\$ac_header_preproc"
27296 ac_res=`eval echo '${'$as_ac_Header'}'`
27297 { echo "$as_me:$LINENO: result: $ac_res" >&5
27298 echo "${ECHO_T}$ac_res" >&6; }
27301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27302 OSS_HEADER_FOUND=1
27303 else
27304 OSS_HEADER_FOUND=0
27309 CPPFLAGS="${saved_cppflags}"
27310 else
27311 if test "xsoundcard.h" != "x" ; then
27312 if test "${ac_cv_header_soundcard_h+set}" = set; then
27313 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
27314 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
27315 if test "${ac_cv_header_soundcard_h+set}" = set; then
27316 echo $ECHO_N "(cached) $ECHO_C" >&6
27318 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
27319 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
27320 else
27321 # Is the header compilable?
27322 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
27323 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
27324 cat >conftest.$ac_ext <<_ACEOF
27325 /* confdefs.h. */
27326 _ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h. */
27330 $ac_includes_default
27331 #include <soundcard.h>
27332 _ACEOF
27333 rm -f conftest.$ac_objext
27334 if { (ac_try="$ac_compile"
27335 case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27338 esac
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_compile") 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } &&
27347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27348 { (case "(($ac_try" in
27349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350 *) ac_try_echo=$ac_try;;
27351 esac
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353 (eval "$ac_try") 2>&5
27354 ac_status=$?
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); }; } &&
27357 { ac_try='test -s conftest.$ac_objext'
27358 { (case "(($ac_try" in
27359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360 *) ac_try_echo=$ac_try;;
27361 esac
27362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27363 (eval "$ac_try") 2>&5
27364 ac_status=$?
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; }; then
27367 ac_header_compiler=yes
27368 else
27369 echo "$as_me: failed program was:" >&5
27370 sed 's/^/| /' conftest.$ac_ext >&5
27372 ac_header_compiler=no
27375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27377 echo "${ECHO_T}$ac_header_compiler" >&6; }
27379 # Is the header present?
27380 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
27381 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
27382 cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h. */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 #include <soundcard.h>
27389 _ACEOF
27390 if { (ac_try="$ac_cpp conftest.$ac_ext"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } >/dev/null; then
27403 if test -s conftest.err; then
27404 ac_cpp_err=$ac_c_preproc_warn_flag
27405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27406 else
27407 ac_cpp_err=
27409 else
27410 ac_cpp_err=yes
27412 if test -z "$ac_cpp_err"; then
27413 ac_header_preproc=yes
27414 else
27415 echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27418 ac_header_preproc=no
27421 rm -f conftest.err conftest.$ac_ext
27422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27423 echo "${ECHO_T}$ac_header_preproc" >&6; }
27425 # So? What about this header?
27426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27427 yes:no: )
27428 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
27429 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27430 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
27431 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
27432 ac_header_preproc=yes
27434 no:yes:* )
27435 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
27436 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
27437 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
27438 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
27439 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
27440 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
27441 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
27442 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
27444 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
27446 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
27447 ( cat <<\_ASBOX
27448 ## ------------------------------- ##
27449 ## Report this to www.asterisk.org ##
27450 ## ------------------------------- ##
27451 _ASBOX
27452 ) | sed "s/^/$as_me: WARNING: /" >&2
27454 esac
27455 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
27456 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
27457 if test "${ac_cv_header_soundcard_h+set}" = set; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27459 else
27460 ac_cv_header_soundcard_h=$ac_header_preproc
27462 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
27463 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
27466 if test $ac_cv_header_soundcard_h = yes; then
27467 OSS_HEADER_FOUND=1
27468 else
27469 OSS_HEADER_FOUND=0
27475 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
27476 if test -n "${OSS_MANDATORY}" ;
27477 then
27478 { echo "$as_me:$LINENO: ***" >&5
27479 echo "$as_me: ***" >&6;}
27480 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
27481 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
27482 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
27483 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
27484 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
27485 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
27486 exit 1
27488 OSS_LIB=""
27489 OSS_INCLUDE=""
27490 PBX_OSS=0
27491 else
27492 PBX_OSS=1
27494 cat >>confdefs.h <<_ACEOF
27495 #define HAVE_OSS 1
27496 _ACEOF
27499 elif test -n "${OSS_MANDATORY}";
27500 then
27501 { echo "$as_me:$LINENO: ***" >&5
27502 echo "$as_me: ***" >&6;}
27503 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
27504 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
27505 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27506 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27507 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
27508 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
27509 exit 1
27516 PG_CONFIG=No
27517 if test "${USE_PGSQL}" != "no"; then
27518 if test "x${PGSQL_DIR}" != "x"; then
27519 if test -n "$ac_tool_prefix"; then
27520 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
27521 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
27522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27524 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27526 else
27527 case $PG_CONFIG in
27528 [\\/]* | ?:[\\/]*)
27529 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
27532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27533 for as_dir in ${PGSQL_DIR}/bin
27535 IFS=$as_save_IFS
27536 test -z "$as_dir" && as_dir=.
27537 for ac_exec_ext in '' $ac_executable_extensions; do
27538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27539 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27541 break 2
27543 done
27544 done
27545 IFS=$as_save_IFS
27548 esac
27550 PG_CONFIG=$ac_cv_path_PG_CONFIG
27551 if test -n "$PG_CONFIG"; then
27552 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
27553 echo "${ECHO_T}$PG_CONFIG" >&6; }
27554 else
27555 { echo "$as_me:$LINENO: result: no" >&5
27556 echo "${ECHO_T}no" >&6; }
27561 if test -z "$ac_cv_path_PG_CONFIG"; then
27562 ac_pt_PG_CONFIG=$PG_CONFIG
27563 # Extract the first word of "pg_config", so it can be a program name with args.
27564 set dummy pg_config; ac_word=$2
27565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27567 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
27568 echo $ECHO_N "(cached) $ECHO_C" >&6
27569 else
27570 case $ac_pt_PG_CONFIG in
27571 [\\/]* | ?:[\\/]*)
27572 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
27575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27576 for as_dir in ${PGSQL_DIR}/bin
27578 IFS=$as_save_IFS
27579 test -z "$as_dir" && as_dir=.
27580 for ac_exec_ext in '' $ac_executable_extensions; do
27581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27582 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27584 break 2
27586 done
27587 done
27588 IFS=$as_save_IFS
27591 esac
27593 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
27594 if test -n "$ac_pt_PG_CONFIG"; then
27595 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
27596 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
27597 else
27598 { echo "$as_me:$LINENO: result: no" >&5
27599 echo "${ECHO_T}no" >&6; }
27602 if test "x$ac_pt_PG_CONFIG" = x; then
27603 PG_CONFIG="No"
27604 else
27605 case $cross_compiling:$ac_tool_warned in
27606 yes:)
27607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27608 whose name does not start with the host triplet. If you think this
27609 configuration is useful to you, please write to autoconf@gnu.org." >&5
27610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27611 whose name does not start with the host triplet. If you think this
27612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27613 ac_tool_warned=yes ;;
27614 esac
27615 PG_CONFIG=$ac_pt_PG_CONFIG
27617 else
27618 PG_CONFIG="$ac_cv_path_PG_CONFIG"
27621 if test x"${PG_CONFIG}" = xNo; then
27622 { echo "$as_me:$LINENO: ***" >&5
27623 echo "$as_me: ***" >&6;}
27624 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
27625 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
27626 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
27627 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
27628 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27629 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27630 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
27631 echo "$as_me: *** including --without-postgres" >&6;}
27632 exit 1
27634 else
27635 if test -n "$ac_tool_prefix"; then
27636 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
27637 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
27638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27640 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643 case $PG_CONFIG in
27644 [\\/]* | ?:[\\/]*)
27645 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
27648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27649 for as_dir in $PATH
27651 IFS=$as_save_IFS
27652 test -z "$as_dir" && as_dir=.
27653 for ac_exec_ext in '' $ac_executable_extensions; do
27654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27655 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27657 break 2
27659 done
27660 done
27661 IFS=$as_save_IFS
27664 esac
27666 PG_CONFIG=$ac_cv_path_PG_CONFIG
27667 if test -n "$PG_CONFIG"; then
27668 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
27669 echo "${ECHO_T}$PG_CONFIG" >&6; }
27670 else
27671 { echo "$as_me:$LINENO: result: no" >&5
27672 echo "${ECHO_T}no" >&6; }
27677 if test -z "$ac_cv_path_PG_CONFIG"; then
27678 ac_pt_PG_CONFIG=$PG_CONFIG
27679 # Extract the first word of "pg_config", so it can be a program name with args.
27680 set dummy pg_config; ac_word=$2
27681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27683 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686 case $ac_pt_PG_CONFIG in
27687 [\\/]* | ?:[\\/]*)
27688 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
27691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27692 for as_dir in $PATH
27694 IFS=$as_save_IFS
27695 test -z "$as_dir" && as_dir=.
27696 for ac_exec_ext in '' $ac_executable_extensions; do
27697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27698 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27700 break 2
27702 done
27703 done
27704 IFS=$as_save_IFS
27707 esac
27709 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
27710 if test -n "$ac_pt_PG_CONFIG"; then
27711 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
27712 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
27713 else
27714 { echo "$as_me:$LINENO: result: no" >&5
27715 echo "${ECHO_T}no" >&6; }
27718 if test "x$ac_pt_PG_CONFIG" = x; then
27719 PG_CONFIG="No"
27720 else
27721 case $cross_compiling:$ac_tool_warned in
27722 yes:)
27723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27724 whose name does not start with the host triplet. If you think this
27725 configuration is useful to you, please write to autoconf@gnu.org." >&5
27726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27727 whose name does not start with the host triplet. If you think this
27728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27729 ac_tool_warned=yes ;;
27730 esac
27731 PG_CONFIG=$ac_pt_PG_CONFIG
27733 else
27734 PG_CONFIG="$ac_cv_path_PG_CONFIG"
27739 if test "${PG_CONFIG}" != No; then
27740 PGSQL_libdir=`${PG_CONFIG} --libdir`
27741 PGSQL_includedir=`${PG_CONFIG} --includedir`
27743 if test "x$?" != "x0" ; then
27744 if test -n "${PGSQL_MANDATORY}" ; then
27745 { echo "$as_me:$LINENO: ***" >&5
27746 echo "$as_me: ***" >&6;}
27747 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
27748 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
27749 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27750 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27751 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
27752 echo "$as_me: *** including --without-postgres" >&6;}
27753 exit 1
27755 else
27756 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
27757 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
27758 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
27759 echo $ECHO_N "(cached) $ECHO_C" >&6
27760 else
27761 ac_check_lib_save_LIBS=$LIBS
27762 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
27763 cat >conftest.$ac_ext <<_ACEOF
27764 /* confdefs.h. */
27765 _ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h. */
27770 /* Override any GCC internal prototype to avoid an error.
27771 Use char because int might match the return type of a GCC
27772 builtin and then its argument prototype would still apply. */
27773 #ifdef __cplusplus
27774 extern "C"
27775 #endif
27776 char PQescapeStringConn ();
27778 main ()
27780 return PQescapeStringConn ();
27782 return 0;
27784 _ACEOF
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (ac_try="$ac_link"
27787 case "(($ac_try" in
27788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27789 *) ac_try_echo=$ac_try;;
27790 esac
27791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27792 (eval "$ac_link") 2>conftest.er1
27793 ac_status=$?
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } &&
27799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27800 { (case "(($ac_try" in
27801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27802 *) ac_try_echo=$ac_try;;
27803 esac
27804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27805 (eval "$ac_try") 2>&5
27806 ac_status=$?
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; } &&
27809 { ac_try='test -s conftest$ac_exeext'
27810 { (case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27813 esac
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_try") 2>&5
27816 ac_status=$?
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; }; then
27819 ac_cv_lib_pq_PQescapeStringConn=yes
27820 else
27821 echo "$as_me: failed program was:" >&5
27822 sed 's/^/| /' conftest.$ac_ext >&5
27824 ac_cv_lib_pq_PQescapeStringConn=no
27827 rm -f core conftest.err conftest.$ac_objext \
27828 conftest$ac_exeext conftest.$ac_ext
27829 LIBS=$ac_check_lib_save_LIBS
27831 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
27832 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
27833 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836 #define HAVE_PGSQL 1
27837 _ACEOF
27842 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
27843 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
27844 PGSQL_INCLUDE="-I${PGSQL_includedir}"
27845 PBX_PGSQL=1
27846 elif test -n "${PGSQL_MANDATORY}";
27847 then
27848 { echo "$as_me:$LINENO: ***" >&5
27849 echo "$as_me: ***" >&6;}
27850 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
27851 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
27852 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27853 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27854 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
27855 echo "$as_me: *** including --without-postgres" >&6;}
27856 exit 1
27859 elif test -n "${PGSQL_MANDATORY}";
27860 then
27861 { echo "$as_me:$LINENO: ***" >&5
27862 echo "$as_me: ***" >&6;}
27863 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
27864 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
27865 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27866 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27867 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
27868 echo "$as_me: *** including --without-postgres" >&6;}
27869 exit 1
27873 if test "${USE_POPT}" != "no"; then
27874 pbxlibdir=""
27875 if test "x${POPT_DIR}" != "x"; then
27876 if test -d ${POPT_DIR}/lib; then
27877 pbxlibdir="-L${POPT_DIR}/lib"
27878 else
27879 pbxlibdir="-L${POPT_DIR}"
27882 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
27883 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
27884 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27887 ac_check_lib_save_LIBS=$LIBS
27888 LIBS="-lpopt ${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 poptStrerror ();
27904 main ()
27906 return poptStrerror ();
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27926 { (case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_try") 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; } &&
27935 { ac_try='test -s conftest$ac_exeext'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
27942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; }; then
27945 ac_cv_lib_popt_poptStrerror=yes
27946 else
27947 echo "$as_me: failed program was:" >&5
27948 sed 's/^/| /' conftest.$ac_ext >&5
27950 ac_cv_lib_popt_poptStrerror=no
27953 rm -f core conftest.err conftest.$ac_objext \
27954 conftest$ac_exeext conftest.$ac_ext
27955 LIBS=$ac_check_lib_save_LIBS
27957 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
27958 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
27959 if test $ac_cv_lib_popt_poptStrerror = yes; then
27960 AST_POPT_FOUND=yes
27961 else
27962 AST_POPT_FOUND=no
27966 if test "${AST_POPT_FOUND}" = "yes"; then
27967 POPT_LIB="-lpopt "
27968 POPT_HEADER_FOUND="1"
27969 if test "x${POPT_DIR}" != "x"; then
27970 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
27971 POPT_INCLUDE="-I${POPT_DIR}/include"
27972 saved_cppflags="${CPPFLAGS}"
27973 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
27974 if test "xpopt.h" != "x" ; then
27975 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
27976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27977 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
27978 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
27979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27982 ac_res=`eval echo '${'$as_ac_Header'}'`
27983 { echo "$as_me:$LINENO: result: $ac_res" >&5
27984 echo "${ECHO_T}$ac_res" >&6; }
27985 else
27986 # Is the header compilable?
27987 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
27988 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h. */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 $ac_includes_default
27996 #include <${POPT_DIR}/include/popt.h>
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
28006 ac_status=$?
28007 grep -v '^ *+' conftest.er1 >conftest.err
28008 rm -f conftest.er1
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28013 { (case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_try") 2>&5
28019 ac_status=$?
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; } &&
28022 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28029 ac_status=$?
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28032 ac_header_compiler=yes
28033 else
28034 echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28037 ac_header_compiler=no
28040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28042 echo "${ECHO_T}$ac_header_compiler" >&6; }
28044 # Is the header present?
28045 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
28046 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
28047 cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h. */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28053 #include <${POPT_DIR}/include/popt.h>
28054 _ACEOF
28055 if { (ac_try="$ac_cpp conftest.$ac_ext"
28056 case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28059 esac
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28062 ac_status=$?
28063 grep -v '^ *+' conftest.er1 >conftest.err
28064 rm -f conftest.er1
28065 cat conftest.err >&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } >/dev/null; then
28068 if test -s conftest.err; then
28069 ac_cpp_err=$ac_c_preproc_warn_flag
28070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28071 else
28072 ac_cpp_err=
28074 else
28075 ac_cpp_err=yes
28077 if test -z "$ac_cpp_err"; then
28078 ac_header_preproc=yes
28079 else
28080 echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_header_preproc=no
28086 rm -f conftest.err conftest.$ac_ext
28087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28088 echo "${ECHO_T}$ac_header_preproc" >&6; }
28090 # So? What about this header?
28091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28092 yes:no: )
28093 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
28094 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28095 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
28096 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
28097 ac_header_preproc=yes
28099 no:yes:* )
28100 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
28101 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
28102 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
28103 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
28104 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
28105 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
28106 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
28107 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
28108 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
28109 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
28110 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
28111 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
28112 ( cat <<\_ASBOX
28113 ## ------------------------------- ##
28114 ## Report this to www.asterisk.org ##
28115 ## ------------------------------- ##
28116 _ASBOX
28117 ) | sed "s/^/$as_me: WARNING: /" >&2
28119 esac
28120 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
28121 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
28122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28123 echo $ECHO_N "(cached) $ECHO_C" >&6
28124 else
28125 eval "$as_ac_Header=\$ac_header_preproc"
28127 ac_res=`eval echo '${'$as_ac_Header'}'`
28128 { echo "$as_me:$LINENO: result: $ac_res" >&5
28129 echo "${ECHO_T}$ac_res" >&6; }
28132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28133 POPT_HEADER_FOUND=1
28134 else
28135 POPT_HEADER_FOUND=0
28140 CPPFLAGS="${saved_cppflags}"
28141 else
28142 if test "xpopt.h" != "x" ; then
28143 if test "${ac_cv_header_popt_h+set}" = set; then
28144 { echo "$as_me:$LINENO: checking for popt.h" >&5
28145 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
28146 if test "${ac_cv_header_popt_h+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28149 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
28150 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
28151 else
28152 # Is the header compilable?
28153 { echo "$as_me:$LINENO: checking popt.h usability" >&5
28154 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
28155 cat >conftest.$ac_ext <<_ACEOF
28156 /* confdefs.h. */
28157 _ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h. */
28161 $ac_includes_default
28162 #include <popt.h>
28163 _ACEOF
28164 rm -f conftest.$ac_objext
28165 if { (ac_try="$ac_compile"
28166 case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_compile") 2>conftest.er1
28172 ac_status=$?
28173 grep -v '^ *+' conftest.er1 >conftest.err
28174 rm -f conftest.er1
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } &&
28178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28179 { (case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_try") 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest.$ac_objext'
28189 { (case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28192 esac
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_try") 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198 ac_header_compiler=yes
28199 else
28200 echo "$as_me: failed program was:" >&5
28201 sed 's/^/| /' conftest.$ac_ext >&5
28203 ac_header_compiler=no
28206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28208 echo "${ECHO_T}$ac_header_compiler" >&6; }
28210 # Is the header present?
28211 { echo "$as_me:$LINENO: checking popt.h presence" >&5
28212 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
28213 cat >conftest.$ac_ext <<_ACEOF
28214 /* confdefs.h. */
28215 _ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28219 #include <popt.h>
28220 _ACEOF
28221 if { (ac_try="$ac_cpp conftest.$ac_ext"
28222 case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28225 esac
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28228 ac_status=$?
28229 grep -v '^ *+' conftest.er1 >conftest.err
28230 rm -f conftest.er1
28231 cat conftest.err >&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } >/dev/null; then
28234 if test -s conftest.err; then
28235 ac_cpp_err=$ac_c_preproc_warn_flag
28236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28237 else
28238 ac_cpp_err=
28240 else
28241 ac_cpp_err=yes
28243 if test -z "$ac_cpp_err"; then
28244 ac_header_preproc=yes
28245 else
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ac_header_preproc=no
28252 rm -f conftest.err conftest.$ac_ext
28253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28254 echo "${ECHO_T}$ac_header_preproc" >&6; }
28256 # So? What about this header?
28257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28258 yes:no: )
28259 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
28260 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28261 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
28262 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
28263 ac_header_preproc=yes
28265 no:yes:* )
28266 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
28267 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
28268 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
28269 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
28270 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
28271 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
28272 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
28273 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
28274 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
28275 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
28276 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
28277 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
28278 ( cat <<\_ASBOX
28279 ## ------------------------------- ##
28280 ## Report this to www.asterisk.org ##
28281 ## ------------------------------- ##
28282 _ASBOX
28283 ) | sed "s/^/$as_me: WARNING: /" >&2
28285 esac
28286 { echo "$as_me:$LINENO: checking for popt.h" >&5
28287 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
28288 if test "${ac_cv_header_popt_h+set}" = set; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28290 else
28291 ac_cv_header_popt_h=$ac_header_preproc
28293 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
28294 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
28297 if test $ac_cv_header_popt_h = yes; then
28298 POPT_HEADER_FOUND=1
28299 else
28300 POPT_HEADER_FOUND=0
28306 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
28307 if test -n "${POPT_MANDATORY}" ;
28308 then
28309 { echo "$as_me:$LINENO: ***" >&5
28310 echo "$as_me: ***" >&6;}
28311 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
28312 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
28313 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
28314 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
28315 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
28316 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
28317 exit 1
28319 POPT_LIB=""
28320 POPT_INCLUDE=""
28321 PBX_POPT=0
28322 else
28323 PBX_POPT=1
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_POPT 1
28327 _ACEOF
28330 elif test -n "${POPT_MANDATORY}";
28331 then
28332 { echo "$as_me:$LINENO: ***" >&5
28333 echo "$as_me: ***" >&6;}
28334 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
28335 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
28336 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28337 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28338 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
28339 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
28340 exit 1
28346 if test "${USE_PRI}" != "no"; then
28347 pbxlibdir=""
28348 if test "x${PRI_DIR}" != "x"; then
28349 if test -d ${PRI_DIR}/lib; then
28350 pbxlibdir="-L${PRI_DIR}/lib"
28351 else
28352 pbxlibdir="-L${PRI_DIR}"
28355 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
28356 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
28357 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
28358 echo $ECHO_N "(cached) $ECHO_C" >&6
28359 else
28360 ac_check_lib_save_LIBS=$LIBS
28361 LIBS="-lpri ${pbxlibdir} $LIBS"
28362 cat >conftest.$ac_ext <<_ACEOF
28363 /* confdefs.h. */
28364 _ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h. */
28369 /* Override any GCC internal prototype to avoid an error.
28370 Use char because int might match the return type of a GCC
28371 builtin and then its argument prototype would still apply. */
28372 #ifdef __cplusplus
28373 extern "C"
28374 #endif
28375 char pri_keypad_facility ();
28377 main ()
28379 return pri_keypad_facility ();
28381 return 0;
28383 _ACEOF
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (ac_try="$ac_link"
28386 case "(($ac_try" in
28387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388 *) ac_try_echo=$ac_try;;
28389 esac
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_link") 2>conftest.er1
28392 ac_status=$?
28393 grep -v '^ *+' conftest.er1 >conftest.err
28394 rm -f conftest.er1
28395 cat conftest.err >&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } &&
28398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; } &&
28408 { ac_try='test -s conftest$ac_exeext'
28409 { (case "(($ac_try" in
28410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28411 *) ac_try_echo=$ac_try;;
28412 esac
28413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28414 (eval "$ac_try") 2>&5
28415 ac_status=$?
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); }; }; then
28418 ac_cv_lib_pri_pri_keypad_facility=yes
28419 else
28420 echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28423 ac_cv_lib_pri_pri_keypad_facility=no
28426 rm -f core conftest.err conftest.$ac_objext \
28427 conftest$ac_exeext conftest.$ac_ext
28428 LIBS=$ac_check_lib_save_LIBS
28430 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
28431 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
28432 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
28433 AST_PRI_FOUND=yes
28434 else
28435 AST_PRI_FOUND=no
28439 if test "${AST_PRI_FOUND}" = "yes"; then
28440 PRI_LIB="-lpri "
28441 PRI_HEADER_FOUND="1"
28442 if test "x${PRI_DIR}" != "x"; then
28443 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
28444 PRI_INCLUDE="-I${PRI_DIR}/include"
28445 saved_cppflags="${CPPFLAGS}"
28446 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
28447 if test "xlibpri.h" != "x" ; then
28448 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
28449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28450 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
28451 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
28452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 ac_res=`eval echo '${'$as_ac_Header'}'`
28456 { echo "$as_me:$LINENO: result: $ac_res" >&5
28457 echo "${ECHO_T}$ac_res" >&6; }
28458 else
28459 # Is the header compilable?
28460 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
28461 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
28462 cat >conftest.$ac_ext <<_ACEOF
28463 /* confdefs.h. */
28464 _ACEOF
28465 cat confdefs.h >>conftest.$ac_ext
28466 cat >>conftest.$ac_ext <<_ACEOF
28467 /* end confdefs.h. */
28468 $ac_includes_default
28469 #include <${PRI_DIR}/include/libpri.h>
28470 _ACEOF
28471 rm -f conftest.$ac_objext
28472 if { (ac_try="$ac_compile"
28473 case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_compile") 2>conftest.er1
28479 ac_status=$?
28480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486 { (case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28489 esac
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491 (eval "$ac_try") 2>&5
28492 ac_status=$?
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; } &&
28495 { ac_try='test -s conftest.$ac_objext'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28499 esac
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28502 ac_status=$?
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_header_compiler=yes
28506 else
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_header_compiler=no
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28515 echo "${ECHO_T}$ac_header_compiler" >&6; }
28517 # Is the header present?
28518 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
28519 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
28520 cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h. */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 #include <${PRI_DIR}/include/libpri.h>
28527 _ACEOF
28528 if { (ac_try="$ac_cpp conftest.$ac_ext"
28529 case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28532 esac
28533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28535 ac_status=$?
28536 grep -v '^ *+' conftest.er1 >conftest.err
28537 rm -f conftest.er1
28538 cat conftest.err >&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } >/dev/null; then
28541 if test -s conftest.err; then
28542 ac_cpp_err=$ac_c_preproc_warn_flag
28543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28544 else
28545 ac_cpp_err=
28547 else
28548 ac_cpp_err=yes
28550 if test -z "$ac_cpp_err"; then
28551 ac_header_preproc=yes
28552 else
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ac_header_preproc=no
28559 rm -f conftest.err conftest.$ac_ext
28560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28561 echo "${ECHO_T}$ac_header_preproc" >&6; }
28563 # So? What about this header?
28564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28565 yes:no: )
28566 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
28567 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28568 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
28569 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
28570 ac_header_preproc=yes
28572 no:yes:* )
28573 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
28574 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
28575 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
28576 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
28577 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
28578 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
28579 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
28580 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
28581 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
28582 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
28583 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
28584 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
28585 ( cat <<\_ASBOX
28586 ## ------------------------------- ##
28587 ## Report this to www.asterisk.org ##
28588 ## ------------------------------- ##
28589 _ASBOX
28590 ) | sed "s/^/$as_me: WARNING: /" >&2
28592 esac
28593 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
28594 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
28595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598 eval "$as_ac_Header=\$ac_header_preproc"
28600 ac_res=`eval echo '${'$as_ac_Header'}'`
28601 { echo "$as_me:$LINENO: result: $ac_res" >&5
28602 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606 PRI_HEADER_FOUND=1
28607 else
28608 PRI_HEADER_FOUND=0
28613 CPPFLAGS="${saved_cppflags}"
28614 else
28615 if test "xlibpri.h" != "x" ; then
28616 if test "${ac_cv_header_libpri_h+set}" = set; then
28617 { echo "$as_me:$LINENO: checking for libpri.h" >&5
28618 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
28619 if test "${ac_cv_header_libpri_h+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28622 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
28623 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
28624 else
28625 # Is the header compilable?
28626 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
28627 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
28628 cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h. */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 $ac_includes_default
28635 #include <libpri.h>
28636 _ACEOF
28637 rm -f conftest.$ac_objext
28638 if { (ac_try="$ac_compile"
28639 case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28642 esac
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_compile") 2>conftest.er1
28645 ac_status=$?
28646 grep -v '^ *+' conftest.er1 >conftest.err
28647 rm -f conftest.er1
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } &&
28651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28652 { (case "(($ac_try" in
28653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654 *) ac_try_echo=$ac_try;;
28655 esac
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657 (eval "$ac_try") 2>&5
28658 ac_status=$?
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; } &&
28661 { ac_try='test -s conftest.$ac_objext'
28662 { (case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_try") 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_header_compiler=yes
28672 else
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 ac_header_compiler=no
28679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28681 echo "${ECHO_T}$ac_header_compiler" >&6; }
28683 # Is the header present?
28684 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
28685 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
28686 cat >conftest.$ac_ext <<_ACEOF
28687 /* confdefs.h. */
28688 _ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h. */
28692 #include <libpri.h>
28693 _ACEOF
28694 if { (ac_try="$ac_cpp conftest.$ac_ext"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28701 ac_status=$?
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } >/dev/null; then
28707 if test -s conftest.err; then
28708 ac_cpp_err=$ac_c_preproc_warn_flag
28709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28710 else
28711 ac_cpp_err=
28713 else
28714 ac_cpp_err=yes
28716 if test -z "$ac_cpp_err"; then
28717 ac_header_preproc=yes
28718 else
28719 echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 ac_header_preproc=no
28725 rm -f conftest.err conftest.$ac_ext
28726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28727 echo "${ECHO_T}$ac_header_preproc" >&6; }
28729 # So? What about this header?
28730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28731 yes:no: )
28732 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
28733 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28734 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
28735 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
28736 ac_header_preproc=yes
28738 no:yes:* )
28739 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
28740 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
28741 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
28742 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
28743 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
28744 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
28745 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
28746 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
28747 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
28748 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
28749 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
28750 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
28751 ( cat <<\_ASBOX
28752 ## ------------------------------- ##
28753 ## Report this to www.asterisk.org ##
28754 ## ------------------------------- ##
28755 _ASBOX
28756 ) | sed "s/^/$as_me: WARNING: /" >&2
28758 esac
28759 { echo "$as_me:$LINENO: checking for libpri.h" >&5
28760 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
28761 if test "${ac_cv_header_libpri_h+set}" = set; then
28762 echo $ECHO_N "(cached) $ECHO_C" >&6
28763 else
28764 ac_cv_header_libpri_h=$ac_header_preproc
28766 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
28767 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
28770 if test $ac_cv_header_libpri_h = yes; then
28771 PRI_HEADER_FOUND=1
28772 else
28773 PRI_HEADER_FOUND=0
28779 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
28780 if test -n "${PRI_MANDATORY}" ;
28781 then
28782 { echo "$as_me:$LINENO: ***" >&5
28783 echo "$as_me: ***" >&6;}
28784 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
28785 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
28786 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
28787 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
28788 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
28789 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
28790 exit 1
28792 PRI_LIB=""
28793 PRI_INCLUDE=""
28794 PBX_PRI=0
28795 else
28796 PBX_PRI=1
28798 cat >>confdefs.h <<_ACEOF
28799 #define HAVE_PRI 1
28800 _ACEOF
28803 elif test -n "${PRI_MANDATORY}";
28804 then
28805 { echo "$as_me:$LINENO: ***" >&5
28806 echo "$as_me: ***" >&6;}
28807 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
28808 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
28809 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28810 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28811 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
28812 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
28813 exit 1
28818 if test "${USE_PWLIB}" != "no"; then
28819 if test -n "${PWLIB_DIR}"; then
28820 PWLIBDIR="${PWLIB_DIR}"
28824 PWLIB_INCDIR=
28825 PWLIB_LIBDIR=
28826 ac_ext=cpp
28827 ac_cpp='$CXXCPP $CPPFLAGS'
28828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28832 if test "${PWLIBDIR:-unset}" != "unset" ; then
28833 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
28834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28835 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
28836 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
28837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28840 ac_res=`eval echo '${'$as_ac_Header'}'`
28841 { echo "$as_me:$LINENO: result: $ac_res" >&5
28842 echo "${ECHO_T}$ac_res" >&6; }
28843 else
28844 # Is the header compilable?
28845 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
28846 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
28847 cat >conftest.$ac_ext <<_ACEOF
28848 /* confdefs.h. */
28849 _ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h. */
28853 $ac_includes_default
28854 #include <${PWLIBDIR}/version.h>
28855 _ACEOF
28856 rm -f conftest.$ac_objext
28857 if { (ac_try="$ac_compile"
28858 case "(($ac_try" in
28859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860 *) ac_try_echo=$ac_try;;
28861 esac
28862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28863 (eval "$ac_compile") 2>conftest.er1
28864 ac_status=$?
28865 grep -v '^ *+' conftest.er1 >conftest.err
28866 rm -f conftest.er1
28867 cat conftest.err >&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); } &&
28870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28871 { (case "(($ac_try" in
28872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873 *) ac_try_echo=$ac_try;;
28874 esac
28875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28876 (eval "$ac_try") 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest.$ac_objext'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28884 esac
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
28887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; }; then
28890 ac_header_compiler=yes
28891 else
28892 echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28895 ac_header_compiler=no
28898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28900 echo "${ECHO_T}$ac_header_compiler" >&6; }
28902 # Is the header present?
28903 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
28904 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
28905 cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h. */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28911 #include <${PWLIBDIR}/version.h>
28912 _ACEOF
28913 if { (ac_try="$ac_cpp conftest.$ac_ext"
28914 case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28917 esac
28918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28920 ac_status=$?
28921 grep -v '^ *+' conftest.er1 >conftest.err
28922 rm -f conftest.er1
28923 cat conftest.err >&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); } >/dev/null; then
28926 if test -s conftest.err; then
28927 ac_cpp_err=$ac_cxx_preproc_warn_flag
28928 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28929 else
28930 ac_cpp_err=
28932 else
28933 ac_cpp_err=yes
28935 if test -z "$ac_cpp_err"; then
28936 ac_header_preproc=yes
28937 else
28938 echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28941 ac_header_preproc=no
28944 rm -f conftest.err conftest.$ac_ext
28945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28946 echo "${ECHO_T}$ac_header_preproc" >&6; }
28948 # So? What about this header?
28949 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28950 yes:no: )
28951 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
28952 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
28954 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
28955 ac_header_preproc=yes
28957 no:yes:* )
28958 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
28959 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
28961 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
28963 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
28965 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
28966 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
28967 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
28969 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
28970 ( cat <<\_ASBOX
28971 ## ------------------------------- ##
28972 ## Report this to www.asterisk.org ##
28973 ## ------------------------------- ##
28974 _ASBOX
28975 ) | sed "s/^/$as_me: WARNING: /" >&2
28977 esac
28978 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
28979 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
28980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 else
28983 eval "$as_ac_Header=\$ac_header_preproc"
28985 ac_res=`eval echo '${'$as_ac_Header'}'`
28986 { echo "$as_me:$LINENO: result: $ac_res" >&5
28987 echo "${ECHO_T}$ac_res" >&6; }
28990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28991 HAS_PWLIB=1
28996 if test "${HAS_PWLIB:-unset}" = "unset" ; then
28997 if test "${OPENH323DIR:-unset}" != "unset"; then
28998 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
28999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29000 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
29001 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
29002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29003 echo $ECHO_N "(cached) $ECHO_C" >&6
29005 ac_res=`eval echo '${'$as_ac_Header'}'`
29006 { echo "$as_me:$LINENO: result: $ac_res" >&5
29007 echo "${ECHO_T}$ac_res" >&6; }
29008 else
29009 # Is the header compilable?
29010 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
29011 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
29012 cat >conftest.$ac_ext <<_ACEOF
29013 /* confdefs.h. */
29014 _ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 $ac_includes_default
29019 #include <${OPENH323DIR}/../pwlib/version.h>
29020 _ACEOF
29021 rm -f conftest.$ac_objext
29022 if { (ac_try="$ac_compile"
29023 case "(($ac_try" in
29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025 *) ac_try_echo=$ac_try;;
29026 esac
29027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29028 (eval "$ac_compile") 2>conftest.er1
29029 ac_status=$?
29030 grep -v '^ *+' conftest.er1 >conftest.err
29031 rm -f conftest.er1
29032 cat conftest.err >&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } &&
29035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29036 { (case "(($ac_try" in
29037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038 *) ac_try_echo=$ac_try;;
29039 esac
29040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29041 (eval "$ac_try") 2>&5
29042 ac_status=$?
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); }; } &&
29045 { ac_try='test -s conftest.$ac_objext'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_header_compiler=yes
29056 else
29057 echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29060 ac_header_compiler=no
29063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29065 echo "${ECHO_T}$ac_header_compiler" >&6; }
29067 # Is the header present?
29068 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
29069 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
29070 cat >conftest.$ac_ext <<_ACEOF
29071 /* confdefs.h. */
29072 _ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29076 #include <${OPENH323DIR}/../pwlib/version.h>
29077 _ACEOF
29078 if { (ac_try="$ac_cpp conftest.$ac_ext"
29079 case "(($ac_try" in
29080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29081 *) ac_try_echo=$ac_try;;
29082 esac
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29085 ac_status=$?
29086 grep -v '^ *+' conftest.er1 >conftest.err
29087 rm -f conftest.er1
29088 cat conftest.err >&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); } >/dev/null; then
29091 if test -s conftest.err; then
29092 ac_cpp_err=$ac_cxx_preproc_warn_flag
29093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29094 else
29095 ac_cpp_err=
29097 else
29098 ac_cpp_err=yes
29100 if test -z "$ac_cpp_err"; then
29101 ac_header_preproc=yes
29102 else
29103 echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29106 ac_header_preproc=no
29109 rm -f conftest.err conftest.$ac_ext
29110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29111 echo "${ECHO_T}$ac_header_preproc" >&6; }
29113 # So? What about this header?
29114 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29115 yes:no: )
29116 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29117 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29118 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
29119 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
29120 ac_header_preproc=yes
29122 no:yes:* )
29123 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
29124 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
29125 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
29126 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
29127 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
29128 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
29129 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
29130 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
29131 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
29132 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
29133 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
29134 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
29135 ( cat <<\_ASBOX
29136 ## ------------------------------- ##
29137 ## Report this to www.asterisk.org ##
29138 ## ------------------------------- ##
29139 _ASBOX
29140 ) | sed "s/^/$as_me: WARNING: /" >&2
29142 esac
29143 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
29144 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
29145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 else
29148 eval "$as_ac_Header=\$ac_header_preproc"
29150 ac_res=`eval echo '${'$as_ac_Header'}'`
29151 { echo "$as_me:$LINENO: result: $ac_res" >&5
29152 echo "${ECHO_T}$ac_res" >&6; }
29155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29156 HAS_PWLIB=1
29161 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29162 PWLIBDIR="${OPENH323DIR}/../pwlib"
29163 else
29164 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
29165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29166 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
29167 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
29168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29171 ac_res=`eval echo '${'$as_ac_Header'}'`
29172 { echo "$as_me:$LINENO: result: $ac_res" >&5
29173 echo "${ECHO_T}$ac_res" >&6; }
29174 else
29175 # Is the header compilable?
29176 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
29177 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
29178 cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h. */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29184 $ac_includes_default
29185 #include <${HOME}/pwlib/include/ptlib.h>
29186 _ACEOF
29187 rm -f conftest.$ac_objext
29188 if { (ac_try="$ac_compile"
29189 case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29192 esac
29193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_compile") 2>conftest.er1
29195 ac_status=$?
29196 grep -v '^ *+' conftest.er1 >conftest.err
29197 rm -f conftest.er1
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } &&
29201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29202 { (case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29205 esac
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_try") 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest.$ac_objext'
29212 { (case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29215 esac
29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_try") 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
29221 ac_header_compiler=yes
29222 else
29223 echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29226 ac_header_compiler=no
29229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29231 echo "${ECHO_T}$ac_header_compiler" >&6; }
29233 # Is the header present?
29234 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
29235 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
29236 cat >conftest.$ac_ext <<_ACEOF
29237 /* confdefs.h. */
29238 _ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h. */
29242 #include <${HOME}/pwlib/include/ptlib.h>
29243 _ACEOF
29244 if { (ac_try="$ac_cpp conftest.$ac_ext"
29245 case "(($ac_try" in
29246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247 *) ac_try_echo=$ac_try;;
29248 esac
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29251 ac_status=$?
29252 grep -v '^ *+' conftest.er1 >conftest.err
29253 rm -f conftest.er1
29254 cat conftest.err >&5
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); } >/dev/null; then
29257 if test -s conftest.err; then
29258 ac_cpp_err=$ac_cxx_preproc_warn_flag
29259 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29260 else
29261 ac_cpp_err=
29263 else
29264 ac_cpp_err=yes
29266 if test -z "$ac_cpp_err"; then
29267 ac_header_preproc=yes
29268 else
29269 echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272 ac_header_preproc=no
29275 rm -f conftest.err conftest.$ac_ext
29276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29277 echo "${ECHO_T}$ac_header_preproc" >&6; }
29279 # So? What about this header?
29280 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29281 yes:no: )
29282 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29283 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29284 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
29285 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
29286 ac_header_preproc=yes
29288 no:yes:* )
29289 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
29290 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
29292 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
29293 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
29294 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
29295 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
29296 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29297 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
29298 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
29300 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
29301 ( cat <<\_ASBOX
29302 ## ------------------------------- ##
29303 ## Report this to www.asterisk.org ##
29304 ## ------------------------------- ##
29305 _ASBOX
29306 ) | sed "s/^/$as_me: WARNING: /" >&2
29308 esac
29309 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
29310 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
29311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29312 echo $ECHO_N "(cached) $ECHO_C" >&6
29313 else
29314 eval "$as_ac_Header=\$ac_header_preproc"
29316 ac_res=`eval echo '${'$as_ac_Header'}'`
29317 { echo "$as_me:$LINENO: result: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29322 HAS_PWLIB=1
29326 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29327 PWLIBDIR="${HOME}/pwlib"
29328 else
29329 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
29330 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
29331 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
29332 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
29333 echo $ECHO_N "(cached) $ECHO_C" >&6
29335 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
29336 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
29337 else
29338 # Is the header compilable?
29339 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
29340 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
29341 cat >conftest.$ac_ext <<_ACEOF
29342 /* confdefs.h. */
29343 _ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h. */
29347 $ac_includes_default
29348 #include </usr/local/include/ptlib.h>
29349 _ACEOF
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29355 esac
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_compile") 2>conftest.er1
29358 ac_status=$?
29359 grep -v '^ *+' conftest.er1 >conftest.err
29360 rm -f conftest.er1
29361 cat conftest.err >&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29365 { (case "(($ac_try" in
29366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367 *) ac_try_echo=$ac_try;;
29368 esac
29369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29370 (eval "$ac_try") 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest.$ac_objext'
29375 { (case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29378 esac
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_try") 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_header_compiler=yes
29385 else
29386 echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29389 ac_header_compiler=no
29392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29394 echo "${ECHO_T}$ac_header_compiler" >&6; }
29396 # Is the header present?
29397 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
29398 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
29399 cat >conftest.$ac_ext <<_ACEOF
29400 /* confdefs.h. */
29401 _ACEOF
29402 cat confdefs.h >>conftest.$ac_ext
29403 cat >>conftest.$ac_ext <<_ACEOF
29404 /* end confdefs.h. */
29405 #include </usr/local/include/ptlib.h>
29406 _ACEOF
29407 if { (ac_try="$ac_cpp conftest.$ac_ext"
29408 case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29414 ac_status=$?
29415 grep -v '^ *+' conftest.er1 >conftest.err
29416 rm -f conftest.er1
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } >/dev/null; then
29420 if test -s conftest.err; then
29421 ac_cpp_err=$ac_cxx_preproc_warn_flag
29422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29423 else
29424 ac_cpp_err=
29426 else
29427 ac_cpp_err=yes
29429 if test -z "$ac_cpp_err"; then
29430 ac_header_preproc=yes
29431 else
29432 echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 ac_header_preproc=no
29438 rm -f conftest.err conftest.$ac_ext
29439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29440 echo "${ECHO_T}$ac_header_preproc" >&6; }
29442 # So? What about this header?
29443 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29444 yes:no: )
29445 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29446 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29447 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
29448 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
29449 ac_header_preproc=yes
29451 no:yes:* )
29452 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
29453 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
29454 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
29455 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
29456 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
29457 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
29458 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
29459 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29460 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
29461 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
29462 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
29463 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
29464 ( cat <<\_ASBOX
29465 ## ------------------------------- ##
29466 ## Report this to www.asterisk.org ##
29467 ## ------------------------------- ##
29468 _ASBOX
29469 ) | sed "s/^/$as_me: WARNING: /" >&2
29471 esac
29472 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
29473 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
29474 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
29479 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
29480 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
29483 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
29484 HAS_PWLIB=1
29488 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29489 # Extract the first word of "ptlib-config", so it can be a program name with args.
29490 set dummy ptlib-config; ac_word=$2
29491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29493 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29495 else
29496 case $PTLIB_CONFIG in
29497 [\\/]* | ?:[\\/]*)
29498 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
29501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29502 for as_dir in /usr/local/bin
29504 IFS=$as_save_IFS
29505 test -z "$as_dir" && as_dir=.
29506 for ac_exec_ext in '' $ac_executable_extensions; do
29507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
29508 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29510 break 2
29512 done
29513 done
29514 IFS=$as_save_IFS
29517 esac
29519 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
29520 if test -n "$PTLIB_CONFIG"; then
29521 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
29522 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
29523 else
29524 { echo "$as_me:$LINENO: result: no" >&5
29525 echo "${ECHO_T}no" >&6; }
29529 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
29530 # Extract the first word of "ptlib-config", so it can be a program name with args.
29531 set dummy ptlib-config; ac_word=$2
29532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29534 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
29535 echo $ECHO_N "(cached) $ECHO_C" >&6
29536 else
29537 case $PTLIB_CONFIG in
29538 [\\/]* | ?:[\\/]*)
29539 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
29542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29543 for as_dir in /usr/local/share/pwlib/make
29545 IFS=$as_save_IFS
29546 test -z "$as_dir" && as_dir=.
29547 for ac_exec_ext in '' $ac_executable_extensions; do
29548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
29549 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29551 break 2
29553 done
29554 done
29555 IFS=$as_save_IFS
29558 esac
29560 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
29561 if test -n "$PTLIB_CONFIG"; then
29562 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
29563 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
29564 else
29565 { echo "$as_me:$LINENO: result: no" >&5
29566 echo "${ECHO_T}no" >&6; }
29571 PWLIB_INCDIR="/usr/local/include"
29572 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
29573 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
29574 if test "x$LIB64" != "x"; then
29575 PWLIB_LIBDIR="/usr/local/lib64"
29576 else
29577 PWLIB_LIBDIR="/usr/local/lib"
29580 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
29581 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
29582 else
29583 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
29584 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
29585 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
29586 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29589 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
29590 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
29591 else
29592 # Is the header compilable?
29593 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
29594 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
29595 cat >conftest.$ac_ext <<_ACEOF
29596 /* confdefs.h. */
29597 _ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h. */
29601 $ac_includes_default
29602 #include </usr/include/ptlib.h>
29603 _ACEOF
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29612 ac_status=$?
29613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
29618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29619 { (case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29622 esac
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_try") 2>&5
29625 ac_status=$?
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; } &&
29628 { ac_try='test -s conftest.$ac_objext'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29632 esac
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ac_header_compiler=yes
29639 else
29640 echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29643 ac_header_compiler=no
29646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29648 echo "${ECHO_T}$ac_header_compiler" >&6; }
29650 # Is the header present?
29651 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
29652 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
29653 cat >conftest.$ac_ext <<_ACEOF
29654 /* confdefs.h. */
29655 _ACEOF
29656 cat confdefs.h >>conftest.$ac_ext
29657 cat >>conftest.$ac_ext <<_ACEOF
29658 /* end confdefs.h. */
29659 #include </usr/include/ptlib.h>
29660 _ACEOF
29661 if { (ac_try="$ac_cpp conftest.$ac_ext"
29662 case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665 esac
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29668 ac_status=$?
29669 grep -v '^ *+' conftest.er1 >conftest.err
29670 rm -f conftest.er1
29671 cat conftest.err >&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } >/dev/null; then
29674 if test -s conftest.err; then
29675 ac_cpp_err=$ac_cxx_preproc_warn_flag
29676 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29677 else
29678 ac_cpp_err=
29680 else
29681 ac_cpp_err=yes
29683 if test -z "$ac_cpp_err"; then
29684 ac_header_preproc=yes
29685 else
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29689 ac_header_preproc=no
29692 rm -f conftest.err conftest.$ac_ext
29693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29694 echo "${ECHO_T}$ac_header_preproc" >&6; }
29696 # So? What about this header?
29697 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29698 yes:no: )
29699 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29700 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29701 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
29702 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
29703 ac_header_preproc=yes
29705 no:yes:* )
29706 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
29707 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
29708 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
29709 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
29710 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
29711 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
29712 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
29713 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29714 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
29715 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
29716 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
29717 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
29718 ( cat <<\_ASBOX
29719 ## ------------------------------- ##
29720 ## Report this to www.asterisk.org ##
29721 ## ------------------------------- ##
29722 _ASBOX
29723 ) | sed "s/^/$as_me: WARNING: /" >&2
29725 esac
29726 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
29727 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
29728 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
29730 else
29731 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
29733 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
29734 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
29737 if test $ac_cv_header__usr_include_ptlib_h = yes; then
29738 HAS_PWLIB=1
29742 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29743 # Extract the first word of "ptlib-config", so it can be a program name with args.
29744 set dummy ptlib-config; ac_word=$2
29745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29747 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29749 else
29750 case $PTLIB_CONFIG in
29751 [\\/]* | ?:[\\/]*)
29752 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
29755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756 for as_dir in /usr/share/pwlib/make
29758 IFS=$as_save_IFS
29759 test -z "$as_dir" && as_dir=.
29760 for ac_exec_ext in '' $ac_executable_extensions; do
29761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
29762 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29764 break 2
29766 done
29767 done
29768 IFS=$as_save_IFS
29771 esac
29773 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
29774 if test -n "$PTLIB_CONFIG"; then
29775 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
29776 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
29777 else
29778 { echo "$as_me:$LINENO: result: no" >&5
29779 echo "${ECHO_T}no" >&6; }
29783 PWLIB_INCDIR="/usr/include"
29784 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
29785 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
29786 if test "x$LIB64" != "x"; then
29787 PWLIB_LIBDIR="/usr/lib64"
29788 else
29789 PWLIB_LIBDIR="/usr/lib"
29792 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
29793 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
29800 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
29801 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
29802 # exit
29805 if test "${HAS_PWLIB:-unset}" != "unset" ; then
29806 if test "${PWLIBDIR:-unset}" = "unset" ; then
29807 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
29808 PWLIBDIR=`$PTLIB_CONFIG --prefix`
29809 else
29810 echo "Cannot find ptlib-config - please install and try again"
29811 exit
29815 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
29816 PWLIBDIR="/usr/share/pwlib"
29817 PWLIB_INCDIR="/usr/include"
29818 if test "x$LIB64" != "x"; then
29819 PWLIB_LIBDIR="/usr/lib64"
29820 else
29821 PWLIB_LIBDIR="/usr/lib"
29824 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
29825 PWLIBDIR="/usr/local/share/pwlib"
29826 PWLIB_INCDIR="/usr/local/include"
29827 if test "x$LIB64" != "x"; then
29828 PWLIB_LIBDIR="/usr/local/lib64"
29829 else
29830 PWLIB_LIBDIR="/usr/local/lib"
29834 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
29835 PWLIB_INCDIR="${PWLIBDIR}/include"
29837 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
29838 PWLIB_LIBDIR="${PWLIBDIR}/lib"
29845 ac_ext=c
29846 ac_cpp='$CPP $CPPFLAGS'
29847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29853 if test "${HAS_PWLIB:-unset}" != "unset"; then
29854 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
29855 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
29856 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
29857 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
29858 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
29859 let PWLIB_REQ=1*10000+9*100+2
29861 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
29862 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
29863 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
29864 { echo "$as_me:$LINENO: result: no" >&5
29865 echo "${ECHO_T}no" >&6; }
29866 unset HAS_PWLIB
29867 else
29868 { echo "$as_me:$LINENO: result: yes" >&5
29869 echo "${ECHO_T}yes" >&6; }
29874 if test "${HAS_PWLIB:-unset}" != "unset"; then
29876 PWLIB_OSTYPE=
29877 case "$host_os" in
29878 linux*) PWLIB_OSTYPE=linux ;
29880 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
29882 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
29883 ENDLDLIBS="-lossaudio" ;
29885 netbsd* ) PWLIB_OSTYPE=NetBSD ;
29886 ENDLDLIBS="-lossaudio" ;
29888 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
29890 darwin* ) PWLIB_OSTYPE=Darwin ;
29892 beos*) PWLIB_OSTYPE=beos ;
29893 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
29895 cygwin*) PWLIB_OSTYPE=cygwin ;
29897 mingw*) PWLIB_OSTYPE=mingw ;
29898 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
29899 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
29901 * ) PWLIB_OSTYPE="$host_os" ;
29902 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
29903 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
29905 esac
29907 PWLIB_MACHTYPE=
29908 case "$host_cpu" in
29909 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
29912 x86_64) PWLIB_MACHTYPE=x86_64 ;
29913 P_64BIT=1 ;
29914 LIB64=1 ;
29917 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
29918 P_64BIT=1 ;
29921 sparc ) PWLIB_MACHTYPE=sparc ;
29924 powerpc ) PWLIB_MACHTYPE=ppc ;
29927 ppc ) PWLIB_MACHTYPE=ppc ;
29930 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
29931 P_64BIT=1 ;
29932 LIB64=1 ;
29935 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
29936 P_64BIT=1 ;
29937 LIB64=1 ;
29940 ia64) PWLIB_MACHTYPE=ia64 ;
29941 P_64BIT=1 ;
29944 s390x) PWLIB_MACHTYPE=s390x ;
29945 P_64BIT=1 ;
29946 LIB64=1 ;
29949 s390) PWLIB_MACHTYPE=s390 ;
29952 * ) PWLIB_MACHTYPE="$host_cpu";
29953 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
29954 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
29955 esac
29957 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
29962 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
29965 if test "${HAS_PWLIB:-unset}" != "unset"; then
29966 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
29967 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
29969 saved_cppflags="${CPPFLAGS}"
29970 saved_libs="${LIBS}"
29971 if test "${PWLIB_LIB:-unset}" != "unset"; then
29972 LIBS="${LIBS} ${PWLIB_LIB} "
29973 else
29974 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
29976 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
29978 ac_ext=cpp
29979 ac_cpp='$CXXCPP $CPPFLAGS'
29980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29985 cat >conftest.$ac_ext <<_ACEOF
29986 /* confdefs.h. */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h. */
29991 #include "ptlib.h"
29993 main ()
29995 BOOL q = PTime::IsDaylightSavings();
29997 return 0;
29999 _ACEOF
30000 rm -f conftest.$ac_objext conftest$ac_exeext
30001 if { (ac_try="$ac_link"
30002 case "(($ac_try" in
30003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004 *) ac_try_echo=$ac_try;;
30005 esac
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007 (eval "$ac_link") 2>conftest.er1
30008 ac_status=$?
30009 grep -v '^ *+' conftest.er1 >conftest.err
30010 rm -f conftest.er1
30011 cat conftest.err >&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } &&
30014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018 esac
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30021 ac_status=$?
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest$ac_exeext'
30025 { (case "(($ac_try" in
30026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027 *) ac_try_echo=$ac_try;;
30028 esac
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_try") 2>&5
30031 ac_status=$?
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
30034 { echo "$as_me:$LINENO: result: yes" >&5
30035 echo "${ECHO_T}yes" >&6; }
30036 ac_cv_lib_PWLIB="yes"
30038 else
30039 echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30042 { echo "$as_me:$LINENO: result: no" >&5
30043 echo "${ECHO_T}no" >&6; }
30044 ac_cv_lib_PWLIB="no"
30049 rm -f core conftest.err conftest.$ac_objext \
30050 conftest$ac_exeext conftest.$ac_ext
30052 ac_ext=c
30053 ac_cpp='$CPP $CPPFLAGS'
30054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30059 LIBS="${saved_libs}"
30060 CPPFLAGS="${saved_cppflags}"
30062 if test "${ac_cv_lib_PWLIB}" = "yes"; then
30063 if test "${PWLIB_LIB:-undef}" = "undef"; then
30064 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
30065 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
30066 else
30067 PWLIB_LIB="-l${PLATFORM_PWLIB}"
30070 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
30071 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
30073 PBX_PWLIB=1
30075 cat >>confdefs.h <<\_ACEOF
30076 #define HAVE_PWLIB 1
30077 _ACEOF
30085 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
30086 { echo "$as_me:$LINENO: ***" >&5
30087 echo "$as_me: ***" >&6;}
30088 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
30089 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
30090 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30091 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30092 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
30093 echo "$as_me: *** including --without-pwlib" >&6;}
30094 exit 1
30097 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
30098 if test -n "${OPENH323_DIR}"; then
30099 OPENH323DIR="${OPENH323_DIR}"
30102 OPENH323_INCDIR=
30103 OPENH323_LIBDIR=
30104 ac_ext=cpp
30105 ac_cpp='$CXXCPP $CPPFLAGS'
30106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30110 if test "${OPENH323DIR:-unset}" != "unset" ; then
30111 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
30112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30113 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
30114 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
30115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30116 echo $ECHO_N "(cached) $ECHO_C" >&6
30118 ac_res=`eval echo '${'$as_ac_Header'}'`
30119 { echo "$as_me:$LINENO: result: $ac_res" >&5
30120 echo "${ECHO_T}$ac_res" >&6; }
30121 else
30122 # Is the header compilable?
30123 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
30124 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
30125 cat >conftest.$ac_ext <<_ACEOF
30126 /* confdefs.h. */
30127 _ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h. */
30131 $ac_includes_default
30132 #include <${OPENH323DIR}/version.h>
30133 _ACEOF
30134 rm -f conftest.$ac_objext
30135 if { (ac_try="$ac_compile"
30136 case "(($ac_try" in
30137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138 *) ac_try_echo=$ac_try;;
30139 esac
30140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141 (eval "$ac_compile") 2>conftest.er1
30142 ac_status=$?
30143 grep -v '^ *+' conftest.er1 >conftest.err
30144 rm -f conftest.er1
30145 cat conftest.err >&5
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
30148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30149 { (case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30152 esac
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_try") 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; } &&
30158 { ac_try='test -s conftest.$ac_objext'
30159 { (case "(($ac_try" in
30160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161 *) ac_try_echo=$ac_try;;
30162 esac
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_try") 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 ac_header_compiler=yes
30169 else
30170 echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30173 ac_header_compiler=no
30176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30178 echo "${ECHO_T}$ac_header_compiler" >&6; }
30180 # Is the header present?
30181 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
30182 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
30183 cat >conftest.$ac_ext <<_ACEOF
30184 /* confdefs.h. */
30185 _ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30189 #include <${OPENH323DIR}/version.h>
30190 _ACEOF
30191 if { (ac_try="$ac_cpp conftest.$ac_ext"
30192 case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30195 esac
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30198 ac_status=$?
30199 grep -v '^ *+' conftest.er1 >conftest.err
30200 rm -f conftest.er1
30201 cat conftest.err >&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); } >/dev/null; then
30204 if test -s conftest.err; then
30205 ac_cpp_err=$ac_cxx_preproc_warn_flag
30206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30207 else
30208 ac_cpp_err=
30210 else
30211 ac_cpp_err=yes
30213 if test -z "$ac_cpp_err"; then
30214 ac_header_preproc=yes
30215 else
30216 echo "$as_me: failed program was:" >&5
30217 sed 's/^/| /' conftest.$ac_ext >&5
30219 ac_header_preproc=no
30222 rm -f conftest.err conftest.$ac_ext
30223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30224 echo "${ECHO_T}$ac_header_preproc" >&6; }
30226 # So? What about this header?
30227 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30228 yes:no: )
30229 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
30230 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30231 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
30232 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
30233 ac_header_preproc=yes
30235 no:yes:* )
30236 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
30237 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
30238 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
30239 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
30240 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
30241 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
30242 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
30243 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
30244 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
30245 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
30246 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
30247 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
30248 ( cat <<\_ASBOX
30249 ## ------------------------------- ##
30250 ## Report this to www.asterisk.org ##
30251 ## ------------------------------- ##
30252 _ASBOX
30253 ) | sed "s/^/$as_me: WARNING: /" >&2
30255 esac
30256 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
30257 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
30258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30260 else
30261 eval "$as_ac_Header=\$ac_header_preproc"
30263 ac_res=`eval echo '${'$as_ac_Header'}'`
30264 { echo "$as_me:$LINENO: result: $ac_res" >&5
30265 echo "${ECHO_T}$ac_res" >&6; }
30268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30269 HAS_OPENH323=1
30274 if test "${HAS_OPENH323:-unset}" = "unset" ; then
30275 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
30276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30277 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
30278 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
30279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30280 echo $ECHO_N "(cached) $ECHO_C" >&6
30282 ac_res=`eval echo '${'$as_ac_Header'}'`
30283 { echo "$as_me:$LINENO: result: $ac_res" >&5
30284 echo "${ECHO_T}$ac_res" >&6; }
30285 else
30286 # Is the header compilable?
30287 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
30288 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
30289 cat >conftest.$ac_ext <<_ACEOF
30290 /* confdefs.h. */
30291 _ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h. */
30295 $ac_includes_default
30296 #include <${PWLIBDIR}/../openh323/version.h>
30297 _ACEOF
30298 rm -f conftest.$ac_objext
30299 if { (ac_try="$ac_compile"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30303 esac
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_compile") 2>conftest.er1
30306 ac_status=$?
30307 grep -v '^ *+' conftest.er1 >conftest.err
30308 rm -f conftest.er1
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } &&
30312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30313 { (case "(($ac_try" in
30314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30315 *) ac_try_echo=$ac_try;;
30316 esac
30317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30318 (eval "$ac_try") 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; } &&
30322 { ac_try='test -s conftest.$ac_objext'
30323 { (case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30326 esac
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_try") 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; }; then
30332 ac_header_compiler=yes
30333 else
30334 echo "$as_me: failed program was:" >&5
30335 sed 's/^/| /' conftest.$ac_ext >&5
30337 ac_header_compiler=no
30340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30342 echo "${ECHO_T}$ac_header_compiler" >&6; }
30344 # Is the header present?
30345 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
30346 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
30347 cat >conftest.$ac_ext <<_ACEOF
30348 /* confdefs.h. */
30349 _ACEOF
30350 cat confdefs.h >>conftest.$ac_ext
30351 cat >>conftest.$ac_ext <<_ACEOF
30352 /* end confdefs.h. */
30353 #include <${PWLIBDIR}/../openh323/version.h>
30354 _ACEOF
30355 if { (ac_try="$ac_cpp conftest.$ac_ext"
30356 case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30359 esac
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30362 ac_status=$?
30363 grep -v '^ *+' conftest.er1 >conftest.err
30364 rm -f conftest.er1
30365 cat conftest.err >&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } >/dev/null; then
30368 if test -s conftest.err; then
30369 ac_cpp_err=$ac_cxx_preproc_warn_flag
30370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30371 else
30372 ac_cpp_err=
30374 else
30375 ac_cpp_err=yes
30377 if test -z "$ac_cpp_err"; then
30378 ac_header_preproc=yes
30379 else
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ac_header_preproc=no
30386 rm -f conftest.err conftest.$ac_ext
30387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30388 echo "${ECHO_T}$ac_header_preproc" >&6; }
30390 # So? What about this header?
30391 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30392 yes:no: )
30393 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
30394 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30395 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
30396 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
30397 ac_header_preproc=yes
30399 no:yes:* )
30400 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
30401 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
30403 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
30405 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
30407 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
30409 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
30410 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
30411 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
30412 ( cat <<\_ASBOX
30413 ## ------------------------------- ##
30414 ## Report this to www.asterisk.org ##
30415 ## ------------------------------- ##
30416 _ASBOX
30417 ) | sed "s/^/$as_me: WARNING: /" >&2
30419 esac
30420 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
30421 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
30422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30425 eval "$as_ac_Header=\$ac_header_preproc"
30427 ac_res=`eval echo '${'$as_ac_Header'}'`
30428 { echo "$as_me:$LINENO: result: $ac_res" >&5
30429 echo "${ECHO_T}$ac_res" >&6; }
30432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30433 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
30437 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30438 OPENH323DIR="${PWLIBDIR}/../openh323"
30439 saved_cppflags="${CPPFLAGS}"
30440 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
30441 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
30442 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
30443 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
30444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445 echo $ECHO_N "(cached) $ECHO_C" >&6
30446 else
30447 cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h. */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h. */
30453 #include <ptlib.h>
30455 #include <${OPENH323DIR}/include/h323.h>
30456 _ACEOF
30457 rm -f conftest.$ac_objext
30458 if { (ac_try="$ac_compile"
30459 case "(($ac_try" in
30460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461 *) ac_try_echo=$ac_try;;
30462 esac
30463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464 (eval "$ac_compile") 2>conftest.er1
30465 ac_status=$?
30466 grep -v '^ *+' conftest.er1 >conftest.err
30467 rm -f conftest.er1
30468 cat conftest.err >&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } &&
30471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30472 { (case "(($ac_try" in
30473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474 *) ac_try_echo=$ac_try;;
30475 esac
30476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477 (eval "$ac_try") 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; } &&
30481 { ac_try='test -s conftest.$ac_objext'
30482 { (case "(($ac_try" in
30483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484 *) ac_try_echo=$ac_try;;
30485 esac
30486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487 (eval "$ac_try") 2>&5
30488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; }; then
30491 eval "$as_ac_Header=yes"
30492 else
30493 echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30496 eval "$as_ac_Header=no"
30499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30501 ac_res=`eval echo '${'$as_ac_Header'}'`
30502 { echo "$as_me:$LINENO: result: $ac_res" >&5
30503 echo "${ECHO_T}$ac_res" >&6; }
30504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30506 else
30507 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
30511 CPPFLAGS="${saved_cppflags}"
30512 else
30513 saved_cppflags="${CPPFLAGS}"
30514 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
30515 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
30516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30517 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
30518 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
30519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30522 ac_res=`eval echo '${'$as_ac_Header'}'`
30523 { echo "$as_me:$LINENO: result: $ac_res" >&5
30524 echo "${ECHO_T}$ac_res" >&6; }
30525 else
30526 # Is the header compilable?
30527 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
30528 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
30529 cat >conftest.$ac_ext <<_ACEOF
30530 /* confdefs.h. */
30531 _ACEOF
30532 cat confdefs.h >>conftest.$ac_ext
30533 cat >>conftest.$ac_ext <<_ACEOF
30534 /* end confdefs.h. */
30535 $ac_includes_default
30536 #include <${HOME}/openh323/include/h323.h>
30537 _ACEOF
30538 rm -f conftest.$ac_objext
30539 if { (ac_try="$ac_compile"
30540 case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30543 esac
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_compile") 2>conftest.er1
30546 ac_status=$?
30547 grep -v '^ *+' conftest.er1 >conftest.err
30548 rm -f conftest.er1
30549 cat conftest.err >&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } &&
30552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30553 { (case "(($ac_try" in
30554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555 *) ac_try_echo=$ac_try;;
30556 esac
30557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558 (eval "$ac_try") 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest.$ac_objext'
30563 { (case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30566 esac
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568 (eval "$ac_try") 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 ac_header_compiler=yes
30573 else
30574 echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30577 ac_header_compiler=no
30580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30582 echo "${ECHO_T}$ac_header_compiler" >&6; }
30584 # Is the header present?
30585 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
30586 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
30587 cat >conftest.$ac_ext <<_ACEOF
30588 /* confdefs.h. */
30589 _ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30593 #include <${HOME}/openh323/include/h323.h>
30594 _ACEOF
30595 if { (ac_try="$ac_cpp conftest.$ac_ext"
30596 case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599 esac
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30602 ac_status=$?
30603 grep -v '^ *+' conftest.er1 >conftest.err
30604 rm -f conftest.er1
30605 cat conftest.err >&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } >/dev/null; then
30608 if test -s conftest.err; then
30609 ac_cpp_err=$ac_cxx_preproc_warn_flag
30610 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30611 else
30612 ac_cpp_err=
30614 else
30615 ac_cpp_err=yes
30617 if test -z "$ac_cpp_err"; then
30618 ac_header_preproc=yes
30619 else
30620 echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30623 ac_header_preproc=no
30626 rm -f conftest.err conftest.$ac_ext
30627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30628 echo "${ECHO_T}$ac_header_preproc" >&6; }
30630 # So? What about this header?
30631 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30632 yes:no: )
30633 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30634 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
30636 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
30637 ac_header_preproc=yes
30639 no:yes:* )
30640 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
30641 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
30642 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
30643 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
30644 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
30645 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
30646 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
30647 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30648 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
30649 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
30650 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
30651 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
30652 ( cat <<\_ASBOX
30653 ## ------------------------------- ##
30654 ## Report this to www.asterisk.org ##
30655 ## ------------------------------- ##
30656 _ASBOX
30657 ) | sed "s/^/$as_me: WARNING: /" >&2
30659 esac
30660 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
30661 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
30662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30663 echo $ECHO_N "(cached) $ECHO_C" >&6
30664 else
30665 eval "$as_ac_Header=\$ac_header_preproc"
30667 ac_res=`eval echo '${'$as_ac_Header'}'`
30668 { echo "$as_me:$LINENO: result: $ac_res" >&5
30669 echo "${ECHO_T}$ac_res" >&6; }
30672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30673 HAS_OPENH323=1
30677 CPPFLAGS="${saved_cppflags}"
30678 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30679 OPENH323DIR="${HOME}/openh323"
30680 else
30681 saved_cppflags="${CPPFLAGS}"
30682 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
30683 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
30684 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
30685 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
30686 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
30687 echo $ECHO_N "(cached) $ECHO_C" >&6
30689 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
30690 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
30691 else
30692 # Is the header compilable?
30693 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
30694 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
30695 cat >conftest.$ac_ext <<_ACEOF
30696 /* confdefs.h. */
30697 _ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h. */
30701 $ac_includes_default
30702 #include </usr/local/include/openh323/h323.h>
30703 _ACEOF
30704 rm -f conftest.$ac_objext
30705 if { (ac_try="$ac_compile"
30706 case "(($ac_try" in
30707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708 *) ac_try_echo=$ac_try;;
30709 esac
30710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711 (eval "$ac_compile") 2>conftest.er1
30712 ac_status=$?
30713 grep -v '^ *+' conftest.er1 >conftest.err
30714 rm -f conftest.er1
30715 cat conftest.err >&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); } &&
30718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30719 { (case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30722 esac
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_try") 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; } &&
30728 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; }; then
30738 ac_header_compiler=yes
30739 else
30740 echo "$as_me: failed program was:" >&5
30741 sed 's/^/| /' conftest.$ac_ext >&5
30743 ac_header_compiler=no
30746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30748 echo "${ECHO_T}$ac_header_compiler" >&6; }
30750 # Is the header present?
30751 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
30752 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
30753 cat >conftest.$ac_ext <<_ACEOF
30754 /* confdefs.h. */
30755 _ACEOF
30756 cat confdefs.h >>conftest.$ac_ext
30757 cat >>conftest.$ac_ext <<_ACEOF
30758 /* end confdefs.h. */
30759 #include </usr/local/include/openh323/h323.h>
30760 _ACEOF
30761 if { (ac_try="$ac_cpp conftest.$ac_ext"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30765 esac
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30768 ac_status=$?
30769 grep -v '^ *+' conftest.er1 >conftest.err
30770 rm -f conftest.er1
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } >/dev/null; then
30774 if test -s conftest.err; then
30775 ac_cpp_err=$ac_cxx_preproc_warn_flag
30776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30777 else
30778 ac_cpp_err=
30780 else
30781 ac_cpp_err=yes
30783 if test -z "$ac_cpp_err"; then
30784 ac_header_preproc=yes
30785 else
30786 echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30789 ac_header_preproc=no
30792 rm -f conftest.err conftest.$ac_ext
30793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30794 echo "${ECHO_T}$ac_header_preproc" >&6; }
30796 # So? What about this header?
30797 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30798 yes:no: )
30799 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
30800 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
30802 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
30803 ac_header_preproc=yes
30805 no:yes:* )
30806 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
30807 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
30808 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
30809 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
30810 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
30811 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
30812 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
30813 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
30814 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
30815 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
30816 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
30817 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
30818 ( cat <<\_ASBOX
30819 ## ------------------------------- ##
30820 ## Report this to www.asterisk.org ##
30821 ## ------------------------------- ##
30822 _ASBOX
30823 ) | sed "s/^/$as_me: WARNING: /" >&2
30825 esac
30826 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
30827 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
30828 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30830 else
30831 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
30833 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
30834 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
30837 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
30838 HAS_OPENH323=1
30842 CPPFLAGS="${saved_cppflags}"
30843 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30844 OPENH323DIR="/usr/local/share/openh323"
30845 OPENH323_INCDIR="/usr/local/include/openh323"
30846 if test "x$LIB64" != "x"; then
30847 OPENH323_LIBDIR="/usr/local/lib64"
30848 else
30849 OPENH323_LIBDIR="/usr/local/lib"
30851 else
30852 saved_cppflags="${CPPFLAGS}"
30853 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
30854 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
30855 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
30856 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859 cat >conftest.$ac_ext <<_ACEOF
30860 /* confdefs.h. */
30861 _ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30865 #include <ptlib.h>
30867 #include </usr/include/openh323/h323.h>
30868 _ACEOF
30869 rm -f conftest.$ac_objext
30870 if { (ac_try="$ac_compile"
30871 case "(($ac_try" in
30872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873 *) ac_try_echo=$ac_try;;
30874 esac
30875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876 (eval "$ac_compile") 2>conftest.er1
30877 ac_status=$?
30878 grep -v '^ *+' conftest.er1 >conftest.err
30879 rm -f conftest.er1
30880 cat conftest.err >&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } &&
30883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30884 { (case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30887 esac
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_try") 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest.$ac_objext'
30894 { (case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_try") 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; }; then
30903 ac_cv_header__usr_include_openh323_h323_h=yes
30904 else
30905 echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30908 ac_cv_header__usr_include_openh323_h323_h=no
30911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30913 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
30914 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
30915 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
30916 HAS_OPENH323=1
30920 CPPFLAGS="${saved_cppflags}"
30921 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30922 OPENH323DIR="/usr/share/openh323"
30923 OPENH323_INCDIR="/usr/include/openh323"
30924 if test "x$LIB64" != "x"; then
30925 OPENH323_LIBDIR="/usr/lib64"
30926 else
30927 OPENH323_LIBDIR="/usr/lib"
30935 if test "${HAS_OPENH323:-unset}" != "unset" ; then
30936 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
30937 OPENH323_INCDIR="${OPENH323DIR}/include"
30939 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
30940 OPENH323_LIBDIR="${OPENH323DIR}/lib"
30943 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
30944 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
30945 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
30951 ac_ext=c
30952 ac_cpp='$CPP $CPPFLAGS'
30953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30959 if test "${HAS_OPENH323:-unset}" != "unset"; then
30960 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
30961 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
30962 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
30963 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
30964 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
30965 let OPENH323_REQ=1*10000+17*100+3
30967 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
30968 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
30969 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
30970 { echo "$as_me:$LINENO: result: no" >&5
30971 echo "${ECHO_T}no" >&6; }
30972 unset HAS_OPENH323
30973 else
30974 { echo "$as_me:$LINENO: result: yes" >&5
30975 echo "${ECHO_T}yes" >&6; }
30980 if test "${HAS_OPENH323:-unset}" != "unset"; then
30981 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
30982 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
30983 OPENH323_SUFFIX=
30984 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
30985 for pfx in $prefixes; do
30986 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
30987 libfile=
30988 if test -n "$files"; then
30989 for f in $files; do
30990 if test -f $f -a ! -L $f; then
30991 libfile=`basename $f`
30992 break;
30994 done
30996 if test -n "$libfile"; then
30997 OPENH323_PREFIX=$pfx
30998 break;
31000 done
31001 if test "${libfile:-unset}" != "unset"; then
31002 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
31004 case "${OPENH323_SUFFIX}" in
31006 OPENH323_BUILD="notrace";;
31008 OPENH323_BUILD="opt";;
31010 OPENH323_BUILD="debug";;
31012 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
31013 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
31014 if test "x$notrace" = "x"; then
31015 notrace="0"
31017 if test "$notrace" -ne 0; then
31018 OPENH323_BUILD="notrace"
31019 else
31020 OPENH323_BUILD="opt"
31022 OPENH323_LIB="-l${OPENH323_PREFIX}"
31023 else
31024 OPENH323_BUILD="notrace"
31027 esac
31028 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
31029 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
31035 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
31037 if test "${HAS_OPENH323:-unset}" != "unset"; then
31038 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
31039 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
31041 saved_cppflags="${CPPFLAGS}"
31042 saved_libs="${LIBS}"
31043 if test "${OPENH323_LIB:-unset}" != "unset"; then
31044 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
31045 else
31046 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
31048 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
31050 ac_ext=cpp
31051 ac_cpp='$CXXCPP $CPPFLAGS'
31052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31057 cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h. */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h. */
31063 #include "ptlib.h"
31064 #include "h323.h"
31065 #include "h323ep.h"
31067 main ()
31069 H323EndPoint ep = H323EndPoint();
31071 return 0;
31073 _ACEOF
31074 rm -f conftest.$ac_objext conftest$ac_exeext
31075 if { (ac_try="$ac_link"
31076 case "(($ac_try" in
31077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078 *) ac_try_echo=$ac_try;;
31079 esac
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081 (eval "$ac_link") 2>conftest.er1
31082 ac_status=$?
31083 grep -v '^ *+' conftest.er1 >conftest.err
31084 rm -f conftest.er1
31085 cat conftest.err >&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } &&
31088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31089 { (case "(($ac_try" in
31090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31091 *) ac_try_echo=$ac_try;;
31092 esac
31093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094 (eval "$ac_try") 2>&5
31095 ac_status=$?
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; } &&
31098 { ac_try='test -s conftest$ac_exeext'
31099 { (case "(($ac_try" in
31100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101 *) ac_try_echo=$ac_try;;
31102 esac
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104 (eval "$ac_try") 2>&5
31105 ac_status=$?
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); }; }; then
31108 { echo "$as_me:$LINENO: result: yes" >&5
31109 echo "${ECHO_T}yes" >&6; }
31110 ac_cv_lib_OPENH323="yes"
31112 else
31113 echo "$as_me: failed program was:" >&5
31114 sed 's/^/| /' conftest.$ac_ext >&5
31116 { echo "$as_me:$LINENO: result: no" >&5
31117 echo "${ECHO_T}no" >&6; }
31118 ac_cv_lib_OPENH323="no"
31123 rm -f core conftest.err conftest.$ac_objext \
31124 conftest$ac_exeext conftest.$ac_ext
31126 ac_ext=c
31127 ac_cpp='$CPP $CPPFLAGS'
31128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31133 LIBS="${saved_libs}"
31134 CPPFLAGS="${saved_cppflags}"
31136 if test "${ac_cv_lib_OPENH323}" = "yes"; then
31137 if test "${OPENH323_LIB:-undef}" = "undef"; then
31138 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
31139 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
31140 else
31141 OPENH323_LIB="-l${PLATFORM_OPENH323}"
31144 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
31145 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
31147 PBX_OPENH323=1
31149 cat >>confdefs.h <<\_ACEOF
31150 #define HAVE_OPENH323 1
31151 _ACEOF
31157 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
31158 { echo "$as_me:$LINENO: ***" >&5
31159 echo "$as_me: ***" >&6;}
31160 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
31161 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
31162 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31163 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31164 { echo "$as_me:$LINENO: *** including --without-h323" >&5
31165 echo "$as_me: *** including --without-h323" >&6;}
31166 exit 1
31170 if test "${USE_RADIUS}" != "no"; then
31171 pbxlibdir=""
31172 if test "x${RADIUS_DIR}" != "x"; then
31173 if test -d ${RADIUS_DIR}/lib; then
31174 pbxlibdir="-L${RADIUS_DIR}/lib"
31175 else
31176 pbxlibdir="-L${RADIUS_DIR}"
31179 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
31180 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
31181 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
31182 echo $ECHO_N "(cached) $ECHO_C" >&6
31183 else
31184 ac_check_lib_save_LIBS=$LIBS
31185 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
31186 cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h. */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31193 /* Override any GCC internal prototype to avoid an error.
31194 Use char because int might match the return type of a GCC
31195 builtin and then its argument prototype would still apply. */
31196 #ifdef __cplusplus
31197 extern "C"
31198 #endif
31199 char rc_read_config ();
31201 main ()
31203 return rc_read_config ();
31205 return 0;
31207 _ACEOF
31208 rm -f conftest.$ac_objext conftest$ac_exeext
31209 if { (ac_try="$ac_link"
31210 case "(($ac_try" in
31211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212 *) ac_try_echo=$ac_try;;
31213 esac
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215 (eval "$ac_link") 2>conftest.er1
31216 ac_status=$?
31217 grep -v '^ *+' conftest.er1 >conftest.err
31218 rm -f conftest.er1
31219 cat conftest.err >&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
31222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226 esac
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; } &&
31232 { ac_try='test -s conftest$ac_exeext'
31233 { (case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236 esac
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_try") 2>&5
31239 ac_status=$?
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
31242 ac_cv_lib_radiusclient_ng_rc_read_config=yes
31243 else
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247 ac_cv_lib_radiusclient_ng_rc_read_config=no
31250 rm -f core conftest.err conftest.$ac_objext \
31251 conftest$ac_exeext conftest.$ac_ext
31252 LIBS=$ac_check_lib_save_LIBS
31254 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
31255 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
31256 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
31257 AST_RADIUS_FOUND=yes
31258 else
31259 AST_RADIUS_FOUND=no
31263 if test "${AST_RADIUS_FOUND}" = "yes"; then
31264 RADIUS_LIB="-lradiusclient-ng "
31265 RADIUS_HEADER_FOUND="1"
31266 if test "x${RADIUS_DIR}" != "x"; then
31267 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
31268 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
31269 saved_cppflags="${CPPFLAGS}"
31270 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
31271 if test "xradiusclient-ng.h" != "x" ; then
31272 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
31273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31274 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
31275 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
31276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 ac_res=`eval echo '${'$as_ac_Header'}'`
31280 { echo "$as_me:$LINENO: result: $ac_res" >&5
31281 echo "${ECHO_T}$ac_res" >&6; }
31282 else
31283 # Is the header compilable?
31284 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
31285 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
31286 cat >conftest.$ac_ext <<_ACEOF
31287 /* confdefs.h. */
31288 _ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h. */
31292 $ac_includes_default
31293 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
31294 _ACEOF
31295 rm -f conftest.$ac_objext
31296 if { (ac_try="$ac_compile"
31297 case "(($ac_try" in
31298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31299 *) ac_try_echo=$ac_try;;
31300 esac
31301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31302 (eval "$ac_compile") 2>conftest.er1
31303 ac_status=$?
31304 grep -v '^ *+' conftest.er1 >conftest.err
31305 rm -f conftest.er1
31306 cat conftest.err >&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); } &&
31309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; } &&
31319 { ac_try='test -s conftest.$ac_objext'
31320 { (case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31323 esac
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_try") 2>&5
31326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 ac_header_compiler=yes
31330 else
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31334 ac_header_compiler=no
31337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31339 echo "${ECHO_T}$ac_header_compiler" >&6; }
31341 # Is the header present?
31342 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
31343 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
31344 cat >conftest.$ac_ext <<_ACEOF
31345 /* confdefs.h. */
31346 _ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h. */
31350 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
31351 _ACEOF
31352 if { (ac_try="$ac_cpp conftest.$ac_ext"
31353 case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31356 esac
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31359 ac_status=$?
31360 grep -v '^ *+' conftest.er1 >conftest.err
31361 rm -f conftest.er1
31362 cat conftest.err >&5
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); } >/dev/null; then
31365 if test -s conftest.err; then
31366 ac_cpp_err=$ac_c_preproc_warn_flag
31367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31368 else
31369 ac_cpp_err=
31371 else
31372 ac_cpp_err=yes
31374 if test -z "$ac_cpp_err"; then
31375 ac_header_preproc=yes
31376 else
31377 echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31380 ac_header_preproc=no
31383 rm -f conftest.err conftest.$ac_ext
31384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31385 echo "${ECHO_T}$ac_header_preproc" >&6; }
31387 # So? What about this header?
31388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31389 yes:no: )
31390 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
31391 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31392 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
31393 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
31394 ac_header_preproc=yes
31396 no:yes:* )
31397 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
31398 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
31399 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
31400 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
31401 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
31402 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
31403 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
31404 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
31405 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
31406 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
31407 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
31408 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
31409 ( cat <<\_ASBOX
31410 ## ------------------------------- ##
31411 ## Report this to www.asterisk.org ##
31412 ## ------------------------------- ##
31413 _ASBOX
31414 ) | sed "s/^/$as_me: WARNING: /" >&2
31416 esac
31417 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
31418 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
31419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31420 echo $ECHO_N "(cached) $ECHO_C" >&6
31421 else
31422 eval "$as_ac_Header=\$ac_header_preproc"
31424 ac_res=`eval echo '${'$as_ac_Header'}'`
31425 { echo "$as_me:$LINENO: result: $ac_res" >&5
31426 echo "${ECHO_T}$ac_res" >&6; }
31429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31430 RADIUS_HEADER_FOUND=1
31431 else
31432 RADIUS_HEADER_FOUND=0
31437 CPPFLAGS="${saved_cppflags}"
31438 else
31439 if test "xradiusclient-ng.h" != "x" ; then
31440 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
31441 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
31442 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
31443 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
31444 echo $ECHO_N "(cached) $ECHO_C" >&6
31446 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
31447 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
31448 else
31449 # Is the header compilable?
31450 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
31451 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
31452 cat >conftest.$ac_ext <<_ACEOF
31453 /* confdefs.h. */
31454 _ACEOF
31455 cat confdefs.h >>conftest.$ac_ext
31456 cat >>conftest.$ac_ext <<_ACEOF
31457 /* end confdefs.h. */
31458 $ac_includes_default
31459 #include <radiusclient-ng.h>
31460 _ACEOF
31461 rm -f conftest.$ac_objext
31462 if { (ac_try="$ac_compile"
31463 case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31466 esac
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_compile") 2>conftest.er1
31469 ac_status=$?
31470 grep -v '^ *+' conftest.er1 >conftest.err
31471 rm -f conftest.er1
31472 cat conftest.err >&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } &&
31475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31476 { (case "(($ac_try" in
31477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31478 *) ac_try_echo=$ac_try;;
31479 esac
31480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481 (eval "$ac_try") 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; } &&
31485 { ac_try='test -s conftest.$ac_objext'
31486 { (case "(($ac_try" in
31487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31489 esac
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_try") 2>&5
31492 ac_status=$?
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 ac_header_compiler=yes
31496 else
31497 echo "$as_me: failed program was:" >&5
31498 sed 's/^/| /' conftest.$ac_ext >&5
31500 ac_header_compiler=no
31503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31505 echo "${ECHO_T}$ac_header_compiler" >&6; }
31507 # Is the header present?
31508 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
31509 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
31510 cat >conftest.$ac_ext <<_ACEOF
31511 /* confdefs.h. */
31512 _ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31516 #include <radiusclient-ng.h>
31517 _ACEOF
31518 if { (ac_try="$ac_cpp conftest.$ac_ext"
31519 case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31525 ac_status=$?
31526 grep -v '^ *+' conftest.er1 >conftest.err
31527 rm -f conftest.er1
31528 cat conftest.err >&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } >/dev/null; then
31531 if test -s conftest.err; then
31532 ac_cpp_err=$ac_c_preproc_warn_flag
31533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31534 else
31535 ac_cpp_err=
31537 else
31538 ac_cpp_err=yes
31540 if test -z "$ac_cpp_err"; then
31541 ac_header_preproc=yes
31542 else
31543 echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31546 ac_header_preproc=no
31549 rm -f conftest.err conftest.$ac_ext
31550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31551 echo "${ECHO_T}$ac_header_preproc" >&6; }
31553 # So? What about this header?
31554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31555 yes:no: )
31556 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
31557 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31558 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
31559 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
31560 ac_header_preproc=yes
31562 no:yes:* )
31563 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
31564 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
31565 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
31566 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
31567 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
31568 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
31570 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
31571 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
31572 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
31573 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
31574 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
31575 ( cat <<\_ASBOX
31576 ## ------------------------------- ##
31577 ## Report this to www.asterisk.org ##
31578 ## ------------------------------- ##
31579 _ASBOX
31580 ) | sed "s/^/$as_me: WARNING: /" >&2
31582 esac
31583 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
31584 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
31585 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
31586 echo $ECHO_N "(cached) $ECHO_C" >&6
31587 else
31588 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
31590 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
31591 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
31594 if test $ac_cv_header_radiusclient_ng_h = yes; then
31595 RADIUS_HEADER_FOUND=1
31596 else
31597 RADIUS_HEADER_FOUND=0
31603 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
31604 if test -n "${RADIUS_MANDATORY}" ;
31605 then
31606 { echo "$as_me:$LINENO: ***" >&5
31607 echo "$as_me: ***" >&6;}
31608 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
31609 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
31610 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
31611 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
31612 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
31613 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
31614 exit 1
31616 RADIUS_LIB=""
31617 RADIUS_INCLUDE=""
31618 PBX_RADIUS=0
31619 else
31620 PBX_RADIUS=1
31622 cat >>confdefs.h <<_ACEOF
31623 #define HAVE_RADIUS 1
31624 _ACEOF
31627 elif test -n "${RADIUS_MANDATORY}";
31628 then
31629 { echo "$as_me:$LINENO: ***" >&5
31630 echo "$as_me: ***" >&6;}
31631 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
31632 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
31633 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31634 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31635 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
31636 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
31637 exit 1
31643 if test "${USE_SPEEX}" != "no"; then
31644 pbxlibdir=""
31645 if test "x${SPEEX_DIR}" != "x"; then
31646 if test -d ${SPEEX_DIR}/lib; then
31647 pbxlibdir="-L${SPEEX_DIR}/lib"
31648 else
31649 pbxlibdir="-L${SPEEX_DIR}"
31652 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
31653 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
31654 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31656 else
31657 ac_check_lib_save_LIBS=$LIBS
31658 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
31659 cat >conftest.$ac_ext <<_ACEOF
31660 /* confdefs.h. */
31661 _ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h. */
31666 /* Override any GCC internal prototype to avoid an error.
31667 Use char because int might match the return type of a GCC
31668 builtin and then its argument prototype would still apply. */
31669 #ifdef __cplusplus
31670 extern "C"
31671 #endif
31672 char speex_encode ();
31674 main ()
31676 return speex_encode ();
31678 return 0;
31680 _ACEOF
31681 rm -f conftest.$ac_objext conftest$ac_exeext
31682 if { (ac_try="$ac_link"
31683 case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31686 esac
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_link") 2>conftest.er1
31689 ac_status=$?
31690 grep -v '^ *+' conftest.er1 >conftest.err
31691 rm -f conftest.er1
31692 cat conftest.err >&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } &&
31695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31696 { (case "(($ac_try" in
31697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31698 *) ac_try_echo=$ac_try;;
31699 esac
31700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701 (eval "$ac_try") 2>&5
31702 ac_status=$?
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; } &&
31705 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31712 ac_status=$?
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 ac_cv_lib_speex_speex_encode=yes
31716 else
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_cv_lib_speex_speex_encode=no
31723 rm -f core conftest.err conftest.$ac_objext \
31724 conftest$ac_exeext conftest.$ac_ext
31725 LIBS=$ac_check_lib_save_LIBS
31727 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
31728 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
31729 if test $ac_cv_lib_speex_speex_encode = yes; then
31730 AST_SPEEX_FOUND=yes
31731 else
31732 AST_SPEEX_FOUND=no
31736 if test "${AST_SPEEX_FOUND}" = "yes"; then
31737 SPEEX_LIB="-lspeex -lm"
31738 SPEEX_HEADER_FOUND="1"
31739 if test "x${SPEEX_DIR}" != "x"; then
31740 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
31741 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
31742 saved_cppflags="${CPPFLAGS}"
31743 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
31744 if test "xspeex/speex.h" != "x" ; then
31745 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
31746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31747 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
31748 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
31749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31750 echo $ECHO_N "(cached) $ECHO_C" >&6
31752 ac_res=`eval echo '${'$as_ac_Header'}'`
31753 { echo "$as_me:$LINENO: result: $ac_res" >&5
31754 echo "${ECHO_T}$ac_res" >&6; }
31755 else
31756 # Is the header compilable?
31757 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
31758 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
31759 cat >conftest.$ac_ext <<_ACEOF
31760 /* confdefs.h. */
31761 _ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h. */
31765 $ac_includes_default
31766 #include <${SPEEX_DIR}/include/speex/speex.h>
31767 _ACEOF
31768 rm -f conftest.$ac_objext
31769 if { (ac_try="$ac_compile"
31770 case "(($ac_try" in
31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772 *) ac_try_echo=$ac_try;;
31773 esac
31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_compile") 2>conftest.er1
31776 ac_status=$?
31777 grep -v '^ *+' conftest.er1 >conftest.err
31778 rm -f conftest.er1
31779 cat conftest.err >&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } &&
31782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31783 { (case "(($ac_try" in
31784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31785 *) ac_try_echo=$ac_try;;
31786 esac
31787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31788 (eval "$ac_try") 2>&5
31789 ac_status=$?
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); }; } &&
31792 { ac_try='test -s conftest.$ac_objext'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31796 esac
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31799 ac_status=$?
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; }; then
31802 ac_header_compiler=yes
31803 else
31804 echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31807 ac_header_compiler=no
31810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31812 echo "${ECHO_T}$ac_header_compiler" >&6; }
31814 # Is the header present?
31815 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
31816 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
31817 cat >conftest.$ac_ext <<_ACEOF
31818 /* confdefs.h. */
31819 _ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 #include <${SPEEX_DIR}/include/speex/speex.h>
31824 _ACEOF
31825 if { (ac_try="$ac_cpp conftest.$ac_ext"
31826 case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31829 esac
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31832 ac_status=$?
31833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } >/dev/null; then
31838 if test -s conftest.err; then
31839 ac_cpp_err=$ac_c_preproc_warn_flag
31840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31841 else
31842 ac_cpp_err=
31844 else
31845 ac_cpp_err=yes
31847 if test -z "$ac_cpp_err"; then
31848 ac_header_preproc=yes
31849 else
31850 echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31853 ac_header_preproc=no
31856 rm -f conftest.err conftest.$ac_ext
31857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31858 echo "${ECHO_T}$ac_header_preproc" >&6; }
31860 # So? What about this header?
31861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31862 yes:no: )
31863 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31864 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31865 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
31866 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
31867 ac_header_preproc=yes
31869 no:yes:* )
31870 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
31871 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
31872 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
31873 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
31874 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
31875 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
31876 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
31877 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
31878 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
31879 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
31880 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
31881 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
31882 ( cat <<\_ASBOX
31883 ## ------------------------------- ##
31884 ## Report this to www.asterisk.org ##
31885 ## ------------------------------- ##
31886 _ASBOX
31887 ) | sed "s/^/$as_me: WARNING: /" >&2
31889 esac
31890 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
31891 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
31892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31893 echo $ECHO_N "(cached) $ECHO_C" >&6
31894 else
31895 eval "$as_ac_Header=\$ac_header_preproc"
31897 ac_res=`eval echo '${'$as_ac_Header'}'`
31898 { echo "$as_me:$LINENO: result: $ac_res" >&5
31899 echo "${ECHO_T}$ac_res" >&6; }
31902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31903 SPEEX_HEADER_FOUND=1
31904 else
31905 SPEEX_HEADER_FOUND=0
31910 CPPFLAGS="${saved_cppflags}"
31911 else
31912 if test "xspeex/speex.h" != "x" ; then
31913 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31914 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31915 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31916 if test "${ac_cv_header_speex_speex_h+set}" = set; then
31917 echo $ECHO_N "(cached) $ECHO_C" >&6
31919 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31920 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31921 else
31922 # Is the header compilable?
31923 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
31924 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
31925 cat >conftest.$ac_ext <<_ACEOF
31926 /* confdefs.h. */
31927 _ACEOF
31928 cat confdefs.h >>conftest.$ac_ext
31929 cat >>conftest.$ac_ext <<_ACEOF
31930 /* end confdefs.h. */
31931 $ac_includes_default
31932 #include <speex/speex.h>
31933 _ACEOF
31934 rm -f conftest.$ac_objext
31935 if { (ac_try="$ac_compile"
31936 case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939 esac
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_compile") 2>conftest.er1
31942 ac_status=$?
31943 grep -v '^ *+' conftest.er1 >conftest.err
31944 rm -f conftest.er1
31945 cat conftest.err >&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); } &&
31948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31949 { (case "(($ac_try" in
31950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31951 *) ac_try_echo=$ac_try;;
31952 esac
31953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31954 (eval "$ac_try") 2>&5
31955 ac_status=$?
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); }; } &&
31958 { ac_try='test -s conftest.$ac_objext'
31959 { (case "(($ac_try" in
31960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31961 *) ac_try_echo=$ac_try;;
31962 esac
31963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964 (eval "$ac_try") 2>&5
31965 ac_status=$?
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); }; }; then
31968 ac_header_compiler=yes
31969 else
31970 echo "$as_me: failed program was:" >&5
31971 sed 's/^/| /' conftest.$ac_ext >&5
31973 ac_header_compiler=no
31976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31978 echo "${ECHO_T}$ac_header_compiler" >&6; }
31980 # Is the header present?
31981 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
31982 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
31983 cat >conftest.$ac_ext <<_ACEOF
31984 /* confdefs.h. */
31985 _ACEOF
31986 cat confdefs.h >>conftest.$ac_ext
31987 cat >>conftest.$ac_ext <<_ACEOF
31988 /* end confdefs.h. */
31989 #include <speex/speex.h>
31990 _ACEOF
31991 if { (ac_try="$ac_cpp conftest.$ac_ext"
31992 case "(($ac_try" in
31993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994 *) ac_try_echo=$ac_try;;
31995 esac
31996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31998 ac_status=$?
31999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } >/dev/null; then
32004 if test -s conftest.err; then
32005 ac_cpp_err=$ac_c_preproc_warn_flag
32006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32007 else
32008 ac_cpp_err=
32010 else
32011 ac_cpp_err=yes
32013 if test -z "$ac_cpp_err"; then
32014 ac_header_preproc=yes
32015 else
32016 echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32019 ac_header_preproc=no
32022 rm -f conftest.err conftest.$ac_ext
32023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32024 echo "${ECHO_T}$ac_header_preproc" >&6; }
32026 # So? What about this header?
32027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32028 yes:no: )
32029 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
32030 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32031 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
32032 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
32033 ac_header_preproc=yes
32035 no:yes:* )
32036 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
32037 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
32038 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
32039 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
32040 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
32041 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
32043 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
32045 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
32046 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
32047 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
32048 ( cat <<\_ASBOX
32049 ## ------------------------------- ##
32050 ## Report this to www.asterisk.org ##
32051 ## ------------------------------- ##
32052 _ASBOX
32053 ) | sed "s/^/$as_me: WARNING: /" >&2
32055 esac
32056 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
32057 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
32058 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32060 else
32061 ac_cv_header_speex_speex_h=$ac_header_preproc
32063 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
32064 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
32067 if test $ac_cv_header_speex_speex_h = yes; then
32068 SPEEX_HEADER_FOUND=1
32069 else
32070 SPEEX_HEADER_FOUND=0
32076 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
32077 if test -n "${SPEEX_MANDATORY}" ;
32078 then
32079 { echo "$as_me:$LINENO: ***" >&5
32080 echo "$as_me: ***" >&6;}
32081 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
32082 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
32083 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
32084 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
32085 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
32086 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
32087 exit 1
32089 SPEEX_LIB=""
32090 SPEEX_INCLUDE=""
32091 PBX_SPEEX=0
32092 else
32093 PBX_SPEEX=1
32095 cat >>confdefs.h <<_ACEOF
32096 #define HAVE_SPEEX 1
32097 _ACEOF
32100 elif test -n "${SPEEX_MANDATORY}";
32101 then
32102 { echo "$as_me:$LINENO: ***" >&5
32103 echo "$as_me: ***" >&6;}
32104 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
32105 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
32106 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32107 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32108 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
32109 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
32110 exit 1
32116 if test "${USE_SPEEXDSP}" != "no"; then
32117 pbxlibdir=""
32118 if test "x${SPEEXDSP_DIR}" != "x"; then
32119 if test -d ${SPEEXDSP_DIR}/lib; then
32120 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
32121 else
32122 pbxlibdir="-L${SPEEXDSP_DIR}"
32125 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
32126 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
32127 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32129 else
32130 ac_check_lib_save_LIBS=$LIBS
32131 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
32132 cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h. */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h. */
32139 /* Override any GCC internal prototype to avoid an error.
32140 Use char because int might match the return type of a GCC
32141 builtin and then its argument prototype would still apply. */
32142 #ifdef __cplusplus
32143 extern "C"
32144 #endif
32145 char speex_preprocess_ctl ();
32147 main ()
32149 return speex_preprocess_ctl ();
32151 return 0;
32153 _ACEOF
32154 rm -f conftest.$ac_objext conftest$ac_exeext
32155 if { (ac_try="$ac_link"
32156 case "(($ac_try" in
32157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32158 *) ac_try_echo=$ac_try;;
32159 esac
32160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32161 (eval "$ac_link") 2>conftest.er1
32162 ac_status=$?
32163 grep -v '^ *+' conftest.er1 >conftest.err
32164 rm -f conftest.er1
32165 cat conftest.err >&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } &&
32168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32169 { (case "(($ac_try" in
32170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32172 esac
32173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_try") 2>&5
32175 ac_status=$?
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest$ac_exeext'
32179 { (case "(($ac_try" in
32180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181 *) ac_try_echo=$ac_try;;
32182 esac
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184 (eval "$ac_try") 2>&5
32185 ac_status=$?
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; }; then
32188 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
32189 else
32190 echo "$as_me: failed program was:" >&5
32191 sed 's/^/| /' conftest.$ac_ext >&5
32193 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
32196 rm -f core conftest.err conftest.$ac_objext \
32197 conftest$ac_exeext conftest.$ac_ext
32198 LIBS=$ac_check_lib_save_LIBS
32200 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
32201 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
32202 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
32203 AST_SPEEXDSP_FOUND=yes
32204 else
32205 AST_SPEEXDSP_FOUND=no
32209 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
32210 SPEEXDSP_LIB="-lspeexdsp -lm"
32211 SPEEXDSP_HEADER_FOUND="1"
32212 if test "x${SPEEXDSP_DIR}" != "x"; then
32213 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
32214 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
32215 saved_cppflags="${CPPFLAGS}"
32216 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
32217 if test "xspeex/speex.h" != "x" ; then
32218 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
32219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32220 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
32221 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
32222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32223 echo $ECHO_N "(cached) $ECHO_C" >&6
32225 ac_res=`eval echo '${'$as_ac_Header'}'`
32226 { echo "$as_me:$LINENO: result: $ac_res" >&5
32227 echo "${ECHO_T}$ac_res" >&6; }
32228 else
32229 # Is the header compilable?
32230 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
32231 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
32232 cat >conftest.$ac_ext <<_ACEOF
32233 /* confdefs.h. */
32234 _ACEOF
32235 cat confdefs.h >>conftest.$ac_ext
32236 cat >>conftest.$ac_ext <<_ACEOF
32237 /* end confdefs.h. */
32238 $ac_includes_default
32239 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
32240 _ACEOF
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32246 esac
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
32249 ac_status=$?
32250 grep -v '^ *+' conftest.er1 >conftest.err
32251 rm -f conftest.er1
32252 cat conftest.err >&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } &&
32255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259 esac
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try='test -s conftest.$ac_objext'
32266 { (case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32269 esac
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_try") 2>&5
32272 ac_status=$?
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
32275 ac_header_compiler=yes
32276 else
32277 echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32280 ac_header_compiler=no
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32285 echo "${ECHO_T}$ac_header_compiler" >&6; }
32287 # Is the header present?
32288 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
32289 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
32290 cat >conftest.$ac_ext <<_ACEOF
32291 /* confdefs.h. */
32292 _ACEOF
32293 cat confdefs.h >>conftest.$ac_ext
32294 cat >>conftest.$ac_ext <<_ACEOF
32295 /* end confdefs.h. */
32296 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
32297 _ACEOF
32298 if { (ac_try="$ac_cpp conftest.$ac_ext"
32299 case "(($ac_try" in
32300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301 *) ac_try_echo=$ac_try;;
32302 esac
32303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32305 ac_status=$?
32306 grep -v '^ *+' conftest.er1 >conftest.err
32307 rm -f conftest.er1
32308 cat conftest.err >&5
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } >/dev/null; then
32311 if test -s conftest.err; then
32312 ac_cpp_err=$ac_c_preproc_warn_flag
32313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32314 else
32315 ac_cpp_err=
32317 else
32318 ac_cpp_err=yes
32320 if test -z "$ac_cpp_err"; then
32321 ac_header_preproc=yes
32322 else
32323 echo "$as_me: failed program was:" >&5
32324 sed 's/^/| /' conftest.$ac_ext >&5
32326 ac_header_preproc=no
32329 rm -f conftest.err conftest.$ac_ext
32330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32331 echo "${ECHO_T}$ac_header_preproc" >&6; }
32333 # So? What about this header?
32334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32335 yes:no: )
32336 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
32337 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32338 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
32339 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
32340 ac_header_preproc=yes
32342 no:yes:* )
32343 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
32344 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
32345 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
32346 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
32347 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
32348 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
32349 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
32350 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
32351 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
32352 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
32353 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
32354 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
32355 ( cat <<\_ASBOX
32356 ## ------------------------------- ##
32357 ## Report this to www.asterisk.org ##
32358 ## ------------------------------- ##
32359 _ASBOX
32360 ) | sed "s/^/$as_me: WARNING: /" >&2
32362 esac
32363 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
32364 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
32365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368 eval "$as_ac_Header=\$ac_header_preproc"
32370 ac_res=`eval echo '${'$as_ac_Header'}'`
32371 { echo "$as_me:$LINENO: result: $ac_res" >&5
32372 echo "${ECHO_T}$ac_res" >&6; }
32375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32376 SPEEXDSP_HEADER_FOUND=1
32377 else
32378 SPEEXDSP_HEADER_FOUND=0
32383 CPPFLAGS="${saved_cppflags}"
32384 else
32385 if test "xspeex/speex.h" != "x" ; then
32386 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32387 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
32388 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
32389 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32392 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
32393 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
32394 else
32395 # Is the header compilable?
32396 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
32397 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
32398 cat >conftest.$ac_ext <<_ACEOF
32399 /* confdefs.h. */
32400 _ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h. */
32404 $ac_includes_default
32405 #include <speex/speex.h>
32406 _ACEOF
32407 rm -f conftest.$ac_objext
32408 if { (ac_try="$ac_compile"
32409 case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32412 esac
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_compile") 2>conftest.er1
32415 ac_status=$?
32416 grep -v '^ *+' conftest.er1 >conftest.err
32417 rm -f conftest.er1
32418 cat conftest.err >&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); } &&
32421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32422 { (case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32425 esac
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; } &&
32431 { ac_try='test -s conftest.$ac_objext'
32432 { (case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_try") 2>&5
32438 ac_status=$?
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; }; then
32441 ac_header_compiler=yes
32442 else
32443 echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32446 ac_header_compiler=no
32449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32451 echo "${ECHO_T}$ac_header_compiler" >&6; }
32453 # Is the header present?
32454 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
32455 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
32456 cat >conftest.$ac_ext <<_ACEOF
32457 /* confdefs.h. */
32458 _ACEOF
32459 cat confdefs.h >>conftest.$ac_ext
32460 cat >>conftest.$ac_ext <<_ACEOF
32461 /* end confdefs.h. */
32462 #include <speex/speex.h>
32463 _ACEOF
32464 if { (ac_try="$ac_cpp conftest.$ac_ext"
32465 case "(($ac_try" in
32466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467 *) ac_try_echo=$ac_try;;
32468 esac
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32471 ac_status=$?
32472 grep -v '^ *+' conftest.er1 >conftest.err
32473 rm -f conftest.er1
32474 cat conftest.err >&5
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); } >/dev/null; then
32477 if test -s conftest.err; then
32478 ac_cpp_err=$ac_c_preproc_warn_flag
32479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32480 else
32481 ac_cpp_err=
32483 else
32484 ac_cpp_err=yes
32486 if test -z "$ac_cpp_err"; then
32487 ac_header_preproc=yes
32488 else
32489 echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32492 ac_header_preproc=no
32495 rm -f conftest.err conftest.$ac_ext
32496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32497 echo "${ECHO_T}$ac_header_preproc" >&6; }
32499 # So? What about this header?
32500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32501 yes:no: )
32502 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
32503 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32504 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
32505 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
32506 ac_header_preproc=yes
32508 no:yes:* )
32509 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
32510 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
32511 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
32512 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
32513 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
32514 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
32515 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
32516 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
32517 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
32518 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
32519 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
32520 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
32521 ( cat <<\_ASBOX
32522 ## ------------------------------- ##
32523 ## Report this to www.asterisk.org ##
32524 ## ------------------------------- ##
32525 _ASBOX
32526 ) | sed "s/^/$as_me: WARNING: /" >&2
32528 esac
32529 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
32530 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
32531 if test "${ac_cv_header_speex_speex_h+set}" = set; then
32532 echo $ECHO_N "(cached) $ECHO_C" >&6
32533 else
32534 ac_cv_header_speex_speex_h=$ac_header_preproc
32536 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
32537 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
32540 if test $ac_cv_header_speex_speex_h = yes; then
32541 SPEEXDSP_HEADER_FOUND=1
32542 else
32543 SPEEXDSP_HEADER_FOUND=0
32549 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
32550 if test -n "${SPEEXDSP_MANDATORY}" ;
32551 then
32552 { echo "$as_me:$LINENO: ***" >&5
32553 echo "$as_me: ***" >&6;}
32554 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
32555 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
32556 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
32557 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
32558 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
32559 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
32560 exit 1
32562 SPEEXDSP_LIB=""
32563 SPEEXDSP_INCLUDE=""
32564 PBX_SPEEXDSP=0
32565 else
32566 PBX_SPEEXDSP=1
32568 cat >>confdefs.h <<_ACEOF
32569 #define HAVE_SPEEXDSP 1
32570 _ACEOF
32573 elif test -n "${SPEEXDSP_MANDATORY}";
32574 then
32575 { echo "$as_me:$LINENO: ***" >&5
32576 echo "$as_me: ***" >&6;}
32577 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
32578 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
32579 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32580 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32581 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
32582 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
32583 exit 1
32589 if test "${USE_SQLITE}" != "no"; then
32590 pbxlibdir=""
32591 if test "x${SQLITE_DIR}" != "x"; then
32592 if test -d ${SQLITE_DIR}/lib; then
32593 pbxlibdir="-L${SQLITE_DIR}/lib"
32594 else
32595 pbxlibdir="-L${SQLITE_DIR}"
32598 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
32599 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
32600 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
32602 else
32603 ac_check_lib_save_LIBS=$LIBS
32604 LIBS="-lsqlite ${pbxlibdir} $LIBS"
32605 cat >conftest.$ac_ext <<_ACEOF
32606 /* confdefs.h. */
32607 _ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32612 /* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32615 #ifdef __cplusplus
32616 extern "C"
32617 #endif
32618 char sqlite_exec ();
32620 main ()
32622 return sqlite_exec ();
32624 return 0;
32626 _ACEOF
32627 rm -f conftest.$ac_objext conftest$ac_exeext
32628 if { (ac_try="$ac_link"
32629 case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32632 esac
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_link") 2>conftest.er1
32635 ac_status=$?
32636 grep -v '^ *+' conftest.er1 >conftest.err
32637 rm -f conftest.er1
32638 cat conftest.err >&5
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); } &&
32641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32642 { (case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_try") 2>&5
32648 ac_status=$?
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); }; } &&
32651 { ac_try='test -s conftest$ac_exeext'
32652 { (case "(($ac_try" in
32653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654 *) ac_try_echo=$ac_try;;
32655 esac
32656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657 (eval "$ac_try") 2>&5
32658 ac_status=$?
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
32661 ac_cv_lib_sqlite_sqlite_exec=yes
32662 else
32663 echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32666 ac_cv_lib_sqlite_sqlite_exec=no
32669 rm -f core conftest.err conftest.$ac_objext \
32670 conftest$ac_exeext conftest.$ac_ext
32671 LIBS=$ac_check_lib_save_LIBS
32673 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
32674 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
32675 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
32676 AST_SQLITE_FOUND=yes
32677 else
32678 AST_SQLITE_FOUND=no
32682 if test "${AST_SQLITE_FOUND}" = "yes"; then
32683 SQLITE_LIB="-lsqlite "
32684 SQLITE_HEADER_FOUND="1"
32685 if test "x${SQLITE_DIR}" != "x"; then
32686 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
32687 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
32688 saved_cppflags="${CPPFLAGS}"
32689 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
32690 if test "xsqlite.h" != "x" ; then
32691 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
32692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32693 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
32694 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
32695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32696 echo $ECHO_N "(cached) $ECHO_C" >&6
32698 ac_res=`eval echo '${'$as_ac_Header'}'`
32699 { echo "$as_me:$LINENO: result: $ac_res" >&5
32700 echo "${ECHO_T}$ac_res" >&6; }
32701 else
32702 # Is the header compilable?
32703 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
32704 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
32705 cat >conftest.$ac_ext <<_ACEOF
32706 /* confdefs.h. */
32707 _ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h. */
32711 $ac_includes_default
32712 #include <${SQLITE_DIR}/include/sqlite.h>
32713 _ACEOF
32714 rm -f conftest.$ac_objext
32715 if { (ac_try="$ac_compile"
32716 case "(($ac_try" in
32717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32718 *) ac_try_echo=$ac_try;;
32719 esac
32720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32721 (eval "$ac_compile") 2>conftest.er1
32722 ac_status=$?
32723 grep -v '^ *+' conftest.er1 >conftest.err
32724 rm -f conftest.er1
32725 cat conftest.err >&5
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); } &&
32728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32729 { (case "(($ac_try" in
32730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32731 *) ac_try_echo=$ac_try;;
32732 esac
32733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32734 (eval "$ac_try") 2>&5
32735 ac_status=$?
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); }; } &&
32738 { ac_try='test -s conftest.$ac_objext'
32739 { (case "(($ac_try" in
32740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741 *) ac_try_echo=$ac_try;;
32742 esac
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_try") 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; }; then
32748 ac_header_compiler=yes
32749 else
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32753 ac_header_compiler=no
32756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32758 echo "${ECHO_T}$ac_header_compiler" >&6; }
32760 # Is the header present?
32761 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
32762 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
32763 cat >conftest.$ac_ext <<_ACEOF
32764 /* confdefs.h. */
32765 _ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32769 #include <${SQLITE_DIR}/include/sqlite.h>
32770 _ACEOF
32771 if { (ac_try="$ac_cpp conftest.$ac_ext"
32772 case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32775 esac
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32778 ac_status=$?
32779 grep -v '^ *+' conftest.er1 >conftest.err
32780 rm -f conftest.er1
32781 cat conftest.err >&5
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); } >/dev/null; then
32784 if test -s conftest.err; then
32785 ac_cpp_err=$ac_c_preproc_warn_flag
32786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32787 else
32788 ac_cpp_err=
32790 else
32791 ac_cpp_err=yes
32793 if test -z "$ac_cpp_err"; then
32794 ac_header_preproc=yes
32795 else
32796 echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32799 ac_header_preproc=no
32802 rm -f conftest.err conftest.$ac_ext
32803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32804 echo "${ECHO_T}$ac_header_preproc" >&6; }
32806 # So? What about this header?
32807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32808 yes:no: )
32809 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
32810 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32811 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
32812 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
32813 ac_header_preproc=yes
32815 no:yes:* )
32816 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
32817 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
32818 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
32819 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
32820 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
32821 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
32823 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
32824 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
32825 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
32826 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
32827 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
32828 ( cat <<\_ASBOX
32829 ## ------------------------------- ##
32830 ## Report this to www.asterisk.org ##
32831 ## ------------------------------- ##
32832 _ASBOX
32833 ) | sed "s/^/$as_me: WARNING: /" >&2
32835 esac
32836 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
32837 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
32838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32840 else
32841 eval "$as_ac_Header=\$ac_header_preproc"
32843 ac_res=`eval echo '${'$as_ac_Header'}'`
32844 { echo "$as_me:$LINENO: result: $ac_res" >&5
32845 echo "${ECHO_T}$ac_res" >&6; }
32848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32849 SQLITE_HEADER_FOUND=1
32850 else
32851 SQLITE_HEADER_FOUND=0
32856 CPPFLAGS="${saved_cppflags}"
32857 else
32858 if test "xsqlite.h" != "x" ; then
32859 if test "${ac_cv_header_sqlite_h+set}" = set; then
32860 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
32861 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
32862 if test "${ac_cv_header_sqlite_h+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32865 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
32866 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
32867 else
32868 # Is the header compilable?
32869 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
32870 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
32871 cat >conftest.$ac_ext <<_ACEOF
32872 /* confdefs.h. */
32873 _ACEOF
32874 cat confdefs.h >>conftest.$ac_ext
32875 cat >>conftest.$ac_ext <<_ACEOF
32876 /* end confdefs.h. */
32877 $ac_includes_default
32878 #include <sqlite.h>
32879 _ACEOF
32880 rm -f conftest.$ac_objext
32881 if { (ac_try="$ac_compile"
32882 case "(($ac_try" in
32883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884 *) ac_try_echo=$ac_try;;
32885 esac
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887 (eval "$ac_compile") 2>conftest.er1
32888 ac_status=$?
32889 grep -v '^ *+' conftest.er1 >conftest.err
32890 rm -f conftest.er1
32891 cat conftest.err >&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); } &&
32894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898 esac
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; } &&
32904 { ac_try='test -s conftest.$ac_objext'
32905 { (case "(($ac_try" in
32906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32907 *) ac_try_echo=$ac_try;;
32908 esac
32909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32910 (eval "$ac_try") 2>&5
32911 ac_status=$?
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; }; then
32914 ac_header_compiler=yes
32915 else
32916 echo "$as_me: failed program was:" >&5
32917 sed 's/^/| /' conftest.$ac_ext >&5
32919 ac_header_compiler=no
32922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32924 echo "${ECHO_T}$ac_header_compiler" >&6; }
32926 # Is the header present?
32927 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
32928 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
32929 cat >conftest.$ac_ext <<_ACEOF
32930 /* confdefs.h. */
32931 _ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h. */
32935 #include <sqlite.h>
32936 _ACEOF
32937 if { (ac_try="$ac_cpp conftest.$ac_ext"
32938 case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32941 esac
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32944 ac_status=$?
32945 grep -v '^ *+' conftest.er1 >conftest.err
32946 rm -f conftest.er1
32947 cat conftest.err >&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); } >/dev/null; then
32950 if test -s conftest.err; then
32951 ac_cpp_err=$ac_c_preproc_warn_flag
32952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32953 else
32954 ac_cpp_err=
32956 else
32957 ac_cpp_err=yes
32959 if test -z "$ac_cpp_err"; then
32960 ac_header_preproc=yes
32961 else
32962 echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32965 ac_header_preproc=no
32968 rm -f conftest.err conftest.$ac_ext
32969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32970 echo "${ECHO_T}$ac_header_preproc" >&6; }
32972 # So? What about this header?
32973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32974 yes:no: )
32975 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
32976 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32977 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
32978 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
32979 ac_header_preproc=yes
32981 no:yes:* )
32982 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
32983 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
32984 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
32985 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
32986 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
32987 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
32989 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
32990 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
32991 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
32992 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
32993 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
32994 ( cat <<\_ASBOX
32995 ## ------------------------------- ##
32996 ## Report this to www.asterisk.org ##
32997 ## ------------------------------- ##
32998 _ASBOX
32999 ) | sed "s/^/$as_me: WARNING: /" >&2
33001 esac
33002 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
33003 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
33004 if test "${ac_cv_header_sqlite_h+set}" = set; then
33005 echo $ECHO_N "(cached) $ECHO_C" >&6
33006 else
33007 ac_cv_header_sqlite_h=$ac_header_preproc
33009 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
33010 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
33013 if test $ac_cv_header_sqlite_h = yes; then
33014 SQLITE_HEADER_FOUND=1
33015 else
33016 SQLITE_HEADER_FOUND=0
33022 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
33023 if test -n "${SQLITE_MANDATORY}" ;
33024 then
33025 { echo "$as_me:$LINENO: ***" >&5
33026 echo "$as_me: ***" >&6;}
33027 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
33028 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
33029 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
33030 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
33031 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
33032 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
33033 exit 1
33035 SQLITE_LIB=""
33036 SQLITE_INCLUDE=""
33037 PBX_SQLITE=0
33038 else
33039 PBX_SQLITE=1
33041 cat >>confdefs.h <<_ACEOF
33042 #define HAVE_SQLITE 1
33043 _ACEOF
33046 elif test -n "${SQLITE_MANDATORY}";
33047 then
33048 { echo "$as_me:$LINENO: ***" >&5
33049 echo "$as_me: ***" >&6;}
33050 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
33051 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
33052 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33053 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33054 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
33055 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
33056 exit 1
33062 if test "${USE_OPENSSL}" != "no"; then
33063 pbxlibdir=""
33064 if test "x${OPENSSL_DIR}" != "x"; then
33065 if test -d ${OPENSSL_DIR}/lib; then
33066 pbxlibdir="-L${OPENSSL_DIR}/lib"
33067 else
33068 pbxlibdir="-L${OPENSSL_DIR}"
33071 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
33072 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
33073 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
33074 echo $ECHO_N "(cached) $ECHO_C" >&6
33075 else
33076 ac_check_lib_save_LIBS=$LIBS
33077 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
33078 cat >conftest.$ac_ext <<_ACEOF
33079 /* confdefs.h. */
33080 _ACEOF
33081 cat confdefs.h >>conftest.$ac_ext
33082 cat >>conftest.$ac_ext <<_ACEOF
33083 /* end confdefs.h. */
33085 /* Override any GCC internal prototype to avoid an error.
33086 Use char because int might match the return type of a GCC
33087 builtin and then its argument prototype would still apply. */
33088 #ifdef __cplusplus
33089 extern "C"
33090 #endif
33091 char ssl2_connect ();
33093 main ()
33095 return ssl2_connect ();
33097 return 0;
33099 _ACEOF
33100 rm -f conftest.$ac_objext conftest$ac_exeext
33101 if { (ac_try="$ac_link"
33102 case "(($ac_try" in
33103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33104 *) ac_try_echo=$ac_try;;
33105 esac
33106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33107 (eval "$ac_link") 2>conftest.er1
33108 ac_status=$?
33109 grep -v '^ *+' conftest.er1 >conftest.err
33110 rm -f conftest.er1
33111 cat conftest.err >&5
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); } &&
33114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33115 { (case "(($ac_try" in
33116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33117 *) ac_try_echo=$ac_try;;
33118 esac
33119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33120 (eval "$ac_try") 2>&5
33121 ac_status=$?
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); }; } &&
33124 { ac_try='test -s conftest$ac_exeext'
33125 { (case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33128 esac
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_try") 2>&5
33131 ac_status=$?
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; }; then
33134 ac_cv_lib_ssl_ssl2_connect=yes
33135 else
33136 echo "$as_me: failed program was:" >&5
33137 sed 's/^/| /' conftest.$ac_ext >&5
33139 ac_cv_lib_ssl_ssl2_connect=no
33142 rm -f core conftest.err conftest.$ac_objext \
33143 conftest$ac_exeext conftest.$ac_ext
33144 LIBS=$ac_check_lib_save_LIBS
33146 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
33147 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
33148 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
33149 AST_OPENSSL_FOUND=yes
33150 else
33151 AST_OPENSSL_FOUND=no
33155 if test "${AST_OPENSSL_FOUND}" = "yes"; then
33156 OPENSSL_LIB="-lssl -lcrypto"
33157 OPENSSL_HEADER_FOUND="1"
33158 if test "x${OPENSSL_DIR}" != "x"; then
33159 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
33160 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
33161 saved_cppflags="${CPPFLAGS}"
33162 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
33163 if test "xopenssl/ssl.h" != "x" ; then
33164 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
33165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33166 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
33167 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
33168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33169 echo $ECHO_N "(cached) $ECHO_C" >&6
33171 ac_res=`eval echo '${'$as_ac_Header'}'`
33172 { echo "$as_me:$LINENO: result: $ac_res" >&5
33173 echo "${ECHO_T}$ac_res" >&6; }
33174 else
33175 # Is the header compilable?
33176 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
33177 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
33178 cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h. */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33184 $ac_includes_default
33185 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
33186 _ACEOF
33187 rm -f conftest.$ac_objext
33188 if { (ac_try="$ac_compile"
33189 case "(($ac_try" in
33190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191 *) ac_try_echo=$ac_try;;
33192 esac
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194 (eval "$ac_compile") 2>conftest.er1
33195 ac_status=$?
33196 grep -v '^ *+' conftest.er1 >conftest.err
33197 rm -f conftest.er1
33198 cat conftest.err >&5
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); } &&
33201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33202 { (case "(($ac_try" in
33203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33205 esac
33206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_try") 2>&5
33208 ac_status=$?
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; } &&
33211 { ac_try='test -s conftest.$ac_objext'
33212 { (case "(($ac_try" in
33213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214 *) ac_try_echo=$ac_try;;
33215 esac
33216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217 (eval "$ac_try") 2>&5
33218 ac_status=$?
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; }; then
33221 ac_header_compiler=yes
33222 else
33223 echo "$as_me: failed program was:" >&5
33224 sed 's/^/| /' conftest.$ac_ext >&5
33226 ac_header_compiler=no
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33231 echo "${ECHO_T}$ac_header_compiler" >&6; }
33233 # Is the header present?
33234 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
33235 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
33236 cat >conftest.$ac_ext <<_ACEOF
33237 /* confdefs.h. */
33238 _ACEOF
33239 cat confdefs.h >>conftest.$ac_ext
33240 cat >>conftest.$ac_ext <<_ACEOF
33241 /* end confdefs.h. */
33242 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
33243 _ACEOF
33244 if { (ac_try="$ac_cpp conftest.$ac_ext"
33245 case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33248 esac
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33251 ac_status=$?
33252 grep -v '^ *+' conftest.er1 >conftest.err
33253 rm -f conftest.er1
33254 cat conftest.err >&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); } >/dev/null; then
33257 if test -s conftest.err; then
33258 ac_cpp_err=$ac_c_preproc_warn_flag
33259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33260 else
33261 ac_cpp_err=
33263 else
33264 ac_cpp_err=yes
33266 if test -z "$ac_cpp_err"; then
33267 ac_header_preproc=yes
33268 else
33269 echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33272 ac_header_preproc=no
33275 rm -f conftest.err conftest.$ac_ext
33276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33277 echo "${ECHO_T}$ac_header_preproc" >&6; }
33279 # So? What about this header?
33280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33281 yes:no: )
33282 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33283 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33284 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
33285 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
33286 ac_header_preproc=yes
33288 no:yes:* )
33289 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
33290 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
33291 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
33292 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
33293 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
33294 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
33295 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
33296 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33297 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
33298 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
33299 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
33300 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
33301 ( cat <<\_ASBOX
33302 ## ------------------------------- ##
33303 ## Report this to www.asterisk.org ##
33304 ## ------------------------------- ##
33305 _ASBOX
33306 ) | sed "s/^/$as_me: WARNING: /" >&2
33308 esac
33309 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
33310 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
33311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33313 else
33314 eval "$as_ac_Header=\$ac_header_preproc"
33316 ac_res=`eval echo '${'$as_ac_Header'}'`
33317 { echo "$as_me:$LINENO: result: $ac_res" >&5
33318 echo "${ECHO_T}$ac_res" >&6; }
33321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33322 OPENSSL_HEADER_FOUND=1
33323 else
33324 OPENSSL_HEADER_FOUND=0
33329 CPPFLAGS="${saved_cppflags}"
33330 else
33331 if test "xopenssl/ssl.h" != "x" ; then
33332 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
33333 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
33334 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
33335 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
33336 echo $ECHO_N "(cached) $ECHO_C" >&6
33338 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
33339 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
33340 else
33341 # Is the header compilable?
33342 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
33343 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
33344 cat >conftest.$ac_ext <<_ACEOF
33345 /* confdefs.h. */
33346 _ACEOF
33347 cat confdefs.h >>conftest.$ac_ext
33348 cat >>conftest.$ac_ext <<_ACEOF
33349 /* end confdefs.h. */
33350 $ac_includes_default
33351 #include <openssl/ssl.h>
33352 _ACEOF
33353 rm -f conftest.$ac_objext
33354 if { (ac_try="$ac_compile"
33355 case "(($ac_try" in
33356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357 *) ac_try_echo=$ac_try;;
33358 esac
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360 (eval "$ac_compile") 2>conftest.er1
33361 ac_status=$?
33362 grep -v '^ *+' conftest.er1 >conftest.err
33363 rm -f conftest.er1
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } &&
33367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33368 { (case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33371 esac
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_try") 2>&5
33374 ac_status=$?
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); }; } &&
33377 { ac_try='test -s conftest.$ac_objext'
33378 { (case "(($ac_try" in
33379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33381 esac
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_try") 2>&5
33384 ac_status=$?
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; }; then
33387 ac_header_compiler=yes
33388 else
33389 echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33392 ac_header_compiler=no
33395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33397 echo "${ECHO_T}$ac_header_compiler" >&6; }
33399 # Is the header present?
33400 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
33401 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
33402 cat >conftest.$ac_ext <<_ACEOF
33403 /* confdefs.h. */
33404 _ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h. */
33408 #include <openssl/ssl.h>
33409 _ACEOF
33410 if { (ac_try="$ac_cpp conftest.$ac_ext"
33411 case "(($ac_try" in
33412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33413 *) ac_try_echo=$ac_try;;
33414 esac
33415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33417 ac_status=$?
33418 grep -v '^ *+' conftest.er1 >conftest.err
33419 rm -f conftest.er1
33420 cat conftest.err >&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } >/dev/null; then
33423 if test -s conftest.err; then
33424 ac_cpp_err=$ac_c_preproc_warn_flag
33425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33426 else
33427 ac_cpp_err=
33429 else
33430 ac_cpp_err=yes
33432 if test -z "$ac_cpp_err"; then
33433 ac_header_preproc=yes
33434 else
33435 echo "$as_me: failed program was:" >&5
33436 sed 's/^/| /' conftest.$ac_ext >&5
33438 ac_header_preproc=no
33441 rm -f conftest.err conftest.$ac_ext
33442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33443 echo "${ECHO_T}$ac_header_preproc" >&6; }
33445 # So? What about this header?
33446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33447 yes:no: )
33448 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33449 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33450 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
33451 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
33452 ac_header_preproc=yes
33454 no:yes:* )
33455 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
33456 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
33457 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
33458 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
33459 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
33460 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
33461 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
33462 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
33464 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
33465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
33466 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
33467 ( cat <<\_ASBOX
33468 ## ------------------------------- ##
33469 ## Report this to www.asterisk.org ##
33470 ## ------------------------------- ##
33471 _ASBOX
33472 ) | sed "s/^/$as_me: WARNING: /" >&2
33474 esac
33475 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
33476 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
33477 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
33478 echo $ECHO_N "(cached) $ECHO_C" >&6
33479 else
33480 ac_cv_header_openssl_ssl_h=$ac_header_preproc
33482 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
33483 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
33486 if test $ac_cv_header_openssl_ssl_h = yes; then
33487 OPENSSL_HEADER_FOUND=1
33488 else
33489 OPENSSL_HEADER_FOUND=0
33495 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
33496 if test -n "${OPENSSL_MANDATORY}" ;
33497 then
33498 { echo "$as_me:$LINENO: ***" >&5
33499 echo "$as_me: ***" >&6;}
33500 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
33501 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
33502 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
33503 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
33504 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
33505 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
33506 exit 1
33508 OPENSSL_LIB=""
33509 OPENSSL_INCLUDE=""
33510 PBX_OPENSSL=0
33511 else
33512 PBX_OPENSSL=1
33514 cat >>confdefs.h <<_ACEOF
33515 #define HAVE_OPENSSL 1
33516 _ACEOF
33519 elif test -n "${OPENSSL_MANDATORY}";
33520 then
33521 { echo "$as_me:$LINENO: ***" >&5
33522 echo "$as_me: ***" >&6;}
33523 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
33524 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
33525 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33526 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33527 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
33528 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
33529 exit 1
33533 if test "$PBX_OPENSSL" = "1";
33534 then
33536 if test "${USE_OSPTK}" != "no"; then
33537 pbxlibdir=""
33538 if test "x${OSPTK_DIR}" != "x"; then
33539 if test -d ${OSPTK_DIR}/lib; then
33540 pbxlibdir="-L${OSPTK_DIR}/lib"
33541 else
33542 pbxlibdir="-L${OSPTK_DIR}"
33545 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
33546 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
33547 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 else
33550 ac_check_lib_save_LIBS=$LIBS
33551 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
33552 cat >conftest.$ac_ext <<_ACEOF
33553 /* confdefs.h. */
33554 _ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33559 /* Override any GCC internal prototype to avoid an error.
33560 Use char because int might match the return type of a GCC
33561 builtin and then its argument prototype would still apply. */
33562 #ifdef __cplusplus
33563 extern "C"
33564 #endif
33565 char OSPPCryptoDecrypt ();
33567 main ()
33569 return OSPPCryptoDecrypt ();
33571 return 0;
33573 _ACEOF
33574 rm -f conftest.$ac_objext conftest$ac_exeext
33575 if { (ac_try="$ac_link"
33576 case "(($ac_try" in
33577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33579 esac
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_link") 2>conftest.er1
33582 ac_status=$?
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
33588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33589 { (case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33592 esac
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_try") 2>&5
33595 ac_status=$?
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; } &&
33598 { ac_try='test -s conftest$ac_exeext'
33599 { (case "(($ac_try" in
33600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33601 *) ac_try_echo=$ac_try;;
33602 esac
33603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33604 (eval "$ac_try") 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
33608 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
33609 else
33610 echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33613 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
33616 rm -f core conftest.err conftest.$ac_objext \
33617 conftest$ac_exeext conftest.$ac_ext
33618 LIBS=$ac_check_lib_save_LIBS
33620 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
33621 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
33622 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
33623 AST_OSPTK_FOUND=yes
33624 else
33625 AST_OSPTK_FOUND=no
33629 if test "${AST_OSPTK_FOUND}" = "yes"; then
33630 OSPTK_LIB="-losptk -lcrypto -lssl"
33631 OSPTK_HEADER_FOUND="1"
33632 if test "x${OSPTK_DIR}" != "x"; then
33633 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
33634 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
33635 saved_cppflags="${CPPFLAGS}"
33636 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
33637 if test "xosp/osp.h" != "x" ; then
33638 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
33639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33640 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
33641 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
33642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33645 ac_res=`eval echo '${'$as_ac_Header'}'`
33646 { echo "$as_me:$LINENO: result: $ac_res" >&5
33647 echo "${ECHO_T}$ac_res" >&6; }
33648 else
33649 # Is the header compilable?
33650 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
33651 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
33652 cat >conftest.$ac_ext <<_ACEOF
33653 /* confdefs.h. */
33654 _ACEOF
33655 cat confdefs.h >>conftest.$ac_ext
33656 cat >>conftest.$ac_ext <<_ACEOF
33657 /* end confdefs.h. */
33658 $ac_includes_default
33659 #include <${OSPTK_DIR}/include/osp/osp.h>
33660 _ACEOF
33661 rm -f conftest.$ac_objext
33662 if { (ac_try="$ac_compile"
33663 case "(($ac_try" in
33664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33665 *) ac_try_echo=$ac_try;;
33666 esac
33667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33668 (eval "$ac_compile") 2>conftest.er1
33669 ac_status=$?
33670 grep -v '^ *+' conftest.er1 >conftest.err
33671 rm -f conftest.er1
33672 cat conftest.err >&5
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } &&
33675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33676 { (case "(($ac_try" in
33677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33678 *) ac_try_echo=$ac_try;;
33679 esac
33680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33681 (eval "$ac_try") 2>&5
33682 ac_status=$?
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); }; } &&
33685 { ac_try='test -s conftest.$ac_objext'
33686 { (case "(($ac_try" in
33687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33688 *) ac_try_echo=$ac_try;;
33689 esac
33690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33691 (eval "$ac_try") 2>&5
33692 ac_status=$?
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); }; }; then
33695 ac_header_compiler=yes
33696 else
33697 echo "$as_me: failed program was:" >&5
33698 sed 's/^/| /' conftest.$ac_ext >&5
33700 ac_header_compiler=no
33703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33705 echo "${ECHO_T}$ac_header_compiler" >&6; }
33707 # Is the header present?
33708 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
33709 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
33710 cat >conftest.$ac_ext <<_ACEOF
33711 /* confdefs.h. */
33712 _ACEOF
33713 cat confdefs.h >>conftest.$ac_ext
33714 cat >>conftest.$ac_ext <<_ACEOF
33715 /* end confdefs.h. */
33716 #include <${OSPTK_DIR}/include/osp/osp.h>
33717 _ACEOF
33718 if { (ac_try="$ac_cpp conftest.$ac_ext"
33719 case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33722 esac
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33725 ac_status=$?
33726 grep -v '^ *+' conftest.er1 >conftest.err
33727 rm -f conftest.er1
33728 cat conftest.err >&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } >/dev/null; then
33731 if test -s conftest.err; then
33732 ac_cpp_err=$ac_c_preproc_warn_flag
33733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33734 else
33735 ac_cpp_err=
33737 else
33738 ac_cpp_err=yes
33740 if test -z "$ac_cpp_err"; then
33741 ac_header_preproc=yes
33742 else
33743 echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33746 ac_header_preproc=no
33749 rm -f conftest.err conftest.$ac_ext
33750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33751 echo "${ECHO_T}$ac_header_preproc" >&6; }
33753 # So? What about this header?
33754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33755 yes:no: )
33756 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
33757 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33758 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
33759 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
33760 ac_header_preproc=yes
33762 no:yes:* )
33763 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
33764 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
33765 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
33766 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
33767 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
33768 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
33769 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
33770 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
33771 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
33772 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
33773 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
33774 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
33775 ( cat <<\_ASBOX
33776 ## ------------------------------- ##
33777 ## Report this to www.asterisk.org ##
33778 ## ------------------------------- ##
33779 _ASBOX
33780 ) | sed "s/^/$as_me: WARNING: /" >&2
33782 esac
33783 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
33784 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
33785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33786 echo $ECHO_N "(cached) $ECHO_C" >&6
33787 else
33788 eval "$as_ac_Header=\$ac_header_preproc"
33790 ac_res=`eval echo '${'$as_ac_Header'}'`
33791 { echo "$as_me:$LINENO: result: $ac_res" >&5
33792 echo "${ECHO_T}$ac_res" >&6; }
33795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33796 OSPTK_HEADER_FOUND=1
33797 else
33798 OSPTK_HEADER_FOUND=0
33803 CPPFLAGS="${saved_cppflags}"
33804 else
33805 if test "xosp/osp.h" != "x" ; then
33806 if test "${ac_cv_header_osp_osp_h+set}" = set; then
33807 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
33808 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
33809 if test "${ac_cv_header_osp_osp_h+set}" = set; then
33810 echo $ECHO_N "(cached) $ECHO_C" >&6
33812 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
33813 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
33814 else
33815 # Is the header compilable?
33816 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
33817 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
33818 cat >conftest.$ac_ext <<_ACEOF
33819 /* confdefs.h. */
33820 _ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h. */
33824 $ac_includes_default
33825 #include <osp/osp.h>
33826 _ACEOF
33827 rm -f conftest.$ac_objext
33828 if { (ac_try="$ac_compile"
33829 case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33832 esac
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_compile") 2>conftest.er1
33835 ac_status=$?
33836 grep -v '^ *+' conftest.er1 >conftest.err
33837 rm -f conftest.er1
33838 cat conftest.err >&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } &&
33841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33842 { (case "(($ac_try" in
33843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33844 *) ac_try_echo=$ac_try;;
33845 esac
33846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847 (eval "$ac_try") 2>&5
33848 ac_status=$?
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; } &&
33851 { ac_try='test -s conftest.$ac_objext'
33852 { (case "(($ac_try" in
33853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33854 *) ac_try_echo=$ac_try;;
33855 esac
33856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33857 (eval "$ac_try") 2>&5
33858 ac_status=$?
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); }; }; then
33861 ac_header_compiler=yes
33862 else
33863 echo "$as_me: failed program was:" >&5
33864 sed 's/^/| /' conftest.$ac_ext >&5
33866 ac_header_compiler=no
33869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33871 echo "${ECHO_T}$ac_header_compiler" >&6; }
33873 # Is the header present?
33874 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
33875 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
33876 cat >conftest.$ac_ext <<_ACEOF
33877 /* confdefs.h. */
33878 _ACEOF
33879 cat confdefs.h >>conftest.$ac_ext
33880 cat >>conftest.$ac_ext <<_ACEOF
33881 /* end confdefs.h. */
33882 #include <osp/osp.h>
33883 _ACEOF
33884 if { (ac_try="$ac_cpp conftest.$ac_ext"
33885 case "(($ac_try" in
33886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887 *) ac_try_echo=$ac_try;;
33888 esac
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33891 ac_status=$?
33892 grep -v '^ *+' conftest.er1 >conftest.err
33893 rm -f conftest.er1
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } >/dev/null; then
33897 if test -s conftest.err; then
33898 ac_cpp_err=$ac_c_preproc_warn_flag
33899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33900 else
33901 ac_cpp_err=
33903 else
33904 ac_cpp_err=yes
33906 if test -z "$ac_cpp_err"; then
33907 ac_header_preproc=yes
33908 else
33909 echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33912 ac_header_preproc=no
33915 rm -f conftest.err conftest.$ac_ext
33916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33917 echo "${ECHO_T}$ac_header_preproc" >&6; }
33919 # So? What about this header?
33920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33921 yes:no: )
33922 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
33923 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33924 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
33925 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
33926 ac_header_preproc=yes
33928 no:yes:* )
33929 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
33930 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
33931 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
33932 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
33933 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
33934 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
33935 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
33936 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
33937 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
33938 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
33939 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
33940 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
33941 ( cat <<\_ASBOX
33942 ## ------------------------------- ##
33943 ## Report this to www.asterisk.org ##
33944 ## ------------------------------- ##
33945 _ASBOX
33946 ) | sed "s/^/$as_me: WARNING: /" >&2
33948 esac
33949 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
33950 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
33951 if test "${ac_cv_header_osp_osp_h+set}" = set; then
33952 echo $ECHO_N "(cached) $ECHO_C" >&6
33953 else
33954 ac_cv_header_osp_osp_h=$ac_header_preproc
33956 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
33957 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
33960 if test $ac_cv_header_osp_osp_h = yes; then
33961 OSPTK_HEADER_FOUND=1
33962 else
33963 OSPTK_HEADER_FOUND=0
33969 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
33970 if test -n "${OSPTK_MANDATORY}" ;
33971 then
33972 { echo "$as_me:$LINENO: ***" >&5
33973 echo "$as_me: ***" >&6;}
33974 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
33975 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
33976 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
33977 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
33978 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
33979 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
33980 exit 1
33982 OSPTK_LIB=""
33983 OSPTK_INCLUDE=""
33984 PBX_OSPTK=0
33985 else
33986 PBX_OSPTK=1
33988 cat >>confdefs.h <<_ACEOF
33989 #define HAVE_OSPTK 1
33990 _ACEOF
33993 elif test -n "${OSPTK_MANDATORY}";
33994 then
33995 { echo "$as_me:$LINENO: ***" >&5
33996 echo "$as_me: ***" >&6;}
33997 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
33998 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
33999 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34000 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34001 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
34002 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
34003 exit 1
34010 if test "${USE_FREETDS}" != "no"; then
34011 pbxlibdir=""
34012 if test "x${FREETDS_DIR}" != "x"; then
34013 if test -d ${FREETDS_DIR}/lib; then
34014 pbxlibdir="-L${FREETDS_DIR}/lib"
34015 else
34016 pbxlibdir="-L${FREETDS_DIR}"
34019 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
34020 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
34021 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34023 else
34024 ac_check_lib_save_LIBS=$LIBS
34025 LIBS="-ltds ${pbxlibdir} $LIBS"
34026 cat >conftest.$ac_ext <<_ACEOF
34027 /* confdefs.h. */
34028 _ACEOF
34029 cat confdefs.h >>conftest.$ac_ext
34030 cat >>conftest.$ac_ext <<_ACEOF
34031 /* end confdefs.h. */
34033 /* Override any GCC internal prototype to avoid an error.
34034 Use char because int might match the return type of a GCC
34035 builtin and then its argument prototype would still apply. */
34036 #ifdef __cplusplus
34037 extern "C"
34038 #endif
34039 char tds_version ();
34041 main ()
34043 return tds_version ();
34045 return 0;
34047 _ACEOF
34048 rm -f conftest.$ac_objext conftest$ac_exeext
34049 if { (ac_try="$ac_link"
34050 case "(($ac_try" in
34051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34052 *) ac_try_echo=$ac_try;;
34053 esac
34054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34055 (eval "$ac_link") 2>conftest.er1
34056 ac_status=$?
34057 grep -v '^ *+' conftest.er1 >conftest.err
34058 rm -f conftest.er1
34059 cat conftest.err >&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } &&
34062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34063 { (case "(($ac_try" in
34064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34066 esac
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_try") 2>&5
34069 ac_status=$?
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); }; } &&
34072 { ac_try='test -s conftest$ac_exeext'
34073 { (case "(($ac_try" in
34074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34075 *) ac_try_echo=$ac_try;;
34076 esac
34077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34078 (eval "$ac_try") 2>&5
34079 ac_status=$?
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34082 ac_cv_lib_tds_tds_version=yes
34083 else
34084 echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34087 ac_cv_lib_tds_tds_version=no
34090 rm -f core conftest.err conftest.$ac_objext \
34091 conftest$ac_exeext conftest.$ac_ext
34092 LIBS=$ac_check_lib_save_LIBS
34094 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
34095 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
34096 if test $ac_cv_lib_tds_tds_version = yes; then
34097 AST_FREETDS_FOUND=yes
34098 else
34099 AST_FREETDS_FOUND=no
34103 if test "${AST_FREETDS_FOUND}" = "yes"; then
34104 FREETDS_LIB="-ltds "
34105 FREETDS_HEADER_FOUND="1"
34106 if test "x${FREETDS_DIR}" != "x"; then
34107 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
34108 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
34109 saved_cppflags="${CPPFLAGS}"
34110 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
34111 if test "xtds.h" != "x" ; then
34112 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
34113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34114 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
34115 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
34116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34119 ac_res=`eval echo '${'$as_ac_Header'}'`
34120 { echo "$as_me:$LINENO: result: $ac_res" >&5
34121 echo "${ECHO_T}$ac_res" >&6; }
34122 else
34123 # Is the header compilable?
34124 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
34125 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
34126 cat >conftest.$ac_ext <<_ACEOF
34127 /* confdefs.h. */
34128 _ACEOF
34129 cat confdefs.h >>conftest.$ac_ext
34130 cat >>conftest.$ac_ext <<_ACEOF
34131 /* end confdefs.h. */
34132 $ac_includes_default
34133 #include <${FREETDS_DIR}/include/tds.h>
34134 _ACEOF
34135 rm -f conftest.$ac_objext
34136 if { (ac_try="$ac_compile"
34137 case "(($ac_try" in
34138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34139 *) ac_try_echo=$ac_try;;
34140 esac
34141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34142 (eval "$ac_compile") 2>conftest.er1
34143 ac_status=$?
34144 grep -v '^ *+' conftest.er1 >conftest.err
34145 rm -f conftest.er1
34146 cat conftest.err >&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); } &&
34149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34150 { (case "(($ac_try" in
34151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34152 *) ac_try_echo=$ac_try;;
34153 esac
34154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155 (eval "$ac_try") 2>&5
34156 ac_status=$?
34157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); }; } &&
34159 { ac_try='test -s conftest.$ac_objext'
34160 { (case "(($ac_try" in
34161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34162 *) ac_try_echo=$ac_try;;
34163 esac
34164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34165 (eval "$ac_try") 2>&5
34166 ac_status=$?
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; }; then
34169 ac_header_compiler=yes
34170 else
34171 echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34174 ac_header_compiler=no
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34179 echo "${ECHO_T}$ac_header_compiler" >&6; }
34181 # Is the header present?
34182 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
34183 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
34184 cat >conftest.$ac_ext <<_ACEOF
34185 /* confdefs.h. */
34186 _ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h. */
34190 #include <${FREETDS_DIR}/include/tds.h>
34191 _ACEOF
34192 if { (ac_try="$ac_cpp conftest.$ac_ext"
34193 case "(($ac_try" in
34194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34195 *) ac_try_echo=$ac_try;;
34196 esac
34197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34199 ac_status=$?
34200 grep -v '^ *+' conftest.er1 >conftest.err
34201 rm -f conftest.er1
34202 cat conftest.err >&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } >/dev/null; then
34205 if test -s conftest.err; then
34206 ac_cpp_err=$ac_c_preproc_warn_flag
34207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34208 else
34209 ac_cpp_err=
34211 else
34212 ac_cpp_err=yes
34214 if test -z "$ac_cpp_err"; then
34215 ac_header_preproc=yes
34216 else
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34220 ac_header_preproc=no
34223 rm -f conftest.err conftest.$ac_ext
34224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34225 echo "${ECHO_T}$ac_header_preproc" >&6; }
34227 # So? What about this header?
34228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34229 yes:no: )
34230 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
34231 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34232 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
34233 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
34234 ac_header_preproc=yes
34236 no:yes:* )
34237 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
34238 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
34239 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
34240 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
34241 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
34242 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
34243 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
34244 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
34245 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
34246 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
34247 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
34248 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
34249 ( cat <<\_ASBOX
34250 ## ------------------------------- ##
34251 ## Report this to www.asterisk.org ##
34252 ## ------------------------------- ##
34253 _ASBOX
34254 ) | sed "s/^/$as_me: WARNING: /" >&2
34256 esac
34257 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
34258 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
34259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34260 echo $ECHO_N "(cached) $ECHO_C" >&6
34261 else
34262 eval "$as_ac_Header=\$ac_header_preproc"
34264 ac_res=`eval echo '${'$as_ac_Header'}'`
34265 { echo "$as_me:$LINENO: result: $ac_res" >&5
34266 echo "${ECHO_T}$ac_res" >&6; }
34269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34270 FREETDS_HEADER_FOUND=1
34271 else
34272 FREETDS_HEADER_FOUND=0
34277 CPPFLAGS="${saved_cppflags}"
34278 else
34279 if test "xtds.h" != "x" ; then
34280 if test "${ac_cv_header_tds_h+set}" = set; then
34281 { echo "$as_me:$LINENO: checking for tds.h" >&5
34282 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
34283 if test "${ac_cv_header_tds_h+set}" = set; then
34284 echo $ECHO_N "(cached) $ECHO_C" >&6
34286 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
34287 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
34288 else
34289 # Is the header compilable?
34290 { echo "$as_me:$LINENO: checking tds.h usability" >&5
34291 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
34292 cat >conftest.$ac_ext <<_ACEOF
34293 /* confdefs.h. */
34294 _ACEOF
34295 cat confdefs.h >>conftest.$ac_ext
34296 cat >>conftest.$ac_ext <<_ACEOF
34297 /* end confdefs.h. */
34298 $ac_includes_default
34299 #include <tds.h>
34300 _ACEOF
34301 rm -f conftest.$ac_objext
34302 if { (ac_try="$ac_compile"
34303 case "(($ac_try" in
34304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34305 *) ac_try_echo=$ac_try;;
34306 esac
34307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34308 (eval "$ac_compile") 2>conftest.er1
34309 ac_status=$?
34310 grep -v '^ *+' conftest.er1 >conftest.err
34311 rm -f conftest.er1
34312 cat conftest.err >&5
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); } &&
34315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34316 { (case "(($ac_try" in
34317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318 *) ac_try_echo=$ac_try;;
34319 esac
34320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321 (eval "$ac_try") 2>&5
34322 ac_status=$?
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; } &&
34325 { ac_try='test -s conftest.$ac_objext'
34326 { (case "(($ac_try" in
34327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328 *) ac_try_echo=$ac_try;;
34329 esac
34330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331 (eval "$ac_try") 2>&5
34332 ac_status=$?
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34335 ac_header_compiler=yes
34336 else
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34340 ac_header_compiler=no
34343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34345 echo "${ECHO_T}$ac_header_compiler" >&6; }
34347 # Is the header present?
34348 { echo "$as_me:$LINENO: checking tds.h presence" >&5
34349 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
34350 cat >conftest.$ac_ext <<_ACEOF
34351 /* confdefs.h. */
34352 _ACEOF
34353 cat confdefs.h >>conftest.$ac_ext
34354 cat >>conftest.$ac_ext <<_ACEOF
34355 /* end confdefs.h. */
34356 #include <tds.h>
34357 _ACEOF
34358 if { (ac_try="$ac_cpp conftest.$ac_ext"
34359 case "(($ac_try" in
34360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361 *) ac_try_echo=$ac_try;;
34362 esac
34363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34365 ac_status=$?
34366 grep -v '^ *+' conftest.er1 >conftest.err
34367 rm -f conftest.er1
34368 cat conftest.err >&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); } >/dev/null; then
34371 if test -s conftest.err; then
34372 ac_cpp_err=$ac_c_preproc_warn_flag
34373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34374 else
34375 ac_cpp_err=
34377 else
34378 ac_cpp_err=yes
34380 if test -z "$ac_cpp_err"; then
34381 ac_header_preproc=yes
34382 else
34383 echo "$as_me: failed program was:" >&5
34384 sed 's/^/| /' conftest.$ac_ext >&5
34386 ac_header_preproc=no
34389 rm -f conftest.err conftest.$ac_ext
34390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34391 echo "${ECHO_T}$ac_header_preproc" >&6; }
34393 # So? What about this header?
34394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34395 yes:no: )
34396 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
34397 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34398 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
34399 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
34400 ac_header_preproc=yes
34402 no:yes:* )
34403 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
34404 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
34405 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
34406 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
34407 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
34408 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
34409 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
34410 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
34411 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
34412 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
34413 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
34414 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
34415 ( cat <<\_ASBOX
34416 ## ------------------------------- ##
34417 ## Report this to www.asterisk.org ##
34418 ## ------------------------------- ##
34419 _ASBOX
34420 ) | sed "s/^/$as_me: WARNING: /" >&2
34422 esac
34423 { echo "$as_me:$LINENO: checking for tds.h" >&5
34424 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
34425 if test "${ac_cv_header_tds_h+set}" = set; then
34426 echo $ECHO_N "(cached) $ECHO_C" >&6
34427 else
34428 ac_cv_header_tds_h=$ac_header_preproc
34430 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
34431 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
34434 if test $ac_cv_header_tds_h = yes; then
34435 FREETDS_HEADER_FOUND=1
34436 else
34437 FREETDS_HEADER_FOUND=0
34443 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
34444 if test -n "${FREETDS_MANDATORY}" ;
34445 then
34446 { echo "$as_me:$LINENO: ***" >&5
34447 echo "$as_me: ***" >&6;}
34448 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
34449 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
34450 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
34451 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
34452 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
34453 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
34454 exit 1
34456 FREETDS_LIB=""
34457 FREETDS_INCLUDE=""
34458 PBX_FREETDS=0
34459 else
34460 PBX_FREETDS=1
34462 cat >>confdefs.h <<_ACEOF
34463 #define HAVE_FREETDS 1
34464 _ACEOF
34467 elif test -n "${FREETDS_MANDATORY}";
34468 then
34469 { echo "$as_me:$LINENO: ***" >&5
34470 echo "$as_me: ***" >&6;}
34471 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
34472 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
34473 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34474 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34475 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
34476 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
34477 exit 1
34481 if test "${PBX_FREETDS}" != "0";
34482 then
34483 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
34484 *0.64*)
34485 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
34487 *0.63*)
34488 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
34490 *0.62*)
34491 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
34494 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
34496 esac
34500 if test "${USE_TERMCAP}" != "no"; then
34501 pbxlibdir=""
34502 if test "x${TERMCAP_DIR}" != "x"; then
34503 if test -d ${TERMCAP_DIR}/lib; then
34504 pbxlibdir="-L${TERMCAP_DIR}/lib"
34505 else
34506 pbxlibdir="-L${TERMCAP_DIR}"
34509 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
34510 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
34511 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
34512 echo $ECHO_N "(cached) $ECHO_C" >&6
34513 else
34514 ac_check_lib_save_LIBS=$LIBS
34515 LIBS="-ltermcap ${pbxlibdir} $LIBS"
34516 cat >conftest.$ac_ext <<_ACEOF
34517 /* confdefs.h. */
34518 _ACEOF
34519 cat confdefs.h >>conftest.$ac_ext
34520 cat >>conftest.$ac_ext <<_ACEOF
34521 /* end confdefs.h. */
34523 /* Override any GCC internal prototype to avoid an error.
34524 Use char because int might match the return type of a GCC
34525 builtin and then its argument prototype would still apply. */
34526 #ifdef __cplusplus
34527 extern "C"
34528 #endif
34529 char tgetent ();
34531 main ()
34533 return tgetent ();
34535 return 0;
34537 _ACEOF
34538 rm -f conftest.$ac_objext conftest$ac_exeext
34539 if { (ac_try="$ac_link"
34540 case "(($ac_try" in
34541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34542 *) ac_try_echo=$ac_try;;
34543 esac
34544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545 (eval "$ac_link") 2>conftest.er1
34546 ac_status=$?
34547 grep -v '^ *+' conftest.er1 >conftest.err
34548 rm -f conftest.er1
34549 cat conftest.err >&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } &&
34552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34553 { (case "(($ac_try" in
34554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555 *) ac_try_echo=$ac_try;;
34556 esac
34557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558 (eval "$ac_try") 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; } &&
34562 { ac_try='test -s conftest$ac_exeext'
34563 { (case "(($ac_try" in
34564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34565 *) ac_try_echo=$ac_try;;
34566 esac
34567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34568 (eval "$ac_try") 2>&5
34569 ac_status=$?
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34572 ac_cv_lib_termcap_tgetent=yes
34573 else
34574 echo "$as_me: failed program was:" >&5
34575 sed 's/^/| /' conftest.$ac_ext >&5
34577 ac_cv_lib_termcap_tgetent=no
34580 rm -f core conftest.err conftest.$ac_objext \
34581 conftest$ac_exeext conftest.$ac_ext
34582 LIBS=$ac_check_lib_save_LIBS
34584 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
34585 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
34586 if test $ac_cv_lib_termcap_tgetent = yes; then
34587 AST_TERMCAP_FOUND=yes
34588 else
34589 AST_TERMCAP_FOUND=no
34593 if test "${AST_TERMCAP_FOUND}" = "yes"; then
34594 TERMCAP_LIB="-ltermcap "
34595 TERMCAP_HEADER_FOUND="1"
34596 if test "x${TERMCAP_DIR}" != "x"; then
34597 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
34598 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
34599 saved_cppflags="${CPPFLAGS}"
34600 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
34601 if test "x" != "x" ; then
34602 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
34603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34604 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
34605 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
34606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34607 echo $ECHO_N "(cached) $ECHO_C" >&6
34609 ac_res=`eval echo '${'$as_ac_Header'}'`
34610 { echo "$as_me:$LINENO: result: $ac_res" >&5
34611 echo "${ECHO_T}$ac_res" >&6; }
34612 else
34613 # Is the header compilable?
34614 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
34615 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
34616 cat >conftest.$ac_ext <<_ACEOF
34617 /* confdefs.h. */
34618 _ACEOF
34619 cat confdefs.h >>conftest.$ac_ext
34620 cat >>conftest.$ac_ext <<_ACEOF
34621 /* end confdefs.h. */
34622 $ac_includes_default
34623 #include <${TERMCAP_DIR}/include/>
34624 _ACEOF
34625 rm -f conftest.$ac_objext
34626 if { (ac_try="$ac_compile"
34627 case "(($ac_try" in
34628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629 *) ac_try_echo=$ac_try;;
34630 esac
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_compile") 2>conftest.er1
34633 ac_status=$?
34634 grep -v '^ *+' conftest.er1 >conftest.err
34635 rm -f conftest.er1
34636 cat conftest.err >&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } &&
34639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34640 { (case "(($ac_try" in
34641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34642 *) ac_try_echo=$ac_try;;
34643 esac
34644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34645 (eval "$ac_try") 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; } &&
34649 { ac_try='test -s conftest.$ac_objext'
34650 { (case "(($ac_try" in
34651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34652 *) ac_try_echo=$ac_try;;
34653 esac
34654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34655 (eval "$ac_try") 2>&5
34656 ac_status=$?
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); }; }; then
34659 ac_header_compiler=yes
34660 else
34661 echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.$ac_ext >&5
34664 ac_header_compiler=no
34667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34669 echo "${ECHO_T}$ac_header_compiler" >&6; }
34671 # Is the header present?
34672 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
34673 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
34674 cat >conftest.$ac_ext <<_ACEOF
34675 /* confdefs.h. */
34676 _ACEOF
34677 cat confdefs.h >>conftest.$ac_ext
34678 cat >>conftest.$ac_ext <<_ACEOF
34679 /* end confdefs.h. */
34680 #include <${TERMCAP_DIR}/include/>
34681 _ACEOF
34682 if { (ac_try="$ac_cpp conftest.$ac_ext"
34683 case "(($ac_try" in
34684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34685 *) ac_try_echo=$ac_try;;
34686 esac
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34689 ac_status=$?
34690 grep -v '^ *+' conftest.er1 >conftest.err
34691 rm -f conftest.er1
34692 cat conftest.err >&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } >/dev/null; then
34695 if test -s conftest.err; then
34696 ac_cpp_err=$ac_c_preproc_warn_flag
34697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34698 else
34699 ac_cpp_err=
34701 else
34702 ac_cpp_err=yes
34704 if test -z "$ac_cpp_err"; then
34705 ac_header_preproc=yes
34706 else
34707 echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34710 ac_header_preproc=no
34713 rm -f conftest.err conftest.$ac_ext
34714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34715 echo "${ECHO_T}$ac_header_preproc" >&6; }
34717 # So? What about this header?
34718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34719 yes:no: )
34720 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
34721 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
34722 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
34723 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
34724 ac_header_preproc=yes
34726 no:yes:* )
34727 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
34728 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
34729 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
34730 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
34731 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
34732 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
34733 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
34734 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
34735 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
34736 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
34737 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
34738 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
34739 ( cat <<\_ASBOX
34740 ## ------------------------------- ##
34741 ## Report this to www.asterisk.org ##
34742 ## ------------------------------- ##
34743 _ASBOX
34744 ) | sed "s/^/$as_me: WARNING: /" >&2
34746 esac
34747 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
34748 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
34749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34750 echo $ECHO_N "(cached) $ECHO_C" >&6
34751 else
34752 eval "$as_ac_Header=\$ac_header_preproc"
34754 ac_res=`eval echo '${'$as_ac_Header'}'`
34755 { echo "$as_me:$LINENO: result: $ac_res" >&5
34756 echo "${ECHO_T}$ac_res" >&6; }
34759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34760 TERMCAP_HEADER_FOUND=1
34761 else
34762 TERMCAP_HEADER_FOUND=0
34767 CPPFLAGS="${saved_cppflags}"
34768 else
34769 if test "x" != "x" ; then
34770 if test "${ac_cv_header_+set}" = set; then
34771 { echo "$as_me:$LINENO: checking for " >&5
34772 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
34773 if test "${ac_cv_header_+set}" = set; then
34774 echo $ECHO_N "(cached) $ECHO_C" >&6
34776 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
34777 echo "${ECHO_T}$ac_cv_header_" >&6; }
34778 else
34779 # Is the header compilable?
34780 { echo "$as_me:$LINENO: checking usability" >&5
34781 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
34782 cat >conftest.$ac_ext <<_ACEOF
34783 /* confdefs.h. */
34784 _ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h. */
34788 $ac_includes_default
34789 #include <>
34790 _ACEOF
34791 rm -f conftest.$ac_objext
34792 if { (ac_try="$ac_compile"
34793 case "(($ac_try" in
34794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795 *) ac_try_echo=$ac_try;;
34796 esac
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798 (eval "$ac_compile") 2>conftest.er1
34799 ac_status=$?
34800 grep -v '^ *+' conftest.er1 >conftest.err
34801 rm -f conftest.er1
34802 cat conftest.err >&5
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); } &&
34805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34806 { (case "(($ac_try" in
34807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34808 *) ac_try_echo=$ac_try;;
34809 esac
34810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34811 (eval "$ac_try") 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest.$ac_objext'
34816 { (case "(($ac_try" in
34817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34818 *) ac_try_echo=$ac_try;;
34819 esac
34820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821 (eval "$ac_try") 2>&5
34822 ac_status=$?
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); }; }; then
34825 ac_header_compiler=yes
34826 else
34827 echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.$ac_ext >&5
34830 ac_header_compiler=no
34833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34835 echo "${ECHO_T}$ac_header_compiler" >&6; }
34837 # Is the header present?
34838 { echo "$as_me:$LINENO: checking presence" >&5
34839 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
34840 cat >conftest.$ac_ext <<_ACEOF
34841 /* confdefs.h. */
34842 _ACEOF
34843 cat confdefs.h >>conftest.$ac_ext
34844 cat >>conftest.$ac_ext <<_ACEOF
34845 /* end confdefs.h. */
34846 #include <>
34847 _ACEOF
34848 if { (ac_try="$ac_cpp conftest.$ac_ext"
34849 case "(($ac_try" in
34850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851 *) ac_try_echo=$ac_try;;
34852 esac
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34855 ac_status=$?
34856 grep -v '^ *+' conftest.er1 >conftest.err
34857 rm -f conftest.er1
34858 cat conftest.err >&5
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } >/dev/null; then
34861 if test -s conftest.err; then
34862 ac_cpp_err=$ac_c_preproc_warn_flag
34863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34864 else
34865 ac_cpp_err=
34867 else
34868 ac_cpp_err=yes
34870 if test -z "$ac_cpp_err"; then
34871 ac_header_preproc=yes
34872 else
34873 echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34876 ac_header_preproc=no
34879 rm -f conftest.err conftest.$ac_ext
34880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34881 echo "${ECHO_T}$ac_header_preproc" >&6; }
34883 # So? What about this header?
34884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34885 yes:no: )
34886 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
34887 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
34888 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
34889 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
34890 ac_header_preproc=yes
34892 no:yes:* )
34893 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
34894 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
34895 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
34896 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
34897 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
34898 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
34899 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
34900 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
34901 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
34902 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
34903 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
34904 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
34905 ( cat <<\_ASBOX
34906 ## ------------------------------- ##
34907 ## Report this to www.asterisk.org ##
34908 ## ------------------------------- ##
34909 _ASBOX
34910 ) | sed "s/^/$as_me: WARNING: /" >&2
34912 esac
34913 { echo "$as_me:$LINENO: checking for " >&5
34914 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
34915 if test "${ac_cv_header_+set}" = set; then
34916 echo $ECHO_N "(cached) $ECHO_C" >&6
34917 else
34918 ac_cv_header_=$ac_header_preproc
34920 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
34921 echo "${ECHO_T}$ac_cv_header_" >&6; }
34924 if test $ac_cv_header_ = yes; then
34925 TERMCAP_HEADER_FOUND=1
34926 else
34927 TERMCAP_HEADER_FOUND=0
34933 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
34934 if test -n "${TERMCAP_MANDATORY}" ;
34935 then
34936 { echo "$as_me:$LINENO: ***" >&5
34937 echo "$as_me: ***" >&6;}
34938 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
34939 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
34940 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
34941 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
34942 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
34943 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
34944 exit 1
34946 TERMCAP_LIB=""
34947 TERMCAP_INCLUDE=""
34948 PBX_TERMCAP=0
34949 else
34950 PBX_TERMCAP=1
34952 cat >>confdefs.h <<_ACEOF
34953 #define HAVE_TERMCAP 1
34954 _ACEOF
34957 elif test -n "${TERMCAP_MANDATORY}";
34958 then
34959 { echo "$as_me:$LINENO: ***" >&5
34960 echo "$as_me: ***" >&6;}
34961 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
34962 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
34963 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34964 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34965 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
34966 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
34967 exit 1
34973 if test "${USE_TINFO}" != "no"; then
34974 pbxlibdir=""
34975 if test "x${TINFO_DIR}" != "x"; then
34976 if test -d ${TINFO_DIR}/lib; then
34977 pbxlibdir="-L${TINFO_DIR}/lib"
34978 else
34979 pbxlibdir="-L${TINFO_DIR}"
34982 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
34983 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
34984 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
34985 echo $ECHO_N "(cached) $ECHO_C" >&6
34986 else
34987 ac_check_lib_save_LIBS=$LIBS
34988 LIBS="-ltinfo ${pbxlibdir} $LIBS"
34989 cat >conftest.$ac_ext <<_ACEOF
34990 /* confdefs.h. */
34991 _ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34996 /* Override any GCC internal prototype to avoid an error.
34997 Use char because int might match the return type of a GCC
34998 builtin and then its argument prototype would still apply. */
34999 #ifdef __cplusplus
35000 extern "C"
35001 #endif
35002 char tgetent ();
35004 main ()
35006 return tgetent ();
35008 return 0;
35010 _ACEOF
35011 rm -f conftest.$ac_objext conftest$ac_exeext
35012 if { (ac_try="$ac_link"
35013 case "(($ac_try" in
35014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35015 *) ac_try_echo=$ac_try;;
35016 esac
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018 (eval "$ac_link") 2>conftest.er1
35019 ac_status=$?
35020 grep -v '^ *+' conftest.er1 >conftest.err
35021 rm -f conftest.er1
35022 cat conftest.err >&5
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); } &&
35025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35026 { (case "(($ac_try" in
35027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35028 *) ac_try_echo=$ac_try;;
35029 esac
35030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35031 (eval "$ac_try") 2>&5
35032 ac_status=$?
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; } &&
35035 { ac_try='test -s conftest$ac_exeext'
35036 { (case "(($ac_try" in
35037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35038 *) ac_try_echo=$ac_try;;
35039 esac
35040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35041 (eval "$ac_try") 2>&5
35042 ac_status=$?
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; }; then
35045 ac_cv_lib_tinfo_tgetent=yes
35046 else
35047 echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35050 ac_cv_lib_tinfo_tgetent=no
35053 rm -f core conftest.err conftest.$ac_objext \
35054 conftest$ac_exeext conftest.$ac_ext
35055 LIBS=$ac_check_lib_save_LIBS
35057 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
35058 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
35059 if test $ac_cv_lib_tinfo_tgetent = yes; then
35060 AST_TINFO_FOUND=yes
35061 else
35062 AST_TINFO_FOUND=no
35066 if test "${AST_TINFO_FOUND}" = "yes"; then
35067 TINFO_LIB="-ltinfo "
35068 TINFO_HEADER_FOUND="1"
35069 if test "x${TINFO_DIR}" != "x"; then
35070 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
35071 TINFO_INCLUDE="-I${TINFO_DIR}/include"
35072 saved_cppflags="${CPPFLAGS}"
35073 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
35074 if test "x" != "x" ; then
35075 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
35076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35077 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
35078 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
35079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35080 echo $ECHO_N "(cached) $ECHO_C" >&6
35082 ac_res=`eval echo '${'$as_ac_Header'}'`
35083 { echo "$as_me:$LINENO: result: $ac_res" >&5
35084 echo "${ECHO_T}$ac_res" >&6; }
35085 else
35086 # Is the header compilable?
35087 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
35088 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
35089 cat >conftest.$ac_ext <<_ACEOF
35090 /* confdefs.h. */
35091 _ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 $ac_includes_default
35096 #include <${TINFO_DIR}/include/>
35097 _ACEOF
35098 rm -f conftest.$ac_objext
35099 if { (ac_try="$ac_compile"
35100 case "(($ac_try" in
35101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35102 *) ac_try_echo=$ac_try;;
35103 esac
35104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35105 (eval "$ac_compile") 2>conftest.er1
35106 ac_status=$?
35107 grep -v '^ *+' conftest.er1 >conftest.err
35108 rm -f conftest.er1
35109 cat conftest.err >&5
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); } &&
35112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35113 { (case "(($ac_try" in
35114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35115 *) ac_try_echo=$ac_try;;
35116 esac
35117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35118 (eval "$ac_try") 2>&5
35119 ac_status=$?
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; } &&
35122 { ac_try='test -s conftest.$ac_objext'
35123 { (case "(($ac_try" in
35124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35125 *) ac_try_echo=$ac_try;;
35126 esac
35127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35128 (eval "$ac_try") 2>&5
35129 ac_status=$?
35130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35131 (exit $ac_status); }; }; then
35132 ac_header_compiler=yes
35133 else
35134 echo "$as_me: failed program was:" >&5
35135 sed 's/^/| /' conftest.$ac_ext >&5
35137 ac_header_compiler=no
35140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35142 echo "${ECHO_T}$ac_header_compiler" >&6; }
35144 # Is the header present?
35145 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
35146 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
35147 cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h. */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 #include <${TINFO_DIR}/include/>
35154 _ACEOF
35155 if { (ac_try="$ac_cpp conftest.$ac_ext"
35156 case "(($ac_try" in
35157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158 *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35162 ac_status=$?
35163 grep -v '^ *+' conftest.er1 >conftest.err
35164 rm -f conftest.er1
35165 cat conftest.err >&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } >/dev/null; then
35168 if test -s conftest.err; then
35169 ac_cpp_err=$ac_c_preproc_warn_flag
35170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35171 else
35172 ac_cpp_err=
35174 else
35175 ac_cpp_err=yes
35177 if test -z "$ac_cpp_err"; then
35178 ac_header_preproc=yes
35179 else
35180 echo "$as_me: failed program was:" >&5
35181 sed 's/^/| /' conftest.$ac_ext >&5
35183 ac_header_preproc=no
35186 rm -f conftest.err conftest.$ac_ext
35187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35188 echo "${ECHO_T}$ac_header_preproc" >&6; }
35190 # So? What about this header?
35191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35192 yes:no: )
35193 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
35194 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
35195 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
35196 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
35197 ac_header_preproc=yes
35199 no:yes:* )
35200 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
35201 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
35202 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
35203 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
35204 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
35205 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
35206 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
35207 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
35208 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
35209 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
35210 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
35211 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
35212 ( cat <<\_ASBOX
35213 ## ------------------------------- ##
35214 ## Report this to www.asterisk.org ##
35215 ## ------------------------------- ##
35216 _ASBOX
35217 ) | sed "s/^/$as_me: WARNING: /" >&2
35219 esac
35220 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
35221 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
35222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35223 echo $ECHO_N "(cached) $ECHO_C" >&6
35224 else
35225 eval "$as_ac_Header=\$ac_header_preproc"
35227 ac_res=`eval echo '${'$as_ac_Header'}'`
35228 { echo "$as_me:$LINENO: result: $ac_res" >&5
35229 echo "${ECHO_T}$ac_res" >&6; }
35232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35233 TINFO_HEADER_FOUND=1
35234 else
35235 TINFO_HEADER_FOUND=0
35240 CPPFLAGS="${saved_cppflags}"
35241 else
35242 if test "x" != "x" ; then
35243 if test "${ac_cv_header_+set}" = set; then
35244 { echo "$as_me:$LINENO: checking for " >&5
35245 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
35246 if test "${ac_cv_header_+set}" = set; then
35247 echo $ECHO_N "(cached) $ECHO_C" >&6
35249 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
35250 echo "${ECHO_T}$ac_cv_header_" >&6; }
35251 else
35252 # Is the header compilable?
35253 { echo "$as_me:$LINENO: checking usability" >&5
35254 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
35255 cat >conftest.$ac_ext <<_ACEOF
35256 /* confdefs.h. */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35261 $ac_includes_default
35262 #include <>
35263 _ACEOF
35264 rm -f conftest.$ac_objext
35265 if { (ac_try="$ac_compile"
35266 case "(($ac_try" in
35267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268 *) ac_try_echo=$ac_try;;
35269 esac
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271 (eval "$ac_compile") 2>conftest.er1
35272 ac_status=$?
35273 grep -v '^ *+' conftest.er1 >conftest.err
35274 rm -f conftest.er1
35275 cat conftest.err >&5
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); } &&
35278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35279 { (case "(($ac_try" in
35280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35281 *) ac_try_echo=$ac_try;;
35282 esac
35283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35284 (eval "$ac_try") 2>&5
35285 ac_status=$?
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; } &&
35288 { ac_try='test -s conftest.$ac_objext'
35289 { (case "(($ac_try" in
35290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35291 *) ac_try_echo=$ac_try;;
35292 esac
35293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35294 (eval "$ac_try") 2>&5
35295 ac_status=$?
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); }; }; then
35298 ac_header_compiler=yes
35299 else
35300 echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35303 ac_header_compiler=no
35306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35308 echo "${ECHO_T}$ac_header_compiler" >&6; }
35310 # Is the header present?
35311 { echo "$as_me:$LINENO: checking presence" >&5
35312 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
35313 cat >conftest.$ac_ext <<_ACEOF
35314 /* confdefs.h. */
35315 _ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h. */
35319 #include <>
35320 _ACEOF
35321 if { (ac_try="$ac_cpp conftest.$ac_ext"
35322 case "(($ac_try" in
35323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35324 *) ac_try_echo=$ac_try;;
35325 esac
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35328 ac_status=$?
35329 grep -v '^ *+' conftest.er1 >conftest.err
35330 rm -f conftest.er1
35331 cat conftest.err >&5
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); } >/dev/null; then
35334 if test -s conftest.err; then
35335 ac_cpp_err=$ac_c_preproc_warn_flag
35336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35337 else
35338 ac_cpp_err=
35340 else
35341 ac_cpp_err=yes
35343 if test -z "$ac_cpp_err"; then
35344 ac_header_preproc=yes
35345 else
35346 echo "$as_me: failed program was:" >&5
35347 sed 's/^/| /' conftest.$ac_ext >&5
35349 ac_header_preproc=no
35352 rm -f conftest.err conftest.$ac_ext
35353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35354 echo "${ECHO_T}$ac_header_preproc" >&6; }
35356 # So? What about this header?
35357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35358 yes:no: )
35359 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
35360 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
35361 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
35362 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
35363 ac_header_preproc=yes
35365 no:yes:* )
35366 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
35367 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
35368 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
35369 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
35370 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
35371 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
35372 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
35373 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
35374 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
35375 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
35376 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
35377 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
35378 ( cat <<\_ASBOX
35379 ## ------------------------------- ##
35380 ## Report this to www.asterisk.org ##
35381 ## ------------------------------- ##
35382 _ASBOX
35383 ) | sed "s/^/$as_me: WARNING: /" >&2
35385 esac
35386 { echo "$as_me:$LINENO: checking for " >&5
35387 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
35388 if test "${ac_cv_header_+set}" = set; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35390 else
35391 ac_cv_header_=$ac_header_preproc
35393 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
35394 echo "${ECHO_T}$ac_cv_header_" >&6; }
35397 if test $ac_cv_header_ = yes; then
35398 TINFO_HEADER_FOUND=1
35399 else
35400 TINFO_HEADER_FOUND=0
35406 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
35407 if test -n "${TINFO_MANDATORY}" ;
35408 then
35409 { echo "$as_me:$LINENO: ***" >&5
35410 echo "$as_me: ***" >&6;}
35411 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
35412 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
35413 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
35414 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
35415 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
35416 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
35417 exit 1
35419 TINFO_LIB=""
35420 TINFO_INCLUDE=""
35421 PBX_TINFO=0
35422 else
35423 PBX_TINFO=1
35425 cat >>confdefs.h <<_ACEOF
35426 #define HAVE_TINFO 1
35427 _ACEOF
35430 elif test -n "${TINFO_MANDATORY}";
35431 then
35432 { echo "$as_me:$LINENO: ***" >&5
35433 echo "$as_me: ***" >&6;}
35434 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
35435 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
35436 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35437 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35438 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
35439 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
35440 exit 1
35445 if test "${host_os}" != "linux-gnu" ; then
35446 tonezone_extra="-lm"
35450 if test "${USE_TONEZONE}" != "no"; then
35451 pbxlibdir=""
35452 if test "x${TONEZONE_DIR}" != "x"; then
35453 if test -d ${TONEZONE_DIR}/lib; then
35454 pbxlibdir="-L${TONEZONE_DIR}/lib"
35455 else
35456 pbxlibdir="-L${TONEZONE_DIR}"
35459 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
35460 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
35461 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
35462 echo $ECHO_N "(cached) $ECHO_C" >&6
35463 else
35464 ac_check_lib_save_LIBS=$LIBS
35465 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
35466 cat >conftest.$ac_ext <<_ACEOF
35467 /* confdefs.h. */
35468 _ACEOF
35469 cat confdefs.h >>conftest.$ac_ext
35470 cat >>conftest.$ac_ext <<_ACEOF
35471 /* end confdefs.h. */
35473 /* Override any GCC internal prototype to avoid an error.
35474 Use char because int might match the return type of a GCC
35475 builtin and then its argument prototype would still apply. */
35476 #ifdef __cplusplus
35477 extern "C"
35478 #endif
35479 char tone_zone_find ();
35481 main ()
35483 return tone_zone_find ();
35485 return 0;
35487 _ACEOF
35488 rm -f conftest.$ac_objext conftest$ac_exeext
35489 if { (ac_try="$ac_link"
35490 case "(($ac_try" in
35491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35492 *) ac_try_echo=$ac_try;;
35493 esac
35494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35495 (eval "$ac_link") 2>conftest.er1
35496 ac_status=$?
35497 grep -v '^ *+' conftest.er1 >conftest.err
35498 rm -f conftest.er1
35499 cat conftest.err >&5
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } &&
35502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35503 { (case "(($ac_try" in
35504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505 *) ac_try_echo=$ac_try;;
35506 esac
35507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35508 (eval "$ac_try") 2>&5
35509 ac_status=$?
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; } &&
35512 { ac_try='test -s conftest$ac_exeext'
35513 { (case "(($ac_try" in
35514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35515 *) ac_try_echo=$ac_try;;
35516 esac
35517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35518 (eval "$ac_try") 2>&5
35519 ac_status=$?
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; }; then
35522 ac_cv_lib_tonezone_tone_zone_find=yes
35523 else
35524 echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35527 ac_cv_lib_tonezone_tone_zone_find=no
35530 rm -f core conftest.err conftest.$ac_objext \
35531 conftest$ac_exeext conftest.$ac_ext
35532 LIBS=$ac_check_lib_save_LIBS
35534 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
35535 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
35536 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
35537 AST_TONEZONE_FOUND=yes
35538 else
35539 AST_TONEZONE_FOUND=no
35543 if test "${AST_TONEZONE_FOUND}" = "yes"; then
35544 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
35545 TONEZONE_HEADER_FOUND="1"
35546 if test "x${TONEZONE_DIR}" != "x"; then
35547 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
35548 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
35549 saved_cppflags="${CPPFLAGS}"
35550 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
35551 if test "xzaptel/tonezone.h" != "x" ; then
35552 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
35553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35554 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
35555 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
35556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35557 echo $ECHO_N "(cached) $ECHO_C" >&6
35559 ac_res=`eval echo '${'$as_ac_Header'}'`
35560 { echo "$as_me:$LINENO: result: $ac_res" >&5
35561 echo "${ECHO_T}$ac_res" >&6; }
35562 else
35563 # Is the header compilable?
35564 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
35565 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
35566 cat >conftest.$ac_ext <<_ACEOF
35567 /* confdefs.h. */
35568 _ACEOF
35569 cat confdefs.h >>conftest.$ac_ext
35570 cat >>conftest.$ac_ext <<_ACEOF
35571 /* end confdefs.h. */
35572 $ac_includes_default
35573 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
35574 _ACEOF
35575 rm -f conftest.$ac_objext
35576 if { (ac_try="$ac_compile"
35577 case "(($ac_try" in
35578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35579 *) ac_try_echo=$ac_try;;
35580 esac
35581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35582 (eval "$ac_compile") 2>conftest.er1
35583 ac_status=$?
35584 grep -v '^ *+' conftest.er1 >conftest.err
35585 rm -f conftest.er1
35586 cat conftest.err >&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); } &&
35589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35590 { (case "(($ac_try" in
35591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35592 *) ac_try_echo=$ac_try;;
35593 esac
35594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35595 (eval "$ac_try") 2>&5
35596 ac_status=$?
35597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598 (exit $ac_status); }; } &&
35599 { ac_try='test -s conftest.$ac_objext'
35600 { (case "(($ac_try" in
35601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35602 *) ac_try_echo=$ac_try;;
35603 esac
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605 (eval "$ac_try") 2>&5
35606 ac_status=$?
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; }; then
35609 ac_header_compiler=yes
35610 else
35611 echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35614 ac_header_compiler=no
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35619 echo "${ECHO_T}$ac_header_compiler" >&6; }
35621 # Is the header present?
35622 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
35623 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
35624 cat >conftest.$ac_ext <<_ACEOF
35625 /* confdefs.h. */
35626 _ACEOF
35627 cat confdefs.h >>conftest.$ac_ext
35628 cat >>conftest.$ac_ext <<_ACEOF
35629 /* end confdefs.h. */
35630 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
35631 _ACEOF
35632 if { (ac_try="$ac_cpp conftest.$ac_ext"
35633 case "(($ac_try" in
35634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35635 *) ac_try_echo=$ac_try;;
35636 esac
35637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35639 ac_status=$?
35640 grep -v '^ *+' conftest.er1 >conftest.err
35641 rm -f conftest.er1
35642 cat conftest.err >&5
35643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); } >/dev/null; then
35645 if test -s conftest.err; then
35646 ac_cpp_err=$ac_c_preproc_warn_flag
35647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35648 else
35649 ac_cpp_err=
35651 else
35652 ac_cpp_err=yes
35654 if test -z "$ac_cpp_err"; then
35655 ac_header_preproc=yes
35656 else
35657 echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35660 ac_header_preproc=no
35663 rm -f conftest.err conftest.$ac_ext
35664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35665 echo "${ECHO_T}$ac_header_preproc" >&6; }
35667 # So? What about this header?
35668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35669 yes:no: )
35670 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
35671 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35672 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
35673 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
35674 ac_header_preproc=yes
35676 no:yes:* )
35677 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
35678 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
35679 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
35680 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
35681 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
35682 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
35683 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
35684 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
35685 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
35686 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
35687 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
35688 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
35689 ( cat <<\_ASBOX
35690 ## ------------------------------- ##
35691 ## Report this to www.asterisk.org ##
35692 ## ------------------------------- ##
35693 _ASBOX
35694 ) | sed "s/^/$as_me: WARNING: /" >&2
35696 esac
35697 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
35698 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
35699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35700 echo $ECHO_N "(cached) $ECHO_C" >&6
35701 else
35702 eval "$as_ac_Header=\$ac_header_preproc"
35704 ac_res=`eval echo '${'$as_ac_Header'}'`
35705 { echo "$as_me:$LINENO: result: $ac_res" >&5
35706 echo "${ECHO_T}$ac_res" >&6; }
35709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35710 TONEZONE_HEADER_FOUND=1
35711 else
35712 TONEZONE_HEADER_FOUND=0
35717 CPPFLAGS="${saved_cppflags}"
35718 else
35719 if test "xzaptel/tonezone.h" != "x" ; then
35720 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
35721 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
35722 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
35723 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
35724 echo $ECHO_N "(cached) $ECHO_C" >&6
35726 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
35727 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
35728 else
35729 # Is the header compilable?
35730 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
35731 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
35732 cat >conftest.$ac_ext <<_ACEOF
35733 /* confdefs.h. */
35734 _ACEOF
35735 cat confdefs.h >>conftest.$ac_ext
35736 cat >>conftest.$ac_ext <<_ACEOF
35737 /* end confdefs.h. */
35738 $ac_includes_default
35739 #include <zaptel/tonezone.h>
35740 _ACEOF
35741 rm -f conftest.$ac_objext
35742 if { (ac_try="$ac_compile"
35743 case "(($ac_try" in
35744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35745 *) ac_try_echo=$ac_try;;
35746 esac
35747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35748 (eval "$ac_compile") 2>conftest.er1
35749 ac_status=$?
35750 grep -v '^ *+' conftest.er1 >conftest.err
35751 rm -f conftest.er1
35752 cat conftest.err >&5
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } &&
35755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35756 { (case "(($ac_try" in
35757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35758 *) ac_try_echo=$ac_try;;
35759 esac
35760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35761 (eval "$ac_try") 2>&5
35762 ac_status=$?
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; } &&
35765 { ac_try='test -s conftest.$ac_objext'
35766 { (case "(($ac_try" in
35767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768 *) ac_try_echo=$ac_try;;
35769 esac
35770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35771 (eval "$ac_try") 2>&5
35772 ac_status=$?
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; }; then
35775 ac_header_compiler=yes
35776 else
35777 echo "$as_me: failed program was:" >&5
35778 sed 's/^/| /' conftest.$ac_ext >&5
35780 ac_header_compiler=no
35783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35785 echo "${ECHO_T}$ac_header_compiler" >&6; }
35787 # Is the header present?
35788 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
35789 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
35790 cat >conftest.$ac_ext <<_ACEOF
35791 /* confdefs.h. */
35792 _ACEOF
35793 cat confdefs.h >>conftest.$ac_ext
35794 cat >>conftest.$ac_ext <<_ACEOF
35795 /* end confdefs.h. */
35796 #include <zaptel/tonezone.h>
35797 _ACEOF
35798 if { (ac_try="$ac_cpp conftest.$ac_ext"
35799 case "(($ac_try" in
35800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35801 *) ac_try_echo=$ac_try;;
35802 esac
35803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35805 ac_status=$?
35806 grep -v '^ *+' conftest.er1 >conftest.err
35807 rm -f conftest.er1
35808 cat conftest.err >&5
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); } >/dev/null; then
35811 if test -s conftest.err; then
35812 ac_cpp_err=$ac_c_preproc_warn_flag
35813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35814 else
35815 ac_cpp_err=
35817 else
35818 ac_cpp_err=yes
35820 if test -z "$ac_cpp_err"; then
35821 ac_header_preproc=yes
35822 else
35823 echo "$as_me: failed program was:" >&5
35824 sed 's/^/| /' conftest.$ac_ext >&5
35826 ac_header_preproc=no
35829 rm -f conftest.err conftest.$ac_ext
35830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35831 echo "${ECHO_T}$ac_header_preproc" >&6; }
35833 # So? What about this header?
35834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35835 yes:no: )
35836 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
35837 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35838 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
35839 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
35840 ac_header_preproc=yes
35842 no:yes:* )
35843 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
35844 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
35845 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
35846 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
35847 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
35848 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
35849 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
35850 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
35851 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
35852 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
35854 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
35855 ( cat <<\_ASBOX
35856 ## ------------------------------- ##
35857 ## Report this to www.asterisk.org ##
35858 ## ------------------------------- ##
35859 _ASBOX
35860 ) | sed "s/^/$as_me: WARNING: /" >&2
35862 esac
35863 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
35864 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
35865 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
35866 echo $ECHO_N "(cached) $ECHO_C" >&6
35867 else
35868 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
35870 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
35871 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
35874 if test $ac_cv_header_zaptel_tonezone_h = yes; then
35875 TONEZONE_HEADER_FOUND=1
35876 else
35877 TONEZONE_HEADER_FOUND=0
35883 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
35884 if test -n "${TONEZONE_MANDATORY}" ;
35885 then
35886 { echo "$as_me:$LINENO: ***" >&5
35887 echo "$as_me: ***" >&6;}
35888 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
35889 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
35890 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
35891 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
35892 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
35893 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
35894 exit 1
35896 TONEZONE_LIB=""
35897 TONEZONE_INCLUDE=""
35898 PBX_TONEZONE=0
35899 else
35900 PBX_TONEZONE=1
35902 cat >>confdefs.h <<_ACEOF
35903 #define HAVE_TONEZONE 1
35904 _ACEOF
35907 elif test -n "${TONEZONE_MANDATORY}";
35908 then
35909 { echo "$as_me:$LINENO: ***" >&5
35910 echo "$as_me: ***" >&6;}
35911 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
35912 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
35913 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
35914 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
35915 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
35916 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
35917 exit 1
35923 if test "${USE_USB}" != "no"; then
35924 pbxlibdir=""
35925 if test "x${USB_DIR}" != "x"; then
35926 if test -d ${USB_DIR}/lib; then
35927 pbxlibdir="-L${USB_DIR}/lib"
35928 else
35929 pbxlibdir="-L${USB_DIR}"
35932 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
35933 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
35934 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
35935 echo $ECHO_N "(cached) $ECHO_C" >&6
35936 else
35937 ac_check_lib_save_LIBS=$LIBS
35938 LIBS="-lusb ${pbxlibdir} $LIBS"
35939 cat >conftest.$ac_ext <<_ACEOF
35940 /* confdefs.h. */
35941 _ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h. */
35946 /* Override any GCC internal prototype to avoid an error.
35947 Use char because int might match the return type of a GCC
35948 builtin and then its argument prototype would still apply. */
35949 #ifdef __cplusplus
35950 extern "C"
35951 #endif
35952 char usb_init ();
35954 main ()
35956 return usb_init ();
35958 return 0;
35960 _ACEOF
35961 rm -f conftest.$ac_objext conftest$ac_exeext
35962 if { (ac_try="$ac_link"
35963 case "(($ac_try" in
35964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35965 *) ac_try_echo=$ac_try;;
35966 esac
35967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35968 (eval "$ac_link") 2>conftest.er1
35969 ac_status=$?
35970 grep -v '^ *+' conftest.er1 >conftest.err
35971 rm -f conftest.er1
35972 cat conftest.err >&5
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } &&
35975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35976 { (case "(($ac_try" in
35977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35978 *) ac_try_echo=$ac_try;;
35979 esac
35980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35981 (eval "$ac_try") 2>&5
35982 ac_status=$?
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); }; } &&
35985 { ac_try='test -s conftest$ac_exeext'
35986 { (case "(($ac_try" in
35987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35988 *) ac_try_echo=$ac_try;;
35989 esac
35990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35991 (eval "$ac_try") 2>&5
35992 ac_status=$?
35993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994 (exit $ac_status); }; }; then
35995 ac_cv_lib_usb_usb_init=yes
35996 else
35997 echo "$as_me: failed program was:" >&5
35998 sed 's/^/| /' conftest.$ac_ext >&5
36000 ac_cv_lib_usb_usb_init=no
36003 rm -f core conftest.err conftest.$ac_objext \
36004 conftest$ac_exeext conftest.$ac_ext
36005 LIBS=$ac_check_lib_save_LIBS
36007 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
36008 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
36009 if test $ac_cv_lib_usb_usb_init = yes; then
36010 AST_USB_FOUND=yes
36011 else
36012 AST_USB_FOUND=no
36016 if test "${AST_USB_FOUND}" = "yes"; then
36017 USB_LIB="-lusb "
36018 USB_HEADER_FOUND="1"
36019 if test "x${USB_DIR}" != "x"; then
36020 USB_LIB="${pbxlibdir} ${USB_LIB}"
36021 USB_INCLUDE="-I${USB_DIR}/include"
36022 saved_cppflags="${CPPFLAGS}"
36023 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
36024 if test "xusb.h" != "x" ; then
36025 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
36026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36027 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
36028 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
36029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36032 ac_res=`eval echo '${'$as_ac_Header'}'`
36033 { echo "$as_me:$LINENO: result: $ac_res" >&5
36034 echo "${ECHO_T}$ac_res" >&6; }
36035 else
36036 # Is the header compilable?
36037 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
36038 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
36039 cat >conftest.$ac_ext <<_ACEOF
36040 /* confdefs.h. */
36041 _ACEOF
36042 cat confdefs.h >>conftest.$ac_ext
36043 cat >>conftest.$ac_ext <<_ACEOF
36044 /* end confdefs.h. */
36045 $ac_includes_default
36046 #include <${USB_DIR}/include/usb.h>
36047 _ACEOF
36048 rm -f conftest.$ac_objext
36049 if { (ac_try="$ac_compile"
36050 case "(($ac_try" in
36051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36052 *) ac_try_echo=$ac_try;;
36053 esac
36054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36055 (eval "$ac_compile") 2>conftest.er1
36056 ac_status=$?
36057 grep -v '^ *+' conftest.er1 >conftest.err
36058 rm -f conftest.er1
36059 cat conftest.err >&5
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); } &&
36062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36063 { (case "(($ac_try" in
36064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36065 *) ac_try_echo=$ac_try;;
36066 esac
36067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36068 (eval "$ac_try") 2>&5
36069 ac_status=$?
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); }; } &&
36072 { ac_try='test -s conftest.$ac_objext'
36073 { (case "(($ac_try" in
36074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36075 *) ac_try_echo=$ac_try;;
36076 esac
36077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36078 (eval "$ac_try") 2>&5
36079 ac_status=$?
36080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081 (exit $ac_status); }; }; then
36082 ac_header_compiler=yes
36083 else
36084 echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36087 ac_header_compiler=no
36090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36092 echo "${ECHO_T}$ac_header_compiler" >&6; }
36094 # Is the header present?
36095 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
36096 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
36097 cat >conftest.$ac_ext <<_ACEOF
36098 /* confdefs.h. */
36099 _ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h. */
36103 #include <${USB_DIR}/include/usb.h>
36104 _ACEOF
36105 if { (ac_try="$ac_cpp conftest.$ac_ext"
36106 case "(($ac_try" in
36107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36108 *) ac_try_echo=$ac_try;;
36109 esac
36110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36112 ac_status=$?
36113 grep -v '^ *+' conftest.er1 >conftest.err
36114 rm -f conftest.er1
36115 cat conftest.err >&5
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); } >/dev/null; then
36118 if test -s conftest.err; then
36119 ac_cpp_err=$ac_c_preproc_warn_flag
36120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36121 else
36122 ac_cpp_err=
36124 else
36125 ac_cpp_err=yes
36127 if test -z "$ac_cpp_err"; then
36128 ac_header_preproc=yes
36129 else
36130 echo "$as_me: failed program was:" >&5
36131 sed 's/^/| /' conftest.$ac_ext >&5
36133 ac_header_preproc=no
36136 rm -f conftest.err conftest.$ac_ext
36137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36138 echo "${ECHO_T}$ac_header_preproc" >&6; }
36140 # So? What about this header?
36141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36142 yes:no: )
36143 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
36144 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36145 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
36146 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
36147 ac_header_preproc=yes
36149 no:yes:* )
36150 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
36151 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
36152 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
36153 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
36154 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
36155 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
36156 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
36157 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
36158 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
36159 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
36160 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
36161 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
36162 ( cat <<\_ASBOX
36163 ## ------------------------------- ##
36164 ## Report this to www.asterisk.org ##
36165 ## ------------------------------- ##
36166 _ASBOX
36167 ) | sed "s/^/$as_me: WARNING: /" >&2
36169 esac
36170 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
36171 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
36172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36173 echo $ECHO_N "(cached) $ECHO_C" >&6
36174 else
36175 eval "$as_ac_Header=\$ac_header_preproc"
36177 ac_res=`eval echo '${'$as_ac_Header'}'`
36178 { echo "$as_me:$LINENO: result: $ac_res" >&5
36179 echo "${ECHO_T}$ac_res" >&6; }
36182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36183 USB_HEADER_FOUND=1
36184 else
36185 USB_HEADER_FOUND=0
36190 CPPFLAGS="${saved_cppflags}"
36191 else
36192 if test "xusb.h" != "x" ; then
36193 if test "${ac_cv_header_usb_h+set}" = set; then
36194 { echo "$as_me:$LINENO: checking for usb.h" >&5
36195 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
36196 if test "${ac_cv_header_usb_h+set}" = set; then
36197 echo $ECHO_N "(cached) $ECHO_C" >&6
36199 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
36200 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
36201 else
36202 # Is the header compilable?
36203 { echo "$as_me:$LINENO: checking usb.h usability" >&5
36204 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
36205 cat >conftest.$ac_ext <<_ACEOF
36206 /* confdefs.h. */
36207 _ACEOF
36208 cat confdefs.h >>conftest.$ac_ext
36209 cat >>conftest.$ac_ext <<_ACEOF
36210 /* end confdefs.h. */
36211 $ac_includes_default
36212 #include <usb.h>
36213 _ACEOF
36214 rm -f conftest.$ac_objext
36215 if { (ac_try="$ac_compile"
36216 case "(($ac_try" in
36217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36218 *) ac_try_echo=$ac_try;;
36219 esac
36220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36221 (eval "$ac_compile") 2>conftest.er1
36222 ac_status=$?
36223 grep -v '^ *+' conftest.er1 >conftest.err
36224 rm -f conftest.er1
36225 cat conftest.err >&5
36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); } &&
36228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36229 { (case "(($ac_try" in
36230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231 *) ac_try_echo=$ac_try;;
36232 esac
36233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36234 (eval "$ac_try") 2>&5
36235 ac_status=$?
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; } &&
36238 { ac_try='test -s conftest.$ac_objext'
36239 { (case "(($ac_try" in
36240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36241 *) ac_try_echo=$ac_try;;
36242 esac
36243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36244 (eval "$ac_try") 2>&5
36245 ac_status=$?
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); }; }; then
36248 ac_header_compiler=yes
36249 else
36250 echo "$as_me: failed program was:" >&5
36251 sed 's/^/| /' conftest.$ac_ext >&5
36253 ac_header_compiler=no
36256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36258 echo "${ECHO_T}$ac_header_compiler" >&6; }
36260 # Is the header present?
36261 { echo "$as_me:$LINENO: checking usb.h presence" >&5
36262 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
36263 cat >conftest.$ac_ext <<_ACEOF
36264 /* confdefs.h. */
36265 _ACEOF
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36269 #include <usb.h>
36270 _ACEOF
36271 if { (ac_try="$ac_cpp conftest.$ac_ext"
36272 case "(($ac_try" in
36273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36274 *) ac_try_echo=$ac_try;;
36275 esac
36276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36278 ac_status=$?
36279 grep -v '^ *+' conftest.er1 >conftest.err
36280 rm -f conftest.er1
36281 cat conftest.err >&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); } >/dev/null; then
36284 if test -s conftest.err; then
36285 ac_cpp_err=$ac_c_preproc_warn_flag
36286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36287 else
36288 ac_cpp_err=
36290 else
36291 ac_cpp_err=yes
36293 if test -z "$ac_cpp_err"; then
36294 ac_header_preproc=yes
36295 else
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36299 ac_header_preproc=no
36302 rm -f conftest.err conftest.$ac_ext
36303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36304 echo "${ECHO_T}$ac_header_preproc" >&6; }
36306 # So? What about this header?
36307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36308 yes:no: )
36309 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
36310 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36311 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
36312 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
36313 ac_header_preproc=yes
36315 no:yes:* )
36316 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
36317 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
36318 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
36319 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
36320 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
36321 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
36322 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
36323 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
36324 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
36325 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
36326 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
36327 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
36328 ( cat <<\_ASBOX
36329 ## ------------------------------- ##
36330 ## Report this to www.asterisk.org ##
36331 ## ------------------------------- ##
36332 _ASBOX
36333 ) | sed "s/^/$as_me: WARNING: /" >&2
36335 esac
36336 { echo "$as_me:$LINENO: checking for usb.h" >&5
36337 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
36338 if test "${ac_cv_header_usb_h+set}" = set; then
36339 echo $ECHO_N "(cached) $ECHO_C" >&6
36340 else
36341 ac_cv_header_usb_h=$ac_header_preproc
36343 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
36344 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
36347 if test $ac_cv_header_usb_h = yes; then
36348 USB_HEADER_FOUND=1
36349 else
36350 USB_HEADER_FOUND=0
36356 if test "x${USB_HEADER_FOUND}" = "x0" ; then
36357 if test -n "${USB_MANDATORY}" ;
36358 then
36359 { echo "$as_me:$LINENO: ***" >&5
36360 echo "$as_me: ***" >&6;}
36361 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
36362 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
36363 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
36364 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
36365 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
36366 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
36367 exit 1
36369 USB_LIB=""
36370 USB_INCLUDE=""
36371 PBX_USB=0
36372 else
36373 PBX_USB=1
36375 cat >>confdefs.h <<_ACEOF
36376 #define HAVE_USB 1
36377 _ACEOF
36380 elif test -n "${USB_MANDATORY}";
36381 then
36382 { echo "$as_me:$LINENO: ***" >&5
36383 echo "$as_me: ***" >&6;}
36384 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
36385 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
36386 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36387 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36388 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
36389 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
36390 exit 1
36396 if test "${USE_VORBIS}" != "no"; then
36397 pbxlibdir=""
36398 if test "x${VORBIS_DIR}" != "x"; then
36399 if test -d ${VORBIS_DIR}/lib; then
36400 pbxlibdir="-L${VORBIS_DIR}/lib"
36401 else
36402 pbxlibdir="-L${VORBIS_DIR}"
36405 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
36406 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
36407 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
36408 echo $ECHO_N "(cached) $ECHO_C" >&6
36409 else
36410 ac_check_lib_save_LIBS=$LIBS
36411 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
36412 cat >conftest.$ac_ext <<_ACEOF
36413 /* confdefs.h. */
36414 _ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h. */
36419 /* Override any GCC internal prototype to avoid an error.
36420 Use char because int might match the return type of a GCC
36421 builtin and then its argument prototype would still apply. */
36422 #ifdef __cplusplus
36423 extern "C"
36424 #endif
36425 char vorbis_info_init ();
36427 main ()
36429 return vorbis_info_init ();
36431 return 0;
36433 _ACEOF
36434 rm -f conftest.$ac_objext conftest$ac_exeext
36435 if { (ac_try="$ac_link"
36436 case "(($ac_try" in
36437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36438 *) ac_try_echo=$ac_try;;
36439 esac
36440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36441 (eval "$ac_link") 2>conftest.er1
36442 ac_status=$?
36443 grep -v '^ *+' conftest.er1 >conftest.err
36444 rm -f conftest.er1
36445 cat conftest.err >&5
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); } &&
36448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36449 { (case "(($ac_try" in
36450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36451 *) ac_try_echo=$ac_try;;
36452 esac
36453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36454 (eval "$ac_try") 2>&5
36455 ac_status=$?
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; } &&
36458 { ac_try='test -s conftest$ac_exeext'
36459 { (case "(($ac_try" in
36460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36461 *) ac_try_echo=$ac_try;;
36462 esac
36463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36464 (eval "$ac_try") 2>&5
36465 ac_status=$?
36466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); }; }; then
36468 ac_cv_lib_vorbis_vorbis_info_init=yes
36469 else
36470 echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36473 ac_cv_lib_vorbis_vorbis_info_init=no
36476 rm -f core conftest.err conftest.$ac_objext \
36477 conftest$ac_exeext conftest.$ac_ext
36478 LIBS=$ac_check_lib_save_LIBS
36480 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
36481 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
36482 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
36483 AST_VORBIS_FOUND=yes
36484 else
36485 AST_VORBIS_FOUND=no
36489 if test "${AST_VORBIS_FOUND}" = "yes"; then
36490 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
36491 VORBIS_HEADER_FOUND="1"
36492 if test "x${VORBIS_DIR}" != "x"; then
36493 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
36494 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
36495 saved_cppflags="${CPPFLAGS}"
36496 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
36497 if test "xvorbis/codec.h" != "x" ; then
36498 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
36499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36500 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
36501 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
36502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36503 echo $ECHO_N "(cached) $ECHO_C" >&6
36505 ac_res=`eval echo '${'$as_ac_Header'}'`
36506 { echo "$as_me:$LINENO: result: $ac_res" >&5
36507 echo "${ECHO_T}$ac_res" >&6; }
36508 else
36509 # Is the header compilable?
36510 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
36511 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
36512 cat >conftest.$ac_ext <<_ACEOF
36513 /* confdefs.h. */
36514 _ACEOF
36515 cat confdefs.h >>conftest.$ac_ext
36516 cat >>conftest.$ac_ext <<_ACEOF
36517 /* end confdefs.h. */
36518 $ac_includes_default
36519 #include <${VORBIS_DIR}/include/vorbis/codec.h>
36520 _ACEOF
36521 rm -f conftest.$ac_objext
36522 if { (ac_try="$ac_compile"
36523 case "(($ac_try" in
36524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525 *) ac_try_echo=$ac_try;;
36526 esac
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528 (eval "$ac_compile") 2>conftest.er1
36529 ac_status=$?
36530 grep -v '^ *+' conftest.er1 >conftest.err
36531 rm -f conftest.er1
36532 cat conftest.err >&5
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } &&
36535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36536 { (case "(($ac_try" in
36537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36538 *) ac_try_echo=$ac_try;;
36539 esac
36540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36541 (eval "$ac_try") 2>&5
36542 ac_status=$?
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); }; } &&
36545 { ac_try='test -s conftest.$ac_objext'
36546 { (case "(($ac_try" in
36547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36548 *) ac_try_echo=$ac_try;;
36549 esac
36550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36551 (eval "$ac_try") 2>&5
36552 ac_status=$?
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; }; then
36555 ac_header_compiler=yes
36556 else
36557 echo "$as_me: failed program was:" >&5
36558 sed 's/^/| /' conftest.$ac_ext >&5
36560 ac_header_compiler=no
36563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36565 echo "${ECHO_T}$ac_header_compiler" >&6; }
36567 # Is the header present?
36568 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
36569 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
36570 cat >conftest.$ac_ext <<_ACEOF
36571 /* confdefs.h. */
36572 _ACEOF
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h. */
36576 #include <${VORBIS_DIR}/include/vorbis/codec.h>
36577 _ACEOF
36578 if { (ac_try="$ac_cpp conftest.$ac_ext"
36579 case "(($ac_try" in
36580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36581 *) ac_try_echo=$ac_try;;
36582 esac
36583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36585 ac_status=$?
36586 grep -v '^ *+' conftest.er1 >conftest.err
36587 rm -f conftest.er1
36588 cat conftest.err >&5
36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590 (exit $ac_status); } >/dev/null; then
36591 if test -s conftest.err; then
36592 ac_cpp_err=$ac_c_preproc_warn_flag
36593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36594 else
36595 ac_cpp_err=
36597 else
36598 ac_cpp_err=yes
36600 if test -z "$ac_cpp_err"; then
36601 ac_header_preproc=yes
36602 else
36603 echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36606 ac_header_preproc=no
36609 rm -f conftest.err conftest.$ac_ext
36610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36611 echo "${ECHO_T}$ac_header_preproc" >&6; }
36613 # So? What about this header?
36614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36615 yes:no: )
36616 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
36617 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36618 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
36619 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
36620 ac_header_preproc=yes
36622 no:yes:* )
36623 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
36624 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
36626 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
36628 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
36629 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
36630 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
36631 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
36632 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
36633 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
36634 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
36635 ( cat <<\_ASBOX
36636 ## ------------------------------- ##
36637 ## Report this to www.asterisk.org ##
36638 ## ------------------------------- ##
36639 _ASBOX
36640 ) | sed "s/^/$as_me: WARNING: /" >&2
36642 esac
36643 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
36644 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
36645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36646 echo $ECHO_N "(cached) $ECHO_C" >&6
36647 else
36648 eval "$as_ac_Header=\$ac_header_preproc"
36650 ac_res=`eval echo '${'$as_ac_Header'}'`
36651 { echo "$as_me:$LINENO: result: $ac_res" >&5
36652 echo "${ECHO_T}$ac_res" >&6; }
36655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36656 VORBIS_HEADER_FOUND=1
36657 else
36658 VORBIS_HEADER_FOUND=0
36663 CPPFLAGS="${saved_cppflags}"
36664 else
36665 if test "xvorbis/codec.h" != "x" ; then
36666 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
36667 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
36668 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
36669 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
36670 echo $ECHO_N "(cached) $ECHO_C" >&6
36672 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
36673 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
36674 else
36675 # Is the header compilable?
36676 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
36677 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
36678 cat >conftest.$ac_ext <<_ACEOF
36679 /* confdefs.h. */
36680 _ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h. */
36684 $ac_includes_default
36685 #include <vorbis/codec.h>
36686 _ACEOF
36687 rm -f conftest.$ac_objext
36688 if { (ac_try="$ac_compile"
36689 case "(($ac_try" in
36690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36691 *) ac_try_echo=$ac_try;;
36692 esac
36693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36694 (eval "$ac_compile") 2>conftest.er1
36695 ac_status=$?
36696 grep -v '^ *+' conftest.er1 >conftest.err
36697 rm -f conftest.er1
36698 cat conftest.err >&5
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); } &&
36701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36702 { (case "(($ac_try" in
36703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704 *) ac_try_echo=$ac_try;;
36705 esac
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707 (eval "$ac_try") 2>&5
36708 ac_status=$?
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; } &&
36711 { ac_try='test -s conftest.$ac_objext'
36712 { (case "(($ac_try" in
36713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36714 *) ac_try_echo=$ac_try;;
36715 esac
36716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36717 (eval "$ac_try") 2>&5
36718 ac_status=$?
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); }; }; then
36721 ac_header_compiler=yes
36722 else
36723 echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36726 ac_header_compiler=no
36729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36731 echo "${ECHO_T}$ac_header_compiler" >&6; }
36733 # Is the header present?
36734 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
36735 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
36736 cat >conftest.$ac_ext <<_ACEOF
36737 /* confdefs.h. */
36738 _ACEOF
36739 cat confdefs.h >>conftest.$ac_ext
36740 cat >>conftest.$ac_ext <<_ACEOF
36741 /* end confdefs.h. */
36742 #include <vorbis/codec.h>
36743 _ACEOF
36744 if { (ac_try="$ac_cpp conftest.$ac_ext"
36745 case "(($ac_try" in
36746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36747 *) ac_try_echo=$ac_try;;
36748 esac
36749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36751 ac_status=$?
36752 grep -v '^ *+' conftest.er1 >conftest.err
36753 rm -f conftest.er1
36754 cat conftest.err >&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } >/dev/null; then
36757 if test -s conftest.err; then
36758 ac_cpp_err=$ac_c_preproc_warn_flag
36759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36760 else
36761 ac_cpp_err=
36763 else
36764 ac_cpp_err=yes
36766 if test -z "$ac_cpp_err"; then
36767 ac_header_preproc=yes
36768 else
36769 echo "$as_me: failed program was:" >&5
36770 sed 's/^/| /' conftest.$ac_ext >&5
36772 ac_header_preproc=no
36775 rm -f conftest.err conftest.$ac_ext
36776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36777 echo "${ECHO_T}$ac_header_preproc" >&6; }
36779 # So? What about this header?
36780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36781 yes:no: )
36782 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
36783 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36784 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
36785 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
36786 ac_header_preproc=yes
36788 no:yes:* )
36789 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
36790 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
36791 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
36792 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
36793 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
36794 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
36795 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
36796 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
36797 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
36798 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
36799 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
36800 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
36801 ( cat <<\_ASBOX
36802 ## ------------------------------- ##
36803 ## Report this to www.asterisk.org ##
36804 ## ------------------------------- ##
36805 _ASBOX
36806 ) | sed "s/^/$as_me: WARNING: /" >&2
36808 esac
36809 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
36810 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
36811 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
36812 echo $ECHO_N "(cached) $ECHO_C" >&6
36813 else
36814 ac_cv_header_vorbis_codec_h=$ac_header_preproc
36816 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
36817 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
36820 if test $ac_cv_header_vorbis_codec_h = yes; then
36821 VORBIS_HEADER_FOUND=1
36822 else
36823 VORBIS_HEADER_FOUND=0
36829 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
36830 if test -n "${VORBIS_MANDATORY}" ;
36831 then
36832 { echo "$as_me:$LINENO: ***" >&5
36833 echo "$as_me: ***" >&6;}
36834 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
36835 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
36836 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
36837 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
36838 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
36839 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
36840 exit 1
36842 VORBIS_LIB=""
36843 VORBIS_INCLUDE=""
36844 PBX_VORBIS=0
36845 else
36846 PBX_VORBIS=1
36848 cat >>confdefs.h <<_ACEOF
36849 #define HAVE_VORBIS 1
36850 _ACEOF
36853 elif test -n "${VORBIS_MANDATORY}";
36854 then
36855 { echo "$as_me:$LINENO: ***" >&5
36856 echo "$as_me: ***" >&6;}
36857 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
36858 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
36859 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36860 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36861 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
36862 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
36863 exit 1
36868 ac_ext=cpp
36869 ac_cpp='$CXXCPP $CPPFLAGS'
36870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36875 if test "${USE_VPB}" != "no"; then
36876 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
36877 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
36878 saved_libs="${LIBS}"
36879 saved_cppflags="${CPPFLAGS}"
36880 if test "x${VPB_DIR}" != "x"; then
36881 if test -d ${VPB_DIR}/lib; then
36882 vpblibdir=${VPB_DIR}/lib
36883 else
36884 vpblibdir=${VPB_DIR}
36886 LIBS="${LIBS} -L${vpblibdir}"
36887 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
36889 LIBS="${LIBS} -lvpb -lpthread"
36890 cat >conftest.$ac_ext <<_ACEOF
36892 /* confdefs.h. */
36893 _ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h. */
36897 #include <vpbapi.h>
36899 main ()
36901 int q = vpb_open(0,0);
36903 return 0;
36906 _ACEOF
36907 rm -f conftest.$ac_objext conftest$ac_exeext
36908 if { (ac_try="$ac_link"
36909 case "(($ac_try" in
36910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36911 *) ac_try_echo=$ac_try;;
36912 esac
36913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36914 (eval "$ac_link") 2>conftest.er1
36915 ac_status=$?
36916 grep -v '^ *+' conftest.er1 >conftest.err
36917 rm -f conftest.er1
36918 cat conftest.err >&5
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); } &&
36921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36922 { (case "(($ac_try" in
36923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36924 *) ac_try_echo=$ac_try;;
36925 esac
36926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36927 (eval "$ac_try") 2>&5
36928 ac_status=$?
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); }; } &&
36931 { ac_try='test -s conftest$ac_exeext'
36932 { (case "(($ac_try" in
36933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36934 *) ac_try_echo=$ac_try;;
36935 esac
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937 (eval "$ac_try") 2>&5
36938 ac_status=$?
36939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 (exit $ac_status); }; }; then
36941 { echo "$as_me:$LINENO: result: yes" >&5
36942 echo "${ECHO_T}yes" >&6; }
36943 ac_cv_lib_vpb_vpb_open="yes"
36945 else
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36949 { echo "$as_me:$LINENO: result: no" >&5
36950 echo "${ECHO_T}no" >&6; }
36951 ac_cv_lib_vpb_vpb_open="no"
36956 rm -f core conftest.err conftest.$ac_objext \
36957 conftest$ac_exeext conftest.$ac_ext
36958 LIBS="${saved_libs}"
36959 CPPFLAGS="${saved_cppflags}"
36960 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
36961 VPB_LIB="-lvpb"
36962 if test "${VPB_DIR}" != ""; then
36963 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
36964 VPB_INCLUDE="-I${VPB_DIR}/include"
36966 PBX_VPB=1
36968 cat >>confdefs.h <<\_ACEOF
36969 #define HAVE_VPB 1
36970 _ACEOF
36972 elif test -n "${VPB_MANDATORY}"; then
36973 { echo "$as_me:$LINENO: ***" >&5
36974 echo "$as_me: ***" >&6;}
36975 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
36976 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
36977 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
36978 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
36979 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
36980 echo "$as_me: *** including --without-vpb." >&6;}
36981 exit 1
36985 ac_ext=c
36986 ac_cpp='$CPP $CPPFLAGS'
36987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36993 if test "${USE_ZLIB}" != "no"; then
36994 pbxlibdir=""
36995 if test "x${ZLIB_DIR}" != "x"; then
36996 if test -d ${ZLIB_DIR}/lib; then
36997 pbxlibdir="-L${ZLIB_DIR}/lib"
36998 else
36999 pbxlibdir="-L${ZLIB_DIR}"
37002 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
37003 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
37004 if test "${ac_cv_lib_z_compress+set}" = set; then
37005 echo $ECHO_N "(cached) $ECHO_C" >&6
37006 else
37007 ac_check_lib_save_LIBS=$LIBS
37008 LIBS="-lz ${pbxlibdir} $LIBS"
37009 cat >conftest.$ac_ext <<_ACEOF
37010 /* confdefs.h. */
37011 _ACEOF
37012 cat confdefs.h >>conftest.$ac_ext
37013 cat >>conftest.$ac_ext <<_ACEOF
37014 /* end confdefs.h. */
37016 /* Override any GCC internal prototype to avoid an error.
37017 Use char because int might match the return type of a GCC
37018 builtin and then its argument prototype would still apply. */
37019 #ifdef __cplusplus
37020 extern "C"
37021 #endif
37022 char compress ();
37024 main ()
37026 return compress ();
37028 return 0;
37030 _ACEOF
37031 rm -f conftest.$ac_objext conftest$ac_exeext
37032 if { (ac_try="$ac_link"
37033 case "(($ac_try" in
37034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37035 *) ac_try_echo=$ac_try;;
37036 esac
37037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37038 (eval "$ac_link") 2>conftest.er1
37039 ac_status=$?
37040 grep -v '^ *+' conftest.er1 >conftest.err
37041 rm -f conftest.er1
37042 cat conftest.err >&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } &&
37045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37046 { (case "(($ac_try" in
37047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37048 *) ac_try_echo=$ac_try;;
37049 esac
37050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37051 (eval "$ac_try") 2>&5
37052 ac_status=$?
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; } &&
37055 { ac_try='test -s conftest$ac_exeext'
37056 { (case "(($ac_try" in
37057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37058 *) ac_try_echo=$ac_try;;
37059 esac
37060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37061 (eval "$ac_try") 2>&5
37062 ac_status=$?
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; }; then
37065 ac_cv_lib_z_compress=yes
37066 else
37067 echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.$ac_ext >&5
37070 ac_cv_lib_z_compress=no
37073 rm -f core conftest.err conftest.$ac_objext \
37074 conftest$ac_exeext conftest.$ac_ext
37075 LIBS=$ac_check_lib_save_LIBS
37077 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
37078 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
37079 if test $ac_cv_lib_z_compress = yes; then
37080 AST_ZLIB_FOUND=yes
37081 else
37082 AST_ZLIB_FOUND=no
37086 if test "${AST_ZLIB_FOUND}" = "yes"; then
37087 ZLIB_LIB="-lz "
37088 ZLIB_HEADER_FOUND="1"
37089 if test "x${ZLIB_DIR}" != "x"; then
37090 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
37091 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
37092 saved_cppflags="${CPPFLAGS}"
37093 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
37094 if test "xzlib.h" != "x" ; then
37095 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
37096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37097 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
37098 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
37099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37100 echo $ECHO_N "(cached) $ECHO_C" >&6
37102 ac_res=`eval echo '${'$as_ac_Header'}'`
37103 { echo "$as_me:$LINENO: result: $ac_res" >&5
37104 echo "${ECHO_T}$ac_res" >&6; }
37105 else
37106 # Is the header compilable?
37107 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
37108 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
37109 cat >conftest.$ac_ext <<_ACEOF
37110 /* confdefs.h. */
37111 _ACEOF
37112 cat confdefs.h >>conftest.$ac_ext
37113 cat >>conftest.$ac_ext <<_ACEOF
37114 /* end confdefs.h. */
37115 $ac_includes_default
37116 #include <${ZLIB_DIR}/include/zlib.h>
37117 _ACEOF
37118 rm -f conftest.$ac_objext
37119 if { (ac_try="$ac_compile"
37120 case "(($ac_try" in
37121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37122 *) ac_try_echo=$ac_try;;
37123 esac
37124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37125 (eval "$ac_compile") 2>conftest.er1
37126 ac_status=$?
37127 grep -v '^ *+' conftest.er1 >conftest.err
37128 rm -f conftest.er1
37129 cat conftest.err >&5
37130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131 (exit $ac_status); } &&
37132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37133 { (case "(($ac_try" in
37134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37135 *) ac_try_echo=$ac_try;;
37136 esac
37137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37138 (eval "$ac_try") 2>&5
37139 ac_status=$?
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; } &&
37142 { ac_try='test -s conftest.$ac_objext'
37143 { (case "(($ac_try" in
37144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37145 *) ac_try_echo=$ac_try;;
37146 esac
37147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37148 (eval "$ac_try") 2>&5
37149 ac_status=$?
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; }; then
37152 ac_header_compiler=yes
37153 else
37154 echo "$as_me: failed program was:" >&5
37155 sed 's/^/| /' conftest.$ac_ext >&5
37157 ac_header_compiler=no
37160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37162 echo "${ECHO_T}$ac_header_compiler" >&6; }
37164 # Is the header present?
37165 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
37166 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
37167 cat >conftest.$ac_ext <<_ACEOF
37168 /* confdefs.h. */
37169 _ACEOF
37170 cat confdefs.h >>conftest.$ac_ext
37171 cat >>conftest.$ac_ext <<_ACEOF
37172 /* end confdefs.h. */
37173 #include <${ZLIB_DIR}/include/zlib.h>
37174 _ACEOF
37175 if { (ac_try="$ac_cpp conftest.$ac_ext"
37176 case "(($ac_try" in
37177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37178 *) ac_try_echo=$ac_try;;
37179 esac
37180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37182 ac_status=$?
37183 grep -v '^ *+' conftest.er1 >conftest.err
37184 rm -f conftest.er1
37185 cat conftest.err >&5
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); } >/dev/null; then
37188 if test -s conftest.err; then
37189 ac_cpp_err=$ac_c_preproc_warn_flag
37190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37191 else
37192 ac_cpp_err=
37194 else
37195 ac_cpp_err=yes
37197 if test -z "$ac_cpp_err"; then
37198 ac_header_preproc=yes
37199 else
37200 echo "$as_me: failed program was:" >&5
37201 sed 's/^/| /' conftest.$ac_ext >&5
37203 ac_header_preproc=no
37206 rm -f conftest.err conftest.$ac_ext
37207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37208 echo "${ECHO_T}$ac_header_preproc" >&6; }
37210 # So? What about this header?
37211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37212 yes:no: )
37213 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37214 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37215 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
37216 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
37217 ac_header_preproc=yes
37219 no:yes:* )
37220 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
37221 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
37222 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
37223 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
37224 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
37225 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
37226 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
37227 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37228 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
37229 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
37230 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
37231 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
37232 ( cat <<\_ASBOX
37233 ## ------------------------------- ##
37234 ## Report this to www.asterisk.org ##
37235 ## ------------------------------- ##
37236 _ASBOX
37237 ) | sed "s/^/$as_me: WARNING: /" >&2
37239 esac
37240 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
37241 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
37242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37243 echo $ECHO_N "(cached) $ECHO_C" >&6
37244 else
37245 eval "$as_ac_Header=\$ac_header_preproc"
37247 ac_res=`eval echo '${'$as_ac_Header'}'`
37248 { echo "$as_me:$LINENO: result: $ac_res" >&5
37249 echo "${ECHO_T}$ac_res" >&6; }
37252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37253 ZLIB_HEADER_FOUND=1
37254 else
37255 ZLIB_HEADER_FOUND=0
37260 CPPFLAGS="${saved_cppflags}"
37261 else
37262 if test "xzlib.h" != "x" ; then
37263 if test "${ac_cv_header_zlib_h+set}" = set; then
37264 { echo "$as_me:$LINENO: checking for zlib.h" >&5
37265 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
37266 if test "${ac_cv_header_zlib_h+set}" = set; then
37267 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
37270 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
37271 else
37272 # Is the header compilable?
37273 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
37274 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
37275 cat >conftest.$ac_ext <<_ACEOF
37276 /* confdefs.h. */
37277 _ACEOF
37278 cat confdefs.h >>conftest.$ac_ext
37279 cat >>conftest.$ac_ext <<_ACEOF
37280 /* end confdefs.h. */
37281 $ac_includes_default
37282 #include <zlib.h>
37283 _ACEOF
37284 rm -f conftest.$ac_objext
37285 if { (ac_try="$ac_compile"
37286 case "(($ac_try" in
37287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37288 *) ac_try_echo=$ac_try;;
37289 esac
37290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37291 (eval "$ac_compile") 2>conftest.er1
37292 ac_status=$?
37293 grep -v '^ *+' conftest.er1 >conftest.err
37294 rm -f conftest.er1
37295 cat conftest.err >&5
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); } &&
37298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37299 { (case "(($ac_try" in
37300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37301 *) ac_try_echo=$ac_try;;
37302 esac
37303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37304 (eval "$ac_try") 2>&5
37305 ac_status=$?
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); }; } &&
37308 { ac_try='test -s conftest.$ac_objext'
37309 { (case "(($ac_try" in
37310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37311 *) ac_try_echo=$ac_try;;
37312 esac
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314 (eval "$ac_try") 2>&5
37315 ac_status=$?
37316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317 (exit $ac_status); }; }; then
37318 ac_header_compiler=yes
37319 else
37320 echo "$as_me: failed program was:" >&5
37321 sed 's/^/| /' conftest.$ac_ext >&5
37323 ac_header_compiler=no
37326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37328 echo "${ECHO_T}$ac_header_compiler" >&6; }
37330 # Is the header present?
37331 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
37332 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
37333 cat >conftest.$ac_ext <<_ACEOF
37334 /* confdefs.h. */
37335 _ACEOF
37336 cat confdefs.h >>conftest.$ac_ext
37337 cat >>conftest.$ac_ext <<_ACEOF
37338 /* end confdefs.h. */
37339 #include <zlib.h>
37340 _ACEOF
37341 if { (ac_try="$ac_cpp conftest.$ac_ext"
37342 case "(($ac_try" in
37343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37344 *) ac_try_echo=$ac_try;;
37345 esac
37346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37348 ac_status=$?
37349 grep -v '^ *+' conftest.er1 >conftest.err
37350 rm -f conftest.er1
37351 cat conftest.err >&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); } >/dev/null; then
37354 if test -s conftest.err; then
37355 ac_cpp_err=$ac_c_preproc_warn_flag
37356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37357 else
37358 ac_cpp_err=
37360 else
37361 ac_cpp_err=yes
37363 if test -z "$ac_cpp_err"; then
37364 ac_header_preproc=yes
37365 else
37366 echo "$as_me: failed program was:" >&5
37367 sed 's/^/| /' conftest.$ac_ext >&5
37369 ac_header_preproc=no
37372 rm -f conftest.err conftest.$ac_ext
37373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37374 echo "${ECHO_T}$ac_header_preproc" >&6; }
37376 # So? What about this header?
37377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37378 yes:no: )
37379 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37380 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37381 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
37382 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
37383 ac_header_preproc=yes
37385 no:yes:* )
37386 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
37387 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
37388 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
37389 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
37390 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
37391 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
37392 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
37393 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37394 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
37395 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
37396 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
37397 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
37398 ( cat <<\_ASBOX
37399 ## ------------------------------- ##
37400 ## Report this to www.asterisk.org ##
37401 ## ------------------------------- ##
37402 _ASBOX
37403 ) | sed "s/^/$as_me: WARNING: /" >&2
37405 esac
37406 { echo "$as_me:$LINENO: checking for zlib.h" >&5
37407 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
37408 if test "${ac_cv_header_zlib_h+set}" = set; then
37409 echo $ECHO_N "(cached) $ECHO_C" >&6
37410 else
37411 ac_cv_header_zlib_h=$ac_header_preproc
37413 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
37414 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
37417 if test $ac_cv_header_zlib_h = yes; then
37418 ZLIB_HEADER_FOUND=1
37419 else
37420 ZLIB_HEADER_FOUND=0
37426 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
37427 if test -n "${ZLIB_MANDATORY}" ;
37428 then
37429 { echo "$as_me:$LINENO: ***" >&5
37430 echo "$as_me: ***" >&6;}
37431 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
37432 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
37433 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
37434 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
37435 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
37436 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
37437 exit 1
37439 ZLIB_LIB=""
37440 ZLIB_INCLUDE=""
37441 PBX_ZLIB=0
37442 else
37443 PBX_ZLIB=1
37445 cat >>confdefs.h <<_ACEOF
37446 #define HAVE_ZLIB 1
37447 _ACEOF
37450 elif test -n "${ZLIB_MANDATORY}";
37451 then
37452 { echo "$as_me:$LINENO: ***" >&5
37453 echo "$as_me: ***" >&6;}
37454 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
37455 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
37456 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37457 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37458 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
37459 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
37460 exit 1
37465 if test "${USE_ZAPTEL}" != "no"; then
37466 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
37467 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
37468 saved_cppflags="${CPPFLAGS}"
37469 if test "x${ZAPTEL_DIR}" != "x"; then
37470 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
37472 cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h. */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h. */
37479 #include <zaptel/zaptel.h>
37481 main ()
37483 int foo = ZT_DIAL_OP_CANCEL;
37485 return 0;
37488 _ACEOF
37489 rm -f conftest.$ac_objext
37490 if { (ac_try="$ac_compile"
37491 case "(($ac_try" in
37492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37493 *) ac_try_echo=$ac_try;;
37494 esac
37495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37496 (eval "$ac_compile") 2>conftest.er1
37497 ac_status=$?
37498 grep -v '^ *+' conftest.er1 >conftest.err
37499 rm -f conftest.er1
37500 cat conftest.err >&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } &&
37503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37504 { (case "(($ac_try" in
37505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37506 *) ac_try_echo=$ac_try;;
37507 esac
37508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37509 (eval "$ac_try") 2>&5
37510 ac_status=$?
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); }; } &&
37513 { ac_try='test -s conftest.$ac_objext'
37514 { (case "(($ac_try" in
37515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37516 *) ac_try_echo=$ac_try;;
37517 esac
37518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37519 (eval "$ac_try") 2>&5
37520 ac_status=$?
37521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522 (exit $ac_status); }; }; then
37523 { echo "$as_me:$LINENO: result: yes" >&5
37524 echo "${ECHO_T}yes" >&6; }
37525 ac_cv_zaptel_h="yes"
37527 else
37528 echo "$as_me: failed program was:" >&5
37529 sed 's/^/| /' conftest.$ac_ext >&5
37531 { echo "$as_me:$LINENO: result: no" >&5
37532 echo "${ECHO_T}no" >&6; }
37533 ac_cv_zaptel_h="no"
37538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539 CPPFLAGS="${saved_cppflags}"
37540 if test "${ac_cv_zaptel_h}" = "yes"; then
37541 if test "${ZAPTEL_DIR}" != ""; then
37542 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
37544 PBX_ZAPTEL=1
37546 cat >>confdefs.h <<\_ACEOF
37547 #define HAVE_ZAPTEL 1
37548 _ACEOF
37550 elif test -n "${ZAPTEL_MANDATORY}";
37551 then
37552 { echo "$as_me:$LINENO: ***" >&5
37553 echo "$as_me: ***" >&6;}
37554 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
37555 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
37556 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37557 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37558 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
37559 echo "$as_me: *** including --without-zaptel." >&6;}
37560 exit 1
37564 if test "${PBX_ZAPTEL}" = 1; then
37565 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
37566 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
37567 saved_cppflags="${CPPFLAGS}"
37568 if test "x${ZAPTEL_DIR}" != "x"; then
37569 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
37571 cat >conftest.$ac_ext <<_ACEOF
37573 /* confdefs.h. */
37574 _ACEOF
37575 cat confdefs.h >>conftest.$ac_ext
37576 cat >>conftest.$ac_ext <<_ACEOF
37577 /* end confdefs.h. */
37578 #include <zaptel/zaptel.h>
37580 main ()
37582 int foo = ZT_EVENT_REMOVED;
37584 return 0;
37587 _ACEOF
37588 rm -f conftest.$ac_objext
37589 if { (ac_try="$ac_compile"
37590 case "(($ac_try" in
37591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37592 *) ac_try_echo=$ac_try;;
37593 esac
37594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37595 (eval "$ac_compile") 2>conftest.er1
37596 ac_status=$?
37597 grep -v '^ *+' conftest.er1 >conftest.err
37598 rm -f conftest.er1
37599 cat conftest.err >&5
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } &&
37602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37603 { (case "(($ac_try" in
37604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37605 *) ac_try_echo=$ac_try;;
37606 esac
37607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37608 (eval "$ac_try") 2>&5
37609 ac_status=$?
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; } &&
37612 { ac_try='test -s conftest.$ac_objext'
37613 { (case "(($ac_try" in
37614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37615 *) ac_try_echo=$ac_try;;
37616 esac
37617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37618 (eval "$ac_try") 2>&5
37619 ac_status=$?
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; }; then
37622 { echo "$as_me:$LINENO: result: yes" >&5
37623 echo "${ECHO_T}yes" >&6; }
37624 ac_cv_zaptel_vldtmf="yes"
37626 else
37627 echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.$ac_ext >&5
37630 { echo "$as_me:$LINENO: result: no" >&5
37631 echo "${ECHO_T}no" >&6; }
37632 ac_cv_zaptel_vldtmf="no"
37637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37638 CPPFLAGS="${saved_cppflags}"
37639 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
37640 PBX_ZAPTEL_VLDTMF=1
37642 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
37643 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
37644 saved_cppflags="${CPPFLAGS}"
37645 if test "x${ZAPTEL_DIR}" != "x"; then
37646 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
37648 cat >conftest.$ac_ext <<_ACEOF
37650 /* confdefs.h. */
37651 _ACEOF
37652 cat confdefs.h >>conftest.$ac_ext
37653 cat >>conftest.$ac_ext <<_ACEOF
37654 /* end confdefs.h. */
37655 #include <zaptel/zaptel.h>
37657 main ()
37659 int foo = ZT_TCOP_ALLOCATE;
37661 return 0;
37664 _ACEOF
37665 rm -f conftest.$ac_objext
37666 if { (ac_try="$ac_compile"
37667 case "(($ac_try" in
37668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37669 *) ac_try_echo=$ac_try;;
37670 esac
37671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37672 (eval "$ac_compile") 2>conftest.er1
37673 ac_status=$?
37674 grep -v '^ *+' conftest.er1 >conftest.err
37675 rm -f conftest.er1
37676 cat conftest.err >&5
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); } &&
37679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37680 { (case "(($ac_try" in
37681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682 *) ac_try_echo=$ac_try;;
37683 esac
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685 (eval "$ac_try") 2>&5
37686 ac_status=$?
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); }; } &&
37689 { ac_try='test -s conftest.$ac_objext'
37690 { (case "(($ac_try" in
37691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37692 *) ac_try_echo=$ac_try;;
37693 esac
37694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37695 (eval "$ac_try") 2>&5
37696 ac_status=$?
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; }; then
37699 { echo "$as_me:$LINENO: result: yes" >&5
37700 echo "${ECHO_T}yes" >&6; }
37701 ac_cv_zaptel_transcode="yes"
37703 else
37704 echo "$as_me: failed program was:" >&5
37705 sed 's/^/| /' conftest.$ac_ext >&5
37707 { echo "$as_me:$LINENO: result: no" >&5
37708 echo "${ECHO_T}no" >&6; }
37709 ac_cv_zaptel_transcode="no"
37714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 CPPFLAGS="${saved_cppflags}"
37716 if test "${ac_cv_zaptel_transcode}" = "yes"; then
37717 PBX_ZAPTEL_TRANSCODE=1
37723 EDITLINE_LIB=""
37724 if test "x$TERMCAP_LIB" != "x" ; then
37725 EDITLINE_LIB="$TERMCAP_LIB"
37726 elif test "x$TINFO_LIB" != "x" ; then
37727 EDITLINE_LIB="$TINFO_LIB"
37728 elif test "x$CURSES_LIB" != "x" ; then
37729 EDITLINE_LIB="$CURSES_LIB"
37730 elif test "x$NCURSES_LIB" != "x" ; then
37731 EDITLINE_LIB="$NCURSES_LIB"
37732 else
37733 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
37734 echo "$as_me: error: *** termcap support not found" >&2;}
37735 { (exit 1); exit 1; }; }
37739 if test "${ac_cv_header_h323_h+set}" = set; then
37740 { echo "$as_me:$LINENO: checking for h323.h" >&5
37741 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
37742 if test "${ac_cv_header_h323_h+set}" = set; then
37743 echo $ECHO_N "(cached) $ECHO_C" >&6
37745 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
37746 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
37747 else
37748 # Is the header compilable?
37749 { echo "$as_me:$LINENO: checking h323.h usability" >&5
37750 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
37751 cat >conftest.$ac_ext <<_ACEOF
37752 /* confdefs.h. */
37753 _ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h. */
37757 $ac_includes_default
37758 #include <h323.h>
37759 _ACEOF
37760 rm -f conftest.$ac_objext
37761 if { (ac_try="$ac_compile"
37762 case "(($ac_try" in
37763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37764 *) ac_try_echo=$ac_try;;
37765 esac
37766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37767 (eval "$ac_compile") 2>conftest.er1
37768 ac_status=$?
37769 grep -v '^ *+' conftest.er1 >conftest.err
37770 rm -f conftest.er1
37771 cat conftest.err >&5
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } &&
37774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37775 { (case "(($ac_try" in
37776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37777 *) ac_try_echo=$ac_try;;
37778 esac
37779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37780 (eval "$ac_try") 2>&5
37781 ac_status=$?
37782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783 (exit $ac_status); }; } &&
37784 { ac_try='test -s conftest.$ac_objext'
37785 { (case "(($ac_try" in
37786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37787 *) ac_try_echo=$ac_try;;
37788 esac
37789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37790 (eval "$ac_try") 2>&5
37791 ac_status=$?
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; }; then
37794 ac_header_compiler=yes
37795 else
37796 echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37799 ac_header_compiler=no
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37804 echo "${ECHO_T}$ac_header_compiler" >&6; }
37806 # Is the header present?
37807 { echo "$as_me:$LINENO: checking h323.h presence" >&5
37808 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
37809 cat >conftest.$ac_ext <<_ACEOF
37810 /* confdefs.h. */
37811 _ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h. */
37815 #include <h323.h>
37816 _ACEOF
37817 if { (ac_try="$ac_cpp conftest.$ac_ext"
37818 case "(($ac_try" in
37819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820 *) ac_try_echo=$ac_try;;
37821 esac
37822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37824 ac_status=$?
37825 grep -v '^ *+' conftest.er1 >conftest.err
37826 rm -f conftest.er1
37827 cat conftest.err >&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } >/dev/null; then
37830 if test -s conftest.err; then
37831 ac_cpp_err=$ac_c_preproc_warn_flag
37832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37833 else
37834 ac_cpp_err=
37836 else
37837 ac_cpp_err=yes
37839 if test -z "$ac_cpp_err"; then
37840 ac_header_preproc=yes
37841 else
37842 echo "$as_me: failed program was:" >&5
37843 sed 's/^/| /' conftest.$ac_ext >&5
37845 ac_header_preproc=no
37848 rm -f conftest.err conftest.$ac_ext
37849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37850 echo "${ECHO_T}$ac_header_preproc" >&6; }
37852 # So? What about this header?
37853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37854 yes:no: )
37855 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
37856 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37857 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
37858 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
37859 ac_header_preproc=yes
37861 no:yes:* )
37862 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
37863 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
37864 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
37865 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
37866 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
37867 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
37868 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
37869 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
37870 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
37871 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
37872 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
37873 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
37874 ( cat <<\_ASBOX
37875 ## ------------------------------- ##
37876 ## Report this to www.asterisk.org ##
37877 ## ------------------------------- ##
37878 _ASBOX
37879 ) | sed "s/^/$as_me: WARNING: /" >&2
37881 esac
37882 { echo "$as_me:$LINENO: checking for h323.h" >&5
37883 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
37884 if test "${ac_cv_header_h323_h+set}" = set; then
37885 echo $ECHO_N "(cached) $ECHO_C" >&6
37886 else
37887 ac_cv_header_h323_h=$ac_header_preproc
37889 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
37890 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
37893 if test $ac_cv_header_h323_h = yes; then
37894 PBX_H323=1
37895 else
37896 PBX_H323=0
37902 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
37903 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
37904 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
37905 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
37906 echo $ECHO_N "(cached) $ECHO_C" >&6
37908 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
37909 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
37910 else
37911 # Is the header compilable?
37912 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
37913 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
37914 cat >conftest.$ac_ext <<_ACEOF
37915 /* confdefs.h. */
37916 _ACEOF
37917 cat confdefs.h >>conftest.$ac_ext
37918 cat >>conftest.$ac_ext <<_ACEOF
37919 /* end confdefs.h. */
37920 $ac_includes_default
37921 #include <linux/compiler.h>
37922 _ACEOF
37923 rm -f conftest.$ac_objext
37924 if { (ac_try="$ac_compile"
37925 case "(($ac_try" in
37926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927 *) ac_try_echo=$ac_try;;
37928 esac
37929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37930 (eval "$ac_compile") 2>conftest.er1
37931 ac_status=$?
37932 grep -v '^ *+' conftest.er1 >conftest.err
37933 rm -f conftest.er1
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
37937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37938 { (case "(($ac_try" in
37939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37940 *) ac_try_echo=$ac_try;;
37941 esac
37942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37943 (eval "$ac_try") 2>&5
37944 ac_status=$?
37945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946 (exit $ac_status); }; } &&
37947 { ac_try='test -s conftest.$ac_objext'
37948 { (case "(($ac_try" in
37949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950 *) ac_try_echo=$ac_try;;
37951 esac
37952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37953 (eval "$ac_try") 2>&5
37954 ac_status=$?
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); }; }; then
37957 ac_header_compiler=yes
37958 else
37959 echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37962 ac_header_compiler=no
37965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37967 echo "${ECHO_T}$ac_header_compiler" >&6; }
37969 # Is the header present?
37970 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
37971 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
37972 cat >conftest.$ac_ext <<_ACEOF
37973 /* confdefs.h. */
37974 _ACEOF
37975 cat confdefs.h >>conftest.$ac_ext
37976 cat >>conftest.$ac_ext <<_ACEOF
37977 /* end confdefs.h. */
37978 #include <linux/compiler.h>
37979 _ACEOF
37980 if { (ac_try="$ac_cpp conftest.$ac_ext"
37981 case "(($ac_try" in
37982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37983 *) ac_try_echo=$ac_try;;
37984 esac
37985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37987 ac_status=$?
37988 grep -v '^ *+' conftest.er1 >conftest.err
37989 rm -f conftest.er1
37990 cat conftest.err >&5
37991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992 (exit $ac_status); } >/dev/null; then
37993 if test -s conftest.err; then
37994 ac_cpp_err=$ac_c_preproc_warn_flag
37995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37996 else
37997 ac_cpp_err=
37999 else
38000 ac_cpp_err=yes
38002 if test -z "$ac_cpp_err"; then
38003 ac_header_preproc=yes
38004 else
38005 echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.$ac_ext >&5
38008 ac_header_preproc=no
38011 rm -f conftest.err conftest.$ac_ext
38012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38013 echo "${ECHO_T}$ac_header_preproc" >&6; }
38015 # So? What about this header?
38016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38017 yes:no: )
38018 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
38019 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38020 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
38021 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
38022 ac_header_preproc=yes
38024 no:yes:* )
38025 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
38026 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
38027 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
38028 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
38029 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
38030 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
38031 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
38032 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
38033 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
38034 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
38035 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
38036 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
38037 ( cat <<\_ASBOX
38038 ## ------------------------------- ##
38039 ## Report this to www.asterisk.org ##
38040 ## ------------------------------- ##
38041 _ASBOX
38042 ) | sed "s/^/$as_me: WARNING: /" >&2
38044 esac
38045 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
38046 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
38047 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
38048 echo $ECHO_N "(cached) $ECHO_C" >&6
38049 else
38050 ac_cv_header_linux_compiler_h=$ac_header_preproc
38052 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
38053 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
38056 if test $ac_cv_header_linux_compiler_h = yes; then
38058 cat >>confdefs.h <<_ACEOF
38059 #define HAVE_LINUX_COMPILER_H 1
38060 _ACEOF
38066 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
38067 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
38068 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38070 else
38071 cat >conftest.$ac_ext <<_ACEOF
38072 /* confdefs.h. */
38073 _ACEOF
38074 cat confdefs.h >>conftest.$ac_ext
38075 cat >>conftest.$ac_ext <<_ACEOF
38076 /* end confdefs.h. */
38078 #include <linux/version.h>
38079 #ifdef HAVE_LINUX_COMPILER_H
38080 #include <linux/compiler.h>
38081 #endif
38084 #include <linux/ixjuser.h>
38085 _ACEOF
38086 rm -f conftest.$ac_objext
38087 if { (ac_try="$ac_compile"
38088 case "(($ac_try" in
38089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38090 *) ac_try_echo=$ac_try;;
38091 esac
38092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38093 (eval "$ac_compile") 2>conftest.er1
38094 ac_status=$?
38095 grep -v '^ *+' conftest.er1 >conftest.err
38096 rm -f conftest.er1
38097 cat conftest.err >&5
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); } &&
38100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38101 { (case "(($ac_try" in
38102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38103 *) ac_try_echo=$ac_try;;
38104 esac
38105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38106 (eval "$ac_try") 2>&5
38107 ac_status=$?
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); }; } &&
38110 { ac_try='test -s conftest.$ac_objext'
38111 { (case "(($ac_try" in
38112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38113 *) ac_try_echo=$ac_try;;
38114 esac
38115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38116 (eval "$ac_try") 2>&5
38117 ac_status=$?
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); }; }; then
38120 ac_cv_header_linux_ixjuser_h=yes
38121 else
38122 echo "$as_me: failed program was:" >&5
38123 sed 's/^/| /' conftest.$ac_ext >&5
38125 ac_cv_header_linux_ixjuser_h=no
38128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38130 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
38131 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
38132 if test $ac_cv_header_linux_ixjuser_h = yes; then
38133 PBX_IXJUSER=1
38134 else
38135 PBX_IXJUSER=0
38141 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
38142 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
38143 if test "${ac_cv_file__sbin_launchd+set}" = set; then
38144 echo $ECHO_N "(cached) $ECHO_C" >&6
38145 else
38146 test "$cross_compiling" = yes &&
38147 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
38148 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
38149 { (exit 1); exit 1; }; }
38150 if test -r "/sbin/launchd"; then
38151 ac_cv_file__sbin_launchd=yes
38152 else
38153 ac_cv_file__sbin_launchd=no
38156 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
38157 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
38158 if test $ac_cv_file__sbin_launchd = yes; then
38160 cat >>confdefs.h <<\_ACEOF
38161 #define HAVE_SBIN_LAUNCHD 1
38162 _ACEOF
38167 PBX_GTK=0
38168 if test -n "$ac_tool_prefix"; then
38169 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
38170 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
38171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38173 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
38174 echo $ECHO_N "(cached) $ECHO_C" >&6
38175 else
38176 if test -n "$GTKCONFIG"; then
38177 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
38178 else
38179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38180 for as_dir in $PATH
38182 IFS=$as_save_IFS
38183 test -z "$as_dir" && as_dir=.
38184 for ac_exec_ext in '' $ac_executable_extensions; do
38185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38186 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
38187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38188 break 2
38190 done
38191 done
38192 IFS=$as_save_IFS
38196 GTKCONFIG=$ac_cv_prog_GTKCONFIG
38197 if test -n "$GTKCONFIG"; then
38198 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
38199 echo "${ECHO_T}$GTKCONFIG" >&6; }
38200 else
38201 { echo "$as_me:$LINENO: result: no" >&5
38202 echo "${ECHO_T}no" >&6; }
38207 if test -z "$ac_cv_prog_GTKCONFIG"; then
38208 ac_ct_GTKCONFIG=$GTKCONFIG
38209 # Extract the first word of "gtk-config", so it can be a program name with args.
38210 set dummy gtk-config; ac_word=$2
38211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38213 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
38214 echo $ECHO_N "(cached) $ECHO_C" >&6
38215 else
38216 if test -n "$ac_ct_GTKCONFIG"; then
38217 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
38218 else
38219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38220 for as_dir in $PATH
38222 IFS=$as_save_IFS
38223 test -z "$as_dir" && as_dir=.
38224 for ac_exec_ext in '' $ac_executable_extensions; do
38225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38226 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
38227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38228 break 2
38230 done
38231 done
38232 IFS=$as_save_IFS
38236 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
38237 if test -n "$ac_ct_GTKCONFIG"; then
38238 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
38239 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
38240 else
38241 { echo "$as_me:$LINENO: result: no" >&5
38242 echo "${ECHO_T}no" >&6; }
38245 if test "x$ac_ct_GTKCONFIG" = x; then
38246 GTKCONFIG="No"
38247 else
38248 case $cross_compiling:$ac_tool_warned in
38249 yes:)
38250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38251 whose name does not start with the host triplet. If you think this
38252 configuration is useful to you, please write to autoconf@gnu.org." >&5
38253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38254 whose name does not start with the host triplet. If you think this
38255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38256 ac_tool_warned=yes ;;
38257 esac
38258 GTKCONFIG=$ac_ct_GTKCONFIG
38260 else
38261 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
38264 if test ! "x${GTKCONFIG}" = xNo; then
38265 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
38266 GTK_LIB=$(${GTKCONFIG} --libs gthread)
38267 PBX_GTK=1
38269 cat >>confdefs.h <<\_ACEOF
38270 #define HAVE_GTK 1
38271 _ACEOF
38278 PBX_GTK2=0
38279 if test -n "$ac_tool_prefix"; then
38280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
38281 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
38282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38284 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
38285 echo $ECHO_N "(cached) $ECHO_C" >&6
38286 else
38287 if test -n "$PKGCONFIG"; then
38288 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
38289 else
38290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38291 for as_dir in $PATH
38293 IFS=$as_save_IFS
38294 test -z "$as_dir" && as_dir=.
38295 for ac_exec_ext in '' $ac_executable_extensions; do
38296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38297 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
38298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38299 break 2
38301 done
38302 done
38303 IFS=$as_save_IFS
38307 PKGCONFIG=$ac_cv_prog_PKGCONFIG
38308 if test -n "$PKGCONFIG"; then
38309 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
38310 echo "${ECHO_T}$PKGCONFIG" >&6; }
38311 else
38312 { echo "$as_me:$LINENO: result: no" >&5
38313 echo "${ECHO_T}no" >&6; }
38318 if test -z "$ac_cv_prog_PKGCONFIG"; then
38319 ac_ct_PKGCONFIG=$PKGCONFIG
38320 # Extract the first word of "pkg-config", so it can be a program name with args.
38321 set dummy pkg-config; ac_word=$2
38322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38324 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38326 else
38327 if test -n "$ac_ct_PKGCONFIG"; then
38328 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
38329 else
38330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38331 for as_dir in $PATH
38333 IFS=$as_save_IFS
38334 test -z "$as_dir" && as_dir=.
38335 for ac_exec_ext in '' $ac_executable_extensions; do
38336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38337 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
38338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38339 break 2
38341 done
38342 done
38343 IFS=$as_save_IFS
38347 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
38348 if test -n "$ac_ct_PKGCONFIG"; then
38349 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
38350 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
38351 else
38352 { echo "$as_me:$LINENO: result: no" >&5
38353 echo "${ECHO_T}no" >&6; }
38356 if test "x$ac_ct_PKGCONFIG" = x; then
38357 PKGCONFIG="No"
38358 else
38359 case $cross_compiling:$ac_tool_warned in
38360 yes:)
38361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38362 whose name does not start with the host triplet. If you think this
38363 configuration is useful to you, please write to autoconf@gnu.org." >&5
38364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38365 whose name does not start with the host triplet. If you think this
38366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38367 ac_tool_warned=yes ;;
38368 esac
38369 PKGCONFIG=$ac_ct_PKGCONFIG
38371 else
38372 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
38375 if test ! "x${PKGCONFIG}" = xNo; then
38376 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
38377 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
38378 PBX_GTK2=1
38380 cat >>confdefs.h <<\_ACEOF
38381 #define HAVE_GTK2 1
38382 _ACEOF
38389 if test "${USE_CURL}" != "no"; then
38390 if test -n "$ac_tool_prefix"; then
38391 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
38392 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
38393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38395 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
38396 echo $ECHO_N "(cached) $ECHO_C" >&6
38397 else
38398 case $CURL_CONFIG in
38399 [\\/]* | ?:[\\/]*)
38400 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
38403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38404 for as_dir in $PATH
38406 IFS=$as_save_IFS
38407 test -z "$as_dir" && as_dir=.
38408 for ac_exec_ext in '' $ac_executable_extensions; do
38409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38410 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38412 break 2
38414 done
38415 done
38416 IFS=$as_save_IFS
38419 esac
38421 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
38422 if test -n "$CURL_CONFIG"; then
38423 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
38424 echo "${ECHO_T}$CURL_CONFIG" >&6; }
38425 else
38426 { echo "$as_me:$LINENO: result: no" >&5
38427 echo "${ECHO_T}no" >&6; }
38432 if test -z "$ac_cv_path_CURL_CONFIG"; then
38433 ac_pt_CURL_CONFIG=$CURL_CONFIG
38434 # Extract the first word of "curl-config", so it can be a program name with args.
38435 set dummy curl-config; ac_word=$2
38436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38438 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
38439 echo $ECHO_N "(cached) $ECHO_C" >&6
38440 else
38441 case $ac_pt_CURL_CONFIG in
38442 [\\/]* | ?:[\\/]*)
38443 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
38446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38447 for as_dir in $PATH
38449 IFS=$as_save_IFS
38450 test -z "$as_dir" && as_dir=.
38451 for ac_exec_ext in '' $ac_executable_extensions; do
38452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38453 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38455 break 2
38457 done
38458 done
38459 IFS=$as_save_IFS
38462 esac
38464 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
38465 if test -n "$ac_pt_CURL_CONFIG"; then
38466 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
38467 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
38468 else
38469 { echo "$as_me:$LINENO: result: no" >&5
38470 echo "${ECHO_T}no" >&6; }
38473 if test "x$ac_pt_CURL_CONFIG" = x; then
38474 CURL_CONFIG="No"
38475 else
38476 case $cross_compiling:$ac_tool_warned in
38477 yes:)
38478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38479 whose name does not start with the host triplet. If you think this
38480 configuration is useful to you, please write to autoconf@gnu.org." >&5
38481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38482 whose name does not start with the host triplet. If you think this
38483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38484 ac_tool_warned=yes ;;
38485 esac
38486 CURL_CONFIG=$ac_pt_CURL_CONFIG
38488 else
38489 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
38492 if test ! x"${CURL_CONFIG}" = xNo; then
38493 # check for version
38494 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
38495 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
38496 CURL_LIB=$(${CURL_CONFIG} --libs)
38498 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
38499 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
38500 saved_cppflags="${CPPFLAGS}"
38501 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
38502 cat >conftest.$ac_ext <<_ACEOF
38503 /* confdefs.h. */
38504 _ACEOF
38505 cat confdefs.h >>conftest.$ac_ext
38506 cat >>conftest.$ac_ext <<_ACEOF
38507 /* end confdefs.h. */
38508 #include <curl/curl.h>
38510 main ()
38512 curl_version();
38514 return 0;
38517 _ACEOF
38518 rm -f conftest.$ac_objext
38519 if { (ac_try="$ac_compile"
38520 case "(($ac_try" in
38521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38522 *) ac_try_echo=$ac_try;;
38523 esac
38524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38525 (eval "$ac_compile") 2>conftest.er1
38526 ac_status=$?
38527 grep -v '^ *+' conftest.er1 >conftest.err
38528 rm -f conftest.er1
38529 cat conftest.err >&5
38530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531 (exit $ac_status); } &&
38532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38533 { (case "(($ac_try" in
38534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38535 *) ac_try_echo=$ac_try;;
38536 esac
38537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38538 (eval "$ac_try") 2>&5
38539 ac_status=$?
38540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541 (exit $ac_status); }; } &&
38542 { ac_try='test -s conftest.$ac_objext'
38543 { (case "(($ac_try" in
38544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545 *) ac_try_echo=$ac_try;;
38546 esac
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548 (eval "$ac_try") 2>&5
38549 ac_status=$?
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); }; }; then
38553 { echo "$as_me:$LINENO: result: yes" >&5
38554 echo "${ECHO_T}yes" >&6; }
38555 ac_cv_curl_h="yes"
38557 else
38558 echo "$as_me: failed program was:" >&5
38559 sed 's/^/| /' conftest.$ac_ext >&5
38562 { echo "$as_me:$LINENO: result: no" >&5
38563 echo "${ECHO_T}no" >&6; }
38564 ac_cv_curl_h="no"
38569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38570 CPPFLAGS="${saved_cppflags}"
38571 if test "${ac_cv_curl_h}" = "yes"; then
38572 PBX_CURL=1
38574 cat >>confdefs.h <<\_ACEOF
38575 #define HAVE_CURL 1
38576 _ACEOF
38583 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
38585 cat >confcache <<\_ACEOF
38586 # This file is a shell script that caches the results of configure
38587 # tests run on this system so they can be shared between configure
38588 # scripts and configure runs, see configure's option --config-cache.
38589 # It is not useful on other systems. If it contains results you don't
38590 # want to keep, you may remove or edit it.
38592 # config.status only pays attention to the cache file if you give it
38593 # the --recheck option to rerun configure.
38595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38597 # following values.
38599 _ACEOF
38601 # The following way of writing the cache mishandles newlines in values,
38602 # but we know of no workaround that is simple, portable, and efficient.
38603 # So, we kill variables containing newlines.
38604 # Ultrix sh set writes to stderr and can't be redirected directly,
38605 # and sets the high bit in the cache file unless we assign to the vars.
38607 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38608 eval ac_val=\$$ac_var
38609 case $ac_val in #(
38610 *${as_nl}*)
38611 case $ac_var in #(
38612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38614 esac
38615 case $ac_var in #(
38616 _ | IFS | as_nl) ;; #(
38617 *) $as_unset $ac_var ;;
38618 esac ;;
38619 esac
38620 done
38622 (set) 2>&1 |
38623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38624 *${as_nl}ac_space=\ *)
38625 # `set' does not quote correctly, so add quotes (double-quote
38626 # substitution turns \\\\ into \\, and sed turns \\ into \).
38627 sed -n \
38628 "s/'/'\\\\''/g;
38629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38630 ;; #(
38632 # `set' quotes correctly as required by POSIX, so do not add quotes.
38633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38635 esac |
38636 sort
38638 sed '
38639 /^ac_cv_env_/b end
38640 t clear
38641 :clear
38642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38643 t end
38644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38645 :end' >>confcache
38646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38647 if test -w "$cache_file"; then
38648 test "x$cache_file" != "x/dev/null" &&
38649 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38650 echo "$as_me: updating cache $cache_file" >&6;}
38651 cat confcache >$cache_file
38652 else
38653 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38654 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38657 rm -f confcache
38659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38660 # Let make expand exec_prefix.
38661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38663 DEFS=-DHAVE_CONFIG_H
38665 ac_libobjs=
38666 ac_ltlibobjs=
38667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38668 # 1. Remove the extension, and $U if already installed.
38669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38670 ac_i=`echo "$ac_i" | sed "$ac_script"`
38671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38672 # will be set to the directory where LIBOBJS objects are built.
38673 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38674 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38675 done
38676 LIBOBJS=$ac_libobjs
38678 LTLIBOBJS=$ac_ltlibobjs
38682 : ${CONFIG_STATUS=./config.status}
38683 ac_clean_files_save=$ac_clean_files
38684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38685 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38686 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38687 cat >$CONFIG_STATUS <<_ACEOF
38688 #! $SHELL
38689 # Generated by $as_me.
38690 # Run this file to recreate the current configuration.
38691 # Compiler output produced by configure, useful for debugging
38692 # configure, is in config.log if it exists.
38694 debug=false
38695 ac_cs_recheck=false
38696 ac_cs_silent=false
38697 SHELL=\${CONFIG_SHELL-$SHELL}
38698 _ACEOF
38700 cat >>$CONFIG_STATUS <<\_ACEOF
38701 ## --------------------- ##
38702 ## M4sh Initialization. ##
38703 ## --------------------- ##
38705 # Be Bourne compatible
38706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38707 emulate sh
38708 NULLCMD=:
38709 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38710 # is contrary to our usage. Disable this feature.
38711 alias -g '${1+"$@"}'='"$@"'
38712 setopt NO_GLOB_SUBST
38713 else
38714 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
38716 BIN_SH=xpg4; export BIN_SH # for Tru64
38717 DUALCASE=1; export DUALCASE # for MKS sh
38720 # PATH needs CR
38721 # Avoid depending upon Character Ranges.
38722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38725 as_cr_digits='0123456789'
38726 as_cr_alnum=$as_cr_Letters$as_cr_digits
38728 # The user is always right.
38729 if test "${PATH_SEPARATOR+set}" != set; then
38730 echo "#! /bin/sh" >conf$$.sh
38731 echo "exit 0" >>conf$$.sh
38732 chmod +x conf$$.sh
38733 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38734 PATH_SEPARATOR=';'
38735 else
38736 PATH_SEPARATOR=:
38738 rm -f conf$$.sh
38741 # Support unset when possible.
38742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38743 as_unset=unset
38744 else
38745 as_unset=false
38749 # IFS
38750 # We need space, tab and new line, in precisely that order. Quoting is
38751 # there to prevent editors from complaining about space-tab.
38752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38753 # splitting by setting IFS to empty value.)
38754 as_nl='
38756 IFS=" "" $as_nl"
38758 # Find who we are. Look in the path if we contain no directory separator.
38759 case $0 in
38760 *[\\/]* ) as_myself=$0 ;;
38761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38762 for as_dir in $PATH
38764 IFS=$as_save_IFS
38765 test -z "$as_dir" && as_dir=.
38766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38767 done
38768 IFS=$as_save_IFS
38771 esac
38772 # We did not find ourselves, most probably we were run as `sh COMMAND'
38773 # in which case we are not to be found in the path.
38774 if test "x$as_myself" = x; then
38775 as_myself=$0
38777 if test ! -f "$as_myself"; then
38778 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38779 { (exit 1); exit 1; }
38782 # Work around bugs in pre-3.0 UWIN ksh.
38783 for as_var in ENV MAIL MAILPATH
38784 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38785 done
38786 PS1='$ '
38787 PS2='> '
38788 PS4='+ '
38790 # NLS nuisances.
38791 for as_var in \
38792 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38793 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38794 LC_TELEPHONE LC_TIME
38796 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38797 eval $as_var=C; export $as_var
38798 else
38799 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38801 done
38803 # Required to use basename.
38804 if expr a : '\(a\)' >/dev/null 2>&1 &&
38805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38806 as_expr=expr
38807 else
38808 as_expr=false
38811 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38812 as_basename=basename
38813 else
38814 as_basename=false
38818 # Name of the executable.
38819 as_me=`$as_basename -- "$0" ||
38820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38821 X"$0" : 'X\(//\)$' \| \
38822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38823 echo X/"$0" |
38824 sed '/^.*\/\([^/][^/]*\)\/*$/{
38825 s//\1/
38828 /^X\/\(\/\/\)$/{
38829 s//\1/
38832 /^X\/\(\/\).*/{
38833 s//\1/
38836 s/.*/./; q'`
38838 # CDPATH.
38839 $as_unset CDPATH
38843 as_lineno_1=$LINENO
38844 as_lineno_2=$LINENO
38845 test "x$as_lineno_1" != "x$as_lineno_2" &&
38846 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38849 # uniformly replaced by the line number. The first 'sed' inserts a
38850 # line-number line after each line using $LINENO; the second 'sed'
38851 # does the real work. The second script uses 'N' to pair each
38852 # line-number line with the line containing $LINENO, and appends
38853 # trailing '-' during substitution so that $LINENO is not a special
38854 # case at line end.
38855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38856 # scripts with optimization help from Paolo Bonzini. Blame Lee
38857 # E. McMahon (1931-1989) for sed's syntax. :-)
38858 sed -n '
38860 /[$]LINENO/=
38861 ' <$as_myself |
38862 sed '
38863 s/[$]LINENO.*/&-/
38864 t lineno
38866 :lineno
38868 :loop
38869 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38870 t loop
38871 s/-\n.*//
38872 ' >$as_me.lineno &&
38873 chmod +x "$as_me.lineno" ||
38874 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38875 { (exit 1); exit 1; }; }
38877 # Don't try to exec as it changes $[0], causing all sort of problems
38878 # (the dirname of $[0] is not the place where we might find the
38879 # original and so on. Autoconf is especially sensitive to this).
38880 . "./$as_me.lineno"
38881 # Exit status is that of the last command.
38882 exit
38886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38887 as_dirname=dirname
38888 else
38889 as_dirname=false
38892 ECHO_C= ECHO_N= ECHO_T=
38893 case `echo -n x` in
38894 -n*)
38895 case `echo 'x\c'` in
38896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
38897 *) ECHO_C='\c';;
38898 esac;;
38900 ECHO_N='-n';;
38901 esac
38903 if expr a : '\(a\)' >/dev/null 2>&1 &&
38904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
38905 as_expr=expr
38906 else
38907 as_expr=false
38910 rm -f conf$$ conf$$.exe conf$$.file
38911 if test -d conf$$.dir; then
38912 rm -f conf$$.dir/conf$$.file
38913 else
38914 rm -f conf$$.dir
38915 mkdir conf$$.dir
38917 echo >conf$$.file
38918 if ln -s conf$$.file conf$$ 2>/dev/null; then
38919 as_ln_s='ln -s'
38920 # ... but there are two gotchas:
38921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38923 # In both cases, we have to default to `cp -p'.
38924 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38925 as_ln_s='cp -p'
38926 elif ln conf$$.file conf$$ 2>/dev/null; then
38927 as_ln_s=ln
38928 else
38929 as_ln_s='cp -p'
38931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38932 rmdir conf$$.dir 2>/dev/null
38934 if mkdir -p . 2>/dev/null; then
38935 as_mkdir_p=:
38936 else
38937 test -d ./-p && rmdir ./-p
38938 as_mkdir_p=false
38941 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
38942 # systems may use methods other than mode bits to determine executability.
38943 cat >conf$$.file <<_ASEOF
38944 #! /bin/sh
38945 exit 0
38946 _ASEOF
38947 chmod +x conf$$.file
38948 if test -x conf$$.file >/dev/null 2>&1; then
38949 as_executable_p="test -x"
38950 else
38951 as_executable_p=:
38953 rm -f conf$$.file
38955 # Sed expression to map a string onto a valid CPP name.
38956 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38958 # Sed expression to map a string onto a valid variable name.
38959 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38962 exec 6>&1
38964 # Save the log message, to keep $[0] and so on meaningful, and to
38965 # report actual input values of CONFIG_FILES etc. instead of their
38966 # values after options handling.
38967 ac_log="
38968 This file was extended by asterisk $as_me 1.4, which was
38969 generated by GNU Autoconf 2.60. Invocation command line was
38971 CONFIG_FILES = $CONFIG_FILES
38972 CONFIG_HEADERS = $CONFIG_HEADERS
38973 CONFIG_LINKS = $CONFIG_LINKS
38974 CONFIG_COMMANDS = $CONFIG_COMMANDS
38975 $ $0 $@
38977 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38980 _ACEOF
38982 cat >>$CONFIG_STATUS <<_ACEOF
38983 # Files that config.status was made for.
38984 config_files="$ac_config_files"
38985 config_headers="$ac_config_headers"
38987 _ACEOF
38989 cat >>$CONFIG_STATUS <<\_ACEOF
38990 ac_cs_usage="\
38991 \`$as_me' instantiates files from templates according to the
38992 current configuration.
38994 Usage: $0 [OPTIONS] [FILE]...
38996 -h, --help print this help, then exit
38997 -V, --version print version number, then exit
38998 -q, --quiet do not print progress messages
38999 -d, --debug don't remove temporary files
39000 --recheck update $as_me by reconfiguring in the same conditions
39001 --file=FILE[:TEMPLATE]
39002 instantiate the configuration file FILE
39003 --header=FILE[:TEMPLATE]
39004 instantiate the configuration header FILE
39006 Configuration files:
39007 $config_files
39009 Configuration headers:
39010 $config_headers
39012 Report bugs to <bug-autoconf@gnu.org>."
39014 _ACEOF
39015 cat >>$CONFIG_STATUS <<_ACEOF
39016 ac_cs_version="\\
39017 asterisk config.status 1.4
39018 configured by $0, generated by GNU Autoconf 2.60,
39019 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39021 Copyright (C) 2006 Free Software Foundation, Inc.
39022 This config.status script is free software; the Free Software Foundation
39023 gives unlimited permission to copy, distribute and modify it."
39025 ac_pwd='$ac_pwd'
39026 srcdir='$srcdir'
39027 INSTALL='$INSTALL'
39028 _ACEOF
39030 cat >>$CONFIG_STATUS <<\_ACEOF
39031 # If no file are specified by the user, then we need to provide default
39032 # value. By we need to know if files were specified by the user.
39033 ac_need_defaults=:
39034 while test $# != 0
39036 case $1 in
39037 --*=*)
39038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39039 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39040 ac_shift=:
39043 ac_option=$1
39044 ac_optarg=$2
39045 ac_shift=shift
39047 esac
39049 case $ac_option in
39050 # Handling of the options.
39051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39052 ac_cs_recheck=: ;;
39053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39054 echo "$ac_cs_version"; exit ;;
39055 --debug | --debu | --deb | --de | --d | -d )
39056 debug=: ;;
39057 --file | --fil | --fi | --f )
39058 $ac_shift
39059 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39060 ac_need_defaults=false;;
39061 --header | --heade | --head | --hea )
39062 $ac_shift
39063 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39064 ac_need_defaults=false;;
39065 --he | --h)
39066 # Conflict between --help and --header
39067 { echo "$as_me: error: ambiguous option: $1
39068 Try \`$0 --help' for more information." >&2
39069 { (exit 1); exit 1; }; };;
39070 --help | --hel | -h )
39071 echo "$ac_cs_usage"; exit ;;
39072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39073 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39074 ac_cs_silent=: ;;
39076 # This is an error.
39077 -*) { echo "$as_me: error: unrecognized option: $1
39078 Try \`$0 --help' for more information." >&2
39079 { (exit 1); exit 1; }; } ;;
39081 *) ac_config_targets="$ac_config_targets $1"
39082 ac_need_defaults=false ;;
39084 esac
39085 shift
39086 done
39088 ac_configure_extra_args=
39090 if $ac_cs_silent; then
39091 exec 6>/dev/null
39092 ac_configure_extra_args="$ac_configure_extra_args --silent"
39095 _ACEOF
39096 cat >>$CONFIG_STATUS <<_ACEOF
39097 if \$ac_cs_recheck; then
39098 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39099 CONFIG_SHELL=$SHELL
39100 export CONFIG_SHELL
39101 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39104 _ACEOF
39105 cat >>$CONFIG_STATUS <<\_ACEOF
39106 exec 5>>config.log
39108 echo
39109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39110 ## Running $as_me. ##
39111 _ASBOX
39112 echo "$ac_log"
39113 } >&5
39115 _ACEOF
39116 cat >>$CONFIG_STATUS <<_ACEOF
39117 _ACEOF
39119 cat >>$CONFIG_STATUS <<\_ACEOF
39121 # Handling of arguments.
39122 for ac_config_target in $ac_config_targets
39124 case $ac_config_target in
39125 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
39126 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
39127 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
39128 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
39130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39132 { (exit 1); exit 1; }; };;
39133 esac
39134 done
39137 # If the user did not use the arguments to specify the items to instantiate,
39138 # then the envvar interface is used. Set only those that are not.
39139 # We use the long form for the default assignment because of an extremely
39140 # bizarre bug on SunOS 4.1.3.
39141 if $ac_need_defaults; then
39142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39146 # Have a temporary directory for convenience. Make it in the build tree
39147 # simply because there is no reason against having it here, and in addition,
39148 # creating and moving files from /tmp can sometimes cause problems.
39149 # Hook for its removal unless debugging.
39150 # Note that there is a small window in which the directory will not be cleaned:
39151 # after its creation but before its name has been assigned to `$tmp'.
39152 $debug ||
39154 tmp=
39155 trap 'exit_status=$?
39156 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39158 trap '{ (exit 1); exit 1; }' 1 2 13 15
39160 # Create a (secure) tmp directory for tmp files.
39163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39164 test -n "$tmp" && test -d "$tmp"
39165 } ||
39167 tmp=./conf$$-$RANDOM
39168 (umask 077 && mkdir "$tmp")
39169 } ||
39171 echo "$me: cannot create a temporary directory in ." >&2
39172 { (exit 1); exit 1; }
39176 # Set up the sed scripts for CONFIG_FILES section.
39179 # No need to generate the scripts if there are no CONFIG_FILES.
39180 # This happens for instance when ./config.status config.h
39181 if test -n "$CONFIG_FILES"; then
39183 _ACEOF
39187 ac_delim='%!_!# '
39188 for ac_last_try in false false false false false :; do
39189 cat >conf$$subs.sed <<_ACEOF
39190 SHELL!$SHELL$ac_delim
39191 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39192 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39193 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39194 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39195 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39196 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39197 exec_prefix!$exec_prefix$ac_delim
39198 prefix!$prefix$ac_delim
39199 program_transform_name!$program_transform_name$ac_delim
39200 bindir!$bindir$ac_delim
39201 sbindir!$sbindir$ac_delim
39202 libexecdir!$libexecdir$ac_delim
39203 datarootdir!$datarootdir$ac_delim
39204 datadir!$datadir$ac_delim
39205 sysconfdir!$sysconfdir$ac_delim
39206 sharedstatedir!$sharedstatedir$ac_delim
39207 localstatedir!$localstatedir$ac_delim
39208 includedir!$includedir$ac_delim
39209 oldincludedir!$oldincludedir$ac_delim
39210 docdir!$docdir$ac_delim
39211 infodir!$infodir$ac_delim
39212 htmldir!$htmldir$ac_delim
39213 dvidir!$dvidir$ac_delim
39214 pdfdir!$pdfdir$ac_delim
39215 psdir!$psdir$ac_delim
39216 libdir!$libdir$ac_delim
39217 localedir!$localedir$ac_delim
39218 mandir!$mandir$ac_delim
39219 DEFS!$DEFS$ac_delim
39220 ECHO_C!$ECHO_C$ac_delim
39221 ECHO_N!$ECHO_N$ac_delim
39222 ECHO_T!$ECHO_T$ac_delim
39223 LIBS!$LIBS$ac_delim
39224 build_alias!$build_alias$ac_delim
39225 host_alias!$host_alias$ac_delim
39226 target_alias!$target_alias$ac_delim
39227 build!$build$ac_delim
39228 build_cpu!$build_cpu$ac_delim
39229 build_vendor!$build_vendor$ac_delim
39230 build_os!$build_os$ac_delim
39231 host!$host$ac_delim
39232 host_cpu!$host_cpu$ac_delim
39233 host_vendor!$host_vendor$ac_delim
39234 host_os!$host_os$ac_delim
39235 CC!$CC$ac_delim
39236 CFLAGS!$CFLAGS$ac_delim
39237 LDFLAGS!$LDFLAGS$ac_delim
39238 CPPFLAGS!$CPPFLAGS$ac_delim
39239 ac_ct_CC!$ac_ct_CC$ac_delim
39240 EXEEXT!$EXEEXT$ac_delim
39241 OBJEXT!$OBJEXT$ac_delim
39242 CPP!$CPP$ac_delim
39243 GREP!$GREP$ac_delim
39244 EGREP!$EGREP$ac_delim
39245 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
39246 BUILD_CPU!$BUILD_CPU$ac_delim
39247 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
39248 BUILD_OS!$BUILD_OS$ac_delim
39249 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
39250 HOST_CPU!$HOST_CPU$ac_delim
39251 HOST_VENDOR!$HOST_VENDOR$ac_delim
39252 HOST_OS!$HOST_OS$ac_delim
39253 OSARCH!$OSARCH$ac_delim
39254 UNAME!$UNAME$ac_delim
39255 PBX_OSREV!$PBX_OSREV$ac_delim
39256 CXX!$CXX$ac_delim
39257 LD!$LD$ac_delim
39258 RANLIB!$RANLIB$ac_delim
39259 CXXFLAGS!$CXXFLAGS$ac_delim
39260 ac_ct_CXX!$ac_ct_CXX$ac_delim
39261 CXXCPP!$CXXCPP$ac_delim
39262 SED!$SED$ac_delim
39263 AWK!$AWK$ac_delim
39264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39266 INSTALL_DATA!$INSTALL_DATA$ac_delim
39267 LN_S!$LN_S$ac_delim
39268 GNU_MAKE!$GNU_MAKE$ac_delim
39269 STRIP!$STRIP$ac_delim
39270 AR!$AR$ac_delim
39271 GNU_LD!$GNU_LD$ac_delim
39272 FIND!$FIND$ac_delim
39273 COMPRESS!$COMPRESS$ac_delim
39274 BASENAME!$BASENAME$ac_delim
39275 ID!$ID$ac_delim
39276 DIRNAME!$DIRNAME$ac_delim
39277 LN!$LN$ac_delim
39278 DOT!$DOT$ac_delim
39279 WGET!$WGET$ac_delim
39280 FETCH!$FETCH$ac_delim
39281 DOWNLOAD!$DOWNLOAD$ac_delim
39282 SOXMIX!$SOXMIX$ac_delim
39283 acx_pthread_config!$acx_pthread_config$ac_delim
39284 PTHREAD_CC!$PTHREAD_CC$ac_delim
39285 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
39286 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
39287 _ACEOF
39289 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39290 break
39291 elif $ac_last_try; then
39292 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39293 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39294 { (exit 1); exit 1; }; }
39295 else
39296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39298 done
39300 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39301 if test -n "$ac_eof"; then
39302 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39303 ac_eof=`expr $ac_eof + 1`
39306 cat >>$CONFIG_STATUS <<_ACEOF
39307 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39309 _ACEOF
39310 sed '
39311 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39312 s/^/s,@/; s/!/@,|#_!!_#|/
39315 s/'"$ac_delim"'$/,g/; t
39316 s/$/\\/; p
39317 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39318 ' >>$CONFIG_STATUS <conf$$subs.sed
39319 rm -f conf$$subs.sed
39320 cat >>$CONFIG_STATUS <<_ACEOF
39321 CEOF$ac_eof
39322 _ACEOF
39325 ac_delim='%!_!# '
39326 for ac_last_try in false false false false false :; do
39327 cat >conf$$subs.sed <<_ACEOF
39328 AST_DEVMODE!$AST_DEVMODE$ac_delim
39329 ALSA_LIB!$ALSA_LIB$ac_delim
39330 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
39331 ALSA_DIR!$ALSA_DIR$ac_delim
39332 PBX_ALSA!$PBX_ALSA$ac_delim
39333 CURL_LIB!$CURL_LIB$ac_delim
39334 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
39335 CURL_DIR!$CURL_DIR$ac_delim
39336 PBX_CURL!$PBX_CURL$ac_delim
39337 CAP_LIB!$CAP_LIB$ac_delim
39338 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
39339 CAP_DIR!$CAP_DIR$ac_delim
39340 PBX_CAP!$PBX_CAP$ac_delim
39341 CURSES_LIB!$CURSES_LIB$ac_delim
39342 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
39343 CURSES_DIR!$CURSES_DIR$ac_delim
39344 PBX_CURSES!$PBX_CURSES$ac_delim
39345 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
39346 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
39347 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
39348 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
39349 GSM_LIB!$GSM_LIB$ac_delim
39350 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
39351 GSM_DIR!$GSM_DIR$ac_delim
39352 PBX_GSM!$PBX_GSM$ac_delim
39353 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
39354 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
39355 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
39356 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
39357 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
39358 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
39359 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
39360 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
39361 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
39362 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
39363 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
39364 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
39365 KDE_LIB!$KDE_LIB$ac_delim
39366 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
39367 KDE_DIR!$KDE_DIR$ac_delim
39368 PBX_KDE!$PBX_KDE$ac_delim
39369 LTDL_LIB!$LTDL_LIB$ac_delim
39370 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
39371 LTDL_DIR!$LTDL_DIR$ac_delim
39372 PBX_LTDL!$PBX_LTDL$ac_delim
39373 MISDN_LIB!$MISDN_LIB$ac_delim
39374 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
39375 MISDN_DIR!$MISDN_DIR$ac_delim
39376 PBX_MISDN!$PBX_MISDN$ac_delim
39377 NBS_LIB!$NBS_LIB$ac_delim
39378 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
39379 NBS_DIR!$NBS_DIR$ac_delim
39380 PBX_NBS!$PBX_NBS$ac_delim
39381 NCURSES_LIB!$NCURSES_LIB$ac_delim
39382 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
39383 NCURSES_DIR!$NCURSES_DIR$ac_delim
39384 PBX_NCURSES!$PBX_NCURSES$ac_delim
39385 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
39386 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
39387 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
39388 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
39389 NEWT_LIB!$NEWT_LIB$ac_delim
39390 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
39391 NEWT_DIR!$NEWT_DIR$ac_delim
39392 PBX_NEWT!$PBX_NEWT$ac_delim
39393 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
39394 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
39395 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
39396 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
39397 OGG_LIB!$OGG_LIB$ac_delim
39398 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
39399 OGG_DIR!$OGG_DIR$ac_delim
39400 PBX_OGG!$PBX_OGG$ac_delim
39401 OSPTK_LIB!$OSPTK_LIB$ac_delim
39402 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
39403 OSPTK_DIR!$OSPTK_DIR$ac_delim
39404 PBX_OSPTK!$PBX_OSPTK$ac_delim
39405 OSS_LIB!$OSS_LIB$ac_delim
39406 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
39407 OSS_DIR!$OSS_DIR$ac_delim
39408 PBX_OSS!$PBX_OSS$ac_delim
39409 POPT_LIB!$POPT_LIB$ac_delim
39410 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
39411 POPT_DIR!$POPT_DIR$ac_delim
39412 PBX_POPT!$PBX_POPT$ac_delim
39413 PGSQL_LIB!$PGSQL_LIB$ac_delim
39414 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
39415 PGSQL_DIR!$PGSQL_DIR$ac_delim
39416 PBX_PGSQL!$PBX_PGSQL$ac_delim
39417 PRI_LIB!$PRI_LIB$ac_delim
39418 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
39419 PRI_DIR!$PRI_DIR$ac_delim
39420 PBX_PRI!$PBX_PRI$ac_delim
39421 PWLIB_LIB!$PWLIB_LIB$ac_delim
39422 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
39423 PWLIB_DIR!$PWLIB_DIR$ac_delim
39424 PBX_PWLIB!$PBX_PWLIB$ac_delim
39425 _ACEOF
39427 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39428 break
39429 elif $ac_last_try; then
39430 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39431 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39432 { (exit 1); exit 1; }; }
39433 else
39434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39436 done
39438 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39439 if test -n "$ac_eof"; then
39440 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39441 ac_eof=`expr $ac_eof + 1`
39444 cat >>$CONFIG_STATUS <<_ACEOF
39445 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39447 _ACEOF
39448 sed '
39449 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39450 s/^/s,@/; s/!/@,|#_!!_#|/
39453 s/'"$ac_delim"'$/,g/; t
39454 s/$/\\/; p
39455 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39456 ' >>$CONFIG_STATUS <conf$$subs.sed
39457 rm -f conf$$subs.sed
39458 cat >>$CONFIG_STATUS <<_ACEOF
39459 CEOF$ac_eof
39460 _ACEOF
39463 ac_delim='%!_!# '
39464 for ac_last_try in false false false false false :; do
39465 cat >conf$$subs.sed <<_ACEOF
39466 OPENH323_LIB!$OPENH323_LIB$ac_delim
39467 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
39468 OPENH323_DIR!$OPENH323_DIR$ac_delim
39469 PBX_OPENH323!$PBX_OPENH323$ac_delim
39470 RADIUS_LIB!$RADIUS_LIB$ac_delim
39471 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
39472 RADIUS_DIR!$RADIUS_DIR$ac_delim
39473 PBX_RADIUS!$PBX_RADIUS$ac_delim
39474 SPEEX_LIB!$SPEEX_LIB$ac_delim
39475 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
39476 SPEEX_DIR!$SPEEX_DIR$ac_delim
39477 PBX_SPEEX!$PBX_SPEEX$ac_delim
39478 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
39479 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
39480 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
39481 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
39482 SQLITE_LIB!$SQLITE_LIB$ac_delim
39483 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
39484 SQLITE_DIR!$SQLITE_DIR$ac_delim
39485 PBX_SQLITE!$PBX_SQLITE$ac_delim
39486 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
39487 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
39488 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
39489 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
39490 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
39491 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
39492 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
39493 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
39494 FREETDS_LIB!$FREETDS_LIB$ac_delim
39495 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
39496 FREETDS_DIR!$FREETDS_DIR$ac_delim
39497 PBX_FREETDS!$PBX_FREETDS$ac_delim
39498 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
39499 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
39500 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
39501 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
39502 TINFO_LIB!$TINFO_LIB$ac_delim
39503 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
39504 TINFO_DIR!$TINFO_DIR$ac_delim
39505 PBX_TINFO!$PBX_TINFO$ac_delim
39506 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
39507 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
39508 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
39509 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
39510 USB_LIB!$USB_LIB$ac_delim
39511 USB_INCLUDE!$USB_INCLUDE$ac_delim
39512 USB_DIR!$USB_DIR$ac_delim
39513 PBX_USB!$PBX_USB$ac_delim
39514 VORBIS_LIB!$VORBIS_LIB$ac_delim
39515 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
39516 VORBIS_DIR!$VORBIS_DIR$ac_delim
39517 PBX_VORBIS!$PBX_VORBIS$ac_delim
39518 VPB_LIB!$VPB_LIB$ac_delim
39519 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
39520 VPB_DIR!$VPB_DIR$ac_delim
39521 PBX_VPB!$PBX_VPB$ac_delim
39522 ZLIB_LIB!$ZLIB_LIB$ac_delim
39523 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
39524 ZLIB_DIR!$ZLIB_DIR$ac_delim
39525 PBX_ZLIB!$PBX_ZLIB$ac_delim
39526 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
39527 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
39528 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
39529 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
39530 ALLOCA!$ALLOCA$ac_delim
39531 LIBOBJS!$LIBOBJS$ac_delim
39532 POW_LIB!$POW_LIB$ac_delim
39533 GC_CFLAGS!$GC_CFLAGS$ac_delim
39534 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
39535 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
39536 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
39537 KDEINIT!$KDEINIT$ac_delim
39538 KDEDIR!$KDEDIR$ac_delim
39539 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
39540 PG_CONFIG!$PG_CONFIG$ac_delim
39541 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
39542 PWLIBDIR!$PWLIBDIR$ac_delim
39543 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
39544 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
39545 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
39546 OPENH323DIR!$OPENH323DIR$ac_delim
39547 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
39548 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
39549 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
39550 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
39551 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
39552 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
39553 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
39554 PBX_H323!$PBX_H323$ac_delim
39555 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
39556 GTKCONFIG!$GTKCONFIG$ac_delim
39557 PBX_GTK!$PBX_GTK$ac_delim
39558 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
39559 GTK_LIB!$GTK_LIB$ac_delim
39560 PKGCONFIG!$PKGCONFIG$ac_delim
39561 PBX_GTK2!$PBX_GTK2$ac_delim
39562 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
39563 _ACEOF
39565 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39566 break
39567 elif $ac_last_try; then
39568 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39569 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39570 { (exit 1); exit 1; }; }
39571 else
39572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39574 done
39576 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39577 if test -n "$ac_eof"; then
39578 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39579 ac_eof=`expr $ac_eof + 1`
39582 cat >>$CONFIG_STATUS <<_ACEOF
39583 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
39584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39585 _ACEOF
39586 sed '
39587 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39588 s/^/s,@/; s/!/@,|#_!!_#|/
39591 s/'"$ac_delim"'$/,g/; t
39592 s/$/\\/; p
39593 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39594 ' >>$CONFIG_STATUS <conf$$subs.sed
39595 rm -f conf$$subs.sed
39596 cat >>$CONFIG_STATUS <<_ACEOF
39597 CEOF$ac_eof
39598 _ACEOF
39601 ac_delim='%!_!# '
39602 for ac_last_try in false false false false false :; do
39603 cat >conf$$subs.sed <<_ACEOF
39604 GTK2_LIB!$GTK2_LIB$ac_delim
39605 CURL_CONFIG!$CURL_CONFIG$ac_delim
39606 LTLIBOBJS!$LTLIBOBJS$ac_delim
39607 _ACEOF
39609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
39610 break
39611 elif $ac_last_try; then
39612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39613 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39614 { (exit 1); exit 1; }; }
39615 else
39616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39618 done
39620 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39621 if test -n "$ac_eof"; then
39622 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39623 ac_eof=`expr $ac_eof + 1`
39626 cat >>$CONFIG_STATUS <<_ACEOF
39627 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
39628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39629 _ACEOF
39630 sed '
39631 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39632 s/^/s,@/; s/!/@,|#_!!_#|/
39635 s/'"$ac_delim"'$/,g/; t
39636 s/$/\\/; p
39637 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39638 ' >>$CONFIG_STATUS <conf$$subs.sed
39639 rm -f conf$$subs.sed
39640 cat >>$CONFIG_STATUS <<_ACEOF
39641 :end
39642 s/|#_!!_#|//g
39643 CEOF$ac_eof
39644 _ACEOF
39647 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39648 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39649 # trailing colons and then remove the whole line if VPATH becomes empty
39650 # (actually we leave an empty line to preserve line numbers).
39651 if test "x$srcdir" = x.; then
39652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39653 s/:*\$(srcdir):*/:/
39654 s/:*\${srcdir}:*/:/
39655 s/:*@srcdir@:*/:/
39656 s/^\([^=]*=[ ]*\):*/\1/
39657 s/:*$//
39658 s/^[^=]*=[ ]*$//
39662 cat >>$CONFIG_STATUS <<\_ACEOF
39663 fi # test -n "$CONFIG_FILES"
39666 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
39668 case $ac_tag in
39669 :[FHLC]) ac_mode=$ac_tag; continue;;
39670 esac
39671 case $ac_mode$ac_tag in
39672 :[FHL]*:*);;
39673 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39674 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39675 { (exit 1); exit 1; }; };;
39676 :[FH]-) ac_tag=-:-;;
39677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39678 esac
39679 ac_save_IFS=$IFS
39680 IFS=:
39681 set x $ac_tag
39682 IFS=$ac_save_IFS
39683 shift
39684 ac_file=$1
39685 shift
39687 case $ac_mode in
39688 :L) ac_source=$1;;
39689 :[FH])
39690 ac_file_inputs=
39691 for ac_f
39693 case $ac_f in
39694 -) ac_f="$tmp/stdin";;
39695 *) # Look for the file first in the build tree, then in the source tree
39696 # (if the path is not absolute). The absolute path cannot be DOS-style,
39697 # because $ac_f cannot contain `:'.
39698 test -f "$ac_f" ||
39699 case $ac_f in
39700 [\\/$]*) false;;
39701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39702 esac ||
39703 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39704 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39705 { (exit 1); exit 1; }; };;
39706 esac
39707 ac_file_inputs="$ac_file_inputs $ac_f"
39708 done
39710 # Let's still pretend it is `configure' which instantiates (i.e., don't
39711 # use $as_me), people would be surprised to read:
39712 # /* config.h. Generated by config.status. */
39713 configure_input="Generated from "`IFS=:
39714 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39715 if test x"$ac_file" != x-; then
39716 configure_input="$ac_file. $configure_input"
39717 { echo "$as_me:$LINENO: creating $ac_file" >&5
39718 echo "$as_me: creating $ac_file" >&6;}
39721 case $ac_tag in
39722 *:-:* | *:-) cat >"$tmp/stdin";;
39723 esac
39725 esac
39727 ac_dir=`$as_dirname -- "$ac_file" ||
39728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39729 X"$ac_file" : 'X\(//\)[^/]' \| \
39730 X"$ac_file" : 'X\(//\)$' \| \
39731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39732 echo X"$ac_file" |
39733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39734 s//\1/
39737 /^X\(\/\/\)[^/].*/{
39738 s//\1/
39741 /^X\(\/\/\)$/{
39742 s//\1/
39745 /^X\(\/\).*/{
39746 s//\1/
39749 s/.*/./; q'`
39750 { as_dir="$ac_dir"
39751 case $as_dir in #(
39752 -*) as_dir=./$as_dir;;
39753 esac
39754 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39755 as_dirs=
39756 while :; do
39757 case $as_dir in #(
39758 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39759 *) as_qdir=$as_dir;;
39760 esac
39761 as_dirs="'$as_qdir' $as_dirs"
39762 as_dir=`$as_dirname -- "$as_dir" ||
39763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39764 X"$as_dir" : 'X\(//\)[^/]' \| \
39765 X"$as_dir" : 'X\(//\)$' \| \
39766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39767 echo X"$as_dir" |
39768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39769 s//\1/
39772 /^X\(\/\/\)[^/].*/{
39773 s//\1/
39776 /^X\(\/\/\)$/{
39777 s//\1/
39780 /^X\(\/\).*/{
39781 s//\1/
39784 s/.*/./; q'`
39785 test -d "$as_dir" && break
39786 done
39787 test -z "$as_dirs" || eval "mkdir $as_dirs"
39788 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39789 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39790 { (exit 1); exit 1; }; }; }
39791 ac_builddir=.
39793 case "$ac_dir" in
39794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39797 # A ".." for each directory in $ac_dir_suffix.
39798 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39799 case $ac_top_builddir_sub in
39800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39802 esac ;;
39803 esac
39804 ac_abs_top_builddir=$ac_pwd
39805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39806 # for backward compatibility:
39807 ac_top_builddir=$ac_top_build_prefix
39809 case $srcdir in
39810 .) # We are building in place.
39811 ac_srcdir=.
39812 ac_top_srcdir=$ac_top_builddir_sub
39813 ac_abs_top_srcdir=$ac_pwd ;;
39814 [\\/]* | ?:[\\/]* ) # Absolute name.
39815 ac_srcdir=$srcdir$ac_dir_suffix;
39816 ac_top_srcdir=$srcdir
39817 ac_abs_top_srcdir=$srcdir ;;
39818 *) # Relative name.
39819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39820 ac_top_srcdir=$ac_top_build_prefix$srcdir
39821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39822 esac
39823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39826 case $ac_mode in
39829 # CONFIG_FILE
39832 case $INSTALL in
39833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39835 esac
39836 _ACEOF
39838 cat >>$CONFIG_STATUS <<\_ACEOF
39839 # If the template does not know about datarootdir, expand it.
39840 # FIXME: This hack should be removed a few years after 2.60.
39841 ac_datarootdir_hack=; ac_datarootdir_seen=
39843 case `sed -n '/datarootdir/ {
39847 /@datadir@/p
39848 /@docdir@/p
39849 /@infodir@/p
39850 /@localedir@/p
39851 /@mandir@/p
39852 ' $ac_file_inputs` in
39853 *datarootdir*) ac_datarootdir_seen=yes;;
39854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39855 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39856 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39857 _ACEOF
39858 cat >>$CONFIG_STATUS <<_ACEOF
39859 ac_datarootdir_hack='
39860 s&@datadir@&$datadir&g
39861 s&@docdir@&$docdir&g
39862 s&@infodir@&$infodir&g
39863 s&@localedir@&$localedir&g
39864 s&@mandir@&$mandir&g
39865 s&\\\${datarootdir}&$datarootdir&g' ;;
39866 esac
39867 _ACEOF
39869 # Neutralize VPATH when `$srcdir' = `.'.
39870 # Shell code in configure.ac might set extrasub.
39871 # FIXME: do we really want to maintain this feature?
39872 cat >>$CONFIG_STATUS <<_ACEOF
39873 sed "$ac_vpsub
39874 $extrasub
39875 _ACEOF
39876 cat >>$CONFIG_STATUS <<\_ACEOF
39878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39879 s&@configure_input@&$configure_input&;t t
39880 s&@top_builddir@&$ac_top_builddir_sub&;t t
39881 s&@srcdir@&$ac_srcdir&;t t
39882 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39883 s&@top_srcdir@&$ac_top_srcdir&;t t
39884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39885 s&@builddir@&$ac_builddir&;t t
39886 s&@abs_builddir@&$ac_abs_builddir&;t t
39887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39888 s&@INSTALL@&$ac_INSTALL&;t t
39889 $ac_datarootdir_hack
39890 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
39892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39896 which seems to be undefined. Please make sure it is defined." >&5
39897 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39898 which seems to be undefined. Please make sure it is defined." >&2;}
39900 rm -f "$tmp/stdin"
39901 case $ac_file in
39902 -) cat "$tmp/out"; rm -f "$tmp/out";;
39903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39904 esac
39908 # CONFIG_HEADER
39910 _ACEOF
39912 # Transform confdefs.h into a sed script `conftest.defines', that
39913 # substitutes the proper values into config.h.in to produce config.h.
39914 rm -f conftest.defines conftest.tail
39915 # First, append a space to every undef/define line, to ease matching.
39916 echo 's/$/ /' >conftest.defines
39917 # Then, protect against being on the right side of a sed subst, or in
39918 # an unquoted here document, in config.status. If some macros were
39919 # called several times there might be several #defines for the same
39920 # symbol, which is useless. But do not sort them, since the last
39921 # AC_DEFINE must be honored.
39922 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39923 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39924 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39925 # PARAMS is the parameter list in the macro definition--in most cases, it's
39926 # just an empty string.
39927 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
39928 ac_dB='\\)[ (].*,\\1define\\2'
39929 ac_dC=' '
39930 ac_dD=' ,'
39932 uniq confdefs.h |
39933 sed -n '
39934 t rset
39935 :rset
39936 s/^[ ]*#[ ]*define[ ][ ]*//
39937 t ok
39940 s/[\\&,]/\\&/g
39941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39943 ' >>conftest.defines
39945 # Remove the space that was appended to ease matching.
39946 # Then replace #undef with comments. This is necessary, for
39947 # example, in the case of _POSIX_SOURCE, which is predefined and required
39948 # on some systems where configure will not decide to define it.
39949 # (The regexp can be short, since the line contains either #define or #undef.)
39950 echo 's/ $//
39951 s,^[ #]*u.*,/* & */,' >>conftest.defines
39953 # Break up conftest.defines:
39954 ac_max_sed_lines=50
39956 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39957 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39958 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39959 # et cetera.
39960 ac_in='$ac_file_inputs'
39961 ac_out='"$tmp/out1"'
39962 ac_nxt='"$tmp/out2"'
39964 while :
39966 # Write a here document:
39967 cat >>$CONFIG_STATUS <<_ACEOF
39968 # First, check the format of the line:
39969 cat >"\$tmp/defines.sed" <<\\CEOF
39970 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
39971 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
39973 :def
39974 _ACEOF
39975 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39976 echo 'CEOF
39977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39978 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39979 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39980 grep . conftest.tail >/dev/null || break
39981 rm -f conftest.defines
39982 mv conftest.tail conftest.defines
39983 done
39984 rm -f conftest.defines conftest.tail
39986 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39987 cat >>$CONFIG_STATUS <<\_ACEOF
39988 if test x"$ac_file" != x-; then
39989 echo "/* $configure_input */" >"$tmp/config.h"
39990 cat "$ac_result" >>"$tmp/config.h"
39991 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39993 echo "$as_me: $ac_file is unchanged" >&6;}
39994 else
39995 rm -f $ac_file
39996 mv "$tmp/config.h" $ac_file
39998 else
39999 echo "/* $configure_input */"
40000 cat "$ac_result"
40002 rm -f "$tmp/out12"
40006 esac
40008 done # for ac_tag
40011 { (exit 0); exit 0; }
40012 _ACEOF
40013 chmod +x $CONFIG_STATUS
40014 ac_clean_files=$ac_clean_files_save
40017 # configure is writing to config.log, and then calls config.status.
40018 # config.status does its own redirection, appending to config.log.
40019 # Unfortunately, on DOS this fails, as config.log is still kept open
40020 # by configure, so config.status won't be able to write to it; its
40021 # output is simply discarded. So we exec the FD to /dev/null,
40022 # effectively closing config.log, so it can be properly (re)opened and
40023 # appended to by config.status. When coming back to configure, we
40024 # need to make the FD available again.
40025 if test "$no_create" != yes; then
40026 ac_cs_success=:
40027 ac_config_status_args=
40028 test "$silent" = yes &&
40029 ac_config_status_args="$ac_config_status_args --quiet"
40030 exec 5>/dev/null
40031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40032 exec 5>>config.log
40033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40034 # would make configure fail if this is the last instruction.
40035 $ac_cs_success || { (exit 1); exit 1; }
40039 if test "x${silent}" != "xyes" ; then
40040 echo
40041 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
40042 echo " .\$7\$7.. .7\$\$7:. "
40043 echo " .\$\$:. ,\$7.7 "
40044 echo " .\$7. 7\$\$\$\$ .\$\$77 "
40045 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
40046 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
40047 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
40048 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
40049 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
40050 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
40051 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
40052 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
40053 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
40054 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
40055 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
40056 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
40057 echo " \$\$\$\$\$ \$\$\$ "
40058 echo " \$\$\$\$7. \$\$ (TM) "
40059 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
40060 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
40061 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
40062 echo
40065 { echo "$as_me:$LINENO: Package configured for: " >&5
40066 echo "$as_me: Package configured for: " >&6;}
40067 { echo "$as_me:$LINENO: OS type : $host_os" >&5
40068 echo "$as_me: OS type : $host_os" >&6;}
40069 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
40070 echo "$as_me: Host CPU : $host_cpu" >&6;}
40071 if test "${cross_compiling}" = "yes"; then
40072 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
40073 echo "$as_me: Cross Compilation = YES" >&6;}