In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
[asterisk-bristuff.git] / configure
blobf296f05ae1ddd8c5c01c305b22d14c2e3534d51e
1 #! /bin/sh
2 # From configure.ac Revision: 92463 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 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 more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 emulate sh
22 NULLCMD=:
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
55 rm -f conf$$.sh
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
66 # IFS
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
71 as_nl='
73 IFS=" "" $as_nl"
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
88 esac
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
92 as_myself=$0
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
107 # NLS nuisances.
108 for as_var in \
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 LC_TELEPHONE LC_TIME
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 done
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
145 /^X\/\(\/\/\)$/{
146 s//\1/
149 /^X\/\(\/\).*/{
150 s//\1/
153 s/.*/./; q'`
155 # CDPATH.
156 $as_unset CDPATH
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
170 as_func_success () {
171 as_func_return 0
173 as_func_failure () {
174 as_func_return 1
176 as_func_ret_success () {
177 return 0
179 as_func_ret_failure () {
180 return 1
183 exitcode=0
184 if as_func_success; then
186 else
187 exitcode=1
188 echo as_func_success failed.
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 else
211 exitcode=1
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 emulate sh
247 NULLCMD=:
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
282 (as_func_return () {
283 (exit $1)
285 as_func_success () {
286 as_func_return 0
288 as_func_failure () {
289 as_func_return 1
291 as_func_ret_success () {
292 return 0
294 as_func_ret_failure () {
295 return 1
298 exitcode=0
299 if as_func_success; then
301 else
302 exitcode=1
303 echo as_func_success failed.
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 else
326 exitcode=1
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 _ASEOF
339 }; then
340 break
345 done
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 done
351 export CONFIG_SHELL
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
372 (exit \$1)
374 as_func_success () {
375 as_func_return 0
377 as_func_failure () {
378 as_func_return 1
380 as_func_ret_success () {
381 return 0
383 as_func_ret_failure () {
384 return 1
387 exitcode=0
388 if as_func_success; then
390 else
391 exitcode=1
392 echo as_func_success failed.
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 else
415 exitcode=1
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
423 echo message
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
439 # case at line end.
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
443 sed -n '
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
451 :lineno
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
485 ECHO_N='-n';;
486 esac
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
559 # Name of the host.
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 # Initializations.
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.4'
581 PACKAGE_STRING='asterisk 1.4'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_header_list=
622 ac_func_list=
623 ac_subst_vars='SHELL
624 PATH_SEPARATOR
625 PACKAGE_NAME
626 PACKAGE_TARNAME
627 PACKAGE_VERSION
628 PACKAGE_STRING
629 PACKAGE_BUGREPORT
630 exec_prefix
631 prefix
632 program_transform_name
633 bindir
634 sbindir
635 libexecdir
636 datarootdir
637 datadir
638 sysconfdir
639 sharedstatedir
640 localstatedir
641 includedir
642 oldincludedir
643 docdir
644 infodir
645 htmldir
646 dvidir
647 pdfdir
648 psdir
649 libdir
650 localedir
651 mandir
652 DEFS
653 ECHO_C
654 ECHO_N
655 ECHO_T
656 LIBS
657 build_alias
658 host_alias
659 target_alias
660 build
661 build_cpu
662 build_vendor
663 build_os
664 host
665 host_cpu
666 host_vendor
667 host_os
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
676 GREP
677 EGREP
678 BUILD_PLATFORM
679 BUILD_CPU
680 BUILD_VENDOR
681 BUILD_OS
682 HOST_PLATFORM
683 HOST_CPU
684 HOST_VENDOR
685 HOST_OS
686 OSARCH
687 UNAME
688 PBX_OSREV
691 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 STRIP
704 GNU_LD
705 FIND
706 COMPRESS
707 BASENAME
709 DIRNAME
712 WGET
713 FETCH
714 DOWNLOAD
715 acx_pthread_config
716 PTHREAD_CC
717 PTHREAD_LIBS
718 PTHREAD_CFLAGS
719 AST_DEVMODE
720 ALSA_LIB
721 ALSA_INCLUDE
722 ALSA_DIR
723 PBX_ALSA
724 CURL_LIB
725 CURL_INCLUDE
726 CURL_DIR
727 PBX_CURL
728 CURSES_LIB
729 CURSES_INCLUDE
730 CURSES_DIR
731 PBX_CURSES
732 GNUTLS_LIB
733 GNUTLS_INCLUDE
734 GNUTLS_DIR
735 PBX_GNUTLS
736 GSM_LIB
737 GSM_INCLUDE
738 GSM_DIR
739 PBX_GSM
740 IKSEMEL_LIB
741 IKSEMEL_INCLUDE
742 IKSEMEL_DIR
743 PBX_IKSEMEL
744 IMAP_TK_LIB
745 IMAP_TK_INCLUDE
746 IMAP_TK_DIR
747 PBX_IMAP_TK
748 ISDNNET_LIB
749 ISDNNET_INCLUDE
750 ISDNNET_DIR
751 PBX_ISDNNET
752 KDE_LIB
753 KDE_INCLUDE
754 KDE_DIR
755 PBX_KDE
756 LTDL_LIB
757 LTDL_INCLUDE
758 LTDL_DIR
759 PBX_LTDL
760 MISDN_LIB
761 MISDN_INCLUDE
762 MISDN_DIR
763 PBX_MISDN
764 NBS_LIB
765 NBS_INCLUDE
766 NBS_DIR
767 PBX_NBS
768 NCURSES_LIB
769 NCURSES_INCLUDE
770 NCURSES_DIR
771 PBX_NCURSES
772 NETSNMP_LIB
773 NETSNMP_INCLUDE
774 NETSNMP_DIR
775 PBX_NETSNMP
776 NEWT_LIB
777 NEWT_INCLUDE
778 NEWT_DIR
779 PBX_NEWT
780 UNIXODBC_LIB
781 UNIXODBC_INCLUDE
782 UNIXODBC_DIR
783 PBX_UNIXODBC
784 OGG_LIB
785 OGG_INCLUDE
786 OGG_DIR
787 PBX_OGG
788 OSPTK_LIB
789 OSPTK_INCLUDE
790 OSPTK_DIR
791 PBX_OSPTK
792 OSS_LIB
793 OSS_INCLUDE
794 OSS_DIR
795 PBX_OSS
796 POPT_LIB
797 POPT_INCLUDE
798 POPT_DIR
799 PBX_POPT
800 PGSQL_LIB
801 PGSQL_INCLUDE
802 PGSQL_DIR
803 PBX_PGSQL
804 PRI_LIB
805 PRI_INCLUDE
806 PRI_DIR
807 PBX_PRI
808 PWLIB_LIB
809 PWLIB_INCLUDE
810 PWLIB_DIR
811 PBX_PWLIB
812 OPENH323_LIB
813 OPENH323_INCLUDE
814 OPENH323_DIR
815 PBX_OPENH323
816 QT_LIB
817 QT_INCLUDE
818 QT_DIR
819 PBX_QT
820 RADIUS_LIB
821 RADIUS_INCLUDE
822 RADIUS_DIR
823 PBX_RADIUS
824 SPEEX_LIB
825 SPEEX_INCLUDE
826 SPEEX_DIR
827 PBX_SPEEX
828 SQLITE_LIB
829 SQLITE_INCLUDE
830 SQLITE_DIR
831 PBX_SQLITE
832 SUPPSERV_LIB
833 SUPPSERV_INCLUDE
834 SUPPSERV_DIR
835 PBX_SUPPSERV
836 OPENSSL_LIB
837 OPENSSL_INCLUDE
838 OPENSSL_DIR
839 PBX_OPENSSL
840 FREETDS_LIB
841 FREETDS_INCLUDE
842 FREETDS_DIR
843 PBX_FREETDS
844 TERMCAP_LIB
845 TERMCAP_INCLUDE
846 TERMCAP_DIR
847 PBX_TERMCAP
848 TINFO_LIB
849 TINFO_INCLUDE
850 TINFO_DIR
851 PBX_TINFO
852 TONEZONE_LIB
853 TONEZONE_INCLUDE
854 TONEZONE_DIR
855 PBX_TONEZONE
856 USB_LIB
857 USB_INCLUDE
858 USB_DIR
859 PBX_USB
860 VORBIS_LIB
861 VORBIS_INCLUDE
862 VORBIS_DIR
863 PBX_VORBIS
864 VPB_LIB
865 VPB_INCLUDE
866 VPB_DIR
867 PBX_VPB
868 ZLIB_LIB
869 ZLIB_INCLUDE
870 ZLIB_DIR
871 PBX_ZLIB
872 ZAPTEL_LIB
873 ZAPTEL_INCLUDE
874 ZAPTEL_DIR
875 PBX_ZAPTEL
876 ALLOCA
877 LIBOBJS
878 POW_LIB
879 GC_CFLAGS
880 GC_LDFLAGS
881 AST_DECLARATION_AFTER_STATEMENT
882 GSM_INTERNAL
883 KDEINIT
884 KDEDIR
885 NETSNMP_CONFIG
886 PG_CONFIG
887 PTLIB_CONFIG
888 PWLIBDIR
889 PWLIB_INCDIR
890 PWLIB_LIBDIR
891 PWLIB_PLATFORM
892 OPENH323DIR
893 OPENH323_INCDIR
894 OPENH323_LIBDIR
895 OPENH323_SUFFIX
896 OPENH323_BUILD
897 QTMOC
898 PBX_ZAPTEL_VLDTMF
899 PBX_ZAPTEL_TRANSCODE
900 EDITLINE_LIB
901 PBX_H323
902 PBX_IXJUSER
903 GTKCONFIG
904 PBX_GTK
905 GTK_INCLUDE
906 GTK_LIB
907 PKGCONFIG
908 PBX_GTK2
909 GTK2_INCLUDE
910 GTK2_LIB
911 CURL_CONFIG
912 LTLIBOBJS'
913 ac_subst_files=''
914 ac_precious_vars='build_alias
915 host_alias
916 target_alias
918 CFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
924 CXXFLAGS
926 CXXCPP'
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
975 ac_prev=
976 ac_dashdash=
977 for ac_option
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
982 ac_prev=
983 continue
986 case $ac_option in
987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 *) ac_optarg=yes ;;
989 esac
991 # Accept the important Cygnus configure options, so we can diagnose typos.
993 case $ac_dashdash$ac_option in
995 ac_dashdash=yes ;;
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 ac_prev=bindir ;;
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1017 -datadir | --datadir | --datadi | --datad)
1018 ac_prev=datadir ;;
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1029 -disable-* | --disable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=no ;;
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1048 -enable-* | --enable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055 eval enable_$ac_feature=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1245 -with-* | --with-*)
1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252 eval with_$ac_package=\$ac_optarg ;;
1254 -without-* | --without-*)
1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_$ac_package=no ;;
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1281 -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283 { (exit 1); exit 1; }; }
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291 { (exit 1); exit 1; }; }
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 esac
1304 done
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 { echo "$as_me: error: missing argument to $ac_option" >&2
1309 { (exit 1); exit 1; }; }
1312 # Be sure to have absolute directory names.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1325 done
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 { echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370 echo X"$0" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1484 cat <<\_ACEOF
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of asterisk 1.4:";;
1495 esac
1496 cat <<\_ACEOF
1498 Optional Features:
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-dev-mode Turn on developer mode
1502 --disable-largefile omit support for large files
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1509 --with-curl=PATH use cURL files in PATH
1510 --with-curses=PATH use curses files in PATH
1511 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1512 PATH
1513 --with-gsm=PATH use GSM files in PATH , or 'internal'
1514 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1515 --with-imap=PATH use UW IMAP Toolkit files in PATH
1516 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1517 --with-kde=PATH use KDE files in PATH
1518 --with-ltdl=PATH use libtool files in PATH
1519 --with-misdn=PATH use mISDN User Library files in PATH
1520 --with-nbs=PATH use Network Broadcast Sound files in PATH
1521 --with-ncurses=PATH use ncurses files in PATH
1522 --with-netsnmp=PATH use Net-SNMP files in PATH
1523 --with-newt=PATH use newt files in PATH
1524 --with-odbc=PATH use unixODBC files in PATH
1525 --with-ogg=PATH use OGG files in PATH
1526 --with-osptk=PATH use OSP Toolkit files in PATH
1527 --with-oss=PATH use Open Sound System files in PATH
1528 --with-popt=PATH use popt files in PATH
1529 --with-postgres=PATH use PostgreSQL files in PATH
1530 --with-pri=PATH use ISDN PRI files in PATH
1531 --with-pwlib=PATH use PWlib files in PATH
1532 --with-h323=PATH use OpenH323 files in PATH
1533 --with-qt=PATH use Qt files in PATH
1534 --with-radius=PATH use Radius Client files in PATH
1535 --with-speex=PATH use Speex files in PATH
1536 --with-sqlite=PATH use SQLite files in PATH
1537 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1538 --with-ssl=PATH use OpenSSL files in PATH
1539 --with-tds=PATH use FreeTDS files in PATH
1540 --with-termcap=PATH use Termcap files in PATH
1541 --with-tinfo=PATH use Term Info files in PATH
1542 --with-tonezone=PATH use tonezone files in PATH
1543 --with-usb=PATH use usb files in PATH
1544 --with-vorbis=PATH use Vorbis files in PATH
1545 --with-vpb=PATH use Voicetronix API files in PATH
1546 --with-z=PATH use zlib files in PATH
1547 --with-zaptel=PATH use Zaptel files in PATH
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 CXXCPP C++ preprocessor
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to <www.asterisk.org>.
1566 _ACEOF
1567 ac_status=$?
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" || continue
1574 ac_builddir=.
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1592 case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 asterisk configure 1.4
1627 generated by GNU Autoconf 2.61
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1634 "Asterisk"
1635 _ACEOF
1636 exit
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1642 It was created by asterisk $as_me 1.4, which was
1643 generated by GNU Autoconf 2.61. Invocation command line was
1645 $ $0 $@
1647 _ACEOF
1648 exec 5>>config.log
1650 cat <<_ASUNAME
1651 ## --------- ##
1652 ## Platform. ##
1653 ## --------- ##
1655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1672 _ASUNAME
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 echo "PATH: $as_dir"
1680 done
1681 IFS=$as_save_IFS
1683 } >&5
1685 cat >&5 <<_ACEOF
1688 ## ----------- ##
1689 ## Core tests. ##
1690 ## ----------- ##
1692 _ACEOF
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1700 ac_configure_args=
1701 ac_configure_args0=
1702 ac_configure_args1=
1703 ac_must_keep_next=false
1704 for ac_pass in 1 2
1706 for ac_arg
1708 case $ac_arg in
1709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711 | -silent | --silent | --silen | --sile | --sil)
1712 continue ;;
1713 *\'*)
1714 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 esac
1716 case $ac_pass in
1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720 if test $ac_must_keep_next = true; then
1721 ac_must_keep_next=false # Got value, back to normal.
1722 else
1723 case $ac_arg in
1724 *=* | --config-cache | -C | -disable-* | --disable-* \
1725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727 | -with-* | --with-* | -without-* | --without-* | --x)
1728 case "$ac_configure_args0 " in
1729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730 esac
1732 -* ) ac_must_keep_next=true ;;
1733 esac
1735 ac_configure_args="$ac_configure_args '$ac_arg'"
1737 esac
1738 done
1739 done
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749 # Save into config.log some information that might help in debugging.
1751 echo
1753 cat <<\_ASBOX
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1757 _ASBOX
1758 echo
1759 # The following way of writing the cache mishandles newlines in values,
1761 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762 eval ac_val=\$$ac_var
1763 case $ac_val in #(
1764 *${as_nl}*)
1765 case $ac_var in #(
1766 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1767 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1768 esac
1769 case $ac_var in #(
1770 _ | IFS | as_nl) ;; #(
1771 *) $as_unset $ac_var ;;
1772 esac ;;
1773 esac
1774 done
1775 (set) 2>&1 |
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1778 sed -n \
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781 ;; #(
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785 esac |
1786 sort
1788 echo
1790 cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795 echo
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1799 case $ac_val in
1800 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 esac
1802 echo "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1806 if test -n "$ac_subst_files"; then
1807 cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812 echo
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1816 case $ac_val in
1817 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 esac
1819 echo "$ac_var='\''$ac_val'\''"
1820 done | sort
1821 echo
1824 if test -s confdefs.h; then
1825 cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830 echo
1831 cat confdefs.h
1832 echo
1834 test "$ac_signal" != 0 &&
1835 echo "$as_me: caught signal $ac_signal"
1836 echo "$as_me: exit $exit_status"
1837 } >&5
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840 exit $exit_status
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer explicitly selected file to automatically selected ones.
1879 if test -n "$CONFIG_SITE"; then
1880 set x "$CONFIG_SITE"
1881 elif test "x$prefix" != xNONE; then
1882 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1883 else
1884 set x "$ac_default_prefix/share/config.site" \
1885 "$ac_default_prefix/etc/config.site"
1887 shift
1888 for ac_site_file
1890 if test -r "$ac_site_file"; then
1891 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1892 echo "$as_me: loading site script $ac_site_file" >&6;}
1893 sed 's/^/| /' "$ac_site_file" >&5
1894 . "$ac_site_file"
1896 done
1898 if test -r "$cache_file"; then
1899 # Some versions of bash will fail to source /dev/null (special
1900 # files actually), so we avoid doing that.
1901 if test -f "$cache_file"; then
1902 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1903 echo "$as_me: loading cache $cache_file" >&6;}
1904 case $cache_file in
1905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1906 *) . "./$cache_file";;
1907 esac
1909 else
1910 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1911 echo "$as_me: creating cache $cache_file" >&6;}
1912 >$cache_file
1915 ac_header_list="$ac_header_list sys/time.h"
1916 ac_header_list="$ac_header_list unistd.h"
1917 ac_func_list="$ac_func_list alarm"
1918 ac_header_list="$ac_header_list utime.h"
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1928 set,)
1929 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1932 ,set)
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,);;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1942 echo "$as_me: former value: $ac_old_val" >&2;}
1943 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1944 echo "$as_me: current value: $ac_new_val" >&2;}
1945 ac_cache_corrupted=:
1946 fi;;
1947 esac
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1950 case $ac_new_val in
1951 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1953 esac
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957 esac
1959 done
1960 if $ac_cache_corrupted; then
1961 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965 { (exit 1); exit 1; }; }
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 # cross-compile macros
2001 ac_aux_dir=
2002 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2003 if test -f "$ac_dir/install-sh"; then
2004 ac_aux_dir=$ac_dir
2005 ac_install_sh="$ac_aux_dir/install-sh -c"
2006 break
2007 elif test -f "$ac_dir/install.sh"; then
2008 ac_aux_dir=$ac_dir
2009 ac_install_sh="$ac_aux_dir/install.sh -c"
2010 break
2011 elif test -f "$ac_dir/shtool"; then
2012 ac_aux_dir=$ac_dir
2013 ac_install_sh="$ac_aux_dir/shtool install -c"
2014 break
2016 done
2017 if test -z "$ac_aux_dir"; then
2018 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2019 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2020 { (exit 1); exit 1; }; }
2023 # These three variables are undocumented and unsupported,
2024 # and are intended to be withdrawn in a future Autoconf release.
2025 # They can cause serious problems if a builder's source tree is in a directory
2026 # whose full name contains unusual characters.
2027 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2028 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2029 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2032 # Make sure we can run config.sub.
2033 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2034 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2035 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2036 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: checking build system type" >&5
2039 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_build+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 ac_build_alias=$build_alias
2044 test "x$ac_build_alias" = x &&
2045 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2046 test "x$ac_build_alias" = x &&
2047 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2048 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2049 { (exit 1); exit 1; }; }
2050 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2052 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2053 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2057 echo "${ECHO_T}$ac_cv_build" >&6; }
2058 case $ac_cv_build in
2059 *-*-*) ;;
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2061 echo "$as_me: error: invalid value of canonical build" >&2;}
2062 { (exit 1); exit 1; }; };;
2063 esac
2064 build=$ac_cv_build
2065 ac_save_IFS=$IFS; IFS='-'
2066 set x $ac_cv_build
2067 shift
2068 build_cpu=$1
2069 build_vendor=$2
2070 shift; shift
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2073 build_os=$*
2074 IFS=$ac_save_IFS
2075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2078 { echo "$as_me:$LINENO: checking host system type" >&5
2079 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_host+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test "x$host_alias" = x; then
2084 ac_cv_host=$ac_cv_build
2085 else
2086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2093 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2094 echo "${ECHO_T}$ac_cv_host" >&6; }
2095 case $ac_cv_host in
2096 *-*-*) ;;
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2098 echo "$as_me: error: invalid value of canonical host" >&2;}
2099 { (exit 1); exit 1; }; };;
2100 esac
2101 host=$ac_cv_host
2102 ac_save_IFS=$IFS; IFS='-'
2103 set x $ac_cv_host
2104 shift
2105 host_cpu=$1
2106 host_vendor=$2
2107 shift; shift
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2110 host_os=$*
2111 IFS=$ac_save_IFS
2112 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2116 # check existence of the package
2119 # specify output header file
2120 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2127 cat >>confdefs.h <<\_ACEOF
2128 #define _GNU_SOURCE 1
2129 _ACEOF
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2161 IFS=$as_save_IFS
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6; }
2169 else
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2176 if test -z "$ac_cv_prog_CC"; then
2177 ac_ct_CC=$CC
2178 # Extract the first word of "gcc", so it can be a program name with args.
2179 set dummy gcc; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2195 ac_cv_prog_ac_ct_CC="gcc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2199 done
2200 done
2201 IFS=$as_save_IFS
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6; }
2209 else
2210 { echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6; }
2214 if test "x$ac_ct_CC" = x; then
2215 CC=""
2216 else
2217 case $cross_compiling:$ac_tool_warned in
2218 yes:)
2219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet. If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&5
2222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225 ac_tool_warned=yes ;;
2226 esac
2227 CC=$ac_ct_CC
2229 else
2230 CC="$ac_cv_prog_CC"
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}cc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2256 done
2257 done
2258 IFS=$as_save_IFS
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2266 else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2274 if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285 ac_prog_rejected=no
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2295 continue
2297 ac_cv_prog_CC="cc"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2301 done
2302 done
2303 IFS=$as_save_IFS
2305 if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2308 shift
2309 if test $# != 0; then
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2313 shift
2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321 { echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6; }
2323 else
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 for ac_prog in cl.exe
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338 if test "${ac_cv_prog_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2355 done
2356 done
2357 IFS=$as_save_IFS
2361 CC=$ac_cv_prog_CC
2362 if test -n "$CC"; then
2363 { echo "$as_me:$LINENO: result: $CC" >&5
2364 echo "${ECHO_T}$CC" >&6; }
2365 else
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2371 test -n "$CC" && break
2372 done
2374 if test -z "$CC"; then
2375 ac_ct_CC=$CC
2376 for ac_prog in cl.exe
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2401 IFS=$as_save_IFS
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 else
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2415 test -n "$ac_ct_CC" && break
2416 done
2418 if test "x$ac_ct_CC" = x; then
2419 CC=""
2420 else
2421 case $cross_compiling:$ac_tool_warned in
2422 yes:)
2423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&5
2426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429 ac_tool_warned=yes ;;
2430 esac
2431 CC=$ac_ct_CC
2438 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2444 # Provide some information about the compiler.
2445 echo "$as_me:$LINENO: checking for C compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (ac_try="$ac_compiler --version >&5"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compiler --version >&5") 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (ac_try="$ac_compiler -v >&5"
2458 case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compiler -v >&5") 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2467 { (ac_try="$ac_compiler -V >&5"
2468 case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471 esac
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compiler -V >&5") 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2486 main ()
2490 return 0;
2492 _ACEOF
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2497 # of exeext.
2498 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2499 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502 # List of possible output files, starting from the most likely.
2503 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2504 # only as a last resort. b.out is created by i960 compilers.
2505 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2507 # The IRIX 6 linker writes into existing files which may not be
2508 # executable, retaining their permissions. Remove them first so a
2509 # subsequent execution test works.
2510 ac_rmfiles=
2511 for ac_file in $ac_files
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2516 esac
2517 done
2518 rm -f $ac_rmfiles
2520 if { (ac_try="$ac_link_default"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_link_default") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2531 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2532 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2533 # so that the user can short-circuit this test for compilers unknown to
2534 # Autoconf.
2535 for ac_file in $ac_files ''
2537 test -f "$ac_file" || continue
2538 case $ac_file in
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2541 [ab].out )
2542 # We found the default executable, but exeext='' is most
2543 # certainly right.
2544 break;;
2545 *.* )
2546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2547 then :; else
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 # We set ac_cv_exeext here because the later test for it is not
2551 # safe: cross compilers may not add the suffix if given an `-o'
2552 # argument, so we may need to know it at that point already.
2553 # Even if this section looks crufty: it has the advantage of
2554 # actually working.
2555 break;;
2557 break;;
2558 esac
2559 done
2560 test "$ac_cv_exeext" = no && ac_cv_exeext=
2562 else
2563 ac_file=''
2566 { echo "$as_me:$LINENO: result: $ac_file" >&5
2567 echo "${ECHO_T}$ac_file" >&6; }
2568 if test -z "$ac_file"; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2579 ac_exeext=$ac_cv_exeext
2581 # Check that the compiler produces executables we can run. If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586 # If not cross compiling, check that we can run a simple program.
2587 if test "$cross_compiling" != yes; then
2588 if { ac_try='./$ac_file'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 cross_compiling=no
2599 else
2600 if test "$cross_compiling" = maybe; then
2601 cross_compiling=yes
2602 else
2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2613 { echo "$as_me:$LINENO: result: yes" >&5
2614 echo "${ECHO_T}yes" >&6; }
2616 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2617 ac_clean_files=$ac_clean_files_save
2618 # Check that the compiler produces executables we can run. If not, either
2619 # the compiler is broken, or we cross compile.
2620 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2622 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623 echo "${ECHO_T}$cross_compiling" >&6; }
2625 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2627 if { (ac_try="$ac_link"
2628 case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_link") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; then
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2639 # work properly (i.e., refer to `conftest.exe'), while it won't with
2640 # `rm'.
2641 for ac_file in conftest.exe conftest conftest.*; do
2642 test -f "$ac_file" || continue
2643 case $ac_file in
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 break;;
2647 * ) break;;
2648 esac
2649 done
2650 else
2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2658 rm -f conftest$ac_cv_exeext
2659 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2662 rm -f conftest.$ac_ext
2663 EXEEXT=$ac_cv_exeext
2664 ac_exeext=$EXEEXT
2665 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2667 if test "${ac_cv_objext+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 main ()
2682 return 0;
2684 _ACEOF
2685 rm -f conftest.o conftest.obj
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; then
2696 for ac_file in conftest.o conftest.obj conftest.*; do
2697 test -f "$ac_file" || continue;
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 break;;
2702 esac
2703 done
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6; }
2719 OBJEXT=$ac_cv_objext
2720 ac_objext=$OBJEXT
2721 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2736 #ifndef __GNUC__
2737 choke me
2738 #endif
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.$ac_objext; then
2761 ac_compiler_gnu=yes
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 ac_compiler_gnu=no
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2778 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2779 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_cc_g+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 ac_save_c_werror_flag=$ac_c_werror_flag
2784 ac_c_werror_flag=yes
2785 ac_cv_prog_cc_g=no
2786 CFLAGS="-g"
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2795 main ()
2799 return 0;
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (ac_try="$ac_compile"
2804 case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_compile") 2>conftest.er1
2810 ac_status=$?
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
2819 ac_cv_prog_cc_g=yes
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 CFLAGS=""
2825 cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h. */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2833 main ()
2837 return 0;
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2863 CFLAGS="-g"
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 main ()
2876 return 0;
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (ac_try="$ac_compile"
2881 case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compile") 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
2896 ac_cv_prog_cc_g=yes
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_c_werror_flag=$ac_save_c_werror_flag
2913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2915 if test "$ac_test_CFLAGS" = set; then
2916 CFLAGS=$ac_save_CFLAGS
2917 elif test $ac_cv_prog_cc_g = yes; then
2918 if test "$GCC" = yes; then
2919 CFLAGS="-g -O2"
2920 else
2921 CFLAGS="-g"
2923 else
2924 if test "$GCC" = yes; then
2925 CFLAGS="-O2"
2926 else
2927 CFLAGS=
2930 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2931 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2932 if test "${ac_cv_prog_cc_c89+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 ac_cv_prog_cc_c89=no
2936 ac_save_CC=$CC
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 #include <stdarg.h>
2944 #include <stdio.h>
2945 #include <sys/types.h>
2946 #include <sys/stat.h>
2947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948 struct buf { int x; };
2949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950 static char *e (p, i)
2951 char **p;
2952 int i;
2954 return p[i];
2956 static char *f (char * (*g) (char **, int), char **p, ...)
2958 char *s;
2959 va_list v;
2960 va_start (v,p);
2961 s = g (p, va_arg (v,int));
2962 va_end (v);
2963 return s;
2966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
2969 as 'x'. The following induces an error, until -std is added to get
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
2972 that's true only with -std. */
2973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2977 #define FOO(x) 'x'
2978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980 int test (int i, double x);
2981 struct s1 {int (*f) (int a);};
2982 struct s2 {int (*f) (double a);};
2983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984 int argc;
2985 char **argv;
2987 main ()
2989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2991 return 0;
2993 _ACEOF
2994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2997 CC="$ac_save_CC $ac_arg"
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_prog_cc_c89=$ac_arg
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f core conftest.err conftest.$ac_objext
3024 test "x$ac_cv_prog_cc_c89" != "xno" && break
3025 done
3026 rm -f conftest.$ac_ext
3027 CC=$ac_save_CC
3030 # AC_CACHE_VAL
3031 case "x$ac_cv_prog_cc_c89" in
3033 { echo "$as_me:$LINENO: result: none needed" >&5
3034 echo "${ECHO_T}none needed" >&6; } ;;
3035 xno)
3036 { echo "$as_me:$LINENO: result: unsupported" >&5
3037 echo "${ECHO_T}unsupported" >&6; } ;;
3039 CC="$CC $ac_cv_prog_cc_c89"
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3041 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3042 esac
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3059 # On Suns, sometimes $CPP names a directory.
3060 if test -n "$CPP" && test -d "$CPP"; then
3061 CPP=
3063 if test -z "$CPP"; then
3064 if test "${ac_cv_prog_CPP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 # Double quotes because CPP needs to be expanded
3068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3070 ac_preproc_ok=false
3071 for ac_c_preproc_warn_flag in '' yes
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #ifdef __STDC__
3086 # include <limits.h>
3087 #else
3088 # include <assert.h>
3089 #endif
3090 Syntax error
3091 _ACEOF
3092 if { (ac_try="$ac_cpp conftest.$ac_ext"
3093 case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null && {
3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3107 }; then
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3114 continue
3117 rm -f conftest.err conftest.$ac_ext
3119 # OK, works on sane cases. Now check whether nonexistent headers
3120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3128 _ACEOF
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 }; then
3145 # Broken: success on invalid input.
3146 continue
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 # Passes both tests.
3152 ac_preproc_ok=:
3153 break
3156 rm -f conftest.err conftest.$ac_ext
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3162 break
3165 done
3166 ac_cv_prog_CPP=$CPP
3169 CPP=$ac_cv_prog_CPP
3170 else
3171 ac_cv_prog_CPP=$CPP
3173 { echo "$as_me:$LINENO: result: $CPP" >&5
3174 echo "${ECHO_T}$CPP" >&6; }
3175 ac_preproc_ok=false
3176 for ac_c_preproc_warn_flag in '' yes
3178 # Use a header file that comes with gcc, so configuring glibc
3179 # with a fresh cross-compiler works.
3180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181 # <limits.h> exists even on freestanding compilers.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #ifdef __STDC__
3191 # include <limits.h>
3192 #else
3193 # include <assert.h>
3194 #endif
3195 Syntax error
3196 _ACEOF
3197 if { (ac_try="$ac_cpp conftest.$ac_ext"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null && {
3210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3212 }; then
3214 else
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # Broken: fails on valid input.
3219 continue
3222 rm -f conftest.err conftest.$ac_ext
3224 # OK, works on sane cases. Now check whether nonexistent headers
3225 # can be detected and how.
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #include <ac_nonexistent.h>
3233 _ACEOF
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null && {
3247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 }; then
3250 # Broken: success on invalid input.
3251 continue
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 # Passes both tests.
3257 ac_preproc_ok=:
3258 break
3261 rm -f conftest.err conftest.$ac_ext
3263 done
3264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3265 rm -f conftest.err conftest.$ac_ext
3266 if $ac_preproc_ok; then
3268 else
3269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3284 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3285 if test "${ac_cv_path_GREP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 # Extract the first word of "grep ggrep" to use in msg output
3289 if test -z "$GREP"; then
3290 set dummy grep ggrep; ac_prog_name=$2
3291 if test "${ac_cv_path_GREP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 ac_path_GREP_found=false
3295 # Loop through the user's path and test for each of PROGNAME-LIST
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_prog in grep ggrep; do
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3305 # Check for GNU ac_path_GREP and select it if it is found.
3306 # Check for GNU $ac_path_GREP
3307 case `"$ac_path_GREP" --version 2>&1` in
3308 *GNU*)
3309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3311 ac_count=0
3312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3313 while :
3315 cat "conftest.in" "conftest.in" >"conftest.tmp"
3316 mv "conftest.tmp" "conftest.in"
3317 cp "conftest.in" "conftest.nl"
3318 echo 'GREP' >> "conftest.nl"
3319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321 ac_count=`expr $ac_count + 1`
3322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3323 # Best one so far, save it but keep looking for a better one
3324 ac_cv_path_GREP="$ac_path_GREP"
3325 ac_path_GREP_max=$ac_count
3327 # 10*(2^10) chars as input seems more than enough
3328 test $ac_count -gt 10 && break
3329 done
3330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 esac
3334 $ac_path_GREP_found && break 3
3335 done
3336 done
3338 done
3339 IFS=$as_save_IFS
3344 GREP="$ac_cv_path_GREP"
3345 if test -z "$GREP"; then
3346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3351 else
3352 ac_cv_path_GREP=$GREP
3357 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3358 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3359 GREP="$ac_cv_path_GREP"
3362 { echo "$as_me:$LINENO: checking for egrep" >&5
3363 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3364 if test "${ac_cv_path_EGREP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3368 then ac_cv_path_EGREP="$GREP -E"
3369 else
3370 # Extract the first word of "egrep" to use in msg output
3371 if test -z "$EGREP"; then
3372 set dummy egrep; ac_prog_name=$2
3373 if test "${ac_cv_path_EGREP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 ac_path_EGREP_found=false
3377 # Loop through the user's path and test for each of PROGNAME-LIST
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_prog in egrep; do
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3386 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3387 # Check for GNU ac_path_EGREP and select it if it is found.
3388 # Check for GNU $ac_path_EGREP
3389 case `"$ac_path_EGREP" --version 2>&1` in
3390 *GNU*)
3391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3393 ac_count=0
3394 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3395 while :
3397 cat "conftest.in" "conftest.in" >"conftest.tmp"
3398 mv "conftest.tmp" "conftest.in"
3399 cp "conftest.in" "conftest.nl"
3400 echo 'EGREP' >> "conftest.nl"
3401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3403 ac_count=`expr $ac_count + 1`
3404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3405 # Best one so far, save it but keep looking for a better one
3406 ac_cv_path_EGREP="$ac_path_EGREP"
3407 ac_path_EGREP_max=$ac_count
3409 # 10*(2^10) chars as input seems more than enough
3410 test $ac_count -gt 10 && break
3411 done
3412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413 esac
3416 $ac_path_EGREP_found && break 3
3417 done
3418 done
3420 done
3421 IFS=$as_save_IFS
3426 EGREP="$ac_cv_path_EGREP"
3427 if test -z "$EGREP"; then
3428 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3429 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3430 { (exit 1); exit 1; }; }
3433 else
3434 ac_cv_path_EGREP=$EGREP
3440 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3441 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3442 EGREP="$ac_cv_path_EGREP"
3446 { echo "$as_me:$LINENO: checking for AIX" >&5
3447 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #ifdef _AIX
3456 #endif
3458 _ACEOF
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 $EGREP "yes" >/dev/null 2>&1; then
3461 { echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6; }
3463 cat >>confdefs.h <<\_ACEOF
3464 #define _ALL_SOURCE 1
3465 _ACEOF
3467 else
3468 { echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6; }
3471 rm -f conftest*
3474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3476 if test "${ac_cv_header_stdc+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include <stdlib.h>
3486 #include <stdarg.h>
3487 #include <string.h>
3488 #include <float.h>
3491 main ()
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3515 ac_cv_header_stdc=yes
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_cv_header_stdc=no
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 if test $ac_cv_header_stdc = yes; then
3526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <string.h>
3535 _ACEOF
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 $EGREP "memchr" >/dev/null 2>&1; then
3539 else
3540 ac_cv_header_stdc=no
3542 rm -f conftest*
3546 if test $ac_cv_header_stdc = yes; then
3547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <stdlib.h>
3556 _ACEOF
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 $EGREP "free" >/dev/null 2>&1; then
3560 else
3561 ac_cv_header_stdc=no
3563 rm -f conftest*
3567 if test $ac_cv_header_stdc = yes; then
3568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3569 if test "$cross_compiling" = yes; then
3571 else
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <ctype.h>
3579 #include <stdlib.h>
3580 #if ((' ' & 0x0FF) == 0x020)
3581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3583 #else
3584 # define ISLOWER(c) \
3585 (('a' <= (c) && (c) <= 'i') \
3586 || ('j' <= (c) && (c) <= 'r') \
3587 || ('s' <= (c) && (c) <= 'z'))
3588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3589 #endif
3591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3593 main ()
3595 int i;
3596 for (i = 0; i < 256; i++)
3597 if (XOR (islower (i), ISLOWER (i))
3598 || toupper (i) != TOUPPER (i))
3599 return 2;
3600 return 0;
3602 _ACEOF
3603 rm -f conftest$ac_exeext
3604 if { (ac_try="$ac_link"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_link") 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
3624 else
3625 echo "$as_me: program exited with status $ac_status" >&5
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ( exit $ac_status )
3630 ac_cv_header_stdc=no
3632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3640 if test $ac_cv_header_stdc = yes; then
3642 cat >>confdefs.h <<\_ACEOF
3643 #define STDC_HEADERS 1
3644 _ACEOF
3648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3659 inttypes.h stdint.h unistd.h
3661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 $ac_includes_default
3675 #include <$ac_header>
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_compile") 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } && {
3691 test -z "$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3693 } && test -s conftest.$ac_objext; then
3694 eval "$as_ac_Header=yes"
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 eval "$as_ac_Header=no"
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_res=`eval echo '${'$as_ac_Header'}'`
3705 { echo "$as_me:$LINENO: result: $ac_res" >&5
3706 echo "${ECHO_T}$ac_res" >&6; }
3707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3708 cat >>confdefs.h <<_ACEOF
3709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3710 _ACEOF
3714 done
3717 if test "${ac_cv_header_minix_config_h+set}" = set; then
3718 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3719 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3720 if test "${ac_cv_header_minix_config_h+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3725 else
3726 # Is the header compilable?
3727 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3728 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3729 cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h. */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735 $ac_includes_default
3736 #include <minix/config.h>
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_compile") 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && {
3752 test -z "$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 } && test -s conftest.$ac_objext; then
3755 ac_header_compiler=yes
3756 else
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_header_compiler=no
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3765 echo "${ECHO_T}$ac_header_compiler" >&6; }
3767 # Is the header present?
3768 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3769 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <minix/config.h>
3777 _ACEOF
3778 if { (ac_try="$ac_cpp conftest.$ac_ext"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null && {
3791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 }; then
3794 ac_header_preproc=yes
3795 else
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_header_preproc=no
3802 rm -f conftest.err conftest.$ac_ext
3803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3804 echo "${ECHO_T}$ac_header_preproc" >&6; }
3806 # So? What about this header?
3807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3808 yes:no: )
3809 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3810 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3812 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3813 ac_header_preproc=yes
3815 no:yes:* )
3816 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3817 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3819 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3821 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3823 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3825 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3827 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3828 ( cat <<\_ASBOX
3829 ## ------------------------------- ##
3830 ## Report this to www.asterisk.org ##
3831 ## ------------------------------- ##
3832 _ASBOX
3833 ) | sed "s/^/$as_me: WARNING: /" >&2
3835 esac
3836 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3837 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3838 if test "${ac_cv_header_minix_config_h+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 ac_cv_header_minix_config_h=$ac_header_preproc
3843 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3844 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3847 if test $ac_cv_header_minix_config_h = yes; then
3848 MINIX=yes
3849 else
3850 MINIX=
3854 if test "$MINIX" = yes; then
3856 cat >>confdefs.h <<\_ACEOF
3857 #define _POSIX_SOURCE 1
3858 _ACEOF
3861 cat >>confdefs.h <<\_ACEOF
3862 #define _POSIX_1_SOURCE 2
3863 _ACEOF
3866 cat >>confdefs.h <<\_ACEOF
3867 #define _MINIX 1
3868 _ACEOF
3882 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3883 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3884 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3894 # define __EXTENSIONS__ 1
3895 $ac_includes_default
3897 main ()
3901 return 0;
3903 _ACEOF
3904 rm -f conftest.$ac_objext
3905 if { (ac_try="$ac_compile"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3912 ac_status=$?
3913 grep -v '^ *+' conftest.er1 >conftest.err
3914 rm -f conftest.er1
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3921 ac_cv_safe_to_define___extensions__=yes
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_safe_to_define___extensions__=no
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3932 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3933 test $ac_cv_safe_to_define___extensions__ = yes &&
3934 cat >>confdefs.h <<\_ACEOF
3935 #define __EXTENSIONS__ 1
3936 _ACEOF
3938 cat >>confdefs.h <<\_ACEOF
3939 #define _POSIX_PTHREAD_SEMANTICS 1
3940 _ACEOF
3942 cat >>confdefs.h <<\_ACEOF
3943 #define _TANDEM_SOURCE 1
3944 _ACEOF
3946 # note- does not work on FreeBSD
3948 case "${host_os}" in
3949 freebsd*)
3950 ac_default_prefix=/usr/local
3951 CPPFLAGS=-I/usr/local/include
3952 LDFLAGS=-L/usr/local/lib
3955 ac_default_prefix=/usr
3956 if test ${sysconfdir} = '${prefix}/etc'; then
3957 sysconfdir=/etc
3959 if test ${mandir} = '${prefix}/man'; then
3960 mandir=/usr/share/man
3963 esac
3965 if test ${localstatedir} = '${prefix}/var'; then
3966 localstatedir=/var
3969 BUILD_PLATFORM=${build}
3970 BUILD_CPU=${build_cpu}
3971 BUILD_VENDOR=${build_vendor}
3972 BUILD_OS=${build_os}
3979 HOST_PLATFORM=${host}
3980 HOST_CPU=${host_cpu}
3981 HOST_VENDOR=${host_vendor}
3982 HOST_OS=${host_os}
3989 case "${host_os}" in
3990 freebsd*)
3991 OSARCH=FreeBSD
3993 netbsd*)
3994 OSARCH=NetBSD
3996 openbsd*)
3997 OSARCH=OpenBSD
3999 solaris*)
4000 OSARCH=SunOS
4003 OSARCH=${HOST_OS}
4005 esac
4009 # check for uname
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}uname; ac_word=$2
4013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_UNAME+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 case $UNAME in
4019 [\\/]* | ?:[\\/]*)
4020 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4034 done
4035 done
4036 IFS=$as_save_IFS
4039 esac
4041 UNAME=$ac_cv_path_UNAME
4042 if test -n "$UNAME"; then
4043 { echo "$as_me:$LINENO: result: $UNAME" >&5
4044 echo "${ECHO_T}$UNAME" >&6; }
4045 else
4046 { echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6; }
4052 if test -z "$ac_cv_path_UNAME"; then
4053 ac_pt_UNAME=$UNAME
4054 # Extract the first word of "uname", so it can be a program name with args.
4055 set dummy uname; ac_word=$2
4056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 case $ac_pt_UNAME in
4062 [\\/]* | ?:[\\/]*)
4063 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4077 done
4078 done
4079 IFS=$as_save_IFS
4082 esac
4084 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4085 if test -n "$ac_pt_UNAME"; then
4086 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4087 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4088 else
4089 { echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6; }
4093 if test "x$ac_pt_UNAME" = x; then
4094 UNAME="No"
4095 else
4096 case $cross_compiling:$ac_tool_warned in
4097 yes:)
4098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4099 whose name does not start with the host triplet. If you think this
4100 configuration is useful to you, please write to autoconf@gnu.org." >&5
4101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4102 whose name does not start with the host triplet. If you think this
4103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4104 ac_tool_warned=yes ;;
4105 esac
4106 UNAME=$ac_pt_UNAME
4108 else
4109 UNAME="$ac_cv_path_UNAME"
4112 if test ! x"${UNAME}" = xNo; then
4113 PBX_OSREV=$(${UNAME} -r)
4123 # cross-compile checks
4124 if test "${cross_compiling}" = "yes";
4125 then
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4131 if test "${ac_cv_prog_CC+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156 { echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6; }
4158 else
4159 { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4165 if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc; ac_word=$2
4169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_ac_ct_CC="gcc"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4197 echo "${ECHO_T}$ac_ct_CC" >&6; }
4198 else
4199 { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4203 if test "x$ac_ct_CC" = x; then
4204 CC=":"
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet. If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&5
4211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214 ac_tool_warned=yes ;;
4215 esac
4216 CC=$ac_ct_CC
4218 else
4219 CC="$ac_cv_prog_CC"
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}g++; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_CXX+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 if test -n "$CXX"; then
4231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 CXX=$ac_cv_prog_CXX
4251 if test -n "$CXX"; then
4252 { echo "$as_me:$LINENO: result: $CXX" >&5
4253 echo "${ECHO_T}$CXX" >&6; }
4254 else
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4261 if test -z "$ac_cv_prog_CXX"; then
4262 ac_ct_CXX=$CXX
4263 # Extract the first word of "g++", so it can be a program name with args.
4264 set dummy g++; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 if test -n "$ac_ct_CXX"; then
4271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_CXX="g++"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4291 if test -n "$ac_ct_CXX"; then
4292 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4293 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4294 else
4295 { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4299 if test "x$ac_ct_CXX" = x; then
4300 CXX=":"
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4305 whose name does not start with the host triplet. If you think this
4306 configuration is useful to you, please write to autoconf@gnu.org." >&5
4307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet. If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4310 ac_tool_warned=yes ;;
4311 esac
4312 CXX=$ac_ct_CXX
4314 else
4315 CXX="$ac_cv_prog_CXX"
4318 if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}ld; ac_word=$2
4321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323 if test "${ac_cv_prog_LD+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 if test -n "$LD"; then
4327 ac_cv_prog_LD="$LD" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_LD="${ac_tool_prefix}ld"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4342 IFS=$as_save_IFS
4346 LD=$ac_cv_prog_LD
4347 if test -n "$LD"; then
4348 { echo "$as_me:$LINENO: result: $LD" >&5
4349 echo "${ECHO_T}$LD" >&6; }
4350 else
4351 { echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6; }
4357 if test -z "$ac_cv_prog_LD"; then
4358 ac_ct_LD=$LD
4359 # Extract the first word of "ld", so it can be a program name with args.
4360 set dummy ld; ac_word=$2
4361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 if test -n "$ac_ct_LD"; then
4367 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_LD="ld"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4382 IFS=$as_save_IFS
4386 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4387 if test -n "$ac_ct_LD"; then
4388 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4389 echo "${ECHO_T}$ac_ct_LD" >&6; }
4390 else
4391 { echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6; }
4395 if test "x$ac_ct_LD" = x; then
4396 LD=":"
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4401 whose name does not start with the host triplet. If you think this
4402 configuration is useful to you, please write to autoconf@gnu.org." >&5
4403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4404 whose name does not start with the host triplet. If you think this
4405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4406 ac_tool_warned=yes ;;
4407 esac
4408 LD=$ac_ct_LD
4410 else
4411 LD="$ac_cv_prog_LD"
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_RANLIB+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 if test -n "$RANLIB"; then
4423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4436 done
4437 done
4438 IFS=$as_save_IFS
4442 RANLIB=$ac_cv_prog_RANLIB
4443 if test -n "$RANLIB"; then
4444 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4445 echo "${ECHO_T}$RANLIB" >&6; }
4446 else
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4453 if test -z "$ac_cv_prog_RANLIB"; then
4454 ac_ct_RANLIB=$RANLIB
4455 # Extract the first word of "ranlib", so it can be a program name with args.
4456 set dummy ranlib; ac_word=$2
4457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4459 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 if test -n "$ac_ct_RANLIB"; then
4463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_ac_ct_RANLIB="ranlib"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4483 if test -n "$ac_ct_RANLIB"; then
4484 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4485 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4486 else
4487 { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4491 if test "x$ac_ct_RANLIB" = x; then
4492 RANLIB=":"
4493 else
4494 case $cross_compiling:$ac_tool_warned in
4495 yes:)
4496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4497 whose name does not start with the host triplet. If you think this
4498 configuration is useful to you, please write to autoconf@gnu.org." >&5
4499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4502 ac_tool_warned=yes ;;
4503 esac
4504 RANLIB=$ac_ct_RANLIB
4506 else
4507 RANLIB="$ac_cv_prog_RANLIB"
4512 # Checks for programs.
4513 ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4542 IFS=$as_save_IFS
4546 CC=$ac_cv_prog_CC
4547 if test -n "$CC"; then
4548 { echo "$as_me:$LINENO: result: $CC" >&5
4549 echo "${ECHO_T}$CC" >&6; }
4550 else
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4557 if test -z "$ac_cv_prog_CC"; then
4558 ac_ct_CC=$CC
4559 # Extract the first word of "gcc", so it can be a program name with args.
4560 set dummy gcc; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566 if test -n "$ac_ct_CC"; then
4567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_CC="gcc"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4582 IFS=$as_save_IFS
4586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4587 if test -n "$ac_ct_CC"; then
4588 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4589 echo "${ECHO_T}$ac_ct_CC" >&6; }
4590 else
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4595 if test "x$ac_ct_CC" = x; then
4596 CC=""
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet. If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&5
4603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet. If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608 CC=$ac_ct_CC
4610 else
4611 CC="$ac_cv_prog_CC"
4614 if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}cc; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_CC="${ac_tool_prefix}cc"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645 { echo "$as_me:$LINENO: result: $CC" >&5
4646 echo "${ECHO_T}$CC" >&6; }
4647 else
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4655 if test -z "$CC"; then
4656 # Extract the first word of "cc", so it can be a program name with args.
4657 set dummy cc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4665 else
4666 ac_prog_rejected=no
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4675 ac_prog_rejected=yes
4676 continue
4678 ac_cv_prog_CC="cc"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4686 if test $ac_prog_rejected = yes; then
4687 # We found a bogon in the path, so make sure we never use it.
4688 set dummy $ac_cv_prog_CC
4689 shift
4690 if test $# != 0; then
4691 # We chose a different compiler from the bogus one.
4692 # However, it has the same basename, so the bogon will be chosen
4693 # first if we set CC to just the basename; use the full file name.
4694 shift
4695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4700 CC=$ac_cv_prog_CC
4701 if test -n "$CC"; then
4702 { echo "$as_me:$LINENO: result: $CC" >&5
4703 echo "${ECHO_T}$CC" >&6; }
4704 else
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4711 if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 for ac_prog in cl.exe
4715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_prog_CC+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 CC=$ac_cv_prog_CC
4743 if test -n "$CC"; then
4744 { echo "$as_me:$LINENO: result: $CC" >&5
4745 echo "${ECHO_T}$CC" >&6; }
4746 else
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4752 test -n "$CC" && break
4753 done
4755 if test -z "$CC"; then
4756 ac_ct_CC=$CC
4757 for ac_prog in cl.exe
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760 set dummy $ac_prog; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 if test -n "$ac_ct_CC"; then
4767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_ac_ct_CC="$ac_prog"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4787 if test -n "$ac_ct_CC"; then
4788 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4789 echo "${ECHO_T}$ac_ct_CC" >&6; }
4790 else
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4796 test -n "$ac_ct_CC" && break
4797 done
4799 if test "x$ac_ct_CC" = x; then
4800 CC=""
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803 yes:)
4804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4805 whose name does not start with the host triplet. If you think this
4806 configuration is useful to you, please write to autoconf@gnu.org." >&5
4807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4808 whose name does not start with the host triplet. If you think this
4809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4810 ac_tool_warned=yes ;;
4811 esac
4812 CC=$ac_ct_CC
4819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4820 See \`config.log' for more details." >&5
4821 echo "$as_me: error: no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." >&2;}
4823 { (exit 1); exit 1; }; }
4825 # Provide some information about the compiler.
4826 echo "$as_me:$LINENO: checking for C compiler version" >&5
4827 ac_compiler=`set X $ac_compile; echo $2`
4828 { (ac_try="$ac_compiler --version >&5"
4829 case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_compiler --version >&5") 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }
4838 { (ac_try="$ac_compiler -v >&5"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_compiler -v >&5") 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 { (ac_try="$ac_compiler -V >&5"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compiler -V >&5") 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }
4859 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4860 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4861 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4872 main ()
4874 #ifndef __GNUC__
4875 choke me
4876 #endif
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_compile") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest.$ac_objext; then
4899 ac_compiler_gnu=yes
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 ac_compiler_gnu=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4911 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4913 GCC=`test $ac_compiler_gnu = yes && echo yes`
4914 ac_test_CFLAGS=${CFLAGS+set}
4915 ac_save_CFLAGS=$CFLAGS
4916 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4918 if test "${ac_cv_prog_cc_g+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 ac_save_c_werror_flag=$ac_c_werror_flag
4922 ac_c_werror_flag=yes
4923 ac_cv_prog_cc_g=no
4924 CFLAGS="-g"
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4933 main ()
4937 return 0;
4939 _ACEOF
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4942 case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_compile") 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } && {
4954 test -z "$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4956 } && test -s conftest.$ac_objext; then
4957 ac_cv_prog_cc_g=yes
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 CFLAGS=""
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4971 main ()
4975 return 0;
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (ac_try="$ac_compile"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ac_c_werror_flag=$ac_save_c_werror_flag
5001 CFLAGS="-g"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5010 main ()
5014 return 0;
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.$ac_objext; then
5034 ac_cv_prog_cc_g=yes
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 ac_c_werror_flag=$ac_save_c_werror_flag
5051 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5052 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5053 if test "$ac_test_CFLAGS" = set; then
5054 CFLAGS=$ac_save_CFLAGS
5055 elif test $ac_cv_prog_cc_g = yes; then
5056 if test "$GCC" = yes; then
5057 CFLAGS="-g -O2"
5058 else
5059 CFLAGS="-g"
5061 else
5062 if test "$GCC" = yes; then
5063 CFLAGS="-O2"
5064 else
5065 CFLAGS=
5068 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5069 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5070 if test "${ac_cv_prog_cc_c89+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_cv_prog_cc_c89=no
5074 ac_save_CC=$CC
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <stdarg.h>
5082 #include <stdio.h>
5083 #include <sys/types.h>
5084 #include <sys/stat.h>
5085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5086 struct buf { int x; };
5087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5088 static char *e (p, i)
5089 char **p;
5090 int i;
5092 return p[i];
5094 static char *f (char * (*g) (char **, int), char **p, ...)
5096 char *s;
5097 va_list v;
5098 va_start (v,p);
5099 s = g (p, va_arg (v,int));
5100 va_end (v);
5101 return s;
5104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5105 function prototypes and stuff, but not '\xHH' hex character constants.
5106 These don't provoke an error unfortunately, instead are silently treated
5107 as 'x'. The following induces an error, until -std is added to get
5108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5109 array size at least. It's necessary to write '\x00'==0 to get something
5110 that's true only with -std. */
5111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5114 inside strings and character constants. */
5115 #define FOO(x) 'x'
5116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5118 int test (int i, double x);
5119 struct s1 {int (*f) (int a);};
5120 struct s2 {int (*f) (double a);};
5121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5122 int argc;
5123 char **argv;
5125 main ()
5127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5129 return 0;
5131 _ACEOF
5132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5135 CC="$ac_save_CC $ac_arg"
5136 rm -f conftest.$ac_objext
5137 if { (ac_try="$ac_compile"
5138 case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_compile") 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && {
5150 test -z "$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5152 } && test -s conftest.$ac_objext; then
5153 ac_cv_prog_cc_c89=$ac_arg
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5161 rm -f core conftest.err conftest.$ac_objext
5162 test "x$ac_cv_prog_cc_c89" != "xno" && break
5163 done
5164 rm -f conftest.$ac_ext
5165 CC=$ac_save_CC
5168 # AC_CACHE_VAL
5169 case "x$ac_cv_prog_cc_c89" in
5171 { echo "$as_me:$LINENO: result: none needed" >&5
5172 echo "${ECHO_T}none needed" >&6; } ;;
5173 xno)
5174 { echo "$as_me:$LINENO: result: unsupported" >&5
5175 echo "${ECHO_T}unsupported" >&6; } ;;
5177 CC="$CC $ac_cv_prog_cc_c89"
5178 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5179 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5180 esac
5183 ac_ext=c
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189 ac_ext=cpp
5190 ac_cpp='$CXXCPP $CPPFLAGS'
5191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 if test -z "$CXX"; then
5195 if test -n "$CCC"; then
5196 CXX=$CCC
5197 else
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_CXX+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$CXX"; then
5209 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 CXX=$ac_cv_prog_CXX
5229 if test -n "$CXX"; then
5230 { echo "$as_me:$LINENO: result: $CXX" >&5
5231 echo "${ECHO_T}$CXX" >&6; }
5232 else
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5238 test -n "$CXX" && break
5239 done
5241 if test -z "$CXX"; then
5242 ac_ct_CXX=$CXX
5243 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5249 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -n "$ac_ct_CXX"; then
5253 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_CXX="$ac_prog"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5273 if test -n "$ac_ct_CXX"; then
5274 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5275 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5276 else
5277 { echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6; }
5282 test -n "$ac_ct_CXX" && break
5283 done
5285 if test "x$ac_ct_CXX" = x; then
5286 CXX="g++"
5287 else
5288 case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5291 whose name does not start with the host triplet. If you think this
5292 configuration is useful to you, please write to autoconf@gnu.org." >&5
5293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5294 whose name does not start with the host triplet. If you think this
5295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298 CXX=$ac_ct_CXX
5304 # Provide some information about the compiler.
5305 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5306 ac_compiler=`set X $ac_compile; echo $2`
5307 { (ac_try="$ac_compiler --version >&5"
5308 case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compiler --version >&5") 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5317 { (ac_try="$ac_compiler -v >&5"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler -v >&5") 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }
5327 { (ac_try="$ac_compiler -V >&5"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compiler -V >&5") 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }
5338 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5339 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5340 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5351 main ()
5353 #ifndef __GNUC__
5354 choke me
5355 #endif
5358 return 0;
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5363 case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5369 ac_status=$?
5370 grep -v '^ *+' conftest.er1 >conftest.err
5371 rm -f conftest.er1
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_cxx_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5378 ac_compiler_gnu=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_compiler_gnu=no
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5390 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5391 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5392 GXX=`test $ac_compiler_gnu = yes && echo yes`
5393 ac_test_CXXFLAGS=${CXXFLAGS+set}
5394 ac_save_CXXFLAGS=$CXXFLAGS
5395 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5396 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5397 if test "${ac_cv_prog_cxx_g+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5401 ac_cxx_werror_flag=yes
5402 ac_cv_prog_cxx_g=no
5403 CXXFLAGS="-g"
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5412 main ()
5416 return 0;
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (ac_try="$ac_compile"
5421 case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_compile") 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } && {
5433 test -z "$ac_cxx_werror_flag" ||
5434 test ! -s conftest.err
5435 } && test -s conftest.$ac_objext; then
5436 ac_cv_prog_cxx_g=yes
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 CXXFLAGS=""
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5450 main ()
5454 return 0;
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_cxx_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5480 CXXFLAGS="-g"
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5489 main ()
5493 return 0;
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_cxx_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_cv_prog_cxx_g=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5531 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5532 if test "$ac_test_CXXFLAGS" = set; then
5533 CXXFLAGS=$ac_save_CXXFLAGS
5534 elif test $ac_cv_prog_cxx_g = yes; then
5535 if test "$GXX" = yes; then
5536 CXXFLAGS="-g -O2"
5537 else
5538 CXXFLAGS="-g"
5540 else
5541 if test "$GXX" = yes; then
5542 CXXFLAGS="-O2"
5543 else
5544 CXXFLAGS=
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553 ac_ext=c
5554 ac_cpp='$CPP $CPPFLAGS'
5555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5559 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5560 # On Suns, sometimes $CPP names a directory.
5561 if test -n "$CPP" && test -d "$CPP"; then
5562 CPP=
5564 if test -z "$CPP"; then
5565 if test "${ac_cv_prog_CPP+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 # Double quotes because CPP needs to be expanded
5569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5571 ac_preproc_ok=false
5572 for ac_c_preproc_warn_flag in '' yes
5574 # Use a header file that comes with gcc, so configuring glibc
5575 # with a fresh cross-compiler works.
5576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 # <limits.h> exists even on freestanding compilers.
5578 # On the NeXT, cc -E runs the code through the compiler's parser,
5579 # not just through cpp. "Syntax error" is here to catch this case.
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #ifdef __STDC__
5587 # include <limits.h>
5588 #else
5589 # include <assert.h>
5590 #endif
5591 Syntax error
5592 _ACEOF
5593 if { (ac_try="$ac_cpp conftest.$ac_ext"
5594 case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null && {
5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 }; then
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 # Broken: fails on valid input.
5615 continue
5618 rm -f conftest.err conftest.$ac_ext
5620 # OK, works on sane cases. Now check whether nonexistent headers
5621 # can be detected and how.
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <ac_nonexistent.h>
5629 _ACEOF
5630 if { (ac_try="$ac_cpp conftest.$ac_ext"
5631 case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } >/dev/null && {
5643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 }; then
5646 # Broken: success on invalid input.
5647 continue
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 # Passes both tests.
5653 ac_preproc_ok=:
5654 break
5657 rm -f conftest.err conftest.$ac_ext
5659 done
5660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5661 rm -f conftest.err conftest.$ac_ext
5662 if $ac_preproc_ok; then
5663 break
5666 done
5667 ac_cv_prog_CPP=$CPP
5670 CPP=$ac_cv_prog_CPP
5671 else
5672 ac_cv_prog_CPP=$CPP
5674 { echo "$as_me:$LINENO: result: $CPP" >&5
5675 echo "${ECHO_T}$CPP" >&6; }
5676 ac_preproc_ok=false
5677 for ac_c_preproc_warn_flag in '' yes
5679 # Use a header file that comes with gcc, so configuring glibc
5680 # with a fresh cross-compiler works.
5681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5682 # <limits.h> exists even on freestanding compilers.
5683 # On the NeXT, cc -E runs the code through the compiler's parser,
5684 # not just through cpp. "Syntax error" is here to catch this case.
5685 cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 #ifdef __STDC__
5692 # include <limits.h>
5693 #else
5694 # include <assert.h>
5695 #endif
5696 Syntax error
5697 _ACEOF
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 }; then
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 # Broken: fails on valid input.
5720 continue
5723 rm -f conftest.err conftest.$ac_ext
5725 # OK, works on sane cases. Now check whether nonexistent headers
5726 # can be detected and how.
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <ac_nonexistent.h>
5734 _ACEOF
5735 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev/null && {
5748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 }; then
5751 # Broken: success on invalid input.
5752 continue
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 # Passes both tests.
5758 ac_preproc_ok=:
5759 break
5762 rm -f conftest.err conftest.$ac_ext
5764 done
5765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5766 rm -f conftest.err conftest.$ac_ext
5767 if $ac_preproc_ok; then
5769 else
5770 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5771 See \`config.log' for more details." >&5
5772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5773 See \`config.log' for more details." >&2;}
5774 { (exit 1); exit 1; }; }
5777 ac_ext=c
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783 ac_ext=cpp
5784 ac_cpp='$CXXCPP $CPPFLAGS'
5785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5788 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5789 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5790 if test -z "$CXXCPP"; then
5791 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 # Double quotes because CXXCPP needs to be expanded
5795 for CXXCPP in "$CXX -E" "/lib/cpp"
5797 ac_preproc_ok=false
5798 for ac_cxx_preproc_warn_flag in '' yes
5800 # Use a header file that comes with gcc, so configuring glibc
5801 # with a fresh cross-compiler works.
5802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803 # <limits.h> exists even on freestanding compilers.
5804 # On the NeXT, cc -E runs the code through the compiler's parser,
5805 # not just through cpp. "Syntax error" is here to catch this case.
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 #ifdef __STDC__
5813 # include <limits.h>
5814 #else
5815 # include <assert.h>
5816 #endif
5817 Syntax error
5818 _ACEOF
5819 if { (ac_try="$ac_cpp conftest.$ac_ext"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } >/dev/null && {
5832 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5833 test ! -s conftest.err
5834 }; then
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 # Broken: fails on valid input.
5841 continue
5844 rm -f conftest.err conftest.$ac_ext
5846 # OK, works on sane cases. Now check whether nonexistent headers
5847 # can be detected and how.
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <ac_nonexistent.h>
5855 _ACEOF
5856 if { (ac_try="$ac_cpp conftest.$ac_ext"
5857 case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860 esac
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } >/dev/null && {
5869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5870 test ! -s conftest.err
5871 }; then
5872 # Broken: success on invalid input.
5873 continue
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 # Passes both tests.
5879 ac_preproc_ok=:
5880 break
5883 rm -f conftest.err conftest.$ac_ext
5885 done
5886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5887 rm -f conftest.err conftest.$ac_ext
5888 if $ac_preproc_ok; then
5889 break
5892 done
5893 ac_cv_prog_CXXCPP=$CXXCPP
5896 CXXCPP=$ac_cv_prog_CXXCPP
5897 else
5898 ac_cv_prog_CXXCPP=$CXXCPP
5900 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5901 echo "${ECHO_T}$CXXCPP" >&6; }
5902 ac_preproc_ok=false
5903 for ac_cxx_preproc_warn_flag in '' yes
5905 # Use a header file that comes with gcc, so configuring glibc
5906 # with a fresh cross-compiler works.
5907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908 # <limits.h> exists even on freestanding compilers.
5909 # On the NeXT, cc -E runs the code through the compiler's parser,
5910 # not just through cpp. "Syntax error" is here to catch this case.
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #ifdef __STDC__
5918 # include <limits.h>
5919 #else
5920 # include <assert.h>
5921 #endif
5922 Syntax error
5923 _ACEOF
5924 if { (ac_try="$ac_cpp conftest.$ac_ext"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } >/dev/null && {
5937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5938 test ! -s conftest.err
5939 }; then
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 # Broken: fails on valid input.
5946 continue
5949 rm -f conftest.err conftest.$ac_ext
5951 # OK, works on sane cases. Now check whether nonexistent headers
5952 # can be detected and how.
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <ac_nonexistent.h>
5960 _ACEOF
5961 if { (ac_try="$ac_cpp conftest.$ac_ext"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev/null && {
5974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5975 test ! -s conftest.err
5976 }; then
5977 # Broken: success on invalid input.
5978 continue
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 # Passes both tests.
5984 ac_preproc_ok=:
5985 break
5988 rm -f conftest.err conftest.$ac_ext
5990 done
5991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5992 rm -f conftest.err conftest.$ac_ext
5993 if $ac_preproc_ok; then
5995 else
5996 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5997 See \`config.log' for more details." >&5
5998 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&2;}
6000 { (exit 1); exit 1; }; }
6003 ac_ext=c
6004 ac_cpp='$CPP $CPPFLAGS'
6005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6010 # the developers regenerating the configure script don't have to install libtool.
6011 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6012 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_SED+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6017 for ac_i in 1 2 3 4 5 6 7; do
6018 ac_script="$ac_script$as_nl$ac_script"
6019 done
6020 echo "$ac_script" | sed 99q >conftest.sed
6021 $as_unset ac_script || ac_script=
6022 # Extract the first word of "sed gsed" to use in msg output
6023 if test -z "$SED"; then
6024 set dummy sed gsed; ac_prog_name=$2
6025 if test "${ac_cv_path_SED+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 ac_path_SED_found=false
6029 # Loop through the user's path and test for each of PROGNAME-LIST
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_prog in sed gsed; do
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6038 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6039 # Check for GNU ac_path_SED and select it if it is found.
6040 # Check for GNU $ac_path_SED
6041 case `"$ac_path_SED" --version 2>&1` in
6042 *GNU*)
6043 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6045 ac_count=0
6046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6047 while :
6049 cat "conftest.in" "conftest.in" >"conftest.tmp"
6050 mv "conftest.tmp" "conftest.in"
6051 cp "conftest.in" "conftest.nl"
6052 echo '' >> "conftest.nl"
6053 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6055 ac_count=`expr $ac_count + 1`
6056 if test $ac_count -gt ${ac_path_SED_max-0}; then
6057 # Best one so far, save it but keep looking for a better one
6058 ac_cv_path_SED="$ac_path_SED"
6059 ac_path_SED_max=$ac_count
6061 # 10*(2^10) chars as input seems more than enough
6062 test $ac_count -gt 10 && break
6063 done
6064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6065 esac
6068 $ac_path_SED_found && break 3
6069 done
6070 done
6072 done
6073 IFS=$as_save_IFS
6078 SED="$ac_cv_path_SED"
6079 if test -z "$SED"; then
6080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6081 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6082 { (exit 1); exit 1; }; }
6085 else
6086 ac_cv_path_SED=$SED
6090 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6091 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6092 SED="$ac_cv_path_SED"
6093 rm -f conftest.sed
6095 { echo "$as_me:$LINENO: checking for egrep" >&5
6096 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_egrep+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6101 then ac_cv_prog_egrep='grep -E'
6102 else ac_cv_prog_egrep='egrep'
6105 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6106 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6107 EGREP=$ac_cv_prog_egrep
6111 # Check whether --with-gnu-ld was given.
6112 if test "${with_gnu_ld+set}" = set; then
6113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6114 else
6115 with_gnu_ld=no
6118 ac_prog=ld
6119 if test "$GCC" = yes; then
6120 # Check if gcc -print-prog-name=ld gives a path.
6121 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6123 case $host in
6124 *-*-mingw*)
6125 # gcc leaves a trailing carriage return which upsets mingw
6126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6129 esac
6130 case $ac_prog in
6131 # Accept absolute paths.
6132 [\\/]* | ?:[\\/]*)
6133 re_direlt='/[^/][^/]*/\.\./'
6134 # Canonicalize the pathname of ld
6135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6138 done
6139 test -z "$LD" && LD="$ac_prog"
6142 # If it fails, then pretend we aren't using GCC.
6143 ac_prog=ld
6146 # If it is relative, then search for the first ld in PATH.
6147 with_gnu_ld=unknown
6149 esac
6150 elif test "$with_gnu_ld" = yes; then
6151 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6153 else
6154 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6157 if test "${lt_cv_path_LD+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 if test -z "$LD"; then
6161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6162 for ac_dir in $PATH; do
6163 IFS="$lt_save_ifs"
6164 test -z "$ac_dir" && ac_dir=.
6165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6166 lt_cv_path_LD="$ac_dir/$ac_prog"
6167 # Check to see if the program is GNU ld. I'd rather use --version,
6168 # but apparently some variants of GNU ld only accept -v.
6169 # Break only if it was the GNU/non-GNU ld that we prefer.
6170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6171 *GNU* | *'with BFD'*)
6172 test "$with_gnu_ld" != no && break
6175 test "$with_gnu_ld" != yes && break
6177 esac
6179 done
6180 IFS="$lt_save_ifs"
6181 else
6182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6186 LD="$lt_cv_path_LD"
6187 if test -n "$LD"; then
6188 { echo "$as_me:$LINENO: result: $LD" >&5
6189 echo "${ECHO_T}$LD" >&6; }
6190 else
6191 { echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6; }
6194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6196 { (exit 1); exit 1; }; }
6197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6203 case `$LD -v 2>&1 </dev/null` in
6204 *GNU* | *'with BFD'*)
6205 lt_cv_prog_gnu_ld=yes
6208 lt_cv_prog_gnu_ld=no
6210 esac
6212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6214 with_gnu_ld=$lt_cv_prog_gnu_ld
6216 # note - does not work on freebsd
6217 for ac_prog in gawk mawk nawk awk
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_prog_AWK+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 if test -n "$AWK"; then
6227 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_AWK="$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6240 done
6241 done
6242 IFS=$as_save_IFS
6246 AWK=$ac_cv_prog_AWK
6247 if test -n "$AWK"; then
6248 { echo "$as_me:$LINENO: result: $AWK" >&5
6249 echo "${ECHO_T}$AWK" >&6; }
6250 else
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6256 test -n "$AWK" && break
6257 done
6259 # Find a good install program. We prefer a C program (faster),
6260 # so one script is as good as another. But avoid the broken or
6261 # incompatible versions:
6262 # SysV /etc/install, /usr/sbin/install
6263 # SunOS /usr/etc/install
6264 # IRIX /sbin/install
6265 # AIX /bin/install
6266 # AmigaOS /C/install, which installs bootblocks on floppy discs
6267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6270 # OS/2's system install, which has a completely different semantic
6271 # ./install, which can be erroneously created by make from ./install.sh.
6272 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6274 if test -z "$INSTALL"; then
6275 if test "${ac_cv_path_install+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 # Account for people who put trailing slashes in PATH elements.
6284 case $as_dir/ in
6285 ./ | .// | /cC/* | \
6286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6288 /usr/ucb/* ) ;;
6290 # OSF1 and SCO ODT 3.0 have their own names for install.
6291 # Don't use installbsd from OSF since it installs stuff as root
6292 # by default.
6293 for ac_prog in ginstall scoinst install; do
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6296 if test $ac_prog = install &&
6297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6298 # AIX install. It has an incompatible calling convention.
6300 elif test $ac_prog = install &&
6301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6302 # program-specific install script used by HP pwplus--don't use.
6304 else
6305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6306 break 3
6309 done
6310 done
6312 esac
6313 done
6314 IFS=$as_save_IFS
6318 if test "${ac_cv_path_install+set}" = set; then
6319 INSTALL=$ac_cv_path_install
6320 else
6321 # As a last resort, use the slow shell script. Don't cache a
6322 # value for INSTALL within a source directory, because that will
6323 # break other packages using the cache if that directory is
6324 # removed, or if the value is a relative name.
6325 INSTALL=$ac_install_sh
6328 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6329 echo "${ECHO_T}$INSTALL" >&6; }
6331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6332 # It thinks the first close brace ends the variable substitution.
6333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6339 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6340 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6341 LN_S=$as_ln_s
6342 if test "$LN_S" = "ln -s"; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6345 else
6346 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6347 echo "${ECHO_T}no, using $LN_S" >&6; }
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_prog_RANLIB+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 if test -n "$RANLIB"; then
6359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 RANLIB=$ac_cv_prog_RANLIB
6379 if test -n "$RANLIB"; then
6380 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6381 echo "${ECHO_T}$RANLIB" >&6; }
6382 else
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6389 if test -z "$ac_cv_prog_RANLIB"; then
6390 ac_ct_RANLIB=$RANLIB
6391 # Extract the first word of "ranlib", so it can be a program name with args.
6392 set dummy ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 if test -n "$ac_ct_RANLIB"; then
6399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400 else
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_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_RANLIB="ranlib"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6412 done
6413 done
6414 IFS=$as_save_IFS
6418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419 if test -n "$ac_ct_RANLIB"; then
6420 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6421 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6422 else
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6427 if test "x$ac_ct_RANLIB" = x; then
6428 RANLIB=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&5
6435 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436 whose name does not start with the host triplet. If you think this
6437 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 RANLIB=$ac_ct_RANLIB
6442 else
6443 RANLIB="$ac_cv_prog_RANLIB"
6446 { echo "$as_me:$LINENO: checking for GNU make" >&5
6447 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6448 if test "${GNU_MAKE+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 GNU_MAKE='Not Found' ;
6452 GNU_MAKE_VERSION_MAJOR=0 ;
6453 GNU_MAKE_VERSION_MINOR=0 ;
6454 for a in make gmake gnumake ; do
6455 if test -z "$a" ; then continue ; fi ;
6456 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6457 GNU_MAKE=$a ;
6458 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6459 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6460 break;
6462 done ;
6465 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6466 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6467 if test "x$GNU_MAKE" = "xNot Found" ; then
6468 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6469 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6470 { (exit 1); exit 1; }; }
6471 exit 1
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}strip; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_STRIP+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 case $STRIP in
6485 [\\/]* | ?:[\\/]*)
6486 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6505 esac
6507 STRIP=$ac_cv_path_STRIP
6508 if test -n "$STRIP"; then
6509 { echo "$as_me:$LINENO: result: $STRIP" >&5
6510 echo "${ECHO_T}$STRIP" >&6; }
6511 else
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6518 if test -z "$ac_cv_path_STRIP"; then
6519 ac_pt_STRIP=$STRIP
6520 # Extract the first word of "strip", so it can be a program name with args.
6521 set dummy strip; ac_word=$2
6522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 case $ac_pt_STRIP in
6528 [\\/]* | ?:[\\/]*)
6529 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6543 done
6544 done
6545 IFS=$as_save_IFS
6548 esac
6550 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6551 if test -n "$ac_pt_STRIP"; then
6552 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6553 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6554 else
6555 { echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6; }
6559 if test "x$ac_pt_STRIP" = x; then
6560 STRIP=":"
6561 else
6562 case $cross_compiling:$ac_tool_warned in
6563 yes:)
6564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6565 whose name does not start with the host triplet. If you think this
6566 configuration is useful to you, please write to autoconf@gnu.org." >&5
6567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6570 ac_tool_warned=yes ;;
6571 esac
6572 STRIP=$ac_pt_STRIP
6574 else
6575 STRIP="$ac_cv_path_STRIP"
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}ar; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_AR+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 case $AR in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6602 done
6603 done
6604 IFS=$as_save_IFS
6607 esac
6609 AR=$ac_cv_path_AR
6610 if test -n "$AR"; then
6611 { echo "$as_me:$LINENO: result: $AR" >&5
6612 echo "${ECHO_T}$AR" >&6; }
6613 else
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6620 if test -z "$ac_cv_path_AR"; then
6621 ac_pt_AR=$AR
6622 # Extract the first word of "ar", so it can be a program name with args.
6623 set dummy ar; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 case $ac_pt_AR in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6645 done
6646 done
6647 IFS=$as_save_IFS
6650 esac
6652 ac_pt_AR=$ac_cv_path_ac_pt_AR
6653 if test -n "$ac_pt_AR"; then
6654 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6655 echo "${ECHO_T}$ac_pt_AR" >&6; }
6656 else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661 if test "x$ac_pt_AR" = x; then
6662 AR=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&5
6669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet. If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674 AR=$ac_pt_AR
6676 else
6677 AR="$ac_cv_path_AR"
6681 GNU_LD=0
6682 if test "x$with_gnu_ld" = "xyes" ; then
6683 GNU_LD=1
6687 # Extract the first word of "awk", so it can be a program name with args.
6688 set dummy awk; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_AWK+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 case $AWK in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6710 done
6711 done
6712 IFS=$as_save_IFS
6714 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
6716 esac
6718 AWK=$ac_cv_path_AWK
6719 if test -n "$AWK"; then
6720 { echo "$as_me:$LINENO: result: $AWK" >&5
6721 echo "${ECHO_T}$AWK" >&6; }
6722 else
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6728 # Extract the first word of "grep", so it can be a program name with args.
6729 set dummy grep; ac_word=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_path_GREP+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735 case $GREP in
6736 [\\/]* | ?:[\\/]*)
6737 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6755 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6757 esac
6759 GREP=$ac_cv_path_GREP
6760 if test -n "$GREP"; then
6761 { echo "$as_me:$LINENO: result: $GREP" >&5
6762 echo "${ECHO_T}$GREP" >&6; }
6763 else
6764 { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6769 # Extract the first word of "find", so it can be a program name with args.
6770 set dummy find; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_FIND+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 case $FIND in
6777 [\\/]* | ?:[\\/]*)
6778 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6792 done
6793 done
6794 IFS=$as_save_IFS
6796 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6798 esac
6800 FIND=$ac_cv_path_FIND
6801 if test -n "$FIND"; then
6802 { echo "$as_me:$LINENO: result: $FIND" >&5
6803 echo "${ECHO_T}$FIND" >&6; }
6804 else
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6810 # Extract the first word of "compress", so it can be a program name with args.
6811 set dummy compress; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_COMPRESS+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 case $COMPRESS in
6818 [\\/]* | ?:[\\/]*)
6819 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6833 done
6834 done
6835 IFS=$as_save_IFS
6837 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6839 esac
6841 COMPRESS=$ac_cv_path_COMPRESS
6842 if test -n "$COMPRESS"; then
6843 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6844 echo "${ECHO_T}$COMPRESS" >&6; }
6845 else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6851 # Extract the first word of "basename", so it can be a program name with args.
6852 set dummy basename; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_BASENAME+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 case $BASENAME in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6874 done
6875 done
6876 IFS=$as_save_IFS
6878 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6880 esac
6882 BASENAME=$ac_cv_path_BASENAME
6883 if test -n "$BASENAME"; then
6884 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6885 echo "${ECHO_T}$BASENAME" >&6; }
6886 else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 # Extract the first word of "id", so it can be a program name with args.
6893 set dummy id; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_ID+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 case $ID in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6915 done
6916 done
6917 IFS=$as_save_IFS
6919 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6921 esac
6923 ID=$ac_cv_path_ID
6924 if test -n "$ID"; then
6925 { echo "$as_me:$LINENO: result: $ID" >&5
6926 echo "${ECHO_T}$ID" >&6; }
6927 else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "dirname", so it can be a program name with args.
6934 set dummy dirname; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_DIRNAME+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 case $DIRNAME in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6956 done
6957 done
6958 IFS=$as_save_IFS
6960 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6962 esac
6964 DIRNAME=$ac_cv_path_DIRNAME
6965 if test -n "$DIRNAME"; then
6966 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6967 echo "${ECHO_T}$DIRNAME" >&6; }
6968 else
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 # Extract the first word of "sh", so it can be a program name with args.
6975 set dummy sh; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_SHELL+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 case $SHELL in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7001 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7003 esac
7005 SHELL=$ac_cv_path_SHELL
7006 if test -n "$SHELL"; then
7007 { echo "$as_me:$LINENO: result: $SHELL" >&5
7008 echo "${ECHO_T}$SHELL" >&6; }
7009 else
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7015 # Extract the first word of "ln", so it can be a program name with args.
7016 set dummy ln; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_LN+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 case $LN in
7023 [\\/]* | ?:[\\/]*)
7024 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7038 done
7039 done
7040 IFS=$as_save_IFS
7042 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7044 esac
7046 LN=$ac_cv_path_LN
7047 if test -n "$LN"; then
7048 { echo "$as_me:$LINENO: result: $LN" >&5
7049 echo "${ECHO_T}$LN" >&6; }
7050 else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "dot", so it can be a program name with args.
7057 set dummy dot; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_DOT+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063 case $DOT in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7079 done
7080 done
7081 IFS=$as_save_IFS
7083 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7085 esac
7087 DOT=$ac_cv_path_DOT
7088 if test -n "$DOT"; then
7089 { echo "$as_me:$LINENO: result: $DOT" >&5
7090 echo "${ECHO_T}$DOT" >&6; }
7091 else
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "wget", so it can be a program name with args.
7098 set dummy wget; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_WGET+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 case $WGET in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7120 done
7121 done
7122 IFS=$as_save_IFS
7124 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7126 esac
7128 WGET=$ac_cv_path_WGET
7129 if test -n "$WGET"; then
7130 { echo "$as_me:$LINENO: result: $WGET" >&5
7131 echo "${ECHO_T}$WGET" >&6; }
7132 else
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 if test "${WGET}" != ":" ; then
7139 DOWNLOAD=${WGET}
7140 else
7141 # Extract the first word of "fetch", so it can be a program name with args.
7142 set dummy fetch; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_FETCH+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 case $FETCH in
7149 [\\/]* | ?:[\\/]*)
7150 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7164 done
7165 done
7166 IFS=$as_save_IFS
7168 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7170 esac
7172 FETCH=$ac_cv_path_FETCH
7173 if test -n "$FETCH"; then
7174 { echo "$as_me:$LINENO: result: $FETCH" >&5
7175 echo "${ECHO_T}$FETCH" >&6; }
7176 else
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7182 DOWNLOAD=${FETCH}
7189 ac_ext=c
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7195 acx_pthread_ok=no
7197 # We used to check for pthread.h first, but this fails if pthread.h
7198 # requires special compiler flags (e.g. on True64 or Sequent).
7199 # It gets checked for in the link test anyway.
7201 # First of all, check if the user has set any of the PTHREAD_LIBS,
7202 # etcetera environment variables, and if threads linking works using
7203 # them:
7204 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7205 save_CFLAGS="$CFLAGS"
7206 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7207 save_LIBS="$LIBS"
7208 LIBS="$PTHREAD_LIBS $LIBS"
7209 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7210 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7218 /* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
7221 #ifdef __cplusplus
7222 extern "C"
7223 #endif
7224 char pthread_join ();
7226 main ()
7228 return pthread_join ();
7230 return 0;
7232 _ACEOF
7233 rm -f conftest.$ac_objext conftest$ac_exeext
7234 if { (ac_try="$ac_link"
7235 case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7238 esac
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_link") 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest$ac_exeext &&
7250 $as_test_x conftest$ac_exeext; then
7251 acx_pthread_ok=yes
7252 else
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7260 conftest$ac_exeext conftest.$ac_ext
7261 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7262 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7263 if test x"$acx_pthread_ok" = xno; then
7264 PTHREAD_LIBS=""
7265 PTHREAD_CFLAGS=""
7267 LIBS="$save_LIBS"
7268 CFLAGS="$save_CFLAGS"
7271 # We must check for the threads library under a number of different
7272 # names; the ordering is very important because some systems
7273 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7274 # libraries is broken (non-POSIX).
7276 # Create a list of thread flags to try. Items starting with a "-" are
7277 # C compiler flags, and other items are library names, except for "none"
7278 # which indicates that we try without any flags at all, and "pthread-config"
7279 # which is a program returning the flags for the Pth emulation library.
7281 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7283 # The ordering *is* (sometimes) important. Some notes on the
7284 # individual items follow:
7286 # pthreads: AIX (must check this before -lpthread)
7287 # none: in case threads are in libc; should be tried before -Kthread and
7288 # other compiler flags to prevent continual compiler warnings
7289 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7290 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7291 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7292 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7293 # -pthreads: Solaris/gcc
7294 # -mthreads: Mingw32/gcc, Lynx/gcc
7295 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7296 # doesn't hurt to check since this sometimes defines pthreads too;
7297 # also defines -D_REENTRANT)
7298 # ... -mt is also the pthreads flag for HP/aCC
7299 # pthread: Linux, etcetera
7300 # --thread-safe: KAI C++
7301 # pthread-config: use pthread-config program (for GNU Pth library)
7303 case "${host_cpu}-${host_os}" in
7304 *solaris*)
7306 # On Solaris (at least, for some versions), libc contains stubbed
7307 # (non-functional) versions of the pthreads routines, so link-based
7308 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7309 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7310 # a function called by this macro, so we could check for that, but
7311 # who knows whether they'll stub that too in a future libc.) So,
7312 # we'll just look for -pthreads and -lpthread first:
7314 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7316 esac
7318 if test x"$acx_pthread_ok" = xno; then
7319 for flag in $acx_pthread_flags; do
7321 case $flag in
7322 none)
7323 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7324 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7328 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7329 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7330 PTHREAD_CFLAGS="$flag"
7333 pthread-config)
7334 # Extract the first word of "pthread-config", so it can be a program name with args.
7335 set dummy pthread-config; ac_word=$2
7336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 if test -n "$acx_pthread_config"; then
7342 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_acx_pthread_config="yes"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7359 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7362 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7363 if test -n "$acx_pthread_config"; then
7364 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7365 echo "${ECHO_T}$acx_pthread_config" >&6; }
7366 else
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7372 if test x"$acx_pthread_config" = xno; then continue; fi
7373 PTHREAD_CFLAGS="`pthread-config --cflags`"
7374 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7378 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7379 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7380 PTHREAD_LIBS="-l$flag"
7382 esac
7384 save_LIBS="$LIBS"
7385 save_CFLAGS="$CFLAGS"
7386 LIBS="$PTHREAD_LIBS $LIBS"
7387 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7389 # Check for various functions. We must include pthread.h,
7390 # since some functions may be macros. (On the Sequent, we
7391 # need a special flag -Kthread to make this header compile.)
7392 # We check for pthread_join because it is in -lpthread on IRIX
7393 # while pthread_create is in libc. We check for pthread_attr_init
7394 # due to DEC craziness with -lpthreads. We check for
7395 # pthread_cleanup_push because it is one of the few pthread
7396 # functions on Solaris that doesn't have a non-functional libc stub.
7397 # We try pthread_create on general principles.
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <pthread.h>
7406 main ()
7408 pthread_t th; pthread_join(th, 0);
7409 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7410 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7412 return 0;
7414 _ACEOF
7415 rm -f conftest.$ac_objext conftest$ac_exeext
7416 if { (ac_try="$ac_link"
7417 case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_link") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest$ac_exeext &&
7432 $as_test_x conftest$ac_exeext; then
7433 acx_pthread_ok=yes
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7442 conftest$ac_exeext conftest.$ac_ext
7444 LIBS="$save_LIBS"
7445 CFLAGS="$save_CFLAGS"
7447 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7448 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7449 if test "x$acx_pthread_ok" = xyes; then
7450 break;
7453 PTHREAD_LIBS=""
7454 PTHREAD_CFLAGS=""
7455 done
7458 # Various other checks:
7459 if test "x$acx_pthread_ok" = xyes; then
7460 save_LIBS="$LIBS"
7461 LIBS="$PTHREAD_LIBS $LIBS"
7462 save_CFLAGS="$CFLAGS"
7463 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7465 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7466 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7467 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7468 attr_name=unknown
7469 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <pthread.h>
7478 main ()
7480 int attr=$attr; return attr;
7482 return 0;
7484 _ACEOF
7485 rm -f conftest.$ac_objext conftest$ac_exeext
7486 if { (ac_try="$ac_link"
7487 case "(($ac_try" in
7488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7490 esac
7491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7492 (eval "$ac_link") 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && {
7499 test -z "$ac_c_werror_flag" ||
7500 test ! -s conftest.err
7501 } && test -s conftest$ac_exeext &&
7502 $as_test_x conftest$ac_exeext; then
7503 attr_name=$attr; break
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7512 conftest$ac_exeext conftest.$ac_ext
7513 done
7514 { echo "$as_me:$LINENO: result: $attr_name" >&5
7515 echo "${ECHO_T}$attr_name" >&6; }
7516 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define PTHREAD_CREATE_JOINABLE $attr_name
7520 _ACEOF
7524 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7525 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7526 flag=no
7527 case "${host_cpu}-${host_os}" in
7528 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7529 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7530 esac
7531 { echo "$as_me:$LINENO: result: ${flag}" >&5
7532 echo "${ECHO_T}${flag}" >&6; }
7533 if test "x$flag" != xno; then
7534 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7537 LIBS="$save_LIBS"
7538 CFLAGS="$save_CFLAGS"
7540 # More AIX lossage: must compile with xlc_r or cc_r
7541 if test x"$GCC" != xyes; then
7542 for ac_prog in xlc_r cc_r
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 if test -n "$PTHREAD_CC"; then
7552 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_PTHREAD_CC="$ac_prog"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7565 done
7566 done
7567 IFS=$as_save_IFS
7571 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7572 if test -n "$PTHREAD_CC"; then
7573 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7574 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7575 else
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 test -n "$PTHREAD_CC" && break
7582 done
7583 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7585 else
7586 PTHREAD_CC=$CC
7588 else
7589 PTHREAD_CC="$CC"
7596 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7597 if test x"$acx_pthread_ok" = xyes; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_PTHREAD 1
7601 _ACEOF
7604 else
7605 acx_pthread_ok=no
7608 ac_ext=c
7609 ac_cpp='$CPP $CPPFLAGS'
7610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616 ac_ext=c
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623 # Check whether --enable-dev-mode was given.
7624 if test "${enable_dev_mode+set}" = set; then
7625 enableval=$enable_dev_mode; case "${enableval}" in
7626 y|ye|yes) AST_DEVMODE=yes ;;
7627 n|no) AST_DEVMODE=no ;;
7628 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7629 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7630 { (exit 1); exit 1; }; } ;;
7631 esac
7636 # package option names should be in alphabetical order
7637 # by the --with option name, to make things easier for the users :-)
7640 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7641 ALSA_OPTION="asound"
7643 # Check whether --with-asound was given.
7644 if test "${with_asound+set}" = set; then
7645 withval=$with_asound;
7646 case ${withval} in
7647 n|no)
7648 USE_ALSA=no
7650 y|ye|yes)
7651 ALSA_MANDATORY="yes"
7654 ALSA_DIR="${withval}"
7655 ALSA_MANDATORY="yes"
7657 esac
7661 PBX_ALSA=0
7668 CURL_DESCRIP="cURL"
7669 CURL_OPTION="curl"
7671 # Check whether --with-curl was given.
7672 if test "${with_curl+set}" = set; then
7673 withval=$with_curl;
7674 case ${withval} in
7675 n|no)
7676 USE_CURL=no
7678 y|ye|yes)
7679 CURL_MANDATORY="yes"
7682 CURL_DIR="${withval}"
7683 CURL_MANDATORY="yes"
7685 esac
7689 PBX_CURL=0
7696 CURSES_DESCRIP="curses"
7697 CURSES_OPTION="curses"
7699 # Check whether --with-curses was given.
7700 if test "${with_curses+set}" = set; then
7701 withval=$with_curses;
7702 case ${withval} in
7703 n|no)
7704 USE_CURSES=no
7706 y|ye|yes)
7707 CURSES_MANDATORY="yes"
7710 CURSES_DIR="${withval}"
7711 CURSES_MANDATORY="yes"
7713 esac
7717 PBX_CURSES=0
7724 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7725 GNUTLS_OPTION="gnutls"
7727 # Check whether --with-gnutls was given.
7728 if test "${with_gnutls+set}" = set; then
7729 withval=$with_gnutls;
7730 case ${withval} in
7731 n|no)
7732 USE_GNUTLS=no
7734 y|ye|yes)
7735 GNUTLS_MANDATORY="yes"
7738 GNUTLS_DIR="${withval}"
7739 GNUTLS_MANDATORY="yes"
7741 esac
7745 PBX_GNUTLS=0
7752 GSM_DESCRIP="GSM"
7753 GSM_OPTION="gsm"
7755 # Check whether --with-gsm was given.
7756 if test "${with_gsm+set}" = set; then
7757 withval=$with_gsm;
7758 case ${withval} in
7759 n|no)
7760 USE_GSM=no
7762 y|ye|yes)
7763 GSM_MANDATORY="yes"
7766 GSM_DIR="${withval}"
7767 GSM_MANDATORY="yes"
7769 esac
7773 PBX_GSM=0
7780 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7781 IKSEMEL_OPTION="iksemel"
7783 # Check whether --with-iksemel was given.
7784 if test "${with_iksemel+set}" = set; then
7785 withval=$with_iksemel;
7786 case ${withval} in
7787 n|no)
7788 USE_IKSEMEL=no
7790 y|ye|yes)
7791 IKSEMEL_MANDATORY="yes"
7794 IKSEMEL_DIR="${withval}"
7795 IKSEMEL_MANDATORY="yes"
7797 esac
7801 PBX_IKSEMEL=0
7808 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7809 IMAP_TK_OPTION="imap"
7811 # Check whether --with-imap was given.
7812 if test "${with_imap+set}" = set; then
7813 withval=$with_imap;
7814 case ${withval} in
7815 n|no)
7816 USE_IMAP_TK=no
7818 y|ye|yes)
7819 IMAP_TK_MANDATORY="yes"
7822 IMAP_TK_DIR="${withval}"
7823 IMAP_TK_MANDATORY="yes"
7825 esac
7829 PBX_IMAP_TK=0
7836 ISDNNET_DESCRIP="ISDN4Linux Library"
7837 ISDNNET_OPTION="isdnnet"
7839 # Check whether --with-isdnnet was given.
7840 if test "${with_isdnnet+set}" = set; then
7841 withval=$with_isdnnet;
7842 case ${withval} in
7843 n|no)
7844 USE_ISDNNET=no
7846 y|ye|yes)
7847 ISDNNET_MANDATORY="yes"
7850 ISDNNET_DIR="${withval}"
7851 ISDNNET_MANDATORY="yes"
7853 esac
7857 PBX_ISDNNET=0
7864 KDE_DESCRIP="KDE"
7865 KDE_OPTION="kde"
7867 # Check whether --with-kde was given.
7868 if test "${with_kde+set}" = set; then
7869 withval=$with_kde;
7870 case ${withval} in
7871 n|no)
7872 USE_KDE=no
7874 y|ye|yes)
7875 KDE_MANDATORY="yes"
7878 KDE_DIR="${withval}"
7879 KDE_MANDATORY="yes"
7881 esac
7885 PBX_KDE=0
7892 LTDL_DESCRIP="libtool"
7893 LTDL_OPTION="ltdl"
7895 # Check whether --with-ltdl was given.
7896 if test "${with_ltdl+set}" = set; then
7897 withval=$with_ltdl;
7898 case ${withval} in
7899 n|no)
7900 USE_LTDL=no
7902 y|ye|yes)
7903 LTDL_MANDATORY="yes"
7906 LTDL_DIR="${withval}"
7907 LTDL_MANDATORY="yes"
7909 esac
7913 PBX_LTDL=0
7920 MISDN_DESCRIP="mISDN User Library"
7921 MISDN_OPTION="misdn"
7923 # Check whether --with-misdn was given.
7924 if test "${with_misdn+set}" = set; then
7925 withval=$with_misdn;
7926 case ${withval} in
7927 n|no)
7928 USE_MISDN=no
7930 y|ye|yes)
7931 MISDN_MANDATORY="yes"
7934 MISDN_DIR="${withval}"
7935 MISDN_MANDATORY="yes"
7937 esac
7941 PBX_MISDN=0
7948 NBS_DESCRIP="Network Broadcast Sound"
7949 NBS_OPTION="nbs"
7951 # Check whether --with-nbs was given.
7952 if test "${with_nbs+set}" = set; then
7953 withval=$with_nbs;
7954 case ${withval} in
7955 n|no)
7956 USE_NBS=no
7958 y|ye|yes)
7959 NBS_MANDATORY="yes"
7962 NBS_DIR="${withval}"
7963 NBS_MANDATORY="yes"
7965 esac
7969 PBX_NBS=0
7976 NCURSES_DESCRIP="ncurses"
7977 NCURSES_OPTION="ncurses"
7979 # Check whether --with-ncurses was given.
7980 if test "${with_ncurses+set}" = set; then
7981 withval=$with_ncurses;
7982 case ${withval} in
7983 n|no)
7984 USE_NCURSES=no
7986 y|ye|yes)
7987 NCURSES_MANDATORY="yes"
7990 NCURSES_DIR="${withval}"
7991 NCURSES_MANDATORY="yes"
7993 esac
7997 PBX_NCURSES=0
8004 NETSNMP_DESCRIP="Net-SNMP"
8005 NETSNMP_OPTION="netsnmp"
8007 # Check whether --with-netsnmp was given.
8008 if test "${with_netsnmp+set}" = set; then
8009 withval=$with_netsnmp;
8010 case ${withval} in
8011 n|no)
8012 USE_NETSNMP=no
8014 y|ye|yes)
8015 NETSNMP_MANDATORY="yes"
8018 NETSNMP_DIR="${withval}"
8019 NETSNMP_MANDATORY="yes"
8021 esac
8025 PBX_NETSNMP=0
8032 NEWT_DESCRIP="newt"
8033 NEWT_OPTION="newt"
8035 # Check whether --with-newt was given.
8036 if test "${with_newt+set}" = set; then
8037 withval=$with_newt;
8038 case ${withval} in
8039 n|no)
8040 USE_NEWT=no
8042 y|ye|yes)
8043 NEWT_MANDATORY="yes"
8046 NEWT_DIR="${withval}"
8047 NEWT_MANDATORY="yes"
8049 esac
8053 PBX_NEWT=0
8060 UNIXODBC_DESCRIP="unixODBC"
8061 UNIXODBC_OPTION="odbc"
8063 # Check whether --with-odbc was given.
8064 if test "${with_odbc+set}" = set; then
8065 withval=$with_odbc;
8066 case ${withval} in
8067 n|no)
8068 USE_UNIXODBC=no
8070 y|ye|yes)
8071 UNIXODBC_MANDATORY="yes"
8074 UNIXODBC_DIR="${withval}"
8075 UNIXODBC_MANDATORY="yes"
8077 esac
8081 PBX_UNIXODBC=0
8088 OGG_DESCRIP="OGG"
8089 OGG_OPTION="ogg"
8091 # Check whether --with-ogg was given.
8092 if test "${with_ogg+set}" = set; then
8093 withval=$with_ogg;
8094 case ${withval} in
8095 n|no)
8096 USE_OGG=no
8098 y|ye|yes)
8099 OGG_MANDATORY="yes"
8102 OGG_DIR="${withval}"
8103 OGG_MANDATORY="yes"
8105 esac
8109 PBX_OGG=0
8116 OSPTK_DESCRIP="OSP Toolkit"
8117 OSPTK_OPTION="osptk"
8119 # Check whether --with-osptk was given.
8120 if test "${with_osptk+set}" = set; then
8121 withval=$with_osptk;
8122 case ${withval} in
8123 n|no)
8124 USE_OSPTK=no
8126 y|ye|yes)
8127 OSPTK_MANDATORY="yes"
8130 OSPTK_DIR="${withval}"
8131 OSPTK_MANDATORY="yes"
8133 esac
8137 PBX_OSPTK=0
8144 OSS_DESCRIP="Open Sound System"
8145 OSS_OPTION="oss"
8147 # Check whether --with-oss was given.
8148 if test "${with_oss+set}" = set; then
8149 withval=$with_oss;
8150 case ${withval} in
8151 n|no)
8152 USE_OSS=no
8154 y|ye|yes)
8155 OSS_MANDATORY="yes"
8158 OSS_DIR="${withval}"
8159 OSS_MANDATORY="yes"
8161 esac
8165 PBX_OSS=0
8172 POPT_DESCRIP="popt"
8173 POPT_OPTION="popt"
8175 # Check whether --with-popt was given.
8176 if test "${with_popt+set}" = set; then
8177 withval=$with_popt;
8178 case ${withval} in
8179 n|no)
8180 USE_POPT=no
8182 y|ye|yes)
8183 POPT_MANDATORY="yes"
8186 POPT_DIR="${withval}"
8187 POPT_MANDATORY="yes"
8189 esac
8193 PBX_POPT=0
8200 PGSQL_DESCRIP="PostgreSQL"
8201 PGSQL_OPTION="postgres"
8203 # Check whether --with-postgres was given.
8204 if test "${with_postgres+set}" = set; then
8205 withval=$with_postgres;
8206 case ${withval} in
8207 n|no)
8208 USE_PGSQL=no
8210 y|ye|yes)
8211 PGSQL_MANDATORY="yes"
8214 PGSQL_DIR="${withval}"
8215 PGSQL_MANDATORY="yes"
8217 esac
8221 PBX_PGSQL=0
8228 PRI_DESCRIP="ISDN PRI"
8229 PRI_OPTION="pri"
8231 # Check whether --with-pri was given.
8232 if test "${with_pri+set}" = set; then
8233 withval=$with_pri;
8234 case ${withval} in
8235 n|no)
8236 USE_PRI=no
8238 y|ye|yes)
8239 PRI_MANDATORY="yes"
8242 PRI_DIR="${withval}"
8243 PRI_MANDATORY="yes"
8245 esac
8249 PBX_PRI=0
8256 PWLIB_DESCRIP="PWlib"
8257 PWLIB_OPTION="pwlib"
8259 # Check whether --with-pwlib was given.
8260 if test "${with_pwlib+set}" = set; then
8261 withval=$with_pwlib;
8262 case ${withval} in
8263 n|no)
8264 USE_PWLIB=no
8266 y|ye|yes)
8267 PWLIB_MANDATORY="yes"
8270 PWLIB_DIR="${withval}"
8271 PWLIB_MANDATORY="yes"
8273 esac
8277 PBX_PWLIB=0
8284 OPENH323_DESCRIP="OpenH323"
8285 OPENH323_OPTION="h323"
8287 # Check whether --with-h323 was given.
8288 if test "${with_h323+set}" = set; then
8289 withval=$with_h323;
8290 case ${withval} in
8291 n|no)
8292 USE_OPENH323=no
8294 y|ye|yes)
8295 OPENH323_MANDATORY="yes"
8298 OPENH323_DIR="${withval}"
8299 OPENH323_MANDATORY="yes"
8301 esac
8305 PBX_OPENH323=0
8312 QT_DESCRIP="Qt"
8313 QT_OPTION="qt"
8315 # Check whether --with-qt was given.
8316 if test "${with_qt+set}" = set; then
8317 withval=$with_qt;
8318 case ${withval} in
8319 n|no)
8320 USE_QT=no
8322 y|ye|yes)
8323 QT_MANDATORY="yes"
8326 QT_DIR="${withval}"
8327 QT_MANDATORY="yes"
8329 esac
8333 PBX_QT=0
8340 RADIUS_DESCRIP="Radius Client"
8341 RADIUS_OPTION="radius"
8343 # Check whether --with-radius was given.
8344 if test "${with_radius+set}" = set; then
8345 withval=$with_radius;
8346 case ${withval} in
8347 n|no)
8348 USE_RADIUS=no
8350 y|ye|yes)
8351 RADIUS_MANDATORY="yes"
8354 RADIUS_DIR="${withval}"
8355 RADIUS_MANDATORY="yes"
8357 esac
8361 PBX_RADIUS=0
8368 SPEEX_DESCRIP="Speex"
8369 SPEEX_OPTION="speex"
8371 # Check whether --with-speex was given.
8372 if test "${with_speex+set}" = set; then
8373 withval=$with_speex;
8374 case ${withval} in
8375 n|no)
8376 USE_SPEEX=no
8378 y|ye|yes)
8379 SPEEX_MANDATORY="yes"
8382 SPEEX_DIR="${withval}"
8383 SPEEX_MANDATORY="yes"
8385 esac
8389 PBX_SPEEX=0
8396 SQLITE_DESCRIP="SQLite"
8397 SQLITE_OPTION="sqlite"
8399 # Check whether --with-sqlite was given.
8400 if test "${with_sqlite+set}" = set; then
8401 withval=$with_sqlite;
8402 case ${withval} in
8403 n|no)
8404 USE_SQLITE=no
8406 y|ye|yes)
8407 SQLITE_MANDATORY="yes"
8410 SQLITE_DIR="${withval}"
8411 SQLITE_MANDATORY="yes"
8413 esac
8417 PBX_SQLITE=0
8424 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8425 SUPPSERV_OPTION="suppserv"
8427 # Check whether --with-suppserv was given.
8428 if test "${with_suppserv+set}" = set; then
8429 withval=$with_suppserv;
8430 case ${withval} in
8431 n|no)
8432 USE_SUPPSERV=no
8434 y|ye|yes)
8435 SUPPSERV_MANDATORY="yes"
8438 SUPPSERV_DIR="${withval}"
8439 SUPPSERV_MANDATORY="yes"
8441 esac
8445 PBX_SUPPSERV=0
8452 OPENSSL_DESCRIP="OpenSSL"
8453 OPENSSL_OPTION="ssl"
8455 # Check whether --with-ssl was given.
8456 if test "${with_ssl+set}" = set; then
8457 withval=$with_ssl;
8458 case ${withval} in
8459 n|no)
8460 USE_OPENSSL=no
8462 y|ye|yes)
8463 OPENSSL_MANDATORY="yes"
8466 OPENSSL_DIR="${withval}"
8467 OPENSSL_MANDATORY="yes"
8469 esac
8473 PBX_OPENSSL=0
8480 FREETDS_DESCRIP="FreeTDS"
8481 FREETDS_OPTION="tds"
8483 # Check whether --with-tds was given.
8484 if test "${with_tds+set}" = set; then
8485 withval=$with_tds;
8486 case ${withval} in
8487 n|no)
8488 USE_FREETDS=no
8490 y|ye|yes)
8491 FREETDS_MANDATORY="yes"
8494 FREETDS_DIR="${withval}"
8495 FREETDS_MANDATORY="yes"
8497 esac
8501 PBX_FREETDS=0
8508 TERMCAP_DESCRIP="Termcap"
8509 TERMCAP_OPTION="termcap"
8511 # Check whether --with-termcap was given.
8512 if test "${with_termcap+set}" = set; then
8513 withval=$with_termcap;
8514 case ${withval} in
8515 n|no)
8516 USE_TERMCAP=no
8518 y|ye|yes)
8519 TERMCAP_MANDATORY="yes"
8522 TERMCAP_DIR="${withval}"
8523 TERMCAP_MANDATORY="yes"
8525 esac
8529 PBX_TERMCAP=0
8536 TINFO_DESCRIP="Term Info"
8537 TINFO_OPTION="tinfo"
8539 # Check whether --with-tinfo was given.
8540 if test "${with_tinfo+set}" = set; then
8541 withval=$with_tinfo;
8542 case ${withval} in
8543 n|no)
8544 USE_TINFO=no
8546 y|ye|yes)
8547 TINFO_MANDATORY="yes"
8550 TINFO_DIR="${withval}"
8551 TINFO_MANDATORY="yes"
8553 esac
8557 PBX_TINFO=0
8564 TONEZONE_DESCRIP="tonezone"
8565 TONEZONE_OPTION="tonezone"
8567 # Check whether --with-tonezone was given.
8568 if test "${with_tonezone+set}" = set; then
8569 withval=$with_tonezone;
8570 case ${withval} in
8571 n|no)
8572 USE_TONEZONE=no
8574 y|ye|yes)
8575 TONEZONE_MANDATORY="yes"
8578 TONEZONE_DIR="${withval}"
8579 TONEZONE_MANDATORY="yes"
8581 esac
8585 PBX_TONEZONE=0
8592 USB_DESCRIP="usb"
8593 USB_OPTION="usb"
8595 # Check whether --with-usb was given.
8596 if test "${with_usb+set}" = set; then
8597 withval=$with_usb;
8598 case ${withval} in
8599 n|no)
8600 USE_USB=no
8602 y|ye|yes)
8603 USB_MANDATORY="yes"
8606 USB_DIR="${withval}"
8607 USB_MANDATORY="yes"
8609 esac
8613 PBX_USB=0
8620 VORBIS_DESCRIP="Vorbis"
8621 VORBIS_OPTION="vorbis"
8623 # Check whether --with-vorbis was given.
8624 if test "${with_vorbis+set}" = set; then
8625 withval=$with_vorbis;
8626 case ${withval} in
8627 n|no)
8628 USE_VORBIS=no
8630 y|ye|yes)
8631 VORBIS_MANDATORY="yes"
8634 VORBIS_DIR="${withval}"
8635 VORBIS_MANDATORY="yes"
8637 esac
8641 PBX_VORBIS=0
8648 VPB_DESCRIP="Voicetronix API"
8649 VPB_OPTION="vpb"
8651 # Check whether --with-vpb was given.
8652 if test "${with_vpb+set}" = set; then
8653 withval=$with_vpb;
8654 case ${withval} in
8655 n|no)
8656 USE_VPB=no
8658 y|ye|yes)
8659 VPB_MANDATORY="yes"
8662 VPB_DIR="${withval}"
8663 VPB_MANDATORY="yes"
8665 esac
8669 PBX_VPB=0
8676 ZLIB_DESCRIP="zlib"
8677 ZLIB_OPTION="z"
8679 # Check whether --with-z was given.
8680 if test "${with_z+set}" = set; then
8681 withval=$with_z;
8682 case ${withval} in
8683 n|no)
8684 USE_ZLIB=no
8686 y|ye|yes)
8687 ZLIB_MANDATORY="yes"
8690 ZLIB_DIR="${withval}"
8691 ZLIB_MANDATORY="yes"
8693 esac
8697 PBX_ZLIB=0
8704 ZAPTEL_DESCRIP="Zaptel"
8705 ZAPTEL_OPTION="zaptel"
8707 # Check whether --with-zaptel was given.
8708 if test "${with_zaptel+set}" = set; then
8709 withval=$with_zaptel;
8710 case ${withval} in
8711 n|no)
8712 USE_ZAPTEL=no
8714 y|ye|yes)
8715 ZAPTEL_MANDATORY="yes"
8718 ZAPTEL_DIR="${withval}"
8719 ZAPTEL_MANDATORY="yes"
8721 esac
8725 PBX_ZAPTEL=0
8732 # check for basic system features and functionality before
8733 # checking for package libraries
8735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8736 # for constant arguments. Useless!
8737 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8738 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8739 if test "${ac_cv_working_alloca_h+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 #include <alloca.h>
8750 main ()
8752 char *p = (char *) alloca (2 * sizeof (int));
8753 if (p) return 0;
8755 return 0;
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest$ac_exeext &&
8775 $as_test_x conftest$ac_exeext; then
8776 ac_cv_working_alloca_h=yes
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 ac_cv_working_alloca_h=no
8784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8785 conftest$ac_exeext conftest.$ac_ext
8787 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8788 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8789 if test $ac_cv_working_alloca_h = yes; then
8791 cat >>confdefs.h <<\_ACEOF
8792 #define HAVE_ALLOCA_H 1
8793 _ACEOF
8797 { echo "$as_me:$LINENO: checking for alloca" >&5
8798 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8799 if test "${ac_cv_func_alloca_works+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h. */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 #ifdef __GNUC__
8809 # define alloca __builtin_alloca
8810 #else
8811 # ifdef _MSC_VER
8812 # include <malloc.h>
8813 # define alloca _alloca
8814 # else
8815 # ifdef HAVE_ALLOCA_H
8816 # include <alloca.h>
8817 # else
8818 # ifdef _AIX
8819 #pragma alloca
8820 # else
8821 # ifndef alloca /* predefined by HP cc +Olibcalls */
8822 char *alloca ();
8823 # endif
8824 # endif
8825 # endif
8826 # endif
8827 #endif
8830 main ()
8832 char *p = (char *) alloca (1);
8833 if (p) return 0;
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext &&
8855 $as_test_x conftest$ac_exeext; then
8856 ac_cv_func_alloca_works=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_func_alloca_works=no
8864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865 conftest$ac_exeext conftest.$ac_ext
8867 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8868 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8870 if test $ac_cv_func_alloca_works = yes; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_ALLOCA 1
8874 _ACEOF
8876 else
8877 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8878 # that cause trouble. Some versions do not even contain alloca or
8879 # contain a buggy version. If you still want to use their alloca,
8880 # use ar to extract alloca.o from them instead of compiling alloca.c.
8882 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8884 cat >>confdefs.h <<\_ACEOF
8885 #define C_ALLOCA 1
8886 _ACEOF
8889 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8890 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8891 if test "${ac_cv_os_cray+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 #if defined CRAY && ! defined CRAY2
8901 webecray
8902 #else
8903 wenotbecray
8904 #endif
8906 _ACEOF
8907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8908 $EGREP "webecray" >/dev/null 2>&1; then
8909 ac_cv_os_cray=yes
8910 else
8911 ac_cv_os_cray=no
8913 rm -f conftest*
8916 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8917 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8918 if test $ac_cv_os_cray = yes; then
8919 for ac_func in _getb67 GETB67 getb67; do
8920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8934 #define $ac_func innocuous_$ac_func
8936 /* System header to define __stub macros and hopefully few prototypes,
8937 which can conflict with char $ac_func (); below.
8938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8939 <limits.h> exists even on freestanding compilers. */
8941 #ifdef __STDC__
8942 # include <limits.h>
8943 #else
8944 # include <assert.h>
8945 #endif
8947 #undef $ac_func
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 char $ac_func ();
8956 /* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959 #if defined __stub_$ac_func || defined __stub___$ac_func
8960 choke me
8961 #endif
8964 main ()
8966 return $ac_func ();
8968 return 0;
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8973 case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest$ac_exeext &&
8988 $as_test_x conftest$ac_exeext; then
8989 eval "$as_ac_var=yes"
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 eval "$as_ac_var=no"
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8998 conftest$ac_exeext conftest.$ac_ext
9000 ac_res=`eval echo '${'$as_ac_var'}'`
9001 { echo "$as_me:$LINENO: result: $ac_res" >&5
9002 echo "${ECHO_T}$ac_res" >&6; }
9003 if test `eval echo '${'$as_ac_var'}'` = yes; then
9005 cat >>confdefs.h <<_ACEOF
9006 #define CRAY_STACKSEG_END $ac_func
9007 _ACEOF
9009 break
9012 done
9015 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9016 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9017 if test "${ac_cv_c_stack_direction+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 if test "$cross_compiling" = yes; then
9021 ac_cv_c_stack_direction=0
9022 else
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9031 find_stack_direction ()
9033 static char *addr = 0;
9034 auto char dummy;
9035 if (addr == 0)
9037 addr = &dummy;
9038 return find_stack_direction ();
9040 else
9041 return (&dummy > addr) ? 1 : -1;
9045 main ()
9047 return find_stack_direction () < 0;
9049 _ACEOF
9050 rm -f conftest$ac_exeext
9051 if { (ac_try="$ac_link"
9052 case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_link") 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_c_stack_direction=1
9071 else
9072 echo "$as_me: program exited with status $ac_status" >&5
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ( exit $ac_status )
9077 ac_cv_c_stack_direction=-1
9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9084 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9085 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9087 cat >>confdefs.h <<_ACEOF
9088 #define STACK_DIRECTION $ac_cv_c_stack_direction
9089 _ACEOF
9099 ac_header_dirent=no
9100 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9101 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9102 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9103 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114 #include <$ac_hdr>
9117 main ()
9119 if ((DIR *) 0)
9120 return 0;
9122 return 0;
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9127 case "(($ac_try" in
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9130 esac
9131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_compile") 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_c_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest.$ac_objext; then
9142 eval "$as_ac_Header=yes"
9143 else
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 eval "$as_ac_Header=no"
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 ac_res=`eval echo '${'$as_ac_Header'}'`
9153 { echo "$as_me:$LINENO: result: $ac_res" >&5
9154 echo "${ECHO_T}$ac_res" >&6; }
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9158 _ACEOF
9160 ac_header_dirent=$ac_hdr; break
9163 done
9164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9165 if test $ac_header_dirent = dirent.h; then
9166 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9167 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9168 if test "${ac_cv_search_opendir+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171 ac_func_search_save_LIBS=$LIBS
9172 cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h. */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char opendir ();
9187 main ()
9189 return opendir ();
9191 return 0;
9193 _ACEOF
9194 for ac_lib in '' dir; do
9195 if test -z "$ac_lib"; then
9196 ac_res="none required"
9197 else
9198 ac_res=-l$ac_lib
9199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (ac_try="$ac_link"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_link") 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } && {
9215 test -z "$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 } && test -s conftest$ac_exeext &&
9218 $as_test_x conftest$ac_exeext; then
9219 ac_cv_search_opendir=$ac_res
9220 else
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext
9229 if test "${ac_cv_search_opendir+set}" = set; then
9230 break
9232 done
9233 if test "${ac_cv_search_opendir+set}" = set; then
9235 else
9236 ac_cv_search_opendir=no
9238 rm conftest.$ac_ext
9239 LIBS=$ac_func_search_save_LIBS
9241 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9242 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9243 ac_res=$ac_cv_search_opendir
9244 if test "$ac_res" != no; then
9245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9249 else
9250 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9252 if test "${ac_cv_search_opendir+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 ac_func_search_save_LIBS=$LIBS
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9263 /* Override any GCC internal prototype to avoid an error.
9264 Use char because int might match the return type of a GCC
9265 builtin and then its argument prototype would still apply. */
9266 #ifdef __cplusplus
9267 extern "C"
9268 #endif
9269 char opendir ();
9271 main ()
9273 return opendir ();
9275 return 0;
9277 _ACEOF
9278 for ac_lib in '' x; do
9279 if test -z "$ac_lib"; then
9280 ac_res="none required"
9281 else
9282 ac_res=-l$ac_lib
9283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (ac_try="$ac_link"
9287 case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_link") 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest$ac_exeext &&
9302 $as_test_x conftest$ac_exeext; then
9303 ac_cv_search_opendir=$ac_res
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9312 conftest$ac_exeext
9313 if test "${ac_cv_search_opendir+set}" = set; then
9314 break
9316 done
9317 if test "${ac_cv_search_opendir+set}" = set; then
9319 else
9320 ac_cv_search_opendir=no
9322 rm conftest.$ac_ext
9323 LIBS=$ac_func_search_save_LIBS
9325 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9327 ac_res=$ac_cv_search_opendir
9328 if test "$ac_res" != no; then
9329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9335 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9337 if test "${ac_cv_header_stdc+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <stdlib.h>
9347 #include <stdarg.h>
9348 #include <string.h>
9349 #include <float.h>
9352 main ()
9356 return 0;
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_cv_header_stdc=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_cv_header_stdc=no
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 if test $ac_cv_header_stdc = yes; then
9387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 #include <string.h>
9396 _ACEOF
9397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9398 $EGREP "memchr" >/dev/null 2>&1; then
9400 else
9401 ac_cv_header_stdc=no
9403 rm -f conftest*
9407 if test $ac_cv_header_stdc = yes; then
9408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 #include <stdlib.h>
9417 _ACEOF
9418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9419 $EGREP "free" >/dev/null 2>&1; then
9421 else
9422 ac_cv_header_stdc=no
9424 rm -f conftest*
9428 if test $ac_cv_header_stdc = yes; then
9429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9430 if test "$cross_compiling" = yes; then
9432 else
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 #include <ctype.h>
9440 #include <stdlib.h>
9441 #if ((' ' & 0x0FF) == 0x020)
9442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9444 #else
9445 # define ISLOWER(c) \
9446 (('a' <= (c) && (c) <= 'i') \
9447 || ('j' <= (c) && (c) <= 'r') \
9448 || ('s' <= (c) && (c) <= 'z'))
9449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9450 #endif
9452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9454 main ()
9456 int i;
9457 for (i = 0; i < 256; i++)
9458 if (XOR (islower (i), ISLOWER (i))
9459 || toupper (i) != TOUPPER (i))
9460 return 2;
9461 return 0;
9463 _ACEOF
9464 rm -f conftest$ac_exeext
9465 if { (ac_try="$ac_link"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9485 else
9486 echo "$as_me: program exited with status $ac_status" >&5
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ( exit $ac_status )
9491 ac_cv_header_stdc=no
9493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9500 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9501 if test $ac_cv_header_stdc = yes; then
9503 cat >>confdefs.h <<\_ACEOF
9504 #define STDC_HEADERS 1
9505 _ACEOF
9509 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9510 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9511 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <sys/types.h>
9521 #include <sys/wait.h>
9522 #ifndef WEXITSTATUS
9523 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9524 #endif
9525 #ifndef WIFEXITED
9526 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9527 #endif
9530 main ()
9532 int s;
9533 wait (&s);
9534 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (ac_try="$ac_compile"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.$ac_objext; then
9556 ac_cv_header_sys_wait_h=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_cv_header_sys_wait_h=no
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9567 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9568 if test $ac_cv_header_sys_wait_h = yes; then
9570 cat >>confdefs.h <<\_ACEOF
9571 #define HAVE_SYS_WAIT_H 1
9572 _ACEOF
9599 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
9601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 ac_res=`eval echo '${'$as_ac_Header'}'`
9609 { echo "$as_me:$LINENO: result: $ac_res" >&5
9610 echo "${ECHO_T}$ac_res" >&6; }
9611 else
9612 # Is the header compilable?
9613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 $ac_includes_default
9622 #include <$ac_header>
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest.$ac_objext; then
9641 ac_header_compiler=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_header_compiler=no
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9651 echo "${ECHO_T}$ac_header_compiler" >&6; }
9653 # Is the header present?
9654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 #include <$ac_header>
9663 _ACEOF
9664 if { (ac_try="$ac_cpp conftest.$ac_ext"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } >/dev/null && {
9677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 }; then
9680 ac_header_preproc=yes
9681 else
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_header_preproc=no
9688 rm -f conftest.err conftest.$ac_ext
9689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9690 echo "${ECHO_T}$ac_header_preproc" >&6; }
9692 # So? What about this header?
9693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9694 yes:no: )
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9699 ac_header_preproc=yes
9701 no:yes:* )
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9714 ( cat <<\_ASBOX
9715 ## ------------------------------- ##
9716 ## Report this to www.asterisk.org ##
9717 ## ------------------------------- ##
9718 _ASBOX
9719 ) | sed "s/^/$as_me: WARNING: /" >&2
9721 esac
9722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 eval "$as_ac_Header=\$ac_header_preproc"
9729 ac_res=`eval echo '${'$as_ac_Header'}'`
9730 { echo "$as_me:$LINENO: result: $ac_res" >&5
9731 echo "${ECHO_T}$ac_res" >&6; }
9734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9735 cat >>confdefs.h <<_ACEOF
9736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9737 _ACEOF
9741 done
9744 # Check whether --enable-largefile was given.
9745 if test "${enable_largefile+set}" = set; then
9746 enableval=$enable_largefile;
9749 if test "$enable_largefile" != no; then
9751 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9752 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9753 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 ac_cv_sys_largefile_CC=no
9757 if test "$GCC" != yes; then
9758 ac_save_CC=$CC
9759 while :; do
9760 # IRIX 6.2 and later do not support large files by default,
9761 # so use the C compiler's -n32 option if that helps.
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 #include <sys/types.h>
9769 /* Check that off_t can represent 2**63 - 1 correctly.
9770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9771 since some C++ compilers masquerading as C compilers
9772 incorrectly reject 9223372036854775807. */
9773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9775 && LARGE_OFF_T % 2147483647 == 1)
9776 ? 1 : -1];
9778 main ()
9782 return 0;
9784 _ACEOF
9785 rm -f conftest.$ac_objext
9786 if { (ac_try="$ac_compile"
9787 case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_compile") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest.$ac_objext; then
9802 break
9803 else
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9810 rm -f core conftest.err conftest.$ac_objext
9811 CC="$CC -n32"
9812 rm -f conftest.$ac_objext
9813 if { (ac_try="$ac_compile"
9814 case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_compile") 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } && {
9826 test -z "$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 } && test -s conftest.$ac_objext; then
9829 ac_cv_sys_largefile_CC=' -n32'; break
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9837 rm -f core conftest.err conftest.$ac_objext
9838 break
9839 done
9840 CC=$ac_save_CC
9841 rm -f conftest.$ac_ext
9844 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9845 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9846 if test "$ac_cv_sys_largefile_CC" != no; then
9847 CC=$CC$ac_cv_sys_largefile_CC
9850 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9851 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9852 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855 while :; do
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 #include <sys/types.h>
9863 /* Check that off_t can represent 2**63 - 1 correctly.
9864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9865 since some C++ compilers masquerading as C compilers
9866 incorrectly reject 9223372036854775807. */
9867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9869 && LARGE_OFF_T % 2147483647 == 1)
9870 ? 1 : -1];
9872 main ()
9876 return 0;
9878 _ACEOF
9879 rm -f conftest.$ac_objext
9880 if { (ac_try="$ac_compile"
9881 case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_compile") 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && {
9893 test -z "$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9895 } && test -s conftest.$ac_objext; then
9896 ac_cv_sys_file_offset_bits=no; break
9897 else
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 #define _FILE_OFFSET_BITS 64
9912 #include <sys/types.h>
9913 /* Check that off_t can represent 2**63 - 1 correctly.
9914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9915 since some C++ compilers masquerading as C compilers
9916 incorrectly reject 9223372036854775807. */
9917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9919 && LARGE_OFF_T % 2147483647 == 1)
9920 ? 1 : -1];
9922 main ()
9926 return 0;
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (ac_try="$ac_compile"
9931 case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_compile") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest.$ac_objext; then
9946 ac_cv_sys_file_offset_bits=64; break
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 ac_cv_sys_file_offset_bits=unknown
9956 break
9957 done
9959 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9960 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
9961 case $ac_cv_sys_file_offset_bits in #(
9962 no | unknown) ;;
9964 cat >>confdefs.h <<_ACEOF
9965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9966 _ACEOF
9968 esac
9969 rm -f conftest*
9970 if test $ac_cv_sys_file_offset_bits = unknown; then
9971 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9972 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
9973 if test "${ac_cv_sys_large_files+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 while :; do
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 #include <sys/types.h>
9984 /* Check that off_t can represent 2**63 - 1 correctly.
9985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9986 since some C++ compilers masquerading as C compilers
9987 incorrectly reject 9223372036854775807. */
9988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9990 && LARGE_OFF_T % 2147483647 == 1)
9991 ? 1 : -1];
9993 main ()
9997 return 0;
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_compile") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest.$ac_objext; then
10017 ac_cv_sys_large_files=no; break
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #define _LARGE_FILES 1
10033 #include <sys/types.h>
10034 /* Check that off_t can represent 2**63 - 1 correctly.
10035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10036 since some C++ compilers masquerading as C compilers
10037 incorrectly reject 9223372036854775807. */
10038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10040 && LARGE_OFF_T % 2147483647 == 1)
10041 ? 1 : -1];
10043 main ()
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_compile") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest.$ac_objext; then
10067 ac_cv_sys_large_files=1; break
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 ac_cv_sys_large_files=unknown
10077 break
10078 done
10080 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10081 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10082 case $ac_cv_sys_large_files in #(
10083 no | unknown) ;;
10085 cat >>confdefs.h <<_ACEOF
10086 #define _LARGE_FILES $ac_cv_sys_large_files
10087 _ACEOF
10089 esac
10090 rm -f conftest*
10095 # Checks for typedefs, structures, and compiler characteristics.
10096 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10097 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10098 if test "${ac_cv_header_stdbool_h+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h. */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10108 #include <stdbool.h>
10109 #ifndef bool
10110 "error: bool is not defined"
10111 #endif
10112 #ifndef false
10113 "error: false is not defined"
10114 #endif
10115 #if false
10116 "error: false is not 0"
10117 #endif
10118 #ifndef true
10119 "error: true is not defined"
10120 #endif
10121 #if true != 1
10122 "error: true is not 1"
10123 #endif
10124 #ifndef __bool_true_false_are_defined
10125 "error: __bool_true_false_are_defined is not defined"
10126 #endif
10128 struct s { _Bool s: 1; _Bool t; } s;
10130 char a[true == 1 ? 1 : -1];
10131 char b[false == 0 ? 1 : -1];
10132 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10133 char d[(bool) 0.5 == true ? 1 : -1];
10134 bool e = &s;
10135 char f[(_Bool) 0.0 == false ? 1 : -1];
10136 char g[true];
10137 char h[sizeof (_Bool)];
10138 char i[sizeof s.t];
10139 enum { j = false, k = true, l = false * true, m = true * 256 };
10140 _Bool n[m];
10141 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10142 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10143 # if defined __xlc__ || defined __GNUC__
10144 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10145 reported by James Lemley on 2005-10-05; see
10146 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10147 This test is not quite right, since xlc is allowed to
10148 reject this program, as the initializer for xlcbug is
10149 not one of the forms that C requires support for.
10150 However, doing the test right would require a runtime
10151 test, and that would make cross-compilation harder.
10152 Let us hope that IBM fixes the xlc bug, and also adds
10153 support for this kind of constant expression. In the
10154 meantime, this test will reject xlc, which is OK, since
10155 our stdbool.h substitute should suffice. We also test
10156 this with GCC, where it should work, to detect more
10157 quickly whether someone messes up the test in the
10158 future. */
10159 char digs[] = "0123456789";
10160 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10161 # endif
10162 /* Catch a bug in an HP-UX C compiler. See
10163 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10164 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10166 _Bool q = true;
10167 _Bool *pq = &q;
10170 main ()
10173 *pq |= q;
10174 *pq |= ! q;
10175 /* Refer to every declared value, to avoid compiler optimizations. */
10176 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10177 + !m + !n + !o + !p + !q + !pq);
10180 return 0;
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (ac_try="$ac_compile"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest.$ac_objext; then
10200 ac_cv_header_stdbool_h=yes
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_cv_header_stdbool_h=no
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10211 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10212 { echo "$as_me:$LINENO: checking for _Bool" >&5
10213 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10214 if test "${ac_cv_type__Bool+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h. */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10224 typedef _Bool ac__type_new_;
10226 main ()
10228 if ((ac__type_new_ *) 0)
10229 return 0;
10230 if (sizeof (ac__type_new_))
10231 return 0;
10233 return 0;
10235 _ACEOF
10236 rm -f conftest.$ac_objext
10237 if { (ac_try="$ac_compile"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 ac_cv_type__Bool=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_cv_type__Bool=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10264 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10265 if test $ac_cv_type__Bool = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define HAVE__BOOL 1
10269 _ACEOF
10274 if test $ac_cv_header_stdbool_h = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_STDBOOL_H 1
10278 _ACEOF
10282 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10283 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10284 if test "${ac_cv_c_const+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10295 main ()
10297 /* FIXME: Include the comments suggested by Paul. */
10298 #ifndef __cplusplus
10299 /* Ultrix mips cc rejects this. */
10300 typedef int charset[2];
10301 const charset cs;
10302 /* SunOS 4.1.1 cc rejects this. */
10303 char const *const *pcpcc;
10304 char **ppc;
10305 /* NEC SVR4.0.2 mips cc rejects this. */
10306 struct point {int x, y;};
10307 static struct point const zero = {0,0};
10308 /* AIX XL C 1.02.0.0 rejects this.
10309 It does not let you subtract one const X* pointer from another in
10310 an arm of an if-expression whose if-part is not a constant
10311 expression */
10312 const char *g = "string";
10313 pcpcc = &g + (g ? g-g : 0);
10314 /* HPUX 7.0 cc rejects these. */
10315 ++pcpcc;
10316 ppc = (char**) pcpcc;
10317 pcpcc = (char const *const *) ppc;
10318 { /* SCO 3.2v4 cc rejects this. */
10319 char *t;
10320 char const *s = 0 ? (char *) 0 : (char const *) 0;
10322 *t++ = 0;
10323 if (s) return 0;
10325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10326 int x[] = {25, 17};
10327 const int *foo = &x[0];
10328 ++foo;
10330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10331 typedef const int *iptr;
10332 iptr p = 0;
10333 ++p;
10335 { /* AIX XL C 1.02.0.0 rejects this saying
10336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10337 struct s { int j; const int *ap[3]; };
10338 struct s *b; b->j = 5;
10340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10341 const int foo = 10;
10342 if (!foo) return 0;
10344 return !cs[0] && !zero.x;
10345 #endif
10348 return 0;
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (ac_try="$ac_compile"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_compile") 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest.$ac_objext; then
10368 ac_cv_c_const=yes
10369 else
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 ac_cv_c_const=no
10376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10379 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10380 if test $ac_cv_c_const = no; then
10382 cat >>confdefs.h <<\_ACEOF
10383 #define const
10384 _ACEOF
10388 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10389 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10390 if test "${ac_cv_type_uid_t+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <sys/types.h>
10401 _ACEOF
10402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10403 $EGREP "uid_t" >/dev/null 2>&1; then
10404 ac_cv_type_uid_t=yes
10405 else
10406 ac_cv_type_uid_t=no
10408 rm -f conftest*
10411 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10412 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10413 if test $ac_cv_type_uid_t = no; then
10415 cat >>confdefs.h <<\_ACEOF
10416 #define uid_t int
10417 _ACEOF
10420 cat >>confdefs.h <<\_ACEOF
10421 #define gid_t int
10422 _ACEOF
10426 { echo "$as_me:$LINENO: checking for inline" >&5
10427 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10428 if test "${ac_cv_c_inline+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431 ac_cv_c_inline=no
10432 for ac_kw in inline __inline__ __inline; do
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #ifndef __cplusplus
10440 typedef int foo_t;
10441 static $ac_kw foo_t static_foo () {return 0; }
10442 $ac_kw foo_t foo () {return 0; }
10443 #endif
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10463 ac_cv_c_inline=$ac_kw
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 test "$ac_cv_c_inline" != no && break
10473 done
10476 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10477 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10480 case $ac_cv_c_inline in
10481 inline | yes) ;;
10483 case $ac_cv_c_inline in
10484 no) ac_val=;;
10485 *) ac_val=$ac_cv_c_inline;;
10486 esac
10487 cat >>confdefs.h <<_ACEOF
10488 #ifndef __cplusplus
10489 #define inline $ac_val
10490 #endif
10491 _ACEOF
10493 esac
10495 { echo "$as_me:$LINENO: checking for mode_t" >&5
10496 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10497 if test "${ac_cv_type_mode_t+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 typedef mode_t ac__type_new_;
10509 main ()
10511 if ((ac__type_new_ *) 0)
10512 return 0;
10513 if (sizeof (ac__type_new_))
10514 return 0;
10516 return 0;
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_compile") 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest.$ac_objext; then
10536 ac_cv_type_mode_t=yes
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_cv_type_mode_t=no
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10547 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10548 if test $ac_cv_type_mode_t = yes; then
10550 else
10552 cat >>confdefs.h <<_ACEOF
10553 #define mode_t int
10554 _ACEOF
10558 { echo "$as_me:$LINENO: checking for off_t" >&5
10559 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10560 if test "${ac_cv_type_off_t+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 $ac_includes_default
10570 typedef off_t ac__type_new_;
10572 main ()
10574 if ((ac__type_new_ *) 0)
10575 return 0;
10576 if (sizeof (ac__type_new_))
10577 return 0;
10579 return 0;
10581 _ACEOF
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_cv_type_off_t=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_cv_type_off_t=no
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10610 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10611 if test $ac_cv_type_off_t = yes; then
10613 else
10615 cat >>confdefs.h <<_ACEOF
10616 #define off_t long int
10617 _ACEOF
10621 { echo "$as_me:$LINENO: checking for pid_t" >&5
10622 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10623 if test "${ac_cv_type_pid_t+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10633 typedef pid_t ac__type_new_;
10635 main ()
10637 if ((ac__type_new_ *) 0)
10638 return 0;
10639 if (sizeof (ac__type_new_))
10640 return 0;
10642 return 0;
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } && {
10659 test -z "$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 } && test -s conftest.$ac_objext; then
10662 ac_cv_type_pid_t=yes
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_type_pid_t=no
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10673 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10674 if test $ac_cv_type_pid_t = yes; then
10676 else
10678 cat >>confdefs.h <<_ACEOF
10679 #define pid_t int
10680 _ACEOF
10684 { echo "$as_me:$LINENO: checking for size_t" >&5
10685 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10686 if test "${ac_cv_type_size_t+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10696 typedef size_t ac__type_new_;
10698 main ()
10700 if ((ac__type_new_ *) 0)
10701 return 0;
10702 if (sizeof (ac__type_new_))
10703 return 0;
10705 return 0;
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest.$ac_objext; then
10725 ac_cv_type_size_t=yes
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_type_size_t=no
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10736 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10737 if test $ac_cv_type_size_t = yes; then
10739 else
10741 cat >>confdefs.h <<_ACEOF
10742 #define size_t unsigned int
10743 _ACEOF
10747 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10748 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10749 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 $ac_includes_default
10760 main ()
10762 static struct stat ac_aggr;
10763 if (ac_aggr.st_blksize)
10764 return 0;
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (ac_try="$ac_compile"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_compile") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest.$ac_objext; then
10786 ac_cv_member_struct_stat_st_blksize=yes
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 $ac_includes_default
10799 main ()
10801 static struct stat ac_aggr;
10802 if (sizeof ac_aggr.st_blksize)
10803 return 0;
10805 return 0;
10807 _ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (ac_try="$ac_compile"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_compile") 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest.$ac_objext; then
10825 ac_cv_member_struct_stat_st_blksize=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_member_struct_stat_st_blksize=no
10833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10839 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10840 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10844 _ACEOF
10849 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10851 if test "${ac_cv_header_time+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <sys/types.h>
10861 #include <sys/time.h>
10862 #include <time.h>
10865 main ()
10867 if ((struct tm *) 0)
10868 return 0;
10870 return 0;
10872 _ACEOF
10873 rm -f conftest.$ac_objext
10874 if { (ac_try="$ac_compile"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_cv_header_time=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_cv_header_time=no
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10901 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10902 if test $ac_cv_header_time = yes; then
10904 cat >>confdefs.h <<\_ACEOF
10905 #define TIME_WITH_SYS_TIME 1
10906 _ACEOF
10910 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10911 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10912 if test "${ac_cv_struct_tm+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <sys/types.h>
10922 #include <time.h>
10925 main ()
10927 struct tm tm;
10928 int *p = &tm.tm_sec;
10929 return !p;
10931 return 0;
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest.$ac_objext; then
10951 ac_cv_struct_tm=time.h
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_cv_struct_tm=sys/time.h
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10962 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10963 if test $ac_cv_struct_tm = sys/time.h; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define TM_IN_SYS_TIME 1
10967 _ACEOF
10971 { echo "$as_me:$LINENO: checking for working volatile" >&5
10972 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
10973 if test "${ac_cv_c_volatile+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10984 main ()
10987 volatile int x;
10988 int * volatile y = (int *) 0;
10989 return !x && !y;
10991 return 0;
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (ac_try="$ac_compile"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_compile") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest.$ac_objext; then
11011 ac_cv_c_volatile=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_c_volatile=no
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11022 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11023 if test $ac_cv_c_volatile = no; then
11025 cat >>confdefs.h <<\_ACEOF
11026 #define volatile
11027 _ACEOF
11031 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11032 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11033 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 $ac_includes_default
11043 typedef ptrdiff_t ac__type_new_;
11045 main ()
11047 if ((ac__type_new_ *) 0)
11048 return 0;
11049 if (sizeof (ac__type_new_))
11050 return 0;
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (ac_try="$ac_compile"
11057 case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_compile") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest.$ac_objext; then
11072 ac_cv_type_ptrdiff_t=yes
11073 else
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_cv_type_ptrdiff_t=no
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11083 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11084 if test $ac_cv_type_ptrdiff_t = yes; then
11086 cat >>confdefs.h <<_ACEOF
11087 #define HAVE_PTRDIFF_T 1
11088 _ACEOF
11094 # Checks for library functions.
11096 for ac_header in unistd.h
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11108 else
11109 # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 $ac_includes_default
11119 #include <$ac_header>
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_header_compiler=yes
11139 else
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null && {
11174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11175 test ! -s conftest.err
11176 }; then
11177 ac_header_preproc=yes
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ac_header_preproc=no
11185 rm -f conftest.err conftest.$ac_ext
11186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11187 echo "${ECHO_T}$ac_header_preproc" >&6; }
11189 # So? What about this header?
11190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11191 yes:no: )
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11196 ac_header_preproc=yes
11198 no:yes:* )
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11211 ( cat <<\_ASBOX
11212 ## ------------------------------- ##
11213 ## Report this to www.asterisk.org ##
11214 ## ------------------------------- ##
11215 _ASBOX
11216 ) | sed "s/^/$as_me: WARNING: /" >&2
11218 esac
11219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 eval "$as_ac_Header=\$ac_header_preproc"
11226 ac_res=`eval echo '${'$as_ac_Header'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11234 _ACEOF
11238 done
11240 { echo "$as_me:$LINENO: checking for working chown" >&5
11241 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11242 if test "${ac_cv_func_chown_works+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245 if test "$cross_compiling" = yes; then
11246 ac_cv_func_chown_works=no
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 $ac_includes_default
11255 #include <fcntl.h>
11258 main ()
11260 char *f = "conftest.chown";
11261 struct stat before, after;
11263 if (creat (f, 0600) < 0)
11264 return 1;
11265 if (stat (f, &before) < 0)
11266 return 1;
11267 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11268 return 1;
11269 if (stat (f, &after) < 0)
11270 return 1;
11271 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11274 return 0;
11276 _ACEOF
11277 rm -f conftest$ac_exeext
11278 if { (ac_try="$ac_link"
11279 case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_link") 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 ac_cv_func_chown_works=yes
11298 else
11299 echo "$as_me: program exited with status $ac_status" >&5
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ( exit $ac_status )
11304 ac_cv_func_chown_works=no
11306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11310 rm -f conftest.chown
11313 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11314 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11315 if test $ac_cv_func_chown_works = yes; then
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_CHOWN 1
11319 _ACEOF
11323 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11324 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11325 if test "${ac_cv_func_closedir_void+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 if test "$cross_compiling" = yes; then
11329 ac_cv_func_closedir_void=yes
11330 else
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header_dirent>
11339 #ifndef __cplusplus
11340 int closedir ();
11341 #endif
11344 main ()
11346 return closedir (opendir (".")) != 0;
11348 return 0;
11350 _ACEOF
11351 rm -f conftest$ac_exeext
11352 if { (ac_try="$ac_link"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_link") 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_func_closedir_void=no
11372 else
11373 echo "$as_me: program exited with status $ac_status" >&5
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ( exit $ac_status )
11378 ac_cv_func_closedir_void=yes
11380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11385 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11386 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11387 if test $ac_cv_func_closedir_void = yes; then
11389 cat >>confdefs.h <<\_ACEOF
11390 #define CLOSEDIR_VOID 1
11391 _ACEOF
11395 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11396 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11397 if test "${ac_cv_lib_error_at_line+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 #include <error.h>
11408 main ()
11410 error_at_line (0, 0, "", 0, "an error occurred");
11412 return 0;
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (ac_try="$ac_link"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420 esac
11421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_link") 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest$ac_exeext &&
11432 $as_test_x conftest$ac_exeext; then
11433 ac_cv_lib_error_at_line=yes
11434 else
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_cv_lib_error_at_line=no
11441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11442 conftest$ac_exeext conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11445 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11446 if test $ac_cv_lib_error_at_line = no; then
11447 case " $LIBOBJS " in
11448 *" error.$ac_objext "* ) ;;
11449 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11451 esac
11456 for ac_header in vfork.h
11458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11468 else
11469 # Is the header compilable?
11470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 $ac_includes_default
11479 #include <$ac_header>
11480 _ACEOF
11481 rm -f conftest.$ac_objext
11482 if { (ac_try="$ac_compile"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest.$ac_objext; then
11498 ac_header_compiler=yes
11499 else
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ac_header_compiler=no
11506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11508 echo "${ECHO_T}$ac_header_compiler" >&6; }
11510 # Is the header present?
11511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <$ac_header>
11520 _ACEOF
11521 if { (ac_try="$ac_cpp conftest.$ac_ext"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } >/dev/null && {
11534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11535 test ! -s conftest.err
11536 }; then
11537 ac_header_preproc=yes
11538 else
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 ac_header_preproc=no
11545 rm -f conftest.err conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11547 echo "${ECHO_T}$ac_header_preproc" >&6; }
11549 # So? What about this header?
11550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11551 yes:no: )
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11556 ac_header_preproc=yes
11558 no:yes:* )
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11571 ( cat <<\_ASBOX
11572 ## ------------------------------- ##
11573 ## Report this to www.asterisk.org ##
11574 ## ------------------------------- ##
11575 _ASBOX
11576 ) | sed "s/^/$as_me: WARNING: /" >&2
11578 esac
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 eval "$as_ac_Header=\$ac_header_preproc"
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594 _ACEOF
11598 done
11602 for ac_func in fork vfork
11604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11618 #define $ac_func innocuous_$ac_func
11620 /* System header to define __stub macros and hopefully few prototypes,
11621 which can conflict with char $ac_func (); below.
11622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623 <limits.h> exists even on freestanding compilers. */
11625 #ifdef __STDC__
11626 # include <limits.h>
11627 #else
11628 # include <assert.h>
11629 #endif
11631 #undef $ac_func
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char $ac_func ();
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined __stub_$ac_func || defined __stub___$ac_func
11644 choke me
11645 #endif
11648 main ()
11650 return $ac_func ();
11652 return 0;
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest$ac_exeext &&
11672 $as_test_x conftest$ac_exeext; then
11673 eval "$as_ac_var=yes"
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 eval "$as_ac_var=no"
11681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11682 conftest$ac_exeext conftest.$ac_ext
11684 ac_res=`eval echo '${'$as_ac_var'}'`
11685 { echo "$as_me:$LINENO: result: $ac_res" >&5
11686 echo "${ECHO_T}$ac_res" >&6; }
11687 if test `eval echo '${'$as_ac_var'}'` = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11690 _ACEOF
11693 done
11695 if test "x$ac_cv_func_fork" = xyes; then
11696 { echo "$as_me:$LINENO: checking for working fork" >&5
11697 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11698 if test "${ac_cv_func_fork_works+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701 if test "$cross_compiling" = yes; then
11702 ac_cv_func_fork_works=cross
11703 else
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11712 main ()
11715 /* By Ruediger Kuhlmann. */
11716 return fork () < 0;
11719 return 0;
11721 _ACEOF
11722 rm -f conftest$ac_exeext
11723 if { (ac_try="$ac_link"
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_link") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11733 { (case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_try") 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_func_fork_works=yes
11743 else
11744 echo "$as_me: program exited with status $ac_status" >&5
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 ( exit $ac_status )
11749 ac_cv_func_fork_works=no
11751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11756 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11757 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11759 else
11760 ac_cv_func_fork_works=$ac_cv_func_fork
11762 if test "x$ac_cv_func_fork_works" = xcross; then
11763 case $host in
11764 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11765 # Override, as these systems have only a dummy fork() stub
11766 ac_cv_func_fork_works=no
11769 ac_cv_func_fork_works=yes
11771 esac
11772 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11773 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11775 ac_cv_func_vfork_works=$ac_cv_func_vfork
11776 if test "x$ac_cv_func_vfork" = xyes; then
11777 { echo "$as_me:$LINENO: checking for working vfork" >&5
11778 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11779 if test "${ac_cv_func_vfork_works+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 if test "$cross_compiling" = yes; then
11783 ac_cv_func_vfork_works=cross
11784 else
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 /* Thanks to Paul Eggert for this test. */
11792 $ac_includes_default
11793 #include <sys/wait.h>
11794 #ifdef HAVE_VFORK_H
11795 # include <vfork.h>
11796 #endif
11797 /* On some sparc systems, changes by the child to local and incoming
11798 argument registers are propagated back to the parent. The compiler
11799 is told about this with #include <vfork.h>, but some compilers
11800 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11801 static variable whose address is put into a register that is
11802 clobbered by the vfork. */
11803 static void
11804 #ifdef __cplusplus
11805 sparc_address_test (int arg)
11806 # else
11807 sparc_address_test (arg) int arg;
11808 #endif
11810 static pid_t child;
11811 if (!child) {
11812 child = vfork ();
11813 if (child < 0) {
11814 perror ("vfork");
11815 _exit(2);
11817 if (!child) {
11818 arg = getpid();
11819 write(-1, "", 0);
11820 _exit (arg);
11826 main ()
11828 pid_t parent = getpid ();
11829 pid_t child;
11831 sparc_address_test (0);
11833 child = vfork ();
11835 if (child == 0) {
11836 /* Here is another test for sparc vfork register problems. This
11837 test uses lots of local variables, at least as many local
11838 variables as main has allocated so far including compiler
11839 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11840 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11841 reuse the register of parent for one of the local variables,
11842 since it will think that parent can't possibly be used any more
11843 in this routine. Assigning to the local variable will thus
11844 munge parent in the parent process. */
11845 pid_t
11846 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11847 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11848 /* Convince the compiler that p..p7 are live; otherwise, it might
11849 use the same hardware register for all 8 local variables. */
11850 if (p != p1 || p != p2 || p != p3 || p != p4
11851 || p != p5 || p != p6 || p != p7)
11852 _exit(1);
11854 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11855 from child file descriptors. If the child closes a descriptor
11856 before it execs or exits, this munges the parent's descriptor
11857 as well. Test for this by closing stdout in the child. */
11858 _exit(close(fileno(stdout)) != 0);
11859 } else {
11860 int status;
11861 struct stat st;
11863 while (wait(&status) != child)
11865 return (
11866 /* Was there some problem with vforking? */
11867 child < 0
11869 /* Did the child fail? (This shouldn't happen.) */
11870 || status
11872 /* Did the vfork/compiler bug occur? */
11873 || parent != getpid()
11875 /* Did the file descriptor bug occur? */
11876 || fstat(fileno(stdout), &st) != 0
11880 _ACEOF
11881 rm -f conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_func_vfork_works=yes
11902 else
11903 echo "$as_me: program exited with status $ac_status" >&5
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ( exit $ac_status )
11908 ac_cv_func_vfork_works=no
11910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11915 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11916 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11919 if test "x$ac_cv_func_fork_works" = xcross; then
11920 ac_cv_func_vfork_works=$ac_cv_func_vfork
11921 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11922 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11925 if test "x$ac_cv_func_vfork_works" = xyes; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define HAVE_WORKING_VFORK 1
11929 _ACEOF
11931 else
11933 cat >>confdefs.h <<\_ACEOF
11934 #define vfork fork
11935 _ACEOF
11938 if test "x$ac_cv_func_fork_works" = xyes; then
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_WORKING_FORK 1
11942 _ACEOF
11946 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11947 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
11948 if test "${ac_cv_sys_largefile_source+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 while :; do
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 #include <sys/types.h> /* for off_t */
11959 #include <stdio.h>
11961 main ()
11963 int (*fp) (FILE *, off_t, int) = fseeko;
11964 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11966 return 0;
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_link") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest$ac_exeext &&
11986 $as_test_x conftest$ac_exeext; then
11987 ac_cv_sys_largefile_source=no; break
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11996 conftest$ac_exeext conftest.$ac_ext
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #define _LARGEFILE_SOURCE 1
12004 #include <sys/types.h> /* for off_t */
12005 #include <stdio.h>
12007 main ()
12009 int (*fp) (FILE *, off_t, int) = fseeko;
12010 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12012 return 0;
12014 _ACEOF
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } && {
12029 test -z "$ac_c_werror_flag" ||
12030 test ! -s conftest.err
12031 } && test -s conftest$ac_exeext &&
12032 $as_test_x conftest$ac_exeext; then
12033 ac_cv_sys_largefile_source=1; break
12034 else
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12042 conftest$ac_exeext conftest.$ac_ext
12043 ac_cv_sys_largefile_source=unknown
12044 break
12045 done
12047 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12048 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12049 case $ac_cv_sys_largefile_source in #(
12050 no | unknown) ;;
12052 cat >>confdefs.h <<_ACEOF
12053 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12054 _ACEOF
12056 esac
12057 rm -f conftest*
12059 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12060 # in glibc 2.1.3, but that breaks too many other things.
12061 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12062 if test $ac_cv_sys_largefile_source != unknown; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_FSEEKO 1
12066 _ACEOF
12070 if test $ac_cv_c_compiler_gnu = yes; then
12071 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 ac_pattern="Autoconf.*'x'"
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <sgtty.h>
12084 Autoconf TIOCGETP
12085 _ACEOF
12086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12087 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12088 ac_cv_prog_gcc_traditional=yes
12089 else
12090 ac_cv_prog_gcc_traditional=no
12092 rm -f conftest*
12095 if test $ac_cv_prog_gcc_traditional = no; then
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 #include <termio.h>
12103 Autoconf TCGETA
12104 _ACEOF
12105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12106 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12107 ac_cv_prog_gcc_traditional=yes
12109 rm -f conftest*
12113 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12114 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12115 if test $ac_cv_prog_gcc_traditional = yes; then
12116 CC="$CC -traditional"
12120 # XXX: these are commented out until we determine whether it matters if our malloc()
12121 # acts exactly like glibc's or not
12122 # AC_FUNC_MALLOC
12123 # AC_FUNC_REALLOC
12124 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12125 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12126 if test "${ac_cv_func_memcmp_working+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 if test "$cross_compiling" = yes; then
12130 ac_cv_func_memcmp_working=no
12131 else
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12140 main ()
12143 /* Some versions of memcmp are not 8-bit clean. */
12144 char c0 = '\100', c1 = '\200', c2 = '\201';
12145 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12146 return 1;
12148 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12149 or more and with at least one buffer not starting on a 4-byte boundary.
12150 William Lewis provided this test program. */
12152 char foo[21];
12153 char bar[21];
12154 int i;
12155 for (i = 0; i < 4; i++)
12157 char *a = foo + i;
12158 char *b = bar + i;
12159 strcpy (a, "--------01111111");
12160 strcpy (b, "--------10000000");
12161 if (memcmp (a, b, 16) >= 0)
12162 return 1;
12164 return 0;
12168 return 0;
12170 _ACEOF
12171 rm -f conftest$ac_exeext
12172 if { (ac_try="$ac_link"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_link") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12182 { (case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_try") 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_cv_func_memcmp_working=yes
12192 else
12193 echo "$as_me: program exited with status $ac_status" >&5
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ( exit $ac_status )
12198 ac_cv_func_memcmp_working=no
12200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12205 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12206 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12207 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12208 *" memcmp.$ac_objext "* ) ;;
12209 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12211 esac
12218 for ac_header in $ac_header_list
12220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 ac_res=`eval echo '${'$as_ac_Header'}'`
12228 { echo "$as_me:$LINENO: result: $ac_res" >&5
12229 echo "${ECHO_T}$ac_res" >&6; }
12230 else
12231 # Is the header compilable?
12232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 #include <$ac_header>
12242 _ACEOF
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_compiler=no
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 echo "${ECHO_T}$ac_header_compiler" >&6; }
12272 # Is the header present?
12273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <$ac_header>
12282 _ACEOF
12283 if { (ac_try="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } >/dev/null && {
12296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 }; then
12299 ac_header_preproc=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_header_preproc=no
12307 rm -f conftest.err conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12309 echo "${ECHO_T}$ac_header_preproc" >&6; }
12311 # So? What about this header?
12312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12313 yes:no: )
12314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12318 ac_header_preproc=yes
12320 no:yes:* )
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12333 ( cat <<\_ASBOX
12334 ## ------------------------------- ##
12335 ## Report this to www.asterisk.org ##
12336 ## ------------------------------- ##
12337 _ASBOX
12338 ) | sed "s/^/$as_me: WARNING: /" >&2
12340 esac
12341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346 eval "$as_ac_Header=\$ac_header_preproc"
12348 ac_res=`eval echo '${'$as_ac_Header'}'`
12349 { echo "$as_me:$LINENO: result: $ac_res" >&5
12350 echo "${ECHO_T}$ac_res" >&6; }
12353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12354 cat >>confdefs.h <<_ACEOF
12355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12356 _ACEOF
12360 done
12370 for ac_func in $ac_func_list
12372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h. */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386 #define $ac_func innocuous_$ac_func
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12393 #ifdef __STDC__
12394 # include <limits.h>
12395 #else
12396 # include <assert.h>
12397 #endif
12399 #undef $ac_func
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char $ac_func ();
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined __stub_$ac_func || defined __stub___$ac_func
12412 choke me
12413 #endif
12416 main ()
12418 return $ac_func ();
12420 return 0;
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest$ac_exeext &&
12440 $as_test_x conftest$ac_exeext; then
12441 eval "$as_ac_var=yes"
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 eval "$as_ac_var=no"
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450 conftest$ac_exeext conftest.$ac_ext
12452 ac_res=`eval echo '${'$as_ac_var'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12455 if test `eval echo '${'$as_ac_var'}'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12458 _ACEOF
12461 done
12479 { echo "$as_me:$LINENO: checking for working mktime" >&5
12480 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
12481 if test "${ac_cv_func_working_mktime+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484 if test "$cross_compiling" = yes; then
12485 ac_cv_func_working_mktime=no
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 /* Test program from Paul Eggert and Tony Leneis. */
12494 #ifdef TIME_WITH_SYS_TIME
12495 # include <sys/time.h>
12496 # include <time.h>
12497 #else
12498 # ifdef HAVE_SYS_TIME_H
12499 # include <sys/time.h>
12500 # else
12501 # include <time.h>
12502 # endif
12503 #endif
12505 #include <stdlib.h>
12507 #ifdef HAVE_UNISTD_H
12508 # include <unistd.h>
12509 #endif
12511 #ifndef HAVE_ALARM
12512 # define alarm(X) /* empty */
12513 #endif
12515 /* Work around redefinition to rpl_putenv by other config tests. */
12516 #undef putenv
12518 static time_t time_t_max;
12519 static time_t time_t_min;
12521 /* Values we'll use to set the TZ environment variable. */
12522 static char *tz_strings[] = {
12523 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12524 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12526 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12528 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12529 Based on a problem report from Andreas Jaeger. */
12530 static int
12531 spring_forward_gap ()
12533 /* glibc (up to about 1998-10-07) failed this test. */
12534 struct tm tm;
12536 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12537 instead of "TZ=America/Vancouver" in order to detect the bug even
12538 on systems that don't support the Olson extension, or don't have the
12539 full zoneinfo tables installed. */
12540 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12542 tm.tm_year = 98;
12543 tm.tm_mon = 3;
12544 tm.tm_mday = 5;
12545 tm.tm_hour = 2;
12546 tm.tm_min = 0;
12547 tm.tm_sec = 0;
12548 tm.tm_isdst = -1;
12549 return mktime (&tm) != (time_t) -1;
12552 static int
12553 mktime_test1 (now)
12554 time_t now;
12556 struct tm *lt;
12557 return ! (lt = localtime (&now)) || mktime (lt) == now;
12560 static int
12561 mktime_test (now)
12562 time_t now;
12564 return (mktime_test1 (now)
12565 && mktime_test1 ((time_t) (time_t_max - now))
12566 && mktime_test1 ((time_t) (time_t_min + now)));
12569 static int
12570 irix_6_4_bug ()
12572 /* Based on code from Ariel Faigon. */
12573 struct tm tm;
12574 tm.tm_year = 96;
12575 tm.tm_mon = 3;
12576 tm.tm_mday = 0;
12577 tm.tm_hour = 0;
12578 tm.tm_min = 0;
12579 tm.tm_sec = 0;
12580 tm.tm_isdst = -1;
12581 mktime (&tm);
12582 return tm.tm_mon == 2 && tm.tm_mday == 31;
12585 static int
12586 bigtime_test (j)
12587 int j;
12589 struct tm tm;
12590 time_t now;
12591 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12592 now = mktime (&tm);
12593 if (now != (time_t) -1)
12595 struct tm *lt = localtime (&now);
12596 if (! (lt
12597 && lt->tm_year == tm.tm_year
12598 && lt->tm_mon == tm.tm_mon
12599 && lt->tm_mday == tm.tm_mday
12600 && lt->tm_hour == tm.tm_hour
12601 && lt->tm_min == tm.tm_min
12602 && lt->tm_sec == tm.tm_sec
12603 && lt->tm_yday == tm.tm_yday
12604 && lt->tm_wday == tm.tm_wday
12605 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12606 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12607 return 0;
12609 return 1;
12612 static int
12613 year_2050_test ()
12615 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12616 ignoring leap seconds. */
12617 unsigned long int answer = 2527315200UL;
12619 struct tm tm;
12620 time_t t;
12621 tm.tm_year = 2050 - 1900;
12622 tm.tm_mon = 2 - 1;
12623 tm.tm_mday = 1;
12624 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12625 tm.tm_isdst = -1;
12627 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12628 instead of "TZ=America/Vancouver" in order to detect the bug even
12629 on systems that don't support the Olson extension, or don't have the
12630 full zoneinfo tables installed. */
12631 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12633 t = mktime (&tm);
12635 /* Check that the result is either a failure, or close enough
12636 to the correct answer that we can assume the discrepancy is
12637 due to leap seconds. */
12638 return (t == (time_t) -1
12639 || (0 < t && answer - 120 <= t && t <= answer + 120));
12643 main ()
12645 time_t t, delta;
12646 int i, j;
12648 /* This test makes some buggy mktime implementations loop.
12649 Give up after 60 seconds; a mktime slower than that
12650 isn't worth using anyway. */
12651 alarm (60);
12653 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12654 continue;
12655 time_t_max--;
12656 if ((time_t) -1 < 0)
12657 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12658 continue;
12659 delta = time_t_max / 997; /* a suitable prime number */
12660 for (i = 0; i < N_STRINGS; i++)
12662 if (tz_strings[i])
12663 putenv (tz_strings[i]);
12665 for (t = 0; t <= time_t_max - delta; t += delta)
12666 if (! mktime_test (t))
12667 return 1;
12668 if (! (mktime_test ((time_t) 1)
12669 && mktime_test ((time_t) (60 * 60))
12670 && mktime_test ((time_t) (60 * 60 * 24))))
12671 return 1;
12673 for (j = 1; 0 < j; j *= 2)
12674 if (! bigtime_test (j))
12675 return 1;
12676 if (! bigtime_test (j - 1))
12677 return 1;
12679 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12681 _ACEOF
12682 rm -f conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_link") 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_func_working_mktime=yes
12703 else
12704 echo "$as_me: program exited with status $ac_status" >&5
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ( exit $ac_status )
12709 ac_cv_func_working_mktime=no
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12716 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12717 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
12718 if test $ac_cv_func_working_mktime = no; then
12719 case " $LIBOBJS " in
12720 *" mktime.$ac_objext "* ) ;;
12721 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12723 esac
12729 for ac_header in stdlib.h unistd.h
12731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_res=`eval echo '${'$as_ac_Header'}'`
12739 { echo "$as_me:$LINENO: result: $ac_res" >&5
12740 echo "${ECHO_T}$ac_res" >&6; }
12741 else
12742 # Is the header compilable?
12743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 #include <$ac_header>
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (ac_try="$ac_compile"
12756 case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_compile") 2>conftest.er1
12762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest.$ac_objext; then
12771 ac_header_compiler=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 ac_header_compiler=no
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12781 echo "${ECHO_T}$ac_header_compiler" >&6; }
12783 # Is the header present?
12784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h. */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 #include <$ac_header>
12793 _ACEOF
12794 if { (ac_try="$ac_cpp conftest.$ac_ext"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } >/dev/null && {
12807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 }; then
12810 ac_header_preproc=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_header_preproc=no
12818 rm -f conftest.err conftest.$ac_ext
12819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12820 echo "${ECHO_T}$ac_header_preproc" >&6; }
12822 # So? What about this header?
12823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12824 yes:no: )
12825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12829 ac_header_preproc=yes
12831 no:yes:* )
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12844 ( cat <<\_ASBOX
12845 ## ------------------------------- ##
12846 ## Report this to www.asterisk.org ##
12847 ## ------------------------------- ##
12848 _ASBOX
12849 ) | sed "s/^/$as_me: WARNING: /" >&2
12851 esac
12852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 eval "$as_ac_Header=\$ac_header_preproc"
12859 ac_res=`eval echo '${'$as_ac_Header'}'`
12860 { echo "$as_me:$LINENO: result: $ac_res" >&5
12861 echo "${ECHO_T}$ac_res" >&6; }
12864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12865 cat >>confdefs.h <<_ACEOF
12866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12867 _ACEOF
12871 done
12874 for ac_func in getpagesize
12876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h. */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12890 #define $ac_func innocuous_$ac_func
12892 /* System header to define __stub macros and hopefully few prototypes,
12893 which can conflict with char $ac_func (); below.
12894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12895 <limits.h> exists even on freestanding compilers. */
12897 #ifdef __STDC__
12898 # include <limits.h>
12899 #else
12900 # include <assert.h>
12901 #endif
12903 #undef $ac_func
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char $ac_func ();
12912 /* The GNU C library defines this for functions which it implements
12913 to always fail with ENOSYS. Some functions are actually named
12914 something starting with __ and the normal name is an alias. */
12915 #if defined __stub_$ac_func || defined __stub___$ac_func
12916 choke me
12917 #endif
12920 main ()
12922 return $ac_func ();
12924 return 0;
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext &&
12944 $as_test_x conftest$ac_exeext; then
12945 eval "$as_ac_var=yes"
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 eval "$as_ac_var=no"
12953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12954 conftest$ac_exeext conftest.$ac_ext
12956 ac_res=`eval echo '${'$as_ac_var'}'`
12957 { echo "$as_me:$LINENO: result: $ac_res" >&5
12958 echo "${ECHO_T}$ac_res" >&6; }
12959 if test `eval echo '${'$as_ac_var'}'` = yes; then
12960 cat >>confdefs.h <<_ACEOF
12961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12962 _ACEOF
12965 done
12967 { echo "$as_me:$LINENO: checking for working mmap" >&5
12968 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12969 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972 if test "$cross_compiling" = yes; then
12973 ac_cv_func_mmap_fixed_mapped=no
12974 else
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h. */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12982 /* malloc might have been renamed as rpl_malloc. */
12983 #undef malloc
12985 /* Thanks to Mike Haertel and Jim Avera for this test.
12986 Here is a matrix of mmap possibilities:
12987 mmap private not fixed
12988 mmap private fixed at somewhere currently unmapped
12989 mmap private fixed at somewhere already mapped
12990 mmap shared not fixed
12991 mmap shared fixed at somewhere currently unmapped
12992 mmap shared fixed at somewhere already mapped
12993 For private mappings, we should verify that changes cannot be read()
12994 back from the file, nor mmap's back from the file at a different
12995 address. (There have been systems where private was not correctly
12996 implemented like the infamous i386 svr4.0, and systems where the
12997 VM page cache was not coherent with the file system buffer cache
12998 like early versions of FreeBSD and possibly contemporary NetBSD.)
12999 For shared mappings, we should conversely verify that changes get
13000 propagated back to all the places they're supposed to be.
13002 Grep wants private fixed already mapped.
13003 The main things grep needs to know about mmap are:
13004 * does it exist and is it safe to write into the mmap'd area
13005 * how to use it (BSD variants) */
13007 #include <fcntl.h>
13008 #include <sys/mman.h>
13010 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13011 char *malloc ();
13012 #endif
13014 /* This mess was copied from the GNU getpagesize.h. */
13015 #ifndef HAVE_GETPAGESIZE
13016 /* Assume that all systems that can run configure have sys/param.h. */
13017 # ifndef HAVE_SYS_PARAM_H
13018 # define HAVE_SYS_PARAM_H 1
13019 # endif
13021 # ifdef _SC_PAGESIZE
13022 # define getpagesize() sysconf(_SC_PAGESIZE)
13023 # else /* no _SC_PAGESIZE */
13024 # ifdef HAVE_SYS_PARAM_H
13025 # include <sys/param.h>
13026 # ifdef EXEC_PAGESIZE
13027 # define getpagesize() EXEC_PAGESIZE
13028 # else /* no EXEC_PAGESIZE */
13029 # ifdef NBPG
13030 # define getpagesize() NBPG * CLSIZE
13031 # ifndef CLSIZE
13032 # define CLSIZE 1
13033 # endif /* no CLSIZE */
13034 # else /* no NBPG */
13035 # ifdef NBPC
13036 # define getpagesize() NBPC
13037 # else /* no NBPC */
13038 # ifdef PAGESIZE
13039 # define getpagesize() PAGESIZE
13040 # endif /* PAGESIZE */
13041 # endif /* no NBPC */
13042 # endif /* no NBPG */
13043 # endif /* no EXEC_PAGESIZE */
13044 # else /* no HAVE_SYS_PARAM_H */
13045 # define getpagesize() 8192 /* punt totally */
13046 # endif /* no HAVE_SYS_PARAM_H */
13047 # endif /* no _SC_PAGESIZE */
13049 #endif /* no HAVE_GETPAGESIZE */
13052 main ()
13054 char *data, *data2, *data3;
13055 int i, pagesize;
13056 int fd;
13058 pagesize = getpagesize ();
13060 /* First, make a file with some known garbage in it. */
13061 data = (char *) malloc (pagesize);
13062 if (!data)
13063 return 1;
13064 for (i = 0; i < pagesize; ++i)
13065 *(data + i) = rand ();
13066 umask (0);
13067 fd = creat ("conftest.mmap", 0600);
13068 if (fd < 0)
13069 return 1;
13070 if (write (fd, data, pagesize) != pagesize)
13071 return 1;
13072 close (fd);
13074 /* Next, try to mmap the file at a fixed address which already has
13075 something else allocated at it. If we can, also make sure that
13076 we see the same garbage. */
13077 fd = open ("conftest.mmap", O_RDWR);
13078 if (fd < 0)
13079 return 1;
13080 data2 = (char *) malloc (2 * pagesize);
13081 if (!data2)
13082 return 1;
13083 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13084 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13085 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13086 return 1;
13087 for (i = 0; i < pagesize; ++i)
13088 if (*(data + i) != *(data2 + i))
13089 return 1;
13091 /* Finally, make sure that changes to the mapped area do not
13092 percolate back to the file as seen by read(). (This is a bug on
13093 some variants of i386 svr4.0.) */
13094 for (i = 0; i < pagesize; ++i)
13095 *(data2 + i) = *(data2 + i) + 1;
13096 data3 = (char *) malloc (pagesize);
13097 if (!data3)
13098 return 1;
13099 if (read (fd, data3, pagesize) != pagesize)
13100 return 1;
13101 for (i = 0; i < pagesize; ++i)
13102 if (*(data + i) != *(data3 + i))
13103 return 1;
13104 close (fd);
13105 return 0;
13107 _ACEOF
13108 rm -f conftest$ac_exeext
13109 if { (ac_try="$ac_link"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_link") 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_func_mmap_fixed_mapped=yes
13129 else
13130 echo "$as_me: program exited with status $ac_status" >&5
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 ( exit $ac_status )
13135 ac_cv_func_mmap_fixed_mapped=no
13137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13143 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13144 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13146 cat >>confdefs.h <<\_ACEOF
13147 #define HAVE_MMAP 1
13148 _ACEOF
13151 rm -f conftest.mmap
13155 for ac_header in sys/select.h sys/socket.h
13157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 ac_res=`eval echo '${'$as_ac_Header'}'`
13165 { echo "$as_me:$LINENO: result: $ac_res" >&5
13166 echo "${ECHO_T}$ac_res" >&6; }
13167 else
13168 # Is the header compilable?
13169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 $ac_includes_default
13178 #include <$ac_header>
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_compile") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest.$ac_objext; then
13197 ac_header_compiler=yes
13198 else
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 ac_header_compiler=no
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207 echo "${ECHO_T}$ac_header_compiler" >&6; }
13209 # Is the header present?
13210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
13219 _ACEOF
13220 if { (ac_try="$ac_cpp conftest.$ac_ext"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } >/dev/null && {
13233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 }; then
13236 ac_header_preproc=yes
13237 else
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_header_preproc=no
13244 rm -f conftest.err conftest.$ac_ext
13245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13246 echo "${ECHO_T}$ac_header_preproc" >&6; }
13248 # So? What about this header?
13249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13250 yes:no: )
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13255 ac_header_preproc=yes
13257 no:yes:* )
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13270 ( cat <<\_ASBOX
13271 ## ------------------------------- ##
13272 ## Report this to www.asterisk.org ##
13273 ## ------------------------------- ##
13274 _ASBOX
13275 ) | sed "s/^/$as_me: WARNING: /" >&2
13277 esac
13278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 eval "$as_ac_Header=\$ac_header_preproc"
13285 ac_res=`eval echo '${'$as_ac_Header'}'`
13286 { echo "$as_me:$LINENO: result: $ac_res" >&5
13287 echo "${ECHO_T}$ac_res" >&6; }
13290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13293 _ACEOF
13297 done
13299 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13300 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13301 if test "${ac_cv_func_select_args+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13305 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13306 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13314 #ifdef HAVE_SYS_SELECT_H
13315 # include <sys/select.h>
13316 #endif
13317 #ifdef HAVE_SYS_SOCKET_H
13318 # include <sys/socket.h>
13319 #endif
13322 main ()
13324 extern int select ($ac_arg1,
13325 $ac_arg234, $ac_arg234, $ac_arg234,
13326 $ac_arg5);
13328 return 0;
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
13348 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 done
13358 done
13359 done
13360 # Provide a safe default value.
13361 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13364 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13365 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13366 ac_save_IFS=$IFS; IFS=','
13367 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13368 IFS=$ac_save_IFS
13369 shift
13371 cat >>confdefs.h <<_ACEOF
13372 #define SELECT_TYPE_ARG1 $1
13373 _ACEOF
13376 cat >>confdefs.h <<_ACEOF
13377 #define SELECT_TYPE_ARG234 ($2)
13378 _ACEOF
13381 cat >>confdefs.h <<_ACEOF
13382 #define SELECT_TYPE_ARG5 ($3)
13383 _ACEOF
13385 rm -f conftest*
13387 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13388 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13389 if test "$ac_cv_prog_cc_c89" != no; then
13390 { echo "$as_me:$LINENO: result: yes" >&5
13391 echo "${ECHO_T}yes" >&6; }
13393 cat >>confdefs.h <<\_ACEOF
13394 #define PROTOTYPES 1
13395 _ACEOF
13398 cat >>confdefs.h <<\_ACEOF
13399 #define __PROTOTYPES 1
13400 _ACEOF
13402 else
13403 { echo "$as_me:$LINENO: result: no" >&5
13404 echo "${ECHO_T}no" >&6; }
13407 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13408 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13409 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412 ac_cv_func_setvbuf_reversed=no
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <stdio.h>
13420 # ifdef PROTOTYPES
13421 int (setvbuf) (FILE *, int, char *, size_t);
13422 # endif
13424 main ()
13426 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13428 return 0;
13430 _ACEOF
13431 rm -f conftest.$ac_objext conftest$ac_exeext
13432 if { (ac_try="$ac_link"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_link") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest$ac_exeext &&
13448 $as_test_x conftest$ac_exeext; then
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 #include <stdio.h>
13456 # ifdef PROTOTYPES
13457 int (setvbuf) (FILE *, int, char *, size_t);
13458 # endif
13460 main ()
13462 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13464 return 0;
13466 _ACEOF
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext &&
13484 $as_test_x conftest$ac_exeext; then
13485 # It compiles and links either way, so it must not be declared
13486 # with a prototype and most likely this is a K&R C compiler.
13487 # Try running it.
13488 if test "$cross_compiling" = yes; then
13489 : # Assume setvbuf is not reversed when cross-compiling.
13490 else
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13499 main ()
13501 /* This call has the arguments reversed.
13502 A reversed system may check and see that the address of buf
13503 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13504 char buf;
13505 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13506 return 1;
13507 putchar ('\r');
13508 return 0; /* Non-reversed systems SEGV here. */
13510 return 0;
13512 _ACEOF
13513 rm -f conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_func_setvbuf_reversed=yes
13534 else
13535 echo "$as_me: program exited with status $ac_status" >&5
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13544 ac_cv_func_setvbuf_reversed=yes
13545 else
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13553 conftest$ac_exeext conftest.$ac_ext
13554 else
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13564 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13565 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13566 if test $ac_cv_func_setvbuf_reversed = yes; then
13568 cat >>confdefs.h <<\_ACEOF
13569 #define SETVBUF_REVERSED 1
13570 _ACEOF
13574 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13575 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13576 if test "${ac_cv_type_signal+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <sys/types.h>
13586 #include <signal.h>
13589 main ()
13591 return *(signal (0, 0)) (0) == 1;
13593 return 0;
13595 _ACEOF
13596 rm -f conftest.$ac_objext
13597 if { (ac_try="$ac_compile"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_compile") 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } && {
13610 test -z "$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13612 } && test -s conftest.$ac_objext; then
13613 ac_cv_type_signal=int
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_cv_type_signal=void
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13624 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13626 cat >>confdefs.h <<_ACEOF
13627 #define RETSIGTYPE $ac_cv_type_signal
13628 _ACEOF
13631 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13632 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13633 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636 rm -f conftest.sym conftest.file
13637 echo >conftest.file
13638 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13639 if test "$cross_compiling" = yes; then
13640 ac_cv_func_lstat_dereferences_slashed_symlink=no
13641 else
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 $ac_includes_default
13650 main ()
13652 struct stat sbuf;
13653 /* Linux will dereference the symlink and fail.
13654 That is better in the sense that it means we will not
13655 have to compile and use the lstat wrapper. */
13656 return lstat ("conftest.sym/", &sbuf) == 0;
13658 return 0;
13660 _ACEOF
13661 rm -f conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13682 else
13683 echo "$as_me: program exited with status $ac_status" >&5
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ( exit $ac_status )
13688 ac_cv_func_lstat_dereferences_slashed_symlink=no
13690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13694 else
13695 # If the `ln -s' command failed, then we probably don't even
13696 # have an lstat function.
13697 ac_cv_func_lstat_dereferences_slashed_symlink=no
13699 rm -f conftest.sym conftest.file
13702 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13703 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13705 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13707 cat >>confdefs.h <<_ACEOF
13708 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13709 _ACEOF
13712 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13713 case " $LIBOBJS " in
13714 *" lstat.$ac_objext "* ) ;;
13715 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13717 esac
13721 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13722 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13723 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 if test "$cross_compiling" = yes; then
13727 ac_cv_func_stat_empty_string_bug=yes
13728 else
13729 cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h. */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 $ac_includes_default
13737 main ()
13739 struct stat sbuf;
13740 return stat ("", &sbuf) == 0;
13742 return 0;
13744 _ACEOF
13745 rm -f conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_link") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_cv_func_stat_empty_string_bug=no
13766 else
13767 echo "$as_me: program exited with status $ac_status" >&5
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ( exit $ac_status )
13772 ac_cv_func_stat_empty_string_bug=yes
13774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13779 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13780 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13781 if test $ac_cv_func_stat_empty_string_bug = yes; then
13782 case " $LIBOBJS " in
13783 *" stat.$ac_objext "* ) ;;
13784 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13786 esac
13789 cat >>confdefs.h <<_ACEOF
13790 #define HAVE_STAT_EMPTY_STRING_BUG 1
13791 _ACEOF
13795 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13796 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13797 if test "${ac_cv_func_strcoll_works+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800 if test "$cross_compiling" = yes; then
13801 ac_cv_func_strcoll_works=no
13802 else
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h. */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13811 main ()
13813 return (strcoll ("abc", "def") >= 0 ||
13814 strcoll ("ABC", "DEF") >= 0 ||
13815 strcoll ("123", "456") >= 0)
13817 return 0;
13819 _ACEOF
13820 rm -f conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_func_strcoll_works=yes
13841 else
13842 echo "$as_me: program exited with status $ac_status" >&5
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ( exit $ac_status )
13847 ac_cv_func_strcoll_works=no
13849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13855 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13856 if test $ac_cv_func_strcoll_works = yes; then
13858 cat >>confdefs.h <<\_ACEOF
13859 #define HAVE_STRCOLL 1
13860 _ACEOF
13865 for ac_func in strftime
13867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13881 #define $ac_func innocuous_$ac_func
13883 /* System header to define __stub macros and hopefully few prototypes,
13884 which can conflict with char $ac_func (); below.
13885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13886 <limits.h> exists even on freestanding compilers. */
13888 #ifdef __STDC__
13889 # include <limits.h>
13890 #else
13891 # include <assert.h>
13892 #endif
13894 #undef $ac_func
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13899 #ifdef __cplusplus
13900 extern "C"
13901 #endif
13902 char $ac_func ();
13903 /* The GNU C library defines this for functions which it implements
13904 to always fail with ENOSYS. Some functions are actually named
13905 something starting with __ and the normal name is an alias. */
13906 #if defined __stub_$ac_func || defined __stub___$ac_func
13907 choke me
13908 #endif
13911 main ()
13913 return $ac_func ();
13915 return 0;
13917 _ACEOF
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (ac_try="$ac_link"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_link") 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } && {
13932 test -z "$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 } && test -s conftest$ac_exeext &&
13935 $as_test_x conftest$ac_exeext; then
13936 eval "$as_ac_var=yes"
13937 else
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 eval "$as_ac_var=no"
13944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 conftest$ac_exeext conftest.$ac_ext
13947 ac_res=`eval echo '${'$as_ac_var'}'`
13948 { echo "$as_me:$LINENO: result: $ac_res" >&5
13949 echo "${ECHO_T}$ac_res" >&6; }
13950 if test `eval echo '${'$as_ac_var'}'` = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13953 _ACEOF
13955 else
13956 # strftime is in -lintl on SCO UNIX.
13957 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13958 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13959 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lintl $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char strftime ();
13979 main ()
13981 return strftime ();
13983 return 0;
13985 _ACEOF
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_intl_strftime=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_intl_strftime=no
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14017 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14018 if test $ac_cv_lib_intl_strftime = yes; then
14019 cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_STRFTIME 1
14021 _ACEOF
14023 LIBS="-lintl $LIBS"
14027 done
14029 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14030 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14031 if test "${ac_cv_func_strnlen_working+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034 if test "$cross_compiling" = yes; then
14035 ac_cv_func_strnlen_working=no
14036 else
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14045 main ()
14048 #define S "foobar"
14049 #define S_LEN (sizeof S - 1)
14051 /* At least one implementation is buggy: that of AIX 4.3 would
14052 give strnlen (S, 1) == 3. */
14054 int i;
14055 for (i = 0; i < S_LEN + 1; ++i)
14057 int expected = i <= S_LEN ? i : S_LEN;
14058 if (strnlen (S, i) != expected)
14059 return 1;
14061 return 0;
14064 return 0;
14066 _ACEOF
14067 rm -f conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_func_strnlen_working=yes
14088 else
14089 echo "$as_me: program exited with status $ac_status" >&5
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ( exit $ac_status )
14094 ac_cv_func_strnlen_working=no
14096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14101 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14102 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14103 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14104 *" strnlen.$ac_objext "* ) ;;
14105 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14107 esac
14110 { echo "$as_me:$LINENO: checking for working strtod" >&5
14111 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14112 if test "${ac_cv_func_strtod+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 if test "$cross_compiling" = yes; then
14116 ac_cv_func_strtod=no
14117 else
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 $ac_includes_default
14126 #ifndef strtod
14127 double strtod ();
14128 #endif
14130 main()
14133 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14134 char *string = " +69";
14135 char *term;
14136 double value;
14137 value = strtod (string, &term);
14138 if (value != 69 || term != (string + 4))
14139 return 1;
14143 /* Under Solaris 2.4, strtod returns the wrong value for the
14144 terminating character under some conditions. */
14145 char *string = "NaN";
14146 char *term;
14147 strtod (string, &term);
14148 if (term != string && *(term - 1) == 0)
14149 return 1;
14151 return 0;
14154 _ACEOF
14155 rm -f conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
14175 ac_cv_func_strtod=yes
14176 else
14177 echo "$as_me: program exited with status $ac_status" >&5
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ( exit $ac_status )
14182 ac_cv_func_strtod=no
14184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14190 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14191 if test $ac_cv_func_strtod = no; then
14192 case " $LIBOBJS " in
14193 *" strtod.$ac_objext "* ) ;;
14194 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14196 esac
14198 { echo "$as_me:$LINENO: checking for pow" >&5
14199 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14200 if test "${ac_cv_func_pow+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h. */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14211 #define pow innocuous_pow
14213 /* System header to define __stub macros and hopefully few prototypes,
14214 which can conflict with char pow (); below.
14215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14216 <limits.h> exists even on freestanding compilers. */
14218 #ifdef __STDC__
14219 # include <limits.h>
14220 #else
14221 # include <assert.h>
14222 #endif
14224 #undef pow
14226 /* Override any GCC internal prototype to avoid an error.
14227 Use char because int might match the return type of a GCC
14228 builtin and then its argument prototype would still apply. */
14229 #ifdef __cplusplus
14230 extern "C"
14231 #endif
14232 char pow ();
14233 /* The GNU C library defines this for functions which it implements
14234 to always fail with ENOSYS. Some functions are actually named
14235 something starting with __ and the normal name is an alias. */
14236 #if defined __stub_pow || defined __stub___pow
14237 choke me
14238 #endif
14241 main ()
14243 return pow ();
14245 return 0;
14247 _ACEOF
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (ac_try="$ac_link"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_link") 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest$ac_exeext &&
14265 $as_test_x conftest$ac_exeext; then
14266 ac_cv_func_pow=yes
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_func_pow=no
14274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14275 conftest$ac_exeext conftest.$ac_ext
14277 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14278 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14280 if test $ac_cv_func_pow = no; then
14281 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14282 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14283 if test "${ac_cv_lib_m_pow+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286 ac_check_lib_save_LIBS=$LIBS
14287 LIBS="-lm $LIBS"
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298 #ifdef __cplusplus
14299 extern "C"
14300 #endif
14301 char pow ();
14303 main ()
14305 return pow ();
14307 return 0;
14309 _ACEOF
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (ac_try="$ac_link"
14312 case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14315 esac
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_link") 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } && {
14324 test -z "$ac_c_werror_flag" ||
14325 test ! -s conftest.err
14326 } && test -s conftest$ac_exeext &&
14327 $as_test_x conftest$ac_exeext; then
14328 ac_cv_lib_m_pow=yes
14329 else
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 ac_cv_lib_m_pow=no
14336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LIBS=$ac_check_lib_save_LIBS
14340 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14341 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14342 if test $ac_cv_lib_m_pow = yes; then
14343 POW_LIB=-lm
14344 else
14345 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14346 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14361 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14362 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14363 if test "${ac_cv_func_utime_null+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 rm -f conftest.data; >conftest.data
14367 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14368 if test "$cross_compiling" = yes; then
14369 ac_cv_func_utime_null=no
14370 else
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h. */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 $ac_includes_default
14378 #ifdef HAVE_UTIME_H
14379 # include <utime.h>
14380 #endif
14382 main ()
14384 struct stat s, t;
14385 return ! (stat ("conftest.data", &s) == 0
14386 && utime ("conftest.data", 0) == 0
14387 && stat ("conftest.data", &t) == 0
14388 && t.st_mtime >= s.st_mtime
14389 && t.st_mtime - s.st_mtime < 120);
14391 return 0;
14393 _ACEOF
14394 rm -f conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14405 { (case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_try") 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_func_utime_null=yes
14415 else
14416 echo "$as_me: program exited with status $ac_status" >&5
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ( exit $ac_status )
14421 ac_cv_func_utime_null=no
14423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14428 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14429 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14430 if test $ac_cv_func_utime_null = yes; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_UTIME_NULL 1
14434 _ACEOF
14437 rm -f conftest.data
14440 for ac_func in vprintf
14442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448 cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h. */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14456 #define $ac_func innocuous_$ac_func
14458 /* System header to define __stub macros and hopefully few prototypes,
14459 which can conflict with char $ac_func (); below.
14460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14461 <limits.h> exists even on freestanding compilers. */
14463 #ifdef __STDC__
14464 # include <limits.h>
14465 #else
14466 # include <assert.h>
14467 #endif
14469 #undef $ac_func
14471 /* Override any GCC internal prototype to avoid an error.
14472 Use char because int might match the return type of a GCC
14473 builtin and then its argument prototype would still apply. */
14474 #ifdef __cplusplus
14475 extern "C"
14476 #endif
14477 char $ac_func ();
14478 /* The GNU C library defines this for functions which it implements
14479 to always fail with ENOSYS. Some functions are actually named
14480 something starting with __ and the normal name is an alias. */
14481 #if defined __stub_$ac_func || defined __stub___$ac_func
14482 choke me
14483 #endif
14486 main ()
14488 return $ac_func ();
14490 return 0;
14492 _ACEOF
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (ac_try="$ac_link"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_link") 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest$ac_exeext &&
14510 $as_test_x conftest$ac_exeext; then
14511 eval "$as_ac_var=yes"
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 eval "$as_ac_var=no"
14519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14520 conftest$ac_exeext conftest.$ac_ext
14522 ac_res=`eval echo '${'$as_ac_var'}'`
14523 { echo "$as_me:$LINENO: result: $ac_res" >&5
14524 echo "${ECHO_T}$ac_res" >&6; }
14525 if test `eval echo '${'$as_ac_var'}'` = yes; then
14526 cat >>confdefs.h <<_ACEOF
14527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14528 _ACEOF
14530 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14531 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14532 if test "${ac_cv_func__doprnt+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14543 #define _doprnt innocuous__doprnt
14545 /* System header to define __stub macros and hopefully few prototypes,
14546 which can conflict with char _doprnt (); below.
14547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14548 <limits.h> exists even on freestanding compilers. */
14550 #ifdef __STDC__
14551 # include <limits.h>
14552 #else
14553 # include <assert.h>
14554 #endif
14556 #undef _doprnt
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14561 #ifdef __cplusplus
14562 extern "C"
14563 #endif
14564 char _doprnt ();
14565 /* The GNU C library defines this for functions which it implements
14566 to always fail with ENOSYS. Some functions are actually named
14567 something starting with __ and the normal name is an alias. */
14568 #if defined __stub__doprnt || defined __stub____doprnt
14569 choke me
14570 #endif
14573 main ()
14575 return _doprnt ();
14577 return 0;
14579 _ACEOF
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (ac_try="$ac_link"
14582 case "(($ac_try" in
14583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14585 esac
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_link") 2>conftest.er1
14588 ac_status=$?
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest$ac_exeext &&
14597 $as_test_x conftest$ac_exeext; then
14598 ac_cv_func__doprnt=yes
14599 else
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 ac_cv_func__doprnt=no
14606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14607 conftest$ac_exeext conftest.$ac_ext
14609 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14610 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14611 if test $ac_cv_func__doprnt = yes; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_DOPRNT 1
14615 _ACEOF
14620 done
14672 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
14674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14688 #define $ac_func innocuous_$ac_func
14690 /* System header to define __stub macros and hopefully few prototypes,
14691 which can conflict with char $ac_func (); below.
14692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14693 <limits.h> exists even on freestanding compilers. */
14695 #ifdef __STDC__
14696 # include <limits.h>
14697 #else
14698 # include <assert.h>
14699 #endif
14701 #undef $ac_func
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char $ac_func ();
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined __stub_$ac_func || defined __stub___$ac_func
14714 choke me
14715 #endif
14718 main ()
14720 return $ac_func ();
14722 return 0;
14724 _ACEOF
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest$ac_exeext &&
14742 $as_test_x conftest$ac_exeext; then
14743 eval "$as_ac_var=yes"
14744 else
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 eval "$as_ac_var=no"
14751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14752 conftest$ac_exeext conftest.$ac_ext
14754 ac_res=`eval echo '${'$as_ac_var'}'`
14755 { echo "$as_me:$LINENO: result: $ac_res" >&5
14756 echo "${ECHO_T}$ac_res" >&6; }
14757 if test `eval echo '${'$as_ac_var'}'` = yes; then
14758 cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 _ACEOF
14763 done
14766 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14767 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14768 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14769 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 ac_func_search_save_LIBS=$LIBS
14773 cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h. */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14780 /* Override any GCC internal prototype to avoid an error.
14781 Use char because int might match the return type of a GCC
14782 builtin and then its argument prototype would still apply. */
14783 #ifdef __cplusplus
14784 extern "C"
14785 #endif
14786 char gethostbyname_r ();
14788 main ()
14790 return gethostbyname_r ();
14792 return 0;
14794 _ACEOF
14795 for ac_lib in '' socket nsl; do
14796 if test -z "$ac_lib"; then
14797 ac_res="none required"
14798 else
14799 ac_res=-l$ac_lib
14800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14802 rm -f conftest.$ac_objext conftest$ac_exeext
14803 if { (ac_try="$ac_link"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_link") 2>conftest.er1
14810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest$ac_exeext &&
14819 $as_test_x conftest$ac_exeext; then
14820 ac_cv_search_gethostbyname_r=$ac_res
14821 else
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14829 conftest$ac_exeext
14830 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14831 break
14833 done
14834 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14836 else
14837 ac_cv_search_gethostbyname_r=no
14839 rm conftest.$ac_ext
14840 LIBS=$ac_func_search_save_LIBS
14842 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14843 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14844 ac_res=$ac_cv_search_gethostbyname_r
14845 if test "$ac_res" != no; then
14846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14851 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14852 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <stdlib.h>
14860 #include <netdb.h>
14862 main ()
14864 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14866 return 0;
14868 _ACEOF
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
14887 { echo "$as_me:$LINENO: result: yes" >&5
14888 echo "${ECHO_T}yes" >&6; }
14890 cat >>confdefs.h <<\_ACEOF
14891 #define HAVE_GETHOSTBYNAME_R_6 1
14892 _ACEOF
14894 else
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 { echo "$as_me:$LINENO: result: no" >&5
14899 echo "${ECHO_T}no" >&6; }
14903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14904 conftest$ac_exeext conftest.$ac_ext
14906 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14907 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14908 cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h. */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 #include <stdlib.h>
14915 #include <netdb.h>
14917 main ()
14919 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14921 return 0;
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_link") 2>conftest.er1
14932 ac_status=$?
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest$ac_exeext &&
14941 $as_test_x conftest$ac_exeext; then
14942 { echo "$as_me:$LINENO: result: yes" >&5
14943 echo "${ECHO_T}yes" >&6; }
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_GETHOSTBYNAME_R_5 1
14947 _ACEOF
14949 else
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 { echo "$as_me:$LINENO: result: no" >&5
14954 echo "${ECHO_T}no" >&6; }
14958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14959 conftest$ac_exeext conftest.$ac_ext
14961 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14962 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <pthread.h>
14971 main ()
14973 int foo = PTHREAD_RWLOCK_INITIALIZER;
14975 return 0;
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext &&
14995 $as_test_x conftest$ac_exeext; then
14996 { echo "$as_me:$LINENO: result: yes" >&5
14997 echo "${ECHO_T}yes" >&6; }
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
15001 _ACEOF
15003 else
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 { echo "$as_me:$LINENO: result: no" >&5
15008 echo "${ECHO_T}no" >&6; }
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
15016 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <pthread.h>
15025 main ()
15027 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
15029 return 0;
15031 _ACEOF
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_link") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest$ac_exeext &&
15049 $as_test_x conftest$ac_exeext; then
15050 { echo "$as_me:$LINENO: result: yes" >&5
15051 echo "${ECHO_T}yes" >&6; }
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
15055 _ACEOF
15057 else
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 { echo "$as_me:$LINENO: result: no" >&5
15062 echo "${ECHO_T}no" >&6; }
15066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15067 conftest$ac_exeext conftest.$ac_ext
15069 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
15070 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
15071 cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h. */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15079 main ()
15081 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
15083 return 0;
15085 _ACEOF
15086 rm -f conftest.$ac_objext conftest$ac_exeext
15087 if { (ac_try="$ac_link"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest$ac_exeext &&
15103 $as_test_x conftest$ac_exeext; then
15104 { echo "$as_me:$LINENO: result: yes" >&5
15105 echo "${ECHO_T}yes" >&6; }
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_GCC_ATOMICS 1
15109 _ACEOF
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 { echo "$as_me:$LINENO: result: no" >&5
15116 echo "${ECHO_T}no" >&6; }
15120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15121 conftest$ac_exeext conftest.$ac_ext
15124 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
15125 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 static int __attribute__((pure)) test(void) {}
15134 main ()
15138 return 0;
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (ac_try="$ac_compile"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_compile") 2>conftest.er1
15149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && {
15155 test -z "$ac_c_werror_flag" ||
15156 test ! -s conftest.err
15157 } && test -s conftest.$ac_objext; then
15158 { echo "$as_me:$LINENO: result: yes" >&5
15159 echo "${ECHO_T}yes" >&6; }
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_ATTRIBUTE_pure 1
15163 _ACEOF
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 { echo "$as_me:$LINENO: result: no" >&5
15170 echo "${ECHO_T}no" >&6; }
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
15177 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 static int __attribute__((malloc)) test(void) {}
15186 main ()
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 { echo "$as_me:$LINENO: result: yes" >&5
15211 echo "${ECHO_T}yes" >&6; }
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_ATTRIBUTE_malloc 1
15215 _ACEOF
15217 else
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 { echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6; }
15225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15229 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
15230 cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h. */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 static int __attribute__((const)) test(void) {}
15238 main ()
15242 return 0;
15244 _ACEOF
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15250 esac
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest.$ac_objext; then
15262 { echo "$as_me:$LINENO: result: yes" >&5
15263 echo "${ECHO_T}yes" >&6; }
15265 cat >>confdefs.h <<_ACEOF
15266 #define HAVE_ATTRIBUTE_const 1
15267 _ACEOF
15269 else
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 { echo "$as_me:$LINENO: result: no" >&5
15274 echo "${ECHO_T}no" >&6; }
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15281 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 static int __attribute__((unused)) test(void) {}
15290 main ()
15294 return 0;
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } && {
15311 test -z "$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15313 } && test -s conftest.$ac_objext; then
15314 { echo "$as_me:$LINENO: result: yes" >&5
15315 echo "${ECHO_T}yes" >&6; }
15317 cat >>confdefs.h <<_ACEOF
15318 #define HAVE_ATTRIBUTE_unused 1
15319 _ACEOF
15321 else
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 { echo "$as_me:$LINENO: result: no" >&5
15326 echo "${ECHO_T}no" >&6; }
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15333 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 static int __attribute__((always_inline)) test(void) {}
15342 main ()
15346 return 0;
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest.$ac_objext; then
15366 { echo "$as_me:$LINENO: result: yes" >&5
15367 echo "${ECHO_T}yes" >&6; }
15369 cat >>confdefs.h <<_ACEOF
15370 #define HAVE_ATTRIBUTE_always_inline 1
15371 _ACEOF
15373 else
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 { echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6; }
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15385 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 static int __attribute__((deprecated)) test(void) {}
15394 main ()
15398 return 0;
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (ac_try="$ac_compile"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest.$ac_objext; then
15418 { echo "$as_me:$LINENO: result: yes" >&5
15419 echo "${ECHO_T}yes" >&6; }
15421 cat >>confdefs.h <<_ACEOF
15422 #define HAVE_ATTRIBUTE_deprecated 1
15423 _ACEOF
15425 else
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 { echo "$as_me:$LINENO: result: no" >&5
15430 echo "${ECHO_T}no" >&6; }
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15437 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15438 saved_CFLAGS="${CFLAGS}"
15439 CFLAGS="${CFLAGS} -ffunction-sections"
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15448 main ()
15450 int x = 1;
15452 return 0;
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (ac_try="$ac_compile"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460 esac
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_compile") 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } && {
15469 test -z "$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15471 } && test -s conftest.$ac_objext; then
15472 { echo "$as_me:$LINENO: result: yes" >&5
15473 echo "${ECHO_T}yes" >&6; }
15474 saved_LDFLAGS="${LDFLAGS}"
15475 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15476 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15477 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15486 main ()
15488 int x = 1;
15490 return 0;
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15501 ac_status=$?
15502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest$ac_exeext &&
15510 $as_test_x conftest$ac_exeext; then
15511 { echo "$as_me:$LINENO: result: yes" >&5
15512 echo "${ECHO_T}yes" >&6; }
15513 GC_CFLAGS="-ffunction-sections"
15514 GC_LDFLAGS="-Wl,--gc-sections"
15515 else
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 { echo "$as_me:$LINENO: result: no" >&5
15520 echo "${ECHO_T}no" >&6; }
15524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15525 conftest$ac_exeext conftest.$ac_ext
15526 LDFLAGS="${saved_LDFLAGS}"
15527 else
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 { echo "$as_me:$LINENO: result: no" >&5
15532 echo "${ECHO_T}no" >&6; }
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 CFLAGS="${saved_CFLAGS}"
15541 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15542 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15543 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15544 { echo "$as_me:$LINENO: result: yes" >&5
15545 echo "${ECHO_T}yes" >&6; }
15546 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15547 else
15548 { echo "$as_me:$LINENO: result: no" >&5
15549 echo "${ECHO_T}no" >&6; }
15550 AST_DECLARATION_AFTER_STATEMENT=
15554 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15555 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 #include <resolv.h>
15564 main ()
15566 int foo = res_ninit(NULL);
15568 return 0;
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (ac_try="$ac_link"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_link") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest$ac_exeext &&
15588 $as_test_x conftest$ac_exeext; then
15589 { echo "$as_me:$LINENO: result: yes" >&5
15590 echo "${ECHO_T}yes" >&6; }
15592 cat >>confdefs.h <<\_ACEOF
15593 #define HAVE_RES_NINIT 1
15594 _ACEOF
15596 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15597 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #include <resolv.h>
15606 main ()
15608 int foo = res_ndestroy(NULL);
15610 return 0;
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (ac_try="$ac_link"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_link") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest$ac_exeext &&
15630 $as_test_x conftest$ac_exeext; then
15631 { echo "$as_me:$LINENO: result: yes" >&5
15632 echo "${ECHO_T}yes" >&6; }
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_RES_NDESTROY 1
15636 _ACEOF
15638 else
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 { echo "$as_me:$LINENO: result: no" >&5
15643 echo "${ECHO_T}no" >&6; }
15647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15648 conftest$ac_exeext conftest.$ac_ext
15649 else
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 { echo "$as_me:$LINENO: result: no" >&5
15654 echo "${ECHO_T}no" >&6; }
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15661 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15662 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <dlfcn.h>
15671 main ()
15673 int foo = RTLD_NOLOAD;
15675 return 0;
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (ac_try="$ac_link"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_link") 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } && {
15692 test -z "$ac_c_werror_flag" ||
15693 test ! -s conftest.err
15694 } && test -s conftest$ac_exeext &&
15695 $as_test_x conftest$ac_exeext; then
15696 { echo "$as_me:$LINENO: result: yes" >&5
15697 echo "${ECHO_T}yes" >&6; }
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_RTLD_NOLOAD 1
15701 _ACEOF
15703 else
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 { echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6; }
15712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15713 conftest$ac_exeext conftest.$ac_ext
15715 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15716 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #include <netinet/in.h>
15725 main ()
15727 int foo = IP_MTU_DISCOVER;
15729 return 0;
15731 _ACEOF
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (ac_try="$ac_link"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_link") 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest$ac_exeext &&
15749 $as_test_x conftest$ac_exeext; then
15750 { echo "$as_me:$LINENO: result: yes" >&5
15751 echo "${ECHO_T}yes" >&6; }
15753 cat >>confdefs.h <<\_ACEOF
15754 #define HAVE_IP_MTU_DISCOVER 1
15755 _ACEOF
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 { echo "$as_me:$LINENO: result: no" >&5
15762 echo "${ECHO_T}no" >&6; }
15766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15767 conftest$ac_exeext conftest.$ac_ext
15769 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15770 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15771 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15772 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15776 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15777 else
15778 # Is the header compilable?
15779 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15780 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15788 #include <libkern/OSAtomic.h>
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (ac_try="$ac_compile"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_compile") 2>conftest.er1
15798 ac_status=$?
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && {
15804 test -z "$ac_c_werror_flag" ||
15805 test ! -s conftest.err
15806 } && test -s conftest.$ac_objext; then
15807 ac_header_compiler=yes
15808 else
15809 echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15812 ac_header_compiler=no
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15817 echo "${ECHO_T}$ac_header_compiler" >&6; }
15819 # Is the header present?
15820 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15821 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 #include <libkern/OSAtomic.h>
15829 _ACEOF
15830 if { (ac_try="$ac_cpp conftest.$ac_ext"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15837 ac_status=$?
15838 grep -v '^ *+' conftest.er1 >conftest.err
15839 rm -f conftest.er1
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } >/dev/null && {
15843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15844 test ! -s conftest.err
15845 }; then
15846 ac_header_preproc=yes
15847 else
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_header_preproc=no
15854 rm -f conftest.err conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15856 echo "${ECHO_T}$ac_header_preproc" >&6; }
15858 # So? What about this header?
15859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860 yes:no: )
15861 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15862 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15864 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15865 ac_header_preproc=yes
15867 no:yes:* )
15868 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15869 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15871 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15873 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15875 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15877 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15879 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15880 ( cat <<\_ASBOX
15881 ## ------------------------------- ##
15882 ## Report this to www.asterisk.org ##
15883 ## ------------------------------- ##
15884 _ASBOX
15885 ) | sed "s/^/$as_me: WARNING: /" >&2
15887 esac
15888 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15889 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15890 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15895 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15896 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15899 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define HAVE_OSX_ATOMICS 1
15903 _ACEOF
15909 { echo "$as_me:$LINENO: checking for int" >&5
15910 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15911 if test "${ac_cv_type_int+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h. */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 $ac_includes_default
15921 typedef int ac__type_new_;
15923 main ()
15925 if ((ac__type_new_ *) 0)
15926 return 0;
15927 if (sizeof (ac__type_new_))
15928 return 0;
15930 return 0;
15932 _ACEOF
15933 rm -f conftest.$ac_objext
15934 if { (ac_try="$ac_compile"
15935 case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15938 esac
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_compile") 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } && {
15947 test -z "$ac_c_werror_flag" ||
15948 test ! -s conftest.err
15949 } && test -s conftest.$ac_objext; then
15950 ac_cv_type_int=yes
15951 else
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 ac_cv_type_int=no
15958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15961 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15963 # The cast to long int works around a bug in the HP C Compiler
15964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15966 # This bug is HP SR number 8606223364.
15967 { echo "$as_me:$LINENO: checking size of int" >&5
15968 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15969 if test "${ac_cv_sizeof_int+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972 if test "$cross_compiling" = yes; then
15973 # Depending upon the size, compute the lo and hi bounds.
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h. */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 typedef int ac__type_sizeof_;
15983 main ()
15985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15986 test_array [0] = 0
15989 return 0;
15991 _ACEOF
15992 rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } && {
16006 test -z "$ac_c_werror_flag" ||
16007 test ! -s conftest.err
16008 } && test -s conftest.$ac_objext; then
16009 ac_lo=0 ac_mid=0
16010 while :; do
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 $ac_includes_default
16018 typedef int ac__type_sizeof_;
16020 main ()
16022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16023 test_array [0] = 0
16026 return 0;
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (ac_try="$ac_compile"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034 esac
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 ac_hi=$ac_mid; break
16047 else
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_lo=`expr $ac_mid + 1`
16052 if test $ac_lo -le $ac_mid; then
16053 ac_lo= ac_hi=
16054 break
16056 ac_mid=`expr 2 '*' $ac_mid + 1`
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 done
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h. */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 typedef int ac__type_sizeof_;
16074 main ()
16076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16077 test_array [0] = 0
16080 return 0;
16082 _ACEOF
16083 rm -f conftest.$ac_objext
16084 if { (ac_try="$ac_compile"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_compile") 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } && {
16097 test -z "$ac_c_werror_flag" ||
16098 test ! -s conftest.err
16099 } && test -s conftest.$ac_objext; then
16100 ac_hi=-1 ac_mid=-1
16101 while :; do
16102 cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h. */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 $ac_includes_default
16109 typedef int ac__type_sizeof_;
16111 main ()
16113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16114 test_array [0] = 0
16117 return 0;
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } && {
16134 test -z "$ac_c_werror_flag" ||
16135 test ! -s conftest.err
16136 } && test -s conftest.$ac_objext; then
16137 ac_lo=$ac_mid; break
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_hi=`expr '(' $ac_mid ')' - 1`
16143 if test $ac_mid -le $ac_hi; then
16144 ac_lo= ac_hi=
16145 break
16147 ac_mid=`expr 2 '*' $ac_mid`
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 done
16152 else
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ac_lo= ac_hi=
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 # Binary search between lo and hi bounds.
16164 while test "x$ac_lo" != "x$ac_hi"; do
16165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 typedef int ac__type_sizeof_;
16175 main ()
16177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16178 test_array [0] = 0
16181 return 0;
16183 _ACEOF
16184 rm -f conftest.$ac_objext
16185 if { (ac_try="$ac_compile"
16186 case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_compile") 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && {
16198 test -z "$ac_c_werror_flag" ||
16199 test ! -s conftest.err
16200 } && test -s conftest.$ac_objext; then
16201 ac_hi=$ac_mid
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_lo=`expr '(' $ac_mid ')' + 1`
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210 done
16211 case $ac_lo in
16212 ?*) ac_cv_sizeof_int=$ac_lo;;
16213 '') if test "$ac_cv_type_int" = yes; then
16214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16215 See \`config.log' for more details." >&5
16216 echo "$as_me: error: cannot compute sizeof (int)
16217 See \`config.log' for more details." >&2;}
16218 { (exit 77); exit 77; }; }
16219 else
16220 ac_cv_sizeof_int=0
16221 fi ;;
16222 esac
16223 else
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 typedef int ac__type_sizeof_;
16232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16234 #include <stdio.h>
16235 #include <stdlib.h>
16237 main ()
16240 FILE *f = fopen ("conftest.val", "w");
16241 if (! f)
16242 return 1;
16243 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16245 long int i = longval ();
16246 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16247 return 1;
16248 fprintf (f, "%ld\n", i);
16250 else
16252 unsigned long int i = ulongval ();
16253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16254 return 1;
16255 fprintf (f, "%lu\n", i);
16257 return ferror (f) || fclose (f) != 0;
16260 return 0;
16262 _ACEOF
16263 rm -f conftest$ac_exeext
16264 if { (ac_try="$ac_link"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_link") 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_sizeof_int=`cat conftest.val`
16284 else
16285 echo "$as_me: program exited with status $ac_status" >&5
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ( exit $ac_status )
16290 if test "$ac_cv_type_int" = yes; then
16291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16292 See \`config.log' for more details." >&5
16293 echo "$as_me: error: cannot compute sizeof (int)
16294 See \`config.log' for more details." >&2;}
16295 { (exit 77); exit 77; }; }
16296 else
16297 ac_cv_sizeof_int=0
16300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16302 rm -f conftest.val
16304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16305 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16309 cat >>confdefs.h <<_ACEOF
16310 #define SIZEOF_INT $ac_cv_sizeof_int
16311 _ACEOF
16315 # do the package library checks now
16318 if test "${USE_ALSA}" != "no"; then
16319 pbxlibdir=""
16320 if test "x${ALSA_DIR}" != "x"; then
16321 if test -d ${ALSA_DIR}/lib; then
16322 pbxlibdir="-L${ALSA_DIR}/lib"
16323 else
16324 pbxlibdir="-L${ALSA_DIR}"
16327 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16328 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16329 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 else
16332 ac_check_lib_save_LIBS=$LIBS
16333 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16341 /* Override any GCC internal prototype to avoid an error.
16342 Use char because int might match the return type of a GCC
16343 builtin and then its argument prototype would still apply. */
16344 #ifdef __cplusplus
16345 extern "C"
16346 #endif
16347 char snd_spcm_init ();
16349 main ()
16351 return snd_spcm_init ();
16353 return 0;
16355 _ACEOF
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (ac_try="$ac_link"
16358 case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_link") 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } && {
16370 test -z "$ac_c_werror_flag" ||
16371 test ! -s conftest.err
16372 } && test -s conftest$ac_exeext &&
16373 $as_test_x conftest$ac_exeext; then
16374 ac_cv_lib_asound_snd_spcm_init=yes
16375 else
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16379 ac_cv_lib_asound_snd_spcm_init=no
16382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16383 conftest$ac_exeext conftest.$ac_ext
16384 LIBS=$ac_check_lib_save_LIBS
16386 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16387 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16388 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16389 AST_ALSA_FOUND=yes
16390 else
16391 AST_ALSA_FOUND=no
16395 if test "${AST_ALSA_FOUND}" = "yes"; then
16396 ALSA_LIB="-lasound -lm -ldl"
16397 ALSA_HEADER_FOUND="1"
16398 if test "x${ALSA_DIR}" != "x"; then
16399 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16400 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16401 saved_cppflags="${CPPFLAGS}"
16402 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16403 if test "xalsa/asoundlib.h" != "x" ; then
16404 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16406 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16407 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 ac_res=`eval echo '${'$as_ac_Header'}'`
16412 { echo "$as_me:$LINENO: result: $ac_res" >&5
16413 echo "${ECHO_T}$ac_res" >&6; }
16414 else
16415 # Is the header compilable?
16416 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16417 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 $ac_includes_default
16425 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16426 _ACEOF
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest.$ac_objext; then
16444 ac_header_compiler=yes
16445 else
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_header_compiler=no
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16454 echo "${ECHO_T}$ac_header_compiler" >&6; }
16456 # Is the header present?
16457 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16458 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16459 cat >conftest.$ac_ext <<_ACEOF
16460 /* confdefs.h. */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16465 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16466 _ACEOF
16467 if { (ac_try="$ac_cpp conftest.$ac_ext"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } >/dev/null && {
16480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 }; then
16483 ac_header_preproc=yes
16484 else
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_header_preproc=no
16491 rm -f conftest.err conftest.$ac_ext
16492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493 echo "${ECHO_T}$ac_header_preproc" >&6; }
16495 # So? What about this header?
16496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16497 yes:no: )
16498 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16499 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16501 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc=yes
16504 no:yes:* )
16505 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16506 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16508 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16510 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16512 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16514 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16516 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16517 ( cat <<\_ASBOX
16518 ## ------------------------------- ##
16519 ## Report this to www.asterisk.org ##
16520 ## ------------------------------- ##
16521 _ASBOX
16522 ) | sed "s/^/$as_me: WARNING: /" >&2
16524 esac
16525 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16526 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530 eval "$as_ac_Header=\$ac_header_preproc"
16532 ac_res=`eval echo '${'$as_ac_Header'}'`
16533 { echo "$as_me:$LINENO: result: $ac_res" >&5
16534 echo "${ECHO_T}$ac_res" >&6; }
16537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16538 ALSA_HEADER_FOUND=1
16539 else
16540 ALSA_HEADER_FOUND=0
16545 CPPFLAGS="${saved_cppflags}"
16546 else
16547 if test "xalsa/asoundlib.h" != "x" ; then
16548 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16549 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16550 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16551 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16555 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16556 else
16557 # Is the header compilable?
16558 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16559 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 $ac_includes_default
16567 #include <alsa/asoundlib.h>
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (ac_try="$ac_compile"
16571 case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_compile") 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && {
16583 test -z "$ac_c_werror_flag" ||
16584 test ! -s conftest.err
16585 } && test -s conftest.$ac_objext; then
16586 ac_header_compiler=yes
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_header_compiler=no
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16596 echo "${ECHO_T}$ac_header_compiler" >&6; }
16598 # Is the header present?
16599 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16600 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16601 cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h. */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 #include <alsa/asoundlib.h>
16608 _ACEOF
16609 if { (ac_try="$ac_cpp conftest.$ac_ext"
16610 case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613 esac
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } >/dev/null && {
16622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16623 test ! -s conftest.err
16624 }; then
16625 ac_header_preproc=yes
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_header_preproc=no
16633 rm -f conftest.err conftest.$ac_ext
16634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16635 echo "${ECHO_T}$ac_header_preproc" >&6; }
16637 # So? What about this header?
16638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 yes:no: )
16640 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16641 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16643 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16644 ac_header_preproc=yes
16646 no:yes:* )
16647 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16648 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16650 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16652 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16654 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16655 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16656 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16657 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16658 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16659 ( cat <<\_ASBOX
16660 ## ------------------------------- ##
16661 ## Report this to www.asterisk.org ##
16662 ## ------------------------------- ##
16663 _ASBOX
16664 ) | sed "s/^/$as_me: WARNING: /" >&2
16666 esac
16667 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16668 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16669 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16674 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16675 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16678 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16679 ALSA_HEADER_FOUND=1
16680 else
16681 ALSA_HEADER_FOUND=0
16687 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16688 if test -n "${ALSA_MANDATORY}" ;
16689 then
16690 { echo "$as_me:$LINENO: ***" >&5
16691 echo "$as_me: ***" >&6;}
16692 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16693 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16694 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16695 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16696 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16697 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16698 exit 1
16700 ALSA_LIB=""
16701 ALSA_INCLUDE=""
16702 PBX_ALSA=0
16703 else
16704 PBX_ALSA=1
16706 cat >>confdefs.h <<_ACEOF
16707 #define HAVE_ALSA 1
16708 _ACEOF
16711 elif test -n "${ALSA_MANDATORY}";
16712 then
16713 { echo "$as_me:$LINENO: ***" >&5
16714 echo "$as_me: ***" >&6;}
16715 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16716 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16717 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16718 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16719 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16720 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16721 exit 1
16727 if test "${USE_CURSES}" != "no"; then
16728 pbxlibdir=""
16729 if test "x${CURSES_DIR}" != "x"; then
16730 if test -d ${CURSES_DIR}/lib; then
16731 pbxlibdir="-L${CURSES_DIR}/lib"
16732 else
16733 pbxlibdir="-L${CURSES_DIR}"
16736 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16737 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16738 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741 ac_check_lib_save_LIBS=$LIBS
16742 LIBS="-lcurses ${pbxlibdir} $LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 /* confdefs.h. */
16745 _ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16750 /* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16753 #ifdef __cplusplus
16754 extern "C"
16755 #endif
16756 char initscr ();
16758 main ()
16760 return initscr ();
16762 return 0;
16764 _ACEOF
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (ac_try="$ac_link"
16767 case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_link") 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && {
16779 test -z "$ac_c_werror_flag" ||
16780 test ! -s conftest.err
16781 } && test -s conftest$ac_exeext &&
16782 $as_test_x conftest$ac_exeext; then
16783 ac_cv_lib_curses_initscr=yes
16784 else
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ac_cv_lib_curses_initscr=no
16791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16792 conftest$ac_exeext conftest.$ac_ext
16793 LIBS=$ac_check_lib_save_LIBS
16795 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16796 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16797 if test $ac_cv_lib_curses_initscr = yes; then
16798 AST_CURSES_FOUND=yes
16799 else
16800 AST_CURSES_FOUND=no
16804 if test "${AST_CURSES_FOUND}" = "yes"; then
16805 CURSES_LIB="-lcurses "
16806 CURSES_HEADER_FOUND="1"
16807 if test "x${CURSES_DIR}" != "x"; then
16808 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16809 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16810 saved_cppflags="${CPPFLAGS}"
16811 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16812 if test "xcurses.h" != "x" ; then
16813 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16816 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 ac_res=`eval echo '${'$as_ac_Header'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16823 else
16824 # Is the header compilable?
16825 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16826 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16834 #include <${CURSES_DIR}/include/curses.h>
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (ac_try="$ac_compile"
16838 case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest.$ac_objext; then
16853 ac_header_compiler=yes
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_header_compiler=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16863 echo "${ECHO_T}$ac_header_compiler" >&6; }
16865 # Is the header present?
16866 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16867 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16868 cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h. */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16874 #include <${CURSES_DIR}/include/curses.h>
16875 _ACEOF
16876 if { (ac_try="$ac_cpp conftest.$ac_ext"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16883 ac_status=$?
16884 grep -v '^ *+' conftest.er1 >conftest.err
16885 rm -f conftest.er1
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } >/dev/null && {
16889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 }; then
16892 ac_header_preproc=yes
16893 else
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_header_preproc=no
16900 rm -f conftest.err conftest.$ac_ext
16901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16902 echo "${ECHO_T}$ac_header_preproc" >&6; }
16904 # So? What about this header?
16905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16906 yes:no: )
16907 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16908 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16910 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16911 ac_header_preproc=yes
16913 no:yes:* )
16914 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16915 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16917 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16919 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16921 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16923 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16925 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16926 ( cat <<\_ASBOX
16927 ## ------------------------------- ##
16928 ## Report this to www.asterisk.org ##
16929 ## ------------------------------- ##
16930 _ASBOX
16931 ) | sed "s/^/$as_me: WARNING: /" >&2
16933 esac
16934 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16935 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939 eval "$as_ac_Header=\$ac_header_preproc"
16941 ac_res=`eval echo '${'$as_ac_Header'}'`
16942 { echo "$as_me:$LINENO: result: $ac_res" >&5
16943 echo "${ECHO_T}$ac_res" >&6; }
16946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16947 CURSES_HEADER_FOUND=1
16948 else
16949 CURSES_HEADER_FOUND=0
16954 CPPFLAGS="${saved_cppflags}"
16955 else
16956 if test "xcurses.h" != "x" ; then
16957 if test "${ac_cv_header_curses_h+set}" = set; then
16958 { echo "$as_me:$LINENO: checking for curses.h" >&5
16959 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16960 if test "${ac_cv_header_curses_h+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16964 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16965 else
16966 # Is the header compilable?
16967 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16968 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h. */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16976 #include <curses.h>
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (ac_try="$ac_compile"
16980 case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16983 esac
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
16995 ac_header_compiler=yes
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_header_compiler=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17005 echo "${ECHO_T}$ac_header_compiler" >&6; }
17007 # Is the header present?
17008 { echo "$as_me:$LINENO: checking curses.h presence" >&5
17009 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <curses.h>
17017 _ACEOF
17018 if { (ac_try="$ac_cpp conftest.$ac_ext"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } >/dev/null && {
17031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 }; then
17034 ac_header_preproc=yes
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_preproc=no
17042 rm -f conftest.err conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17044 echo "${ECHO_T}$ac_header_preproc" >&6; }
17046 # So? What about this header?
17047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17048 yes:no: )
17049 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17050 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
17052 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
17053 ac_header_preproc=yes
17055 no:yes:* )
17056 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
17057 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
17059 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
17061 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
17062 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
17063 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
17065 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
17067 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
17068 ( cat <<\_ASBOX
17069 ## ------------------------------- ##
17070 ## Report this to www.asterisk.org ##
17071 ## ------------------------------- ##
17072 _ASBOX
17073 ) | sed "s/^/$as_me: WARNING: /" >&2
17075 esac
17076 { echo "$as_me:$LINENO: checking for curses.h" >&5
17077 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17078 if test "${ac_cv_header_curses_h+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 ac_cv_header_curses_h=$ac_header_preproc
17083 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17084 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17087 if test $ac_cv_header_curses_h = yes; then
17088 CURSES_HEADER_FOUND=1
17089 else
17090 CURSES_HEADER_FOUND=0
17096 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
17097 if test -n "${CURSES_MANDATORY}" ;
17098 then
17099 { echo "$as_me:$LINENO: ***" >&5
17100 echo "$as_me: ***" >&6;}
17101 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
17102 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
17103 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
17104 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
17105 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17106 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17107 exit 1
17109 CURSES_LIB=""
17110 CURSES_INCLUDE=""
17111 PBX_CURSES=0
17112 else
17113 PBX_CURSES=1
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_CURSES 1
17117 _ACEOF
17120 elif test -n "${CURSES_MANDATORY}";
17121 then
17122 { echo "$as_me:$LINENO: ***" >&5
17123 echo "$as_me: ***" >&6;}
17124 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
17125 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
17126 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17127 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17128 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17129 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17130 exit 1
17135 GSM_INTERNAL="yes"
17137 GSM_SYSTEM="yes"
17138 if test "${USE_GSM}" != "no"; then
17139 if test "${GSM_DIR}" = "internal"; then
17140 GSM_SYSTEM="no"
17141 elif test "${GSM_DIR}" != ""; then
17142 GSM_INTERNAL="no"
17144 if test "${GSM_SYSTEM}" = "yes"; then
17145 gsmlibdir=""
17146 if test "x${GSM_DIR}" != "x"; then
17147 if test -d ${GSM_DIR}/lib; then
17148 gsmlibdir="-L${GSM_DIR}/lib"
17149 else
17150 gsmlibdir="-L${GSM_DIR}"
17153 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17154 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17155 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158 ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-lgsm ${gsmlibdir} $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17170 #ifdef __cplusplus
17171 extern "C"
17172 #endif
17173 char gsm_create ();
17175 main ()
17177 return gsm_create ();
17179 return 0;
17181 _ACEOF
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
17190 ac_status=$?
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest$ac_exeext &&
17199 $as_test_x conftest$ac_exeext; then
17200 ac_cv_lib_gsm_gsm_create=yes
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_cv_lib_gsm_gsm_create=no
17208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17209 conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17212 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17213 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17214 if test $ac_cv_lib_gsm_gsm_create = yes; then
17216 cat >>confdefs.h <<_ACEOF
17217 #define HAVE_GSM 1
17218 _ACEOF
17222 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17223 if test "x${GSM_DIR}" != "x" ; then
17224 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17226 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17227 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ac_res=`eval echo '${'$as_ac_Header'}'`
17232 { echo "$as_me:$LINENO: result: $ac_res" >&5
17233 echo "${ECHO_T}$ac_res" >&6; }
17234 else
17235 # Is the header compilable?
17236 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17237 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17238 cat >conftest.$ac_ext <<_ACEOF
17239 /* confdefs.h. */
17240 _ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17245 #include <${GSM_DIR}/include/gsm.h>
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (ac_try="$ac_compile"
17249 case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_compile") 2>conftest.er1
17255 ac_status=$?
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest.$ac_objext; then
17264 ac_header_compiler=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_header_compiler=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17274 echo "${ECHO_T}$ac_header_compiler" >&6; }
17276 # Is the header present?
17277 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17278 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h. */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #include <${GSM_DIR}/include/gsm.h>
17286 _ACEOF
17287 if { (ac_try="$ac_cpp conftest.$ac_ext"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } >/dev/null && {
17300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17301 test ! -s conftest.err
17302 }; then
17303 ac_header_preproc=yes
17304 else
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_header_preproc=no
17311 rm -f conftest.err conftest.$ac_ext
17312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17313 echo "${ECHO_T}$ac_header_preproc" >&6; }
17315 # So? What about this header?
17316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17317 yes:no: )
17318 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17319 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17321 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17322 ac_header_preproc=yes
17324 no:yes:* )
17325 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17326 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17328 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17330 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17332 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17334 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17336 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17337 ( cat <<\_ASBOX
17338 ## ------------------------------- ##
17339 ## Report this to www.asterisk.org ##
17340 ## ------------------------------- ##
17341 _ASBOX
17342 ) | sed "s/^/$as_me: WARNING: /" >&2
17344 esac
17345 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17346 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350 eval "$as_ac_Header=\$ac_header_preproc"
17352 ac_res=`eval echo '${'$as_ac_Header'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17358 GSM_HEADER_FOUND=1
17359 else
17360 GSM_HEADER_FOUND=0
17364 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17367 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 ac_res=`eval echo '${'$as_ac_Header'}'`
17372 { echo "$as_me:$LINENO: result: $ac_res" >&5
17373 echo "${ECHO_T}$ac_res" >&6; }
17374 else
17375 # Is the header compilable?
17376 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17377 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17378 cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h. */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 $ac_includes_default
17385 #include <${GSM_DIR}/include/gsm/gsm.h>
17386 _ACEOF
17387 rm -f conftest.$ac_objext
17388 if { (ac_try="$ac_compile"
17389 case "(($ac_try" in
17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391 *) ac_try_echo=$ac_try;;
17392 esac
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394 (eval "$ac_compile") 2>conftest.er1
17395 ac_status=$?
17396 grep -v '^ *+' conftest.er1 >conftest.err
17397 rm -f conftest.er1
17398 cat conftest.err >&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && {
17401 test -z "$ac_c_werror_flag" ||
17402 test ! -s conftest.err
17403 } && test -s conftest.$ac_objext; then
17404 ac_header_compiler=yes
17405 else
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_header_compiler=no
17412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17414 echo "${ECHO_T}$ac_header_compiler" >&6; }
17416 # Is the header present?
17417 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17418 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h. */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425 #include <${GSM_DIR}/include/gsm/gsm.h>
17426 _ACEOF
17427 if { (ac_try="$ac_cpp conftest.$ac_ext"
17428 case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } >/dev/null && {
17440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 }; then
17443 ac_header_preproc=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 ac_header_preproc=no
17451 rm -f conftest.err conftest.$ac_ext
17452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17453 echo "${ECHO_T}$ac_header_preproc" >&6; }
17455 # So? What about this header?
17456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17457 yes:no: )
17458 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17459 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17460 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17461 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17462 ac_header_preproc=yes
17464 no:yes:* )
17465 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17466 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17468 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17470 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17472 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17473 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17474 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17476 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17477 ( cat <<\_ASBOX
17478 ## ------------------------------- ##
17479 ## Report this to www.asterisk.org ##
17480 ## ------------------------------- ##
17481 _ASBOX
17482 ) | sed "s/^/$as_me: WARNING: /" >&2
17484 esac
17485 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17486 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 eval "$as_ac_Header=\$ac_header_preproc"
17492 ac_res=`eval echo '${'$as_ac_Header'}'`
17493 { echo "$as_me:$LINENO: result: $ac_res" >&5
17494 echo "${ECHO_T}$ac_res" >&6; }
17497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17498 GSM_GSM_HEADER_FOUND=1
17499 else
17500 GSM_GSM_HEADER_FOUND=0
17504 else
17505 if test "${ac_cv_header_gsm_h+set}" = set; then
17506 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17507 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17508 if test "${ac_cv_header_gsm_h+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17512 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17513 else
17514 # Is the header compilable?
17515 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17516 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17524 #include <gsm.h>
17525 _ACEOF
17526 rm -f conftest.$ac_objext
17527 if { (ac_try="$ac_compile"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_compile") 2>conftest.er1
17534 ac_status=$?
17535 grep -v '^ *+' conftest.er1 >conftest.err
17536 rm -f conftest.er1
17537 cat conftest.err >&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && {
17540 test -z "$ac_c_werror_flag" ||
17541 test ! -s conftest.err
17542 } && test -s conftest.$ac_objext; then
17543 ac_header_compiler=yes
17544 else
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 ac_header_compiler=no
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17553 echo "${ECHO_T}$ac_header_compiler" >&6; }
17555 # Is the header present?
17556 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17557 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 #include <gsm.h>
17565 _ACEOF
17566 if { (ac_try="$ac_cpp conftest.$ac_ext"
17567 case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570 esac
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } >/dev/null && {
17579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17581 }; then
17582 ac_header_preproc=yes
17583 else
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 ac_header_preproc=no
17590 rm -f conftest.err conftest.$ac_ext
17591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17592 echo "${ECHO_T}$ac_header_preproc" >&6; }
17594 # So? What about this header?
17595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17596 yes:no: )
17597 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17598 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17600 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17601 ac_header_preproc=yes
17603 no:yes:* )
17604 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17605 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17606 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17607 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17609 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17610 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17611 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17612 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17613 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17614 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17615 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17616 ( cat <<\_ASBOX
17617 ## ------------------------------- ##
17618 ## Report this to www.asterisk.org ##
17619 ## ------------------------------- ##
17620 _ASBOX
17621 ) | sed "s/^/$as_me: WARNING: /" >&2
17623 esac
17624 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17625 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17626 if test "${ac_cv_header_gsm_h+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629 ac_cv_header_gsm_h=$ac_header_preproc
17631 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17632 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17635 if test $ac_cv_header_gsm_h = yes; then
17636 GSM_HEADER_FOUND=1
17637 else
17638 GSM_HEADER_FOUND=0
17642 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17643 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17644 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17645 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17649 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17650 else
17651 # Is the header compilable?
17652 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17653 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 $ac_includes_default
17661 #include <gsm/gsm.h>
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_compile") 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && {
17677 test -z "$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 } && test -s conftest.$ac_objext; then
17680 ac_header_compiler=yes
17681 else
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_header_compiler=no
17688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17690 echo "${ECHO_T}$ac_header_compiler" >&6; }
17692 # Is the header present?
17693 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17694 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 #include <gsm/gsm.h>
17702 _ACEOF
17703 if { (ac_try="$ac_cpp conftest.$ac_ext"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } >/dev/null && {
17716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 }; then
17719 ac_header_preproc=yes
17720 else
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_header_preproc=no
17727 rm -f conftest.err conftest.$ac_ext
17728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17729 echo "${ECHO_T}$ac_header_preproc" >&6; }
17731 # So? What about this header?
17732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17733 yes:no: )
17734 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17735 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17736 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
17737 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
17738 ac_header_preproc=yes
17740 no:yes:* )
17741 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
17742 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
17744 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
17746 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17748 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
17750 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
17752 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17753 ( cat <<\_ASBOX
17754 ## ------------------------------- ##
17755 ## Report this to www.asterisk.org ##
17756 ## ------------------------------- ##
17757 _ASBOX
17758 ) | sed "s/^/$as_me: WARNING: /" >&2
17760 esac
17761 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17762 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17763 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 ac_cv_header_gsm_gsm_h=$ac_header_preproc
17768 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17769 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17772 if test $ac_cv_header_gsm_gsm_h = yes; then
17773 GSM_GSM_HEADER_FOUND=1
17774 else
17775 GSM_GSM_HEADER_FOUND=0
17780 if test "${GSM_HEADER_FOUND}" = "0" ; then
17781 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
17782 if test "x${GSM_MANDATORY}" = "xyes" ; then
17783 { echo "$as_me:$LINENO: ***" >&5
17784 echo "$as_me: ***" >&6;}
17785 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
17786 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
17787 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
17788 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
17789 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
17790 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
17791 exit 1
17795 GSM_OK=0
17796 if test "${GSM_HEADER_FOUND}" = "1" ; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define HAVE_GSM_HEADER 1
17800 _ACEOF
17802 GSM_OK=1
17803 else
17804 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
17806 cat >>confdefs.h <<_ACEOF
17807 #define HAVE_GSM_GSM_HEADER 1
17808 _ACEOF
17810 GSM_OK=1
17813 if test "${GSM_OK}" = "1" ; then
17814 GSM_LIB="-lgsm"
17815 if test "x${GSM_DIR}" != "x"; then
17816 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
17817 GSM_INCLUDE="-I${GSM_DIR}/include"
17819 PBX_GSM=1
17820 GSM_INTERNAL="no"
17824 if test "${GSM_INTERNAL}" = "yes"; then
17825 PBX_GSM=1
17827 cat >>confdefs.h <<_ACEOF
17828 #define HAVE_GSM_HEADER 1
17829 _ACEOF
17835 if test "${USE_IKSEMEL}" != "no"; then
17836 pbxlibdir=""
17837 if test "x${IKSEMEL_DIR}" != "x"; then
17838 if test -d ${IKSEMEL_DIR}/lib; then
17839 pbxlibdir="-L${IKSEMEL_DIR}/lib"
17840 else
17841 pbxlibdir="-L${IKSEMEL_DIR}"
17844 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
17845 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
17846 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849 ac_check_lib_save_LIBS=$LIBS
17850 LIBS="-liksemel ${pbxlibdir} $LIBS"
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h. */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17861 #ifdef __cplusplus
17862 extern "C"
17863 #endif
17864 char iks_start_sasl ();
17866 main ()
17868 return iks_start_sasl ();
17870 return 0;
17872 _ACEOF
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (ac_try="$ac_link"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest$ac_exeext &&
17890 $as_test_x conftest$ac_exeext; then
17891 ac_cv_lib_iksemel_iks_start_sasl=yes
17892 else
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_cv_lib_iksemel_iks_start_sasl=no
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900 conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17903 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
17904 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
17905 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
17906 AST_IKSEMEL_FOUND=yes
17907 else
17908 AST_IKSEMEL_FOUND=no
17912 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
17913 IKSEMEL_LIB="-liksemel "
17914 IKSEMEL_HEADER_FOUND="1"
17915 if test "x${IKSEMEL_DIR}" != "x"; then
17916 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
17917 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
17918 saved_cppflags="${CPPFLAGS}"
17919 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
17920 if test "xiksemel.h" != "x" ; then
17921 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
17922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17923 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
17924 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
17925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 ac_res=`eval echo '${'$as_ac_Header'}'`
17929 { echo "$as_me:$LINENO: result: $ac_res" >&5
17930 echo "${ECHO_T}$ac_res" >&6; }
17931 else
17932 # Is the header compilable?
17933 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
17934 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h. */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 $ac_includes_default
17942 #include <${IKSEMEL_DIR}/include/iksemel.h>
17943 _ACEOF
17944 rm -f conftest.$ac_objext
17945 if { (ac_try="$ac_compile"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_compile") 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && {
17958 test -z "$ac_c_werror_flag" ||
17959 test ! -s conftest.err
17960 } && test -s conftest.$ac_objext; then
17961 ac_header_compiler=yes
17962 else
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 ac_header_compiler=no
17969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17971 echo "${ECHO_T}$ac_header_compiler" >&6; }
17973 # Is the header present?
17974 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
17975 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h. */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 #include <${IKSEMEL_DIR}/include/iksemel.h>
17983 _ACEOF
17984 if { (ac_try="$ac_cpp conftest.$ac_ext"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } >/dev/null && {
17997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 }; then
18000 ac_header_preproc=yes
18001 else
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_header_preproc=no
18008 rm -f conftest.err conftest.$ac_ext
18009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18010 echo "${ECHO_T}$ac_header_preproc" >&6; }
18012 # So? What about this header?
18013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18014 yes:no: )
18015 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18016 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18018 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18019 ac_header_preproc=yes
18021 no:yes:* )
18022 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18023 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18025 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18027 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18029 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18031 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18033 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18034 ( cat <<\_ASBOX
18035 ## ------------------------------- ##
18036 ## Report this to www.asterisk.org ##
18037 ## ------------------------------- ##
18038 _ASBOX
18039 ) | sed "s/^/$as_me: WARNING: /" >&2
18041 esac
18042 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18043 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047 eval "$as_ac_Header=\$ac_header_preproc"
18049 ac_res=`eval echo '${'$as_ac_Header'}'`
18050 { echo "$as_me:$LINENO: result: $ac_res" >&5
18051 echo "${ECHO_T}$ac_res" >&6; }
18054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18055 IKSEMEL_HEADER_FOUND=1
18056 else
18057 IKSEMEL_HEADER_FOUND=0
18062 CPPFLAGS="${saved_cppflags}"
18063 else
18064 if test "xiksemel.h" != "x" ; then
18065 if test "${ac_cv_header_iksemel_h+set}" = set; then
18066 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18067 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18068 if test "${ac_cv_header_iksemel_h+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18072 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18073 else
18074 # Is the header compilable?
18075 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18076 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 $ac_includes_default
18084 #include <iksemel.h>
18085 _ACEOF
18086 rm -f conftest.$ac_objext
18087 if { (ac_try="$ac_compile"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_compile") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest.$ac_objext; then
18103 ac_header_compiler=yes
18104 else
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_header_compiler=no
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18113 echo "${ECHO_T}$ac_header_compiler" >&6; }
18115 # Is the header present?
18116 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18117 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <iksemel.h>
18125 _ACEOF
18126 if { (ac_try="$ac_cpp conftest.$ac_ext"
18127 case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18133 ac_status=$?
18134 grep -v '^ *+' conftest.er1 >conftest.err
18135 rm -f conftest.er1
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } >/dev/null && {
18139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18140 test ! -s conftest.err
18141 }; then
18142 ac_header_preproc=yes
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 ac_header_preproc=no
18150 rm -f conftest.err conftest.$ac_ext
18151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18152 echo "${ECHO_T}$ac_header_preproc" >&6; }
18154 # So? What about this header?
18155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18156 yes:no: )
18157 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18158 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18159 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18160 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18161 ac_header_preproc=yes
18163 no:yes:* )
18164 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18165 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18167 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18168 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18169 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18171 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18172 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18173 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18174 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18175 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18176 ( cat <<\_ASBOX
18177 ## ------------------------------- ##
18178 ## Report this to www.asterisk.org ##
18179 ## ------------------------------- ##
18180 _ASBOX
18181 ) | sed "s/^/$as_me: WARNING: /" >&2
18183 esac
18184 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18185 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18186 if test "${ac_cv_header_iksemel_h+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189 ac_cv_header_iksemel_h=$ac_header_preproc
18191 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18192 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18195 if test $ac_cv_header_iksemel_h = yes; then
18196 IKSEMEL_HEADER_FOUND=1
18197 else
18198 IKSEMEL_HEADER_FOUND=0
18204 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18205 if test -n "${IKSEMEL_MANDATORY}" ;
18206 then
18207 { echo "$as_me:$LINENO: ***" >&5
18208 echo "$as_me: ***" >&6;}
18209 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18210 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18211 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18212 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18213 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18214 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18215 exit 1
18217 IKSEMEL_LIB=""
18218 IKSEMEL_INCLUDE=""
18219 PBX_IKSEMEL=0
18220 else
18221 PBX_IKSEMEL=1
18223 cat >>confdefs.h <<_ACEOF
18224 #define HAVE_IKSEMEL 1
18225 _ACEOF
18228 elif test -n "${IKSEMEL_MANDATORY}";
18229 then
18230 { echo "$as_me:$LINENO: ***" >&5
18231 echo "$as_me: ***" >&6;}
18232 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18233 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18234 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18235 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18236 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18237 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18238 exit 1
18243 if test "${PBX_IKSEMEL}" = 1; then
18245 if test "${USE_GNUTLS}" != "no"; then
18246 pbxlibdir=""
18247 if test "x${GNUTLS_DIR}" != "x"; then
18248 if test -d ${GNUTLS_DIR}/lib; then
18249 pbxlibdir="-L${GNUTLS_DIR}/lib"
18250 else
18251 pbxlibdir="-L${GNUTLS_DIR}"
18254 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18255 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18256 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 else
18259 ac_check_lib_save_LIBS=$LIBS
18260 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18268 /* Override any GCC internal prototype to avoid an error.
18269 Use char because int might match the return type of a GCC
18270 builtin and then its argument prototype would still apply. */
18271 #ifdef __cplusplus
18272 extern "C"
18273 #endif
18274 char gnutls_bye ();
18276 main ()
18278 return gnutls_bye ();
18280 return 0;
18282 _ACEOF
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_link") 2>conftest.er1
18291 ac_status=$?
18292 grep -v '^ *+' conftest.er1 >conftest.err
18293 rm -f conftest.er1
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } && {
18297 test -z "$ac_c_werror_flag" ||
18298 test ! -s conftest.err
18299 } && test -s conftest$ac_exeext &&
18300 $as_test_x conftest$ac_exeext; then
18301 ac_cv_lib_gnutls_gnutls_bye=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_cv_lib_gnutls_gnutls_bye=no
18309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18310 conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18313 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18314 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18315 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18316 AST_GNUTLS_FOUND=yes
18317 else
18318 AST_GNUTLS_FOUND=no
18322 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18323 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18324 GNUTLS_HEADER_FOUND="1"
18325 if test "x${GNUTLS_DIR}" != "x"; then
18326 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18327 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18328 saved_cppflags="${CPPFLAGS}"
18329 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18330 if test "xgnutls/gnutls.h" != "x" ; then
18331 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18333 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18334 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18341 else
18342 # Is the header compilable?
18343 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18344 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h. */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351 $ac_includes_default
18352 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18353 _ACEOF
18354 rm -f conftest.$ac_objext
18355 if { (ac_try="$ac_compile"
18356 case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18359 esac
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_compile") 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest.$ac_objext; then
18371 ac_header_compiler=yes
18372 else
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_header_compiler=no
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18381 echo "${ECHO_T}$ac_header_compiler" >&6; }
18383 # Is the header present?
18384 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18385 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h. */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18393 _ACEOF
18394 if { (ac_try="$ac_cpp conftest.$ac_ext"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev/null && {
18407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 }; then
18410 ac_header_preproc=yes
18411 else
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18415 ac_header_preproc=no
18418 rm -f conftest.err conftest.$ac_ext
18419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18420 echo "${ECHO_T}$ac_header_preproc" >&6; }
18422 # So? What about this header?
18423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18424 yes:no: )
18425 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18426 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18427 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18428 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18429 ac_header_preproc=yes
18431 no:yes:* )
18432 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18433 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18435 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18437 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18439 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18441 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18443 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18444 ( cat <<\_ASBOX
18445 ## ------------------------------- ##
18446 ## Report this to www.asterisk.org ##
18447 ## ------------------------------- ##
18448 _ASBOX
18449 ) | sed "s/^/$as_me: WARNING: /" >&2
18451 esac
18452 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18453 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457 eval "$as_ac_Header=\$ac_header_preproc"
18459 ac_res=`eval echo '${'$as_ac_Header'}'`
18460 { echo "$as_me:$LINENO: result: $ac_res" >&5
18461 echo "${ECHO_T}$ac_res" >&6; }
18464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18465 GNUTLS_HEADER_FOUND=1
18466 else
18467 GNUTLS_HEADER_FOUND=0
18472 CPPFLAGS="${saved_cppflags}"
18473 else
18474 if test "xgnutls/gnutls.h" != "x" ; then
18475 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18476 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18477 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18478 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18482 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18483 else
18484 # Is the header compilable?
18485 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18486 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18487 cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h. */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18493 $ac_includes_default
18494 #include <gnutls/gnutls.h>
18495 _ACEOF
18496 rm -f conftest.$ac_objext
18497 if { (ac_try="$ac_compile"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_compile") 2>conftest.er1
18504 ac_status=$?
18505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } && {
18510 test -z "$ac_c_werror_flag" ||
18511 test ! -s conftest.err
18512 } && test -s conftest.$ac_objext; then
18513 ac_header_compiler=yes
18514 else
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 ac_header_compiler=no
18521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18523 echo "${ECHO_T}$ac_header_compiler" >&6; }
18525 # Is the header present?
18526 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18527 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18528 cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h. */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18534 #include <gnutls/gnutls.h>
18535 _ACEOF
18536 if { (ac_try="$ac_cpp conftest.$ac_ext"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } >/dev/null && {
18549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 }; then
18552 ac_header_preproc=yes
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 ac_header_preproc=no
18560 rm -f conftest.err conftest.$ac_ext
18561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6; }
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18566 yes:no: )
18567 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18568 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18570 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18571 ac_header_preproc=yes
18573 no:yes:* )
18574 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18575 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18577 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18579 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18581 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18583 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18585 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18586 ( cat <<\_ASBOX
18587 ## ------------------------------- ##
18588 ## Report this to www.asterisk.org ##
18589 ## ------------------------------- ##
18590 _ASBOX
18591 ) | sed "s/^/$as_me: WARNING: /" >&2
18593 esac
18594 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18595 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18596 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18601 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18602 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18605 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18606 GNUTLS_HEADER_FOUND=1
18607 else
18608 GNUTLS_HEADER_FOUND=0
18614 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18615 if test -n "${GNUTLS_MANDATORY}" ;
18616 then
18617 { echo "$as_me:$LINENO: ***" >&5
18618 echo "$as_me: ***" >&6;}
18619 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18620 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18621 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18622 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18623 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18624 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18625 exit 1
18627 GNUTLS_LIB=""
18628 GNUTLS_INCLUDE=""
18629 PBX_GNUTLS=0
18630 else
18631 PBX_GNUTLS=1
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_GNUTLS 1
18635 _ACEOF
18638 elif test -n "${GNUTLS_MANDATORY}";
18639 then
18640 { echo "$as_me:$LINENO: ***" >&5
18641 echo "$as_me: ***" >&6;}
18642 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18643 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18644 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18645 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18646 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18647 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18648 exit 1
18654 if test "${USE_IMAP_TK}" != "no"; then
18655 if test "${IMAP_TK_DIR}" = ""; then
18656 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18657 if test -n "${IMAP_TK_MANDATORY}"; then
18658 { echo "$as_me:$LINENO: The --with-imap option does not search your system for installed" >&5
18659 echo "$as_me: The --with-imap option does not search your system for installed" >&6;}
18660 { echo "$as_me:$LINENO: c-client library/header files. Since you did not provide a path" >&5
18661 echo "$as_me: c-client library/header files. Since you did not provide a path" >&6;}
18662 { echo "$as_me:$LINENO: the configure script will assume you have placed built the c-client" >&5
18663 echo "$as_me: the configure script will assume you have placed built the c-client" >&6;}
18664 { echo "$as_me:$LINENO: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&5
18665 echo "$as_me: files at ${IMAP_TK_DIR}, as outlined in the doc/imapstorage.txt file." >&6;}
18668 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18669 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18670 saved_cppflags="${CPPFLAGS}"
18671 saved_libs="${LIBS}"
18672 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
18673 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18675 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client"
18676 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 #include "c-client.h"
18684 void mm_searched (MAILSTREAM *stream,unsigned long number)
18687 void mm_exists (MAILSTREAM *stream,unsigned long number)
18690 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18693 void mm_flags (MAILSTREAM *stream,unsigned long number)
18696 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18699 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18702 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18705 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18708 void mm_log (char *string,long errflg)
18711 void mm_dlog (char *string)
18714 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18717 void mm_critical (MAILSTREAM *stream)
18720 void mm_nocritical (MAILSTREAM *stream)
18723 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18726 void mm_fatal (char *string)
18730 main ()
18733 MAILSTREAM *foo = mail_open(NULL, "", 0);
18737 return 0;
18739 _ACEOF
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (ac_try="$ac_link"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_link") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest$ac_exeext &&
18757 $as_test_x conftest$ac_exeext; then
18758 ac_cv_imap_tk="yes"
18759 else
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 ac_cv_imap_tk="no"
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768 conftest$ac_exeext conftest.$ac_ext
18769 if test "${ac_cv_imap_tk}" = "yes"; then
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 #include "c-client.h"
18777 void mm_searched (MAILSTREAM *stream,unsigned long number)
18780 void mm_exists (MAILSTREAM *stream,unsigned long number)
18783 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18786 void mm_flags (MAILSTREAM *stream,unsigned long number)
18789 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18792 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18795 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18798 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18801 void mm_log (char *string,long errflg)
18804 void mm_dlog (char *string)
18807 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18810 void mm_critical (MAILSTREAM *stream)
18813 void mm_nocritical (MAILSTREAM *stream)
18816 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18819 void mm_fatal (char *string)
18823 main ()
18826 long check = mail_expunge_full(NULL, "", 0);
18830 return 0;
18832 _ACEOF
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_link") 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest$ac_exeext &&
18850 $as_test_x conftest$ac_exeext; then
18851 ac_cv_imap_tk2006="yes"
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_imap_tk2006="no"
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18863 CPPFLAGS="${saved_cppflags}"
18864 LIBS="${saved_libs}"
18865 if test "${ac_cv_imap_tk}" = "yes"; then
18866 { echo "$as_me:$LINENO: result: yes" >&5
18867 echo "${ECHO_T}yes" >&6; }
18868 IMAP_TK_LIB="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
18869 IMAP_TK_INCLUDE="-I${IMAP_TK_DIR}/c-client"
18870 PBX_IMAP_TK=1
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE_IMAP_TK 1
18874 _ACEOF
18876 if test "${ac_cv_imap_tk2006}" = "yes"; then
18878 cat >>confdefs.h <<\_ACEOF
18879 #define HAVE_IMAP_TK2006 1
18880 _ACEOF
18883 elif test -n "${IMAP_TK_MANDATORY}"; then
18884 { echo "$as_me:$LINENO: result: no" >&5
18885 echo "${ECHO_T}no" >&6; }
18886 { echo "$as_me:$LINENO: ***" >&5
18887 echo "$as_me: ***" >&6;}
18888 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
18889 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
18890 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18891 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18892 { echo "$as_me:$LINENO: *** including --without-imap." >&5
18893 echo "$as_me: *** including --without-imap." >&6;}
18894 exit 1
18895 else
18896 { echo "$as_me:$LINENO: result: no" >&5
18897 echo "${ECHO_T}no" >&6; }
18901 # Needed by unixodbc
18903 if test "${USE_LTDL}" != "no"; then
18904 pbxlibdir=""
18905 if test "x${LTDL_DIR}" != "x"; then
18906 if test -d ${LTDL_DIR}/lib; then
18907 pbxlibdir="-L${LTDL_DIR}/lib"
18908 else
18909 pbxlibdir="-L${LTDL_DIR}"
18912 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
18913 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
18914 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917 ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-lltdl ${pbxlibdir} $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 char lt_dlinit ();
18934 main ()
18936 return lt_dlinit ();
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_link") 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } && {
18955 test -z "$ac_c_werror_flag" ||
18956 test ! -s conftest.err
18957 } && test -s conftest$ac_exeext &&
18958 $as_test_x conftest$ac_exeext; then
18959 ac_cv_lib_ltdl_lt_dlinit=yes
18960 else
18961 echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.$ac_ext >&5
18964 ac_cv_lib_ltdl_lt_dlinit=no
18967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968 conftest$ac_exeext conftest.$ac_ext
18969 LIBS=$ac_check_lib_save_LIBS
18971 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
18972 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
18973 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
18974 AST_LTDL_FOUND=yes
18975 else
18976 AST_LTDL_FOUND=no
18980 if test "${AST_LTDL_FOUND}" = "yes"; then
18981 LTDL_LIB="-lltdl "
18982 LTDL_HEADER_FOUND="1"
18983 if test "x${LTDL_DIR}" != "x"; then
18984 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
18985 LTDL_INCLUDE="-I${LTDL_DIR}/include"
18986 saved_cppflags="${CPPFLAGS}"
18987 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
18988 if test "xltdl.h" != "x" ; then
18989 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
18990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18991 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
18992 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
18993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 ac_res=`eval echo '${'$as_ac_Header'}'`
18997 { echo "$as_me:$LINENO: result: $ac_res" >&5
18998 echo "${ECHO_T}$ac_res" >&6; }
18999 else
19000 # Is the header compilable?
19001 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19002 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h. */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19010 #include <${LTDL_DIR}/include/ltdl.h>
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19029 ac_header_compiler=yes
19030 else
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 ac_header_compiler=no
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19039 echo "${ECHO_T}$ac_header_compiler" >&6; }
19041 # Is the header present?
19042 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19043 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <${LTDL_DIR}/include/ltdl.h>
19051 _ACEOF
19052 if { (ac_try="$ac_cpp conftest.$ac_ext"
19053 case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } >/dev/null && {
19065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19066 test ! -s conftest.err
19067 }; then
19068 ac_header_preproc=yes
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_header_preproc=no
19076 rm -f conftest.err conftest.$ac_ext
19077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19078 echo "${ECHO_T}$ac_header_preproc" >&6; }
19080 # So? What about this header?
19081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19082 yes:no: )
19083 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19084 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19085 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19086 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19087 ac_header_preproc=yes
19089 no:yes:* )
19090 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19091 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19093 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19094 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19095 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19096 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19097 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19098 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19099 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19100 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19101 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19102 ( cat <<\_ASBOX
19103 ## ------------------------------- ##
19104 ## Report this to www.asterisk.org ##
19105 ## ------------------------------- ##
19106 _ASBOX
19107 ) | sed "s/^/$as_me: WARNING: /" >&2
19109 esac
19110 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19111 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115 eval "$as_ac_Header=\$ac_header_preproc"
19117 ac_res=`eval echo '${'$as_ac_Header'}'`
19118 { echo "$as_me:$LINENO: result: $ac_res" >&5
19119 echo "${ECHO_T}$ac_res" >&6; }
19122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19123 LTDL_HEADER_FOUND=1
19124 else
19125 LTDL_HEADER_FOUND=0
19130 CPPFLAGS="${saved_cppflags}"
19131 else
19132 if test "xltdl.h" != "x" ; then
19133 if test "${ac_cv_header_ltdl_h+set}" = set; then
19134 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19135 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19136 if test "${ac_cv_header_ltdl_h+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19140 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19141 else
19142 # Is the header compilable?
19143 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
19144 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 $ac_includes_default
19152 #include <ltdl.h>
19153 _ACEOF
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } && {
19168 test -z "$ac_c_werror_flag" ||
19169 test ! -s conftest.err
19170 } && test -s conftest.$ac_objext; then
19171 ac_header_compiler=yes
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_header_compiler=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6; }
19183 # Is the header present?
19184 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
19185 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <ltdl.h>
19193 _ACEOF
19194 if { (ac_try="$ac_cpp conftest.$ac_ext"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } >/dev/null && {
19207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 }; then
19210 ac_header_preproc=yes
19211 else
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ac_header_preproc=no
19218 rm -f conftest.err conftest.$ac_ext
19219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19220 echo "${ECHO_T}$ac_header_preproc" >&6; }
19222 # So? What about this header?
19223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19224 yes:no: )
19225 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19226 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
19228 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
19229 ac_header_preproc=yes
19231 no:yes:* )
19232 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
19233 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
19234 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
19235 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
19237 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
19238 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19239 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19240 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
19241 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
19243 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
19244 ( cat <<\_ASBOX
19245 ## ------------------------------- ##
19246 ## Report this to www.asterisk.org ##
19247 ## ------------------------------- ##
19248 _ASBOX
19249 ) | sed "s/^/$as_me: WARNING: /" >&2
19251 esac
19252 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19253 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19254 if test "${ac_cv_header_ltdl_h+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257 ac_cv_header_ltdl_h=$ac_header_preproc
19259 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
19260 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
19263 if test $ac_cv_header_ltdl_h = yes; then
19264 LTDL_HEADER_FOUND=1
19265 else
19266 LTDL_HEADER_FOUND=0
19272 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
19273 if test -n "${LTDL_MANDATORY}" ;
19274 then
19275 { echo "$as_me:$LINENO: ***" >&5
19276 echo "$as_me: ***" >&6;}
19277 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
19278 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
19279 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
19280 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
19281 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19282 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19283 exit 1
19285 LTDL_LIB=""
19286 LTDL_INCLUDE=""
19287 PBX_LTDL=0
19288 else
19289 PBX_LTDL=1
19291 cat >>confdefs.h <<_ACEOF
19292 #define HAVE_LTDL 1
19293 _ACEOF
19296 elif test -n "${LTDL_MANDATORY}";
19297 then
19298 { echo "$as_me:$LINENO: ***" >&5
19299 echo "$as_me: ***" >&6;}
19300 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
19301 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
19302 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19303 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19304 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
19305 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
19306 exit 1
19311 ac_ext=cpp
19312 ac_cpp='$CXXCPP $CPPFLAGS'
19313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19318 if test "${USE_KDE}" != "no"; then
19319 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
19320 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
19321 saved_libs="${LIBS}"
19322 saved_cppflags="${CPPFLAGS}"
19323 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
19324 if test -d ${KDE_DIR}/lib; then
19325 kdelibdir="${KDE_DIR}/lib"
19326 else
19327 kdelibdir="${KDE_DIR}"
19329 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include "kcrash.h"
19340 main ()
19342 KCrash::defaultCrashHandler(1);
19344 return 0;
19347 _ACEOF
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19353 esac
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_cxx_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest$ac_exeext &&
19365 $as_test_x conftest$ac_exeext; then
19366 ac_cv_lib_kde_crash="yes"
19367 else
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_cv_lib_kde_crash="no"
19374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19375 conftest$ac_exeext conftest.$ac_ext
19377 LIBS="${saved_libs}"
19378 CPPFLAGS="${saved_cppflags}"
19380 if test "${ac_cv_lib_kde_crash}" = "yes"; then
19381 { echo "$as_me:$LINENO: result: yes" >&5
19382 echo "${ECHO_T}yes" >&6; }
19383 KDE_LIB="-lkdecore -lkdeui"
19384 if test "${KDE_DIR}" != ""; then
19385 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
19386 KDE_INCLUDE="-I${KDE_DIR}/include"
19388 PBX_KDE=1
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_LIBKDE 1
19392 _ACEOF
19394 elif test -n "${KDE_MANDATORY}"; then
19395 { echo "$as_me:$LINENO: result: no" >&5
19396 echo "${ECHO_T}no" >&6; }
19397 { echo "$as_me:$LINENO: ***" >&5
19398 echo "$as_me: ***" >&6;}
19399 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
19400 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
19401 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19402 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19403 { echo "$as_me:$LINENO: *** including --without-kde." >&5
19404 echo "$as_me: *** including --without-kde." >&6;}
19405 exit 1
19406 else
19407 { echo "$as_me:$LINENO: result: no" >&5
19408 echo "${ECHO_T}no" >&6; }
19411 if test "${PBX_KDE}" = 1; then
19412 if test -n "$ac_tool_prefix"; then
19413 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
19414 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
19415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19417 if test "${ac_cv_path_KDEINIT+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 case $KDEINIT in
19421 [\\/]* | ?:[\\/]*)
19422 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
19425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19426 for as_dir in $PATH
19428 IFS=$as_save_IFS
19429 test -z "$as_dir" && as_dir=.
19430 for ac_exec_ext in '' $ac_executable_extensions; do
19431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19432 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19434 break 2
19436 done
19437 done
19438 IFS=$as_save_IFS
19441 esac
19443 KDEINIT=$ac_cv_path_KDEINIT
19444 if test -n "$KDEINIT"; then
19445 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
19446 echo "${ECHO_T}$KDEINIT" >&6; }
19447 else
19448 { echo "$as_me:$LINENO: result: no" >&5
19449 echo "${ECHO_T}no" >&6; }
19454 if test -z "$ac_cv_path_KDEINIT"; then
19455 ac_pt_KDEINIT=$KDEINIT
19456 # Extract the first word of "kdeinit", so it can be a program name with args.
19457 set dummy kdeinit; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463 case $ac_pt_KDEINIT in
19464 [\\/]* | ?:[\\/]*)
19465 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 for as_dir in $PATH
19471 IFS=$as_save_IFS
19472 test -z "$as_dir" && as_dir=.
19473 for ac_exec_ext in '' $ac_executable_extensions; do
19474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
19476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19477 break 2
19479 done
19480 done
19481 IFS=$as_save_IFS
19484 esac
19486 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
19487 if test -n "$ac_pt_KDEINIT"; then
19488 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
19489 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
19490 else
19491 { echo "$as_me:$LINENO: result: no" >&5
19492 echo "${ECHO_T}no" >&6; }
19495 if test "x$ac_pt_KDEINIT" = x; then
19496 KDEINIT="No"
19497 else
19498 case $cross_compiling:$ac_tool_warned in
19499 yes:)
19500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19501 whose name does not start with the host triplet. If you think this
19502 configuration is useful to you, please write to autoconf@gnu.org." >&5
19503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19504 whose name does not start with the host triplet. If you think this
19505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19506 ac_tool_warned=yes ;;
19507 esac
19508 KDEINIT=$ac_pt_KDEINIT
19510 else
19511 KDEINIT="$ac_cv_path_KDEINIT"
19514 if test ! x"${KDEINIT}" = xNo; then
19515 KDEDIR=$(${DIRNAME} ${KDEINIT})
19516 KDEDIR=$(${DIRNAME} ${KDEDIR})
19521 ac_ext=c
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19529 if test "${USE_MISDN}" != "no"; then
19530 pbxlibdir=""
19531 if test "x${MISDN_DIR}" != "x"; then
19532 if test -d ${MISDN_DIR}/lib; then
19533 pbxlibdir="-L${MISDN_DIR}/lib"
19534 else
19535 pbxlibdir="-L${MISDN_DIR}"
19538 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
19539 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
19540 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lmISDN ${pbxlibdir} $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19552 /* Override any GCC internal prototype to avoid an error.
19553 Use char because int might match the return type of a GCC
19554 builtin and then its argument prototype would still apply. */
19555 #ifdef __cplusplus
19556 extern "C"
19557 #endif
19558 char mISDN_open ();
19560 main ()
19562 return mISDN_open ();
19564 return 0;
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest$ac_exeext &&
19584 $as_test_x conftest$ac_exeext; then
19585 ac_cv_lib_mISDN_mISDN_open=yes
19586 else
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_lib_mISDN_mISDN_open=no
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594 conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19597 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
19598 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
19599 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
19600 AST_MISDN_FOUND=yes
19601 else
19602 AST_MISDN_FOUND=no
19606 if test "${AST_MISDN_FOUND}" = "yes"; then
19607 MISDN_LIB="-lmISDN "
19608 MISDN_HEADER_FOUND="1"
19609 if test "x${MISDN_DIR}" != "x"; then
19610 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
19611 MISDN_INCLUDE="-I${MISDN_DIR}/include"
19612 saved_cppflags="${CPPFLAGS}"
19613 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
19614 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19615 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
19616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19617 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19618 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_res=`eval echo '${'$as_ac_Header'}'`
19623 { echo "$as_me:$LINENO: result: $ac_res" >&5
19624 echo "${ECHO_T}$ac_res" >&6; }
19625 else
19626 # Is the header compilable?
19627 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
19628 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 $ac_includes_default
19636 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (ac_try="$ac_compile"
19640 case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_compile") 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest.$ac_objext; then
19655 ac_header_compiler=yes
19656 else
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_header_compiler=no
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19665 echo "${ECHO_T}$ac_header_compiler" >&6; }
19667 # Is the header present?
19668 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
19669 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
19677 _ACEOF
19678 if { (ac_try="$ac_cpp conftest.$ac_ext"
19679 case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19682 esac
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19685 ac_status=$?
19686 grep -v '^ *+' conftest.er1 >conftest.err
19687 rm -f conftest.er1
19688 cat conftest.err >&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } >/dev/null && {
19691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19692 test ! -s conftest.err
19693 }; then
19694 ac_header_preproc=yes
19695 else
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_header_preproc=no
19702 rm -f conftest.err conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19704 echo "${ECHO_T}$ac_header_preproc" >&6; }
19706 # So? What about this header?
19707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19708 yes:no: )
19709 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19710 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19712 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19713 ac_header_preproc=yes
19715 no:yes:* )
19716 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19717 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19718 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19719 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19720 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19721 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19723 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19727 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19728 ( cat <<\_ASBOX
19729 ## ------------------------------- ##
19730 ## Report this to www.asterisk.org ##
19731 ## ------------------------------- ##
19732 _ASBOX
19733 ) | sed "s/^/$as_me: WARNING: /" >&2
19735 esac
19736 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
19737 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741 eval "$as_ac_Header=\$ac_header_preproc"
19743 ac_res=`eval echo '${'$as_ac_Header'}'`
19744 { echo "$as_me:$LINENO: result: $ac_res" >&5
19745 echo "${ECHO_T}$ac_res" >&6; }
19748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19749 MISDN_HEADER_FOUND=1
19750 else
19751 MISDN_HEADER_FOUND=0
19756 CPPFLAGS="${saved_cppflags}"
19757 else
19758 if test "xmISDNuser/mISDNlib.h" != "x" ; then
19759 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19760 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19761 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19762 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19767 else
19768 # Is the header compilable?
19769 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
19770 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h. */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 $ac_includes_default
19778 #include <mISDNuser/mISDNlib.h>
19779 _ACEOF
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19797 ac_header_compiler=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_header_compiler=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19807 echo "${ECHO_T}$ac_header_compiler" >&6; }
19809 # Is the header present?
19810 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
19811 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h. */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <mISDNuser/mISDNlib.h>
19819 _ACEOF
19820 if { (ac_try="$ac_cpp conftest.$ac_ext"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } >/dev/null && {
19833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 }; then
19836 ac_header_preproc=yes
19837 else
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_header_preproc=no
19844 rm -f conftest.err conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19846 echo "${ECHO_T}$ac_header_preproc" >&6; }
19848 # So? What about this header?
19849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19850 yes:no: )
19851 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19852 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
19854 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
19855 ac_header_preproc=yes
19857 no:yes:* )
19858 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
19859 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
19861 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
19863 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
19865 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
19867 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
19869 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
19870 ( cat <<\_ASBOX
19871 ## ------------------------------- ##
19872 ## Report this to www.asterisk.org ##
19873 ## ------------------------------- ##
19874 _ASBOX
19875 ) | sed "s/^/$as_me: WARNING: /" >&2
19877 esac
19878 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
19879 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
19880 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
19885 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
19886 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
19889 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
19890 MISDN_HEADER_FOUND=1
19891 else
19892 MISDN_HEADER_FOUND=0
19898 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
19899 if test -n "${MISDN_MANDATORY}" ;
19900 then
19901 { echo "$as_me:$LINENO: ***" >&5
19902 echo "$as_me: ***" >&6;}
19903 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
19904 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
19905 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
19906 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
19907 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19908 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19909 exit 1
19911 MISDN_LIB=""
19912 MISDN_INCLUDE=""
19913 PBX_MISDN=0
19914 else
19915 PBX_MISDN=1
19917 cat >>confdefs.h <<_ACEOF
19918 #define HAVE_MISDN 1
19919 _ACEOF
19922 elif test -n "${MISDN_MANDATORY}";
19923 then
19924 { echo "$as_me:$LINENO: ***" >&5
19925 echo "$as_me: ***" >&6;}
19926 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
19927 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
19928 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19929 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19930 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
19931 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
19932 exit 1
19937 if test "${PBX_MISDN}" = 1; then
19939 if test "${USE_ISDNNET}" != "no"; then
19940 pbxlibdir=""
19941 if test "x${ISDNNET_DIR}" != "x"; then
19942 if test -d ${ISDNNET_DIR}/lib; then
19943 pbxlibdir="-L${ISDNNET_DIR}/lib"
19944 else
19945 pbxlibdir="-L${ISDNNET_DIR}"
19948 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
19949 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
19950 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h. */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19965 #ifdef __cplusplus
19966 extern "C"
19967 #endif
19968 char init_manager ();
19970 main ()
19972 return init_manager ();
19974 return 0;
19976 _ACEOF
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_isdnnet_init_manager=yes
19996 else
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_isdnnet_init_manager=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20008 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20009 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20010 AST_ISDNNET_FOUND=yes
20011 else
20012 AST_ISDNNET_FOUND=no
20016 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20017 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20018 ISDNNET_HEADER_FOUND="1"
20019 if test "x${ISDNNET_DIR}" != "x"; then
20020 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20021 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20022 saved_cppflags="${CPPFLAGS}"
20023 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20024 if test "xmISDNuser/isdn_net.h" != "x" ; then
20025 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20027 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20028 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 ac_res=`eval echo '${'$as_ac_Header'}'`
20033 { echo "$as_me:$LINENO: result: $ac_res" >&5
20034 echo "${ECHO_T}$ac_res" >&6; }
20035 else
20036 # Is the header compilable?
20037 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20038 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20039 cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h. */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20046 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20065 ac_header_compiler=yes
20066 else
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_header_compiler=no
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20075 echo "${ECHO_T}$ac_header_compiler" >&6; }
20077 # Is the header present?
20078 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20079 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20087 _ACEOF
20088 if { (ac_try="$ac_cpp conftest.$ac_ext"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } >/dev/null && {
20101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20102 test ! -s conftest.err
20103 }; then
20104 ac_header_preproc=yes
20105 else
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ac_header_preproc=no
20112 rm -f conftest.err conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20114 echo "${ECHO_T}$ac_header_preproc" >&6; }
20116 # So? What about this header?
20117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20118 yes:no: )
20119 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20120 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20122 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20123 ac_header_preproc=yes
20125 no:yes:* )
20126 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20127 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20129 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20130 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20131 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20132 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20133 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20134 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20135 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20136 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20137 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20138 ( cat <<\_ASBOX
20139 ## ------------------------------- ##
20140 ## Report this to www.asterisk.org ##
20141 ## ------------------------------- ##
20142 _ASBOX
20143 ) | sed "s/^/$as_me: WARNING: /" >&2
20145 esac
20146 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20147 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151 eval "$as_ac_Header=\$ac_header_preproc"
20153 ac_res=`eval echo '${'$as_ac_Header'}'`
20154 { echo "$as_me:$LINENO: result: $ac_res" >&5
20155 echo "${ECHO_T}$ac_res" >&6; }
20158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20159 ISDNNET_HEADER_FOUND=1
20160 else
20161 ISDNNET_HEADER_FOUND=0
20166 CPPFLAGS="${saved_cppflags}"
20167 else
20168 if test "xmISDNuser/isdn_net.h" != "x" ; then
20169 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20170 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20171 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20172 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20176 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20177 else
20178 # Is the header compilable?
20179 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
20180 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h. */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20188 #include <mISDNuser/isdn_net.h>
20189 _ACEOF
20190 rm -f conftest.$ac_objext
20191 if { (ac_try="$ac_compile"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_compile") 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest.$ac_objext; then
20207 ac_header_compiler=yes
20208 else
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_header_compiler=no
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20217 echo "${ECHO_T}$ac_header_compiler" >&6; }
20219 # Is the header present?
20220 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
20221 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h. */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228 #include <mISDNuser/isdn_net.h>
20229 _ACEOF
20230 if { (ac_try="$ac_cpp conftest.$ac_ext"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } >/dev/null && {
20243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 }; then
20246 ac_header_preproc=yes
20247 else
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_header_preproc=no
20254 rm -f conftest.err conftest.$ac_ext
20255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20256 echo "${ECHO_T}$ac_header_preproc" >&6; }
20258 # So? What about this header?
20259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20260 yes:no: )
20261 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20262 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20264 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20265 ac_header_preproc=yes
20267 no:yes:* )
20268 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20269 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20271 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20273 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20275 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20276 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20277 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20278 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20279 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20280 ( cat <<\_ASBOX
20281 ## ------------------------------- ##
20282 ## Report this to www.asterisk.org ##
20283 ## ------------------------------- ##
20284 _ASBOX
20285 ) | sed "s/^/$as_me: WARNING: /" >&2
20287 esac
20288 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
20289 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20290 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
20295 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
20296 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
20299 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
20300 ISDNNET_HEADER_FOUND=1
20301 else
20302 ISDNNET_HEADER_FOUND=0
20308 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
20309 if test -n "${ISDNNET_MANDATORY}" ;
20310 then
20311 { echo "$as_me:$LINENO: ***" >&5
20312 echo "$as_me: ***" >&6;}
20313 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
20314 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
20315 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
20316 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
20317 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20318 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20319 exit 1
20321 ISDNNET_LIB=""
20322 ISDNNET_INCLUDE=""
20323 PBX_ISDNNET=0
20324 else
20325 PBX_ISDNNET=1
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_ISDNNET 1
20329 _ACEOF
20332 elif test -n "${ISDNNET_MANDATORY}";
20333 then
20334 { echo "$as_me:$LINENO: ***" >&5
20335 echo "$as_me: ***" >&6;}
20336 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
20337 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
20338 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20339 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20340 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
20341 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
20342 exit 1
20347 if test "${USE_SUPPSERV}" != "no"; then
20348 pbxlibdir=""
20349 if test "x${SUPPSERV_DIR}" != "x"; then
20350 if test -d ${SUPPSERV_DIR}/lib; then
20351 pbxlibdir="-L${SUPPSERV_DIR}/lib"
20352 else
20353 pbxlibdir="-L${SUPPSERV_DIR}"
20356 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
20357 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
20358 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361 ac_check_lib_save_LIBS=$LIBS
20362 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20370 /* Override any GCC internal prototype to avoid an error.
20371 Use char because int might match the return type of a GCC
20372 builtin and then its argument prototype would still apply. */
20373 #ifdef __cplusplus
20374 extern "C"
20375 #endif
20376 char encodeFac ();
20378 main ()
20380 return encodeFac ();
20382 return 0;
20384 _ACEOF
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (ac_try="$ac_link"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_link") 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } && {
20399 test -z "$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 } && test -s conftest$ac_exeext &&
20402 $as_test_x conftest$ac_exeext; then
20403 ac_cv_lib_suppserv_encodeFac=yes
20404 else
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20408 ac_cv_lib_suppserv_encodeFac=no
20411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20415 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
20416 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
20417 if test $ac_cv_lib_suppserv_encodeFac = yes; then
20418 AST_SUPPSERV_FOUND=yes
20419 else
20420 AST_SUPPSERV_FOUND=no
20424 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
20425 SUPPSERV_LIB="-lsuppserv "
20426 SUPPSERV_HEADER_FOUND="1"
20427 if test "x${SUPPSERV_DIR}" != "x"; then
20428 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
20429 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
20430 saved_cppflags="${CPPFLAGS}"
20431 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
20432 if test "xmISDNuser/suppserv.h" != "x" ; then
20433 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
20434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20435 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20436 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 ac_res=`eval echo '${'$as_ac_Header'}'`
20441 { echo "$as_me:$LINENO: result: $ac_res" >&5
20442 echo "${ECHO_T}$ac_res" >&6; }
20443 else
20444 # Is the header compilable?
20445 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
20446 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 $ac_includes_default
20454 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_compile") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest.$ac_objext; then
20473 ac_header_compiler=yes
20474 else
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_compiler=no
20481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6; }
20485 # Is the header present?
20486 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
20487 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
20495 _ACEOF
20496 if { (ac_try="$ac_cpp conftest.$ac_ext"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } >/dev/null && {
20509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 }; then
20512 ac_header_preproc=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_preproc=no
20520 rm -f conftest.err conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6; }
20524 # So? What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20526 yes:no: )
20527 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20531 ac_header_preproc=yes
20533 no:yes:* )
20534 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20546 ( cat <<\_ASBOX
20547 ## ------------------------------- ##
20548 ## Report this to www.asterisk.org ##
20549 ## ------------------------------- ##
20550 _ASBOX
20551 ) | sed "s/^/$as_me: WARNING: /" >&2
20553 esac
20554 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
20555 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
20556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559 eval "$as_ac_Header=\$ac_header_preproc"
20561 ac_res=`eval echo '${'$as_ac_Header'}'`
20562 { echo "$as_me:$LINENO: result: $ac_res" >&5
20563 echo "${ECHO_T}$ac_res" >&6; }
20566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20567 SUPPSERV_HEADER_FOUND=1
20568 else
20569 SUPPSERV_HEADER_FOUND=0
20574 CPPFLAGS="${saved_cppflags}"
20575 else
20576 if test "xmISDNuser/suppserv.h" != "x" ; then
20577 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20578 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20579 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20580 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20584 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20585 else
20586 # Is the header compilable?
20587 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
20588 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 $ac_includes_default
20596 #include <mISDNuser/suppserv.h>
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.$ac_objext; then
20615 ac_header_compiler=yes
20616 else
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_header_compiler=no
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20625 echo "${ECHO_T}$ac_header_compiler" >&6; }
20627 # Is the header present?
20628 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
20629 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h. */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <mISDNuser/suppserv.h>
20637 _ACEOF
20638 if { (ac_try="$ac_cpp conftest.$ac_ext"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } >/dev/null && {
20651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 }; then
20654 ac_header_preproc=yes
20655 else
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_header_preproc=no
20662 rm -f conftest.err conftest.$ac_ext
20663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20664 echo "${ECHO_T}$ac_header_preproc" >&6; }
20666 # So? What about this header?
20667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20668 yes:no: )
20669 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20670 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
20672 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
20673 ac_header_preproc=yes
20675 no:yes:* )
20676 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
20677 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
20679 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
20681 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
20683 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
20685 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
20686 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
20687 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
20688 ( cat <<\_ASBOX
20689 ## ------------------------------- ##
20690 ## Report this to www.asterisk.org ##
20691 ## ------------------------------- ##
20692 _ASBOX
20693 ) | sed "s/^/$as_me: WARNING: /" >&2
20695 esac
20696 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
20697 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
20698 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
20703 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
20704 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
20707 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
20708 SUPPSERV_HEADER_FOUND=1
20709 else
20710 SUPPSERV_HEADER_FOUND=0
20716 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
20717 if test -n "${SUPPSERV_MANDATORY}" ;
20718 then
20719 { echo "$as_me:$LINENO: ***" >&5
20720 echo "$as_me: ***" >&6;}
20721 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
20722 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
20723 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
20724 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
20725 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20726 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20727 exit 1
20729 SUPPSERV_LIB=""
20730 SUPPSERV_INCLUDE=""
20731 PBX_SUPPSERV=0
20732 else
20733 PBX_SUPPSERV=1
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_SUPPSERV 1
20737 _ACEOF
20740 elif test -n "${SUPPSERV_MANDATORY}";
20741 then
20742 { echo "$as_me:$LINENO: ***" >&5
20743 echo "$as_me: ***" >&6;}
20744 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
20745 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
20746 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20747 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20748 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
20749 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
20750 exit 1
20754 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20755 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20756 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20757 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20761 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20762 else
20763 # Is the header compilable?
20764 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
20765 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 $ac_includes_default
20773 #include <linux/mISDNdsp.h>
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest.$ac_objext; then
20792 ac_header_compiler=yes
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_header_compiler=no
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20802 echo "${ECHO_T}$ac_header_compiler" >&6; }
20804 # Is the header present?
20805 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
20806 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
20807 cat >conftest.$ac_ext <<_ACEOF
20808 /* confdefs.h. */
20809 _ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h. */
20813 #include <linux/mISDNdsp.h>
20814 _ACEOF
20815 if { (ac_try="$ac_cpp conftest.$ac_ext"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } >/dev/null && {
20828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 }; then
20831 ac_header_preproc=yes
20832 else
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_header_preproc=no
20839 rm -f conftest.err conftest.$ac_ext
20840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20841 echo "${ECHO_T}$ac_header_preproc" >&6; }
20843 # So? What about this header?
20844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20845 yes:no: )
20846 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20847 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
20849 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
20850 ac_header_preproc=yes
20852 no:yes:* )
20853 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
20854 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
20856 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
20858 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
20860 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
20862 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
20863 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
20864 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
20865 ( cat <<\_ASBOX
20866 ## ------------------------------- ##
20867 ## Report this to www.asterisk.org ##
20868 ## ------------------------------- ##
20869 _ASBOX
20870 ) | sed "s/^/$as_me: WARNING: /" >&2
20872 esac
20873 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
20874 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
20875 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
20880 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
20881 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
20884 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 #define MISDN_1_2 1
20888 _ACEOF
20896 if test "${USE_NBS}" != "no"; then
20897 pbxlibdir=""
20898 if test "x${NBS_DIR}" != "x"; then
20899 if test -d ${NBS_DIR}/lib; then
20900 pbxlibdir="-L${NBS_DIR}/lib"
20901 else
20902 pbxlibdir="-L${NBS_DIR}"
20905 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
20906 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
20907 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910 ac_check_lib_save_LIBS=$LIBS
20911 LIBS="-lnbs ${pbxlibdir} $LIBS"
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20922 #ifdef __cplusplus
20923 extern "C"
20924 #endif
20925 char nbs_connect ();
20927 main ()
20929 return nbs_connect ();
20931 return 0;
20933 _ACEOF
20934 rm -f conftest.$ac_objext conftest$ac_exeext
20935 if { (ac_try="$ac_link"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_link") 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest$ac_exeext &&
20951 $as_test_x conftest$ac_exeext; then
20952 ac_cv_lib_nbs_nbs_connect=yes
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_lib_nbs_nbs_connect=no
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961 conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20964 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
20965 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
20966 if test $ac_cv_lib_nbs_nbs_connect = yes; then
20967 AST_NBS_FOUND=yes
20968 else
20969 AST_NBS_FOUND=no
20973 if test "${AST_NBS_FOUND}" = "yes"; then
20974 NBS_LIB="-lnbs "
20975 NBS_HEADER_FOUND="1"
20976 if test "x${NBS_DIR}" != "x"; then
20977 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
20978 NBS_INCLUDE="-I${NBS_DIR}/include"
20979 saved_cppflags="${CPPFLAGS}"
20980 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
20981 if test "xnbs.h" != "x" ; then
20982 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
20983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20984 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
20985 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
20986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 ac_res=`eval echo '${'$as_ac_Header'}'`
20990 { echo "$as_me:$LINENO: result: $ac_res" >&5
20991 echo "${ECHO_T}$ac_res" >&6; }
20992 else
20993 # Is the header compilable?
20994 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
20995 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 $ac_includes_default
21003 #include <${NBS_DIR}/include/nbs.h>
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest.$ac_objext; then
21022 ac_header_compiler=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_header_compiler=no
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21032 echo "${ECHO_T}$ac_header_compiler" >&6; }
21034 # Is the header present?
21035 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21036 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h. */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <${NBS_DIR}/include/nbs.h>
21044 _ACEOF
21045 if { (ac_try="$ac_cpp conftest.$ac_ext"
21046 case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21052 ac_status=$?
21053 grep -v '^ *+' conftest.er1 >conftest.err
21054 rm -f conftest.er1
21055 cat conftest.err >&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } >/dev/null && {
21058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21059 test ! -s conftest.err
21060 }; then
21061 ac_header_preproc=yes
21062 else
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ac_header_preproc=no
21069 rm -f conftest.err conftest.$ac_ext
21070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21071 echo "${ECHO_T}$ac_header_preproc" >&6; }
21073 # So? What about this header?
21074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21075 yes:no: )
21076 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21077 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21078 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21079 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21080 ac_header_preproc=yes
21082 no:yes:* )
21083 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21084 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21086 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21088 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21089 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21090 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21091 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21092 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21093 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21094 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21095 ( cat <<\_ASBOX
21096 ## ------------------------------- ##
21097 ## Report this to www.asterisk.org ##
21098 ## ------------------------------- ##
21099 _ASBOX
21100 ) | sed "s/^/$as_me: WARNING: /" >&2
21102 esac
21103 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21104 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108 eval "$as_ac_Header=\$ac_header_preproc"
21110 ac_res=`eval echo '${'$as_ac_Header'}'`
21111 { echo "$as_me:$LINENO: result: $ac_res" >&5
21112 echo "${ECHO_T}$ac_res" >&6; }
21115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21116 NBS_HEADER_FOUND=1
21117 else
21118 NBS_HEADER_FOUND=0
21123 CPPFLAGS="${saved_cppflags}"
21124 else
21125 if test "xnbs.h" != "x" ; then
21126 if test "${ac_cv_header_nbs_h+set}" = set; then
21127 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21128 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21129 if test "${ac_cv_header_nbs_h+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21133 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21134 else
21135 # Is the header compilable?
21136 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
21137 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h. */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 $ac_includes_default
21145 #include <nbs.h>
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.$ac_objext; then
21164 ac_header_compiler=yes
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_header_compiler=no
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21174 echo "${ECHO_T}$ac_header_compiler" >&6; }
21176 # Is the header present?
21177 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
21178 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <nbs.h>
21186 _ACEOF
21187 if { (ac_try="$ac_cpp conftest.$ac_ext"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21194 ac_status=$?
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } >/dev/null && {
21200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 }; then
21203 ac_header_preproc=yes
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_header_preproc=no
21211 rm -f conftest.err conftest.$ac_ext
21212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21213 echo "${ECHO_T}$ac_header_preproc" >&6; }
21215 # So? What about this header?
21216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21217 yes:no: )
21218 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21219 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
21221 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
21222 ac_header_preproc=yes
21224 no:yes:* )
21225 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
21226 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
21228 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
21230 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21232 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
21234 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
21236 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
21237 ( cat <<\_ASBOX
21238 ## ------------------------------- ##
21239 ## Report this to www.asterisk.org ##
21240 ## ------------------------------- ##
21241 _ASBOX
21242 ) | sed "s/^/$as_me: WARNING: /" >&2
21244 esac
21245 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21246 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21247 if test "${ac_cv_header_nbs_h+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250 ac_cv_header_nbs_h=$ac_header_preproc
21252 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21253 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21256 if test $ac_cv_header_nbs_h = yes; then
21257 NBS_HEADER_FOUND=1
21258 else
21259 NBS_HEADER_FOUND=0
21265 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
21266 if test -n "${NBS_MANDATORY}" ;
21267 then
21268 { echo "$as_me:$LINENO: ***" >&5
21269 echo "$as_me: ***" >&6;}
21270 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
21271 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
21272 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
21273 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
21274 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21275 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21276 exit 1
21278 NBS_LIB=""
21279 NBS_INCLUDE=""
21280 PBX_NBS=0
21281 else
21282 PBX_NBS=1
21284 cat >>confdefs.h <<_ACEOF
21285 #define HAVE_NBS 1
21286 _ACEOF
21289 elif test -n "${NBS_MANDATORY}";
21290 then
21291 { echo "$as_me:$LINENO: ***" >&5
21292 echo "$as_me: ***" >&6;}
21293 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
21294 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
21295 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21296 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21297 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
21298 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
21299 exit 1
21305 if test "${USE_NCURSES}" != "no"; then
21306 pbxlibdir=""
21307 if test "x${NCURSES_DIR}" != "x"; then
21308 if test -d ${NCURSES_DIR}/lib; then
21309 pbxlibdir="-L${NCURSES_DIR}/lib"
21310 else
21311 pbxlibdir="-L${NCURSES_DIR}"
21314 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
21315 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
21316 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319 ac_check_lib_save_LIBS=$LIBS
21320 LIBS="-lncurses ${pbxlibdir} $LIBS"
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21328 /* Override any GCC internal prototype to avoid an error.
21329 Use char because int might match the return type of a GCC
21330 builtin and then its argument prototype would still apply. */
21331 #ifdef __cplusplus
21332 extern "C"
21333 #endif
21334 char initscr ();
21336 main ()
21338 return initscr ();
21340 return 0;
21342 _ACEOF
21343 rm -f conftest.$ac_objext conftest$ac_exeext
21344 if { (ac_try="$ac_link"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_link") 2>conftest.er1
21351 ac_status=$?
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest$ac_exeext &&
21360 $as_test_x conftest$ac_exeext; then
21361 ac_cv_lib_ncurses_initscr=yes
21362 else
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 ac_cv_lib_ncurses_initscr=no
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LIBS=$ac_check_lib_save_LIBS
21373 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
21374 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
21375 if test $ac_cv_lib_ncurses_initscr = yes; then
21376 AST_NCURSES_FOUND=yes
21377 else
21378 AST_NCURSES_FOUND=no
21382 if test "${AST_NCURSES_FOUND}" = "yes"; then
21383 NCURSES_LIB="-lncurses "
21384 NCURSES_HEADER_FOUND="1"
21385 if test "x${NCURSES_DIR}" != "x"; then
21386 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
21387 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
21388 saved_cppflags="${CPPFLAGS}"
21389 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
21390 if test "xcurses.h" != "x" ; then
21391 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
21392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21393 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
21394 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
21395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 ac_res=`eval echo '${'$as_ac_Header'}'`
21399 { echo "$as_me:$LINENO: result: $ac_res" >&5
21400 echo "${ECHO_T}$ac_res" >&6; }
21401 else
21402 # Is the header compilable?
21403 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
21404 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
21405 cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h. */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21411 $ac_includes_default
21412 #include <${NCURSES_DIR}/include/curses.h>
21413 _ACEOF
21414 rm -f conftest.$ac_objext
21415 if { (ac_try="$ac_compile"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21419 esac
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_compile") 2>conftest.er1
21422 ac_status=$?
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } && {
21428 test -z "$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 } && test -s conftest.$ac_objext; then
21431 ac_header_compiler=yes
21432 else
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_header_compiler=no
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21441 echo "${ECHO_T}$ac_header_compiler" >&6; }
21443 # Is the header present?
21444 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
21445 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <${NCURSES_DIR}/include/curses.h>
21453 _ACEOF
21454 if { (ac_try="$ac_cpp conftest.$ac_ext"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458 esac
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } >/dev/null && {
21467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21468 test ! -s conftest.err
21469 }; then
21470 ac_header_preproc=yes
21471 else
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_header_preproc=no
21478 rm -f conftest.err conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21480 echo "${ECHO_T}$ac_header_preproc" >&6; }
21482 # So? What about this header?
21483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21484 yes:no: )
21485 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21486 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
21488 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
21489 ac_header_preproc=yes
21491 no:yes:* )
21492 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
21493 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
21495 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
21497 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
21499 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
21501 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
21503 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
21504 ( cat <<\_ASBOX
21505 ## ------------------------------- ##
21506 ## Report this to www.asterisk.org ##
21507 ## ------------------------------- ##
21508 _ASBOX
21509 ) | sed "s/^/$as_me: WARNING: /" >&2
21511 esac
21512 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
21513 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517 eval "$as_ac_Header=\$ac_header_preproc"
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21525 NCURSES_HEADER_FOUND=1
21526 else
21527 NCURSES_HEADER_FOUND=0
21532 CPPFLAGS="${saved_cppflags}"
21533 else
21534 if test "xcurses.h" != "x" ; then
21535 if test "${ac_cv_header_curses_h+set}" = set; then
21536 { echo "$as_me:$LINENO: checking for curses.h" >&5
21537 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21538 if test "${ac_cv_header_curses_h+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21542 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21543 else
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking curses.h usability" >&5
21546 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h. */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <curses.h>
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
21573 ac_header_compiler=yes
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_compiler=no
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21583 echo "${ECHO_T}$ac_header_compiler" >&6; }
21585 # Is the header present?
21586 { echo "$as_me:$LINENO: checking curses.h presence" >&5
21587 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h. */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <curses.h>
21595 _ACEOF
21596 if { (ac_try="$ac_cpp conftest.$ac_ext"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } >/dev/null && {
21609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 }; then
21612 ac_header_preproc=yes
21613 else
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_preproc=no
21620 rm -f conftest.err conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6; }
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21626 yes:no: )
21627 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
21628 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
21630 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
21631 ac_header_preproc=yes
21633 no:yes:* )
21634 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
21635 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
21637 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
21639 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
21641 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
21643 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
21645 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
21646 ( cat <<\_ASBOX
21647 ## ------------------------------- ##
21648 ## Report this to www.asterisk.org ##
21649 ## ------------------------------- ##
21650 _ASBOX
21651 ) | sed "s/^/$as_me: WARNING: /" >&2
21653 esac
21654 { echo "$as_me:$LINENO: checking for curses.h" >&5
21655 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
21656 if test "${ac_cv_header_curses_h+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659 ac_cv_header_curses_h=$ac_header_preproc
21661 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
21662 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
21665 if test $ac_cv_header_curses_h = yes; then
21666 NCURSES_HEADER_FOUND=1
21667 else
21668 NCURSES_HEADER_FOUND=0
21674 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
21675 if test -n "${NCURSES_MANDATORY}" ;
21676 then
21677 { echo "$as_me:$LINENO: ***" >&5
21678 echo "$as_me: ***" >&6;}
21679 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
21680 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
21681 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
21682 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
21683 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21684 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21685 exit 1
21687 NCURSES_LIB=""
21688 NCURSES_INCLUDE=""
21689 PBX_NCURSES=0
21690 else
21691 PBX_NCURSES=1
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_NCURSES 1
21695 _ACEOF
21698 elif test -n "${NCURSES_MANDATORY}";
21699 then
21700 { echo "$as_me:$LINENO: ***" >&5
21701 echo "$as_me: ***" >&6;}
21702 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
21703 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
21704 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21705 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21706 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
21707 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
21708 exit 1
21713 NETSNMP_CONFIG=No
21714 if test "${USE_NETSNMP}" != "no"; then
21715 if test "x${NETSNMP_DIR}" != "x"; then
21716 if test -n "$ac_tool_prefix"; then
21717 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21718 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21721 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724 case $NETSNMP_CONFIG in
21725 [\\/]* | ?:[\\/]*)
21726 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21730 for as_dir in ${NETSNMP_DIR}/bin
21732 IFS=$as_save_IFS
21733 test -z "$as_dir" && as_dir=.
21734 for ac_exec_ext in '' $ac_executable_extensions; do
21735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21736 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21738 break 2
21740 done
21741 done
21742 IFS=$as_save_IFS
21745 esac
21747 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21748 if test -n "$NETSNMP_CONFIG"; then
21749 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21750 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21751 else
21752 { echo "$as_me:$LINENO: result: no" >&5
21753 echo "${ECHO_T}no" >&6; }
21758 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21759 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21760 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21761 set dummy net-snmp-config; ac_word=$2
21762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21764 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 else
21767 case $ac_pt_NETSNMP_CONFIG in
21768 [\\/]* | ?:[\\/]*)
21769 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21773 for as_dir in ${NETSNMP_DIR}/bin
21775 IFS=$as_save_IFS
21776 test -z "$as_dir" && as_dir=.
21777 for ac_exec_ext in '' $ac_executable_extensions; do
21778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21779 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21781 break 2
21783 done
21784 done
21785 IFS=$as_save_IFS
21788 esac
21790 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21791 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21792 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21793 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21794 else
21795 { echo "$as_me:$LINENO: result: no" >&5
21796 echo "${ECHO_T}no" >&6; }
21799 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21800 NETSNMP_CONFIG="No"
21801 else
21802 case $cross_compiling:$ac_tool_warned in
21803 yes:)
21804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21805 whose name does not start with the host triplet. If you think this
21806 configuration is useful to you, please write to autoconf@gnu.org." >&5
21807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21808 whose name does not start with the host triplet. If you think this
21809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21810 ac_tool_warned=yes ;;
21811 esac
21812 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21814 else
21815 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21818 if test x"${NETSNMP_CONFIG}" = xNo; then
21819 { echo "$as_me:$LINENO: ***" >&5
21820 echo "$as_me: ***" >&6;}
21821 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
21822 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
21823 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
21824 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
21825 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21826 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21827 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
21828 echo "$as_me: *** including --without-netsnmp" >&6;}
21829 exit 1
21831 else
21832 if test -n "$ac_tool_prefix"; then
21833 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21834 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21837 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840 case $NETSNMP_CONFIG in
21841 [\\/]* | ?:[\\/]*)
21842 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21846 for as_dir in $PATH
21848 IFS=$as_save_IFS
21849 test -z "$as_dir" && as_dir=.
21850 for ac_exec_ext in '' $ac_executable_extensions; do
21851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21852 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21854 break 2
21856 done
21857 done
21858 IFS=$as_save_IFS
21861 esac
21863 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21864 if test -n "$NETSNMP_CONFIG"; then
21865 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
21866 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
21867 else
21868 { echo "$as_me:$LINENO: result: no" >&5
21869 echo "${ECHO_T}no" >&6; }
21874 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
21875 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
21876 # Extract the first word of "net-snmp-config", so it can be a program name with args.
21877 set dummy net-snmp-config; ac_word=$2
21878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21880 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883 case $ac_pt_NETSNMP_CONFIG in
21884 [\\/]* | ?:[\\/]*)
21885 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
21888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21889 for as_dir in $PATH
21891 IFS=$as_save_IFS
21892 test -z "$as_dir" && as_dir=.
21893 for ac_exec_ext in '' $ac_executable_extensions; do
21894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21895 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21897 break 2
21899 done
21900 done
21901 IFS=$as_save_IFS
21904 esac
21906 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
21907 if test -n "$ac_pt_NETSNMP_CONFIG"; then
21908 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
21909 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
21910 else
21911 { echo "$as_me:$LINENO: result: no" >&5
21912 echo "${ECHO_T}no" >&6; }
21915 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
21916 NETSNMP_CONFIG="No"
21917 else
21918 case $cross_compiling:$ac_tool_warned in
21919 yes:)
21920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21921 whose name does not start with the host triplet. If you think this
21922 configuration is useful to you, please write to autoconf@gnu.org." >&5
21923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21924 whose name does not start with the host triplet. If you think this
21925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21926 ac_tool_warned=yes ;;
21927 esac
21928 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
21930 else
21931 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
21936 if test x"${NETSNMP_CONFIG}" != xNo; then
21937 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
21939 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
21940 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
21941 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944 ac_check_lib_save_LIBS=$LIBS
21945 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h. */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21953 /* Override any GCC internal prototype to avoid an error.
21954 Use char because int might match the return type of a GCC
21955 builtin and then its argument prototype would still apply. */
21956 #ifdef __cplusplus
21957 extern "C"
21958 #endif
21959 char snmp_register_callback ();
21961 main ()
21963 return snmp_register_callback ();
21965 return 0;
21967 _ACEOF
21968 rm -f conftest.$ac_objext conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_link") 2>conftest.er1
21976 ac_status=$?
21977 grep -v '^ *+' conftest.er1 >conftest.err
21978 rm -f conftest.er1
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest$ac_exeext &&
21985 $as_test_x conftest$ac_exeext; then
21986 ac_cv_lib_netsnmp_snmp_register_callback=yes
21987 else
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_cv_lib_netsnmp_snmp_register_callback=no
21994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21995 conftest$ac_exeext conftest.$ac_ext
21996 LIBS=$ac_check_lib_save_LIBS
21998 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
21999 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22000 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_NETSNMP 1
22004 _ACEOF
22009 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22010 NETSNMP_LIB="${NETSNMP_libs}"
22011 PBX_NETSNMP=1
22012 elif test -n "${NETSNMP_MANDATORY}";
22013 then
22014 { echo "$as_me:$LINENO: ***" >&5
22015 echo "$as_me: ***" >&6;}
22016 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22017 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22018 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22019 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22020 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22021 echo "$as_me: *** including --without-netsnmp" >&6;}
22022 exit 1
22024 elif test -n "${NETSNMP_MANDATORY}";
22025 then
22026 { echo "$as_me:$LINENO: ***" >&5
22027 echo "$as_me: ***" >&6;}
22028 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22029 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22030 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22031 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22032 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22033 echo "$as_me: *** including --without-netsnmp" >&6;}
22034 exit 1
22038 if test "${USE_NEWT}" != "no"; then
22039 pbxlibdir=""
22040 if test "x${NEWT_DIR}" != "x"; then
22041 if test -d ${NEWT_DIR}/lib; then
22042 pbxlibdir="-L${NEWT_DIR}/lib"
22043 else
22044 pbxlibdir="-L${NEWT_DIR}"
22047 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22048 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22049 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052 ac_check_lib_save_LIBS=$LIBS
22053 LIBS="-lnewt ${pbxlibdir} $LIBS"
22054 cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h. */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22061 /* Override any GCC internal prototype to avoid an error.
22062 Use char because int might match the return type of a GCC
22063 builtin and then its argument prototype would still apply. */
22064 #ifdef __cplusplus
22065 extern "C"
22066 #endif
22067 char newtBell ();
22069 main ()
22071 return newtBell ();
22073 return 0;
22075 _ACEOF
22076 rm -f conftest.$ac_objext conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_link") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest$ac_exeext &&
22093 $as_test_x conftest$ac_exeext; then
22094 ac_cv_lib_newt_newtBell=yes
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_cv_lib_newt_newtBell=no
22102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22103 conftest$ac_exeext conftest.$ac_ext
22104 LIBS=$ac_check_lib_save_LIBS
22106 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22107 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22108 if test $ac_cv_lib_newt_newtBell = yes; then
22109 AST_NEWT_FOUND=yes
22110 else
22111 AST_NEWT_FOUND=no
22115 if test "${AST_NEWT_FOUND}" = "yes"; then
22116 NEWT_LIB="-lnewt "
22117 NEWT_HEADER_FOUND="1"
22118 if test "x${NEWT_DIR}" != "x"; then
22119 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
22120 NEWT_INCLUDE="-I${NEWT_DIR}/include"
22121 saved_cppflags="${CPPFLAGS}"
22122 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
22123 if test "xnewt.h" != "x" ; then
22124 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
22125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22126 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
22127 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 ac_res=`eval echo '${'$as_ac_Header'}'`
22132 { echo "$as_me:$LINENO: result: $ac_res" >&5
22133 echo "${ECHO_T}$ac_res" >&6; }
22134 else
22135 # Is the header compilable?
22136 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
22137 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 $ac_includes_default
22145 #include <${NEWT_DIR}/include/newt.h>
22146 _ACEOF
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_compile") 2>conftest.er1
22155 ac_status=$?
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } && {
22161 test -z "$ac_c_werror_flag" ||
22162 test ! -s conftest.err
22163 } && test -s conftest.$ac_objext; then
22164 ac_header_compiler=yes
22165 else
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ac_header_compiler=no
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22174 echo "${ECHO_T}$ac_header_compiler" >&6; }
22176 # Is the header present?
22177 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
22178 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h. */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 #include <${NEWT_DIR}/include/newt.h>
22186 _ACEOF
22187 if { (ac_try="$ac_cpp conftest.$ac_ext"
22188 case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22194 ac_status=$?
22195 grep -v '^ *+' conftest.er1 >conftest.err
22196 rm -f conftest.er1
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } >/dev/null && {
22200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22202 }; then
22203 ac_header_preproc=yes
22204 else
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 ac_header_preproc=no
22211 rm -f conftest.err conftest.$ac_ext
22212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22213 echo "${ECHO_T}$ac_header_preproc" >&6; }
22215 # So? What about this header?
22216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22217 yes:no: )
22218 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22219 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
22221 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
22222 ac_header_preproc=yes
22224 no:yes:* )
22225 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
22226 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
22228 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
22230 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
22232 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
22234 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
22236 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
22237 ( cat <<\_ASBOX
22238 ## ------------------------------- ##
22239 ## Report this to www.asterisk.org ##
22240 ## ------------------------------- ##
22241 _ASBOX
22242 ) | sed "s/^/$as_me: WARNING: /" >&2
22244 esac
22245 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
22246 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
22247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250 eval "$as_ac_Header=\$ac_header_preproc"
22252 ac_res=`eval echo '${'$as_ac_Header'}'`
22253 { echo "$as_me:$LINENO: result: $ac_res" >&5
22254 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22258 NEWT_HEADER_FOUND=1
22259 else
22260 NEWT_HEADER_FOUND=0
22265 CPPFLAGS="${saved_cppflags}"
22266 else
22267 if test "xnewt.h" != "x" ; then
22268 if test "${ac_cv_header_newt_h+set}" = set; then
22269 { echo "$as_me:$LINENO: checking for newt.h" >&5
22270 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
22271 if test "${ac_cv_header_newt_h+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
22275 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
22276 else
22277 # Is the header compilable?
22278 { echo "$as_me:$LINENO: checking newt.h usability" >&5
22279 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h. */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22287 #include <newt.h>
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22306 ac_header_compiler=yes
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_header_compiler=no
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22316 echo "${ECHO_T}$ac_header_compiler" >&6; }
22318 # Is the header present?
22319 { echo "$as_me:$LINENO: checking newt.h presence" >&5
22320 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
22321 cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h. */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 #include <newt.h>
22328 _ACEOF
22329 if { (ac_try="$ac_cpp conftest.$ac_ext"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22333 esac
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22336 ac_status=$?
22337 grep -v '^ *+' conftest.er1 >conftest.err
22338 rm -f conftest.er1
22339 cat conftest.err >&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } >/dev/null && {
22342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22344 }; then
22345 ac_header_preproc=yes
22346 else
22347 echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22350 ac_header_preproc=no
22353 rm -f conftest.err conftest.$ac_ext
22354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22355 echo "${ECHO_T}$ac_header_preproc" >&6; }
22357 # So? What about this header?
22358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22359 yes:no: )
22360 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22361 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
22363 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
22364 ac_header_preproc=yes
22366 no:yes:* )
22367 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
22368 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
22369 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
22370 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
22371 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
22372 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
22374 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22375 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
22376 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
22377 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
22378 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
22379 ( cat <<\_ASBOX
22380 ## ------------------------------- ##
22381 ## Report this to www.asterisk.org ##
22382 ## ------------------------------- ##
22383 _ASBOX
22384 ) | sed "s/^/$as_me: WARNING: /" >&2
22386 esac
22387 { echo "$as_me:$LINENO: checking for newt.h" >&5
22388 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
22389 if test "${ac_cv_header_newt_h+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392 ac_cv_header_newt_h=$ac_header_preproc
22394 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
22398 if test $ac_cv_header_newt_h = yes; then
22399 NEWT_HEADER_FOUND=1
22400 else
22401 NEWT_HEADER_FOUND=0
22407 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
22408 if test -n "${NEWT_MANDATORY}" ;
22409 then
22410 { echo "$as_me:$LINENO: ***" >&5
22411 echo "$as_me: ***" >&6;}
22412 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
22413 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
22414 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
22415 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
22416 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
22417 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
22418 exit 1
22420 NEWT_LIB=""
22421 NEWT_INCLUDE=""
22422 PBX_NEWT=0
22423 else
22424 PBX_NEWT=1
22426 cat >>confdefs.h <<_ACEOF
22427 #define HAVE_NEWT 1
22428 _ACEOF
22431 elif test -n "${NEWT_MANDATORY}";
22432 then
22433 { echo "$as_me:$LINENO: ***" >&5
22434 echo "$as_me: ***" >&6;}
22435 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
22436 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
22437 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22438 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22439 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
22440 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
22441 exit 1
22447 if test "${USE_UNIXODBC}" != "no"; then
22448 pbxlibdir=""
22449 if test "x${UNIXODBC_DIR}" != "x"; then
22450 if test -d ${UNIXODBC_DIR}/lib; then
22451 pbxlibdir="-L${UNIXODBC_DIR}/lib"
22452 else
22453 pbxlibdir="-L${UNIXODBC_DIR}"
22456 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
22457 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
22458 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461 ac_check_lib_save_LIBS=$LIBS
22462 LIBS="-lodbc ${pbxlibdir} $LIBS"
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22470 /* Override any GCC internal prototype to avoid an error.
22471 Use char because int might match the return type of a GCC
22472 builtin and then its argument prototype would still apply. */
22473 #ifdef __cplusplus
22474 extern "C"
22475 #endif
22476 char SQLConnect ();
22478 main ()
22480 return SQLConnect ();
22482 return 0;
22484 _ACEOF
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_link") 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest$ac_exeext &&
22502 $as_test_x conftest$ac_exeext; then
22503 ac_cv_lib_odbc_SQLConnect=yes
22504 else
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 ac_cv_lib_odbc_SQLConnect=no
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512 conftest$ac_exeext conftest.$ac_ext
22513 LIBS=$ac_check_lib_save_LIBS
22515 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22516 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22517 if test $ac_cv_lib_odbc_SQLConnect = yes; then
22518 AST_UNIXODBC_FOUND=yes
22519 else
22520 AST_UNIXODBC_FOUND=no
22524 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
22525 UNIXODBC_LIB="-lodbc "
22526 UNIXODBC_HEADER_FOUND="1"
22527 if test "x${UNIXODBC_DIR}" != "x"; then
22528 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
22529 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
22530 saved_cppflags="${CPPFLAGS}"
22531 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
22532 if test "xsql.h" != "x" ; then
22533 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
22534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22535 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22536 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 ac_res=`eval echo '${'$as_ac_Header'}'`
22541 { echo "$as_me:$LINENO: result: $ac_res" >&5
22542 echo "${ECHO_T}$ac_res" >&6; }
22543 else
22544 # Is the header compilable?
22545 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
22546 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
22547 cat >conftest.$ac_ext <<_ACEOF
22548 /* confdefs.h. */
22549 _ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 $ac_includes_default
22554 #include <${UNIXODBC_DIR}/include/sql.h>
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22564 ac_status=$?
22565 grep -v '^ *+' conftest.er1 >conftest.err
22566 rm -f conftest.er1
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_header_compiler=yes
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_header_compiler=no
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22583 echo "${ECHO_T}$ac_header_compiler" >&6; }
22585 # Is the header present?
22586 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
22587 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h. */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 #include <${UNIXODBC_DIR}/include/sql.h>
22595 _ACEOF
22596 if { (ac_try="$ac_cpp conftest.$ac_ext"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } >/dev/null && {
22609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 }; then
22612 ac_header_preproc=yes
22613 else
22614 echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_preproc=no
22620 rm -f conftest.err conftest.$ac_ext
22621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22622 echo "${ECHO_T}$ac_header_preproc" >&6; }
22624 # So? What about this header?
22625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22626 yes:no: )
22627 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22628 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
22630 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
22631 ac_header_preproc=yes
22633 no:yes:* )
22634 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
22635 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
22637 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
22638 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
22639 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
22641 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22642 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
22643 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
22644 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
22645 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
22646 ( cat <<\_ASBOX
22647 ## ------------------------------- ##
22648 ## Report this to www.asterisk.org ##
22649 ## ------------------------------- ##
22650 _ASBOX
22651 ) | sed "s/^/$as_me: WARNING: /" >&2
22653 esac
22654 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
22655 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
22656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659 eval "$as_ac_Header=\$ac_header_preproc"
22661 ac_res=`eval echo '${'$as_ac_Header'}'`
22662 { echo "$as_me:$LINENO: result: $ac_res" >&5
22663 echo "${ECHO_T}$ac_res" >&6; }
22666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22667 UNIXODBC_HEADER_FOUND=1
22668 else
22669 UNIXODBC_HEADER_FOUND=0
22674 CPPFLAGS="${saved_cppflags}"
22675 else
22676 if test "xsql.h" != "x" ; then
22677 if test "${ac_cv_header_sql_h+set}" = set; then
22678 { echo "$as_me:$LINENO: checking for sql.h" >&5
22679 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22680 if test "${ac_cv_header_sql_h+set}" = set; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22684 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22685 else
22686 # Is the header compilable?
22687 { echo "$as_me:$LINENO: checking sql.h usability" >&5
22688 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22696 #include <sql.h>
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest.$ac_objext; then
22715 ac_header_compiler=yes
22716 else
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_header_compiler=no
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22725 echo "${ECHO_T}$ac_header_compiler" >&6; }
22727 # Is the header present?
22728 { echo "$as_me:$LINENO: checking sql.h presence" >&5
22729 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
22730 cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h. */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 #include <sql.h>
22737 _ACEOF
22738 if { (ac_try="$ac_cpp conftest.$ac_ext"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } >/dev/null && {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 }; then
22754 ac_header_preproc=yes
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_header_preproc=no
22762 rm -f conftest.err conftest.$ac_ext
22763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22764 echo "${ECHO_T}$ac_header_preproc" >&6; }
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22768 yes:no: )
22769 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
22770 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22771 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
22772 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
22773 ac_header_preproc=yes
22775 no:yes:* )
22776 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
22777 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
22779 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
22781 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
22782 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
22783 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
22784 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
22785 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
22786 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
22787 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
22788 ( cat <<\_ASBOX
22789 ## ------------------------------- ##
22790 ## Report this to www.asterisk.org ##
22791 ## ------------------------------- ##
22792 _ASBOX
22793 ) | sed "s/^/$as_me: WARNING: /" >&2
22795 esac
22796 { echo "$as_me:$LINENO: checking for sql.h" >&5
22797 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
22798 if test "${ac_cv_header_sql_h+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801 ac_cv_header_sql_h=$ac_header_preproc
22803 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
22804 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
22807 if test $ac_cv_header_sql_h = yes; then
22808 UNIXODBC_HEADER_FOUND=1
22809 else
22810 UNIXODBC_HEADER_FOUND=0
22816 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
22817 if test -n "${UNIXODBC_MANDATORY}" ;
22818 then
22819 { echo "$as_me:$LINENO: ***" >&5
22820 echo "$as_me: ***" >&6;}
22821 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
22822 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
22823 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
22824 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
22825 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22826 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22827 exit 1
22829 UNIXODBC_LIB=""
22830 UNIXODBC_INCLUDE=""
22831 PBX_UNIXODBC=0
22832 else
22833 PBX_UNIXODBC=1
22835 cat >>confdefs.h <<_ACEOF
22836 #define HAVE_UNIXODBC 1
22837 _ACEOF
22840 elif test -n "${UNIXODBC_MANDATORY}";
22841 then
22842 { echo "$as_me:$LINENO: ***" >&5
22843 echo "$as_me: ***" >&6;}
22844 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
22845 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
22846 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22847 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22848 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
22849 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
22850 exit 1
22856 if test "${USE_OGG}" != "no"; then
22857 pbxlibdir=""
22858 if test "x${OGG_DIR}" != "x"; then
22859 if test -d ${OGG_DIR}/lib; then
22860 pbxlibdir="-L${OGG_DIR}/lib"
22861 else
22862 pbxlibdir="-L${OGG_DIR}"
22865 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
22866 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
22867 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
22868 echo $ECHO_N "(cached) $ECHO_C" >&6
22869 else
22870 ac_check_lib_save_LIBS=$LIBS
22871 LIBS="-logg ${pbxlibdir} $LIBS"
22872 cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h. */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22879 /* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply. */
22882 #ifdef __cplusplus
22883 extern "C"
22884 #endif
22885 char ogg_sync_init ();
22887 main ()
22889 return ogg_sync_init ();
22891 return 0;
22893 _ACEOF
22894 rm -f conftest.$ac_objext conftest$ac_exeext
22895 if { (ac_try="$ac_link"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_link") 2>conftest.er1
22902 ac_status=$?
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } && {
22908 test -z "$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 } && test -s conftest$ac_exeext &&
22911 $as_test_x conftest$ac_exeext; then
22912 ac_cv_lib_ogg_ogg_sync_init=yes
22913 else
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22917 ac_cv_lib_ogg_ogg_sync_init=no
22920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22921 conftest$ac_exeext conftest.$ac_ext
22922 LIBS=$ac_check_lib_save_LIBS
22924 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
22925 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
22926 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
22927 AST_OGG_FOUND=yes
22928 else
22929 AST_OGG_FOUND=no
22933 if test "${AST_OGG_FOUND}" = "yes"; then
22934 OGG_LIB="-logg "
22935 OGG_HEADER_FOUND="1"
22936 if test "x${OGG_DIR}" != "x"; then
22937 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
22938 OGG_INCLUDE="-I${OGG_DIR}/include"
22939 saved_cppflags="${CPPFLAGS}"
22940 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
22941 if test "x" != "x" ; then
22942 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
22943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22944 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
22945 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
22946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 ac_res=`eval echo '${'$as_ac_Header'}'`
22950 { echo "$as_me:$LINENO: result: $ac_res" >&5
22951 echo "${ECHO_T}$ac_res" >&6; }
22952 else
22953 # Is the header compilable?
22954 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
22955 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h. */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 #include <${OGG_DIR}/include/>
22964 _ACEOF
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 ac_header_compiler=yes
22983 else
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_header_compiler=no
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22992 echo "${ECHO_T}$ac_header_compiler" >&6; }
22994 # Is the header present?
22995 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
22996 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
22997 cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h. */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 #include <${OGG_DIR}/include/>
23004 _ACEOF
23005 if { (ac_try="$ac_cpp conftest.$ac_ext"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 }; then
23021 ac_header_preproc=yes
23022 else
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_header_preproc=no
23029 rm -f conftest.err conftest.$ac_ext
23030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23031 echo "${ECHO_T}$ac_header_preproc" >&6; }
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23035 yes:no: )
23036 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23037 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23039 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23040 ac_header_preproc=yes
23042 no:yes:* )
23043 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23044 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23045 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23046 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23047 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23048 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23050 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23052 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23054 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23055 ( cat <<\_ASBOX
23056 ## ------------------------------- ##
23057 ## Report this to www.asterisk.org ##
23058 ## ------------------------------- ##
23059 _ASBOX
23060 ) | sed "s/^/$as_me: WARNING: /" >&2
23062 esac
23063 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23064 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068 eval "$as_ac_Header=\$ac_header_preproc"
23070 ac_res=`eval echo '${'$as_ac_Header'}'`
23071 { echo "$as_me:$LINENO: result: $ac_res" >&5
23072 echo "${ECHO_T}$ac_res" >&6; }
23075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23076 OGG_HEADER_FOUND=1
23077 else
23078 OGG_HEADER_FOUND=0
23083 CPPFLAGS="${saved_cppflags}"
23084 else
23085 if test "x" != "x" ; then
23086 if test "${ac_cv_header_+set}" = set; then
23087 { echo "$as_me:$LINENO: checking for " >&5
23088 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23089 if test "${ac_cv_header_+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23093 echo "${ECHO_T}$ac_cv_header_" >&6; }
23094 else
23095 # Is the header compilable?
23096 { echo "$as_me:$LINENO: checking usability" >&5
23097 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23098 cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h. */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23105 #include <>
23106 _ACEOF
23107 rm -f conftest.$ac_objext
23108 if { (ac_try="$ac_compile"
23109 case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23112 esac
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 ac_header_compiler=yes
23125 else
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 ac_header_compiler=no
23132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6; }
23136 # Is the header present?
23137 { echo "$as_me:$LINENO: checking presence" >&5
23138 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h. */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <>
23146 _ACEOF
23147 if { (ac_try="$ac_cpp conftest.$ac_ext"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23154 ac_status=$?
23155 grep -v '^ *+' conftest.er1 >conftest.err
23156 rm -f conftest.er1
23157 cat conftest.err >&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } >/dev/null && {
23160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 }; then
23163 ac_header_preproc=yes
23164 else
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_header_preproc=no
23171 rm -f conftest.err conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23173 echo "${ECHO_T}$ac_header_preproc" >&6; }
23175 # So? What about this header?
23176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23177 yes:no: )
23178 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23179 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23180 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23181 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23182 ac_header_preproc=yes
23184 no:yes:* )
23185 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23186 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23187 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23188 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23189 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23190 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23191 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23192 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23194 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23195 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23196 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23197 ( cat <<\_ASBOX
23198 ## ------------------------------- ##
23199 ## Report this to www.asterisk.org ##
23200 ## ------------------------------- ##
23201 _ASBOX
23202 ) | sed "s/^/$as_me: WARNING: /" >&2
23204 esac
23205 { echo "$as_me:$LINENO: checking for " >&5
23206 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23207 if test "${ac_cv_header_+set}" = set; then
23208 echo $ECHO_N "(cached) $ECHO_C" >&6
23209 else
23210 ac_cv_header_=$ac_header_preproc
23212 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23213 echo "${ECHO_T}$ac_cv_header_" >&6; }
23216 if test $ac_cv_header_ = yes; then
23217 OGG_HEADER_FOUND=1
23218 else
23219 OGG_HEADER_FOUND=0
23225 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
23226 if test -n "${OGG_MANDATORY}" ;
23227 then
23228 { echo "$as_me:$LINENO: ***" >&5
23229 echo "$as_me: ***" >&6;}
23230 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
23231 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
23232 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
23233 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
23234 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
23235 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
23236 exit 1
23238 OGG_LIB=""
23239 OGG_INCLUDE=""
23240 PBX_OGG=0
23241 else
23242 PBX_OGG=1
23244 cat >>confdefs.h <<_ACEOF
23245 #define HAVE_OGG 1
23246 _ACEOF
23249 elif test -n "${OGG_MANDATORY}";
23250 then
23251 { echo "$as_me:$LINENO: ***" >&5
23252 echo "$as_me: ***" >&6;}
23253 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
23254 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
23255 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23256 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23257 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
23258 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
23259 exit 1
23264 if test "${USE_OSS}" != "no"; then
23265 PBX_OSS=0
23266 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23267 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
23268 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
23269 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
23273 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
23274 else
23275 # Is the header compilable?
23276 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
23277 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
23278 cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h. */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23284 $ac_includes_default
23285 #include <linux/soundcard.h>
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (ac_try="$ac_compile"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292 esac
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23295 ac_status=$?
23296 grep -v '^ *+' conftest.er1 >conftest.err
23297 rm -f conftest.er1
23298 cat conftest.err >&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_header_compiler=yes
23305 else
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_header_compiler=no
23312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23314 echo "${ECHO_T}$ac_header_compiler" >&6; }
23316 # Is the header present?
23317 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
23318 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h. */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include <linux/soundcard.h>
23326 _ACEOF
23327 if { (ac_try="$ac_cpp conftest.$ac_ext"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23334 ac_status=$?
23335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } >/dev/null && {
23340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 }; then
23343 ac_header_preproc=yes
23344 else
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ac_header_preproc=no
23351 rm -f conftest.err conftest.$ac_ext
23352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23353 echo "${ECHO_T}$ac_header_preproc" >&6; }
23355 # So? What about this header?
23356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23357 yes:no: )
23358 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23359 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23360 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
23361 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
23362 ac_header_preproc=yes
23364 no:yes:* )
23365 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
23366 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
23368 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
23370 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23372 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23373 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
23374 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
23375 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
23376 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
23377 ( cat <<\_ASBOX
23378 ## ------------------------------- ##
23379 ## Report this to www.asterisk.org ##
23380 ## ------------------------------- ##
23381 _ASBOX
23382 ) | sed "s/^/$as_me: WARNING: /" >&2
23384 esac
23385 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
23386 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
23387 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390 ac_cv_header_linux_soundcard_h=$ac_header_preproc
23392 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
23393 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
23396 if test $ac_cv_header_linux_soundcard_h = yes; then
23398 PBX_OSS=1
23400 cat >>confdefs.h <<_ACEOF
23401 #define HAVE_OSS 1
23402 _ACEOF
23408 if test "$PBX_OSS" = "0"; then
23409 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23410 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
23411 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
23412 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23415 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
23416 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23417 else
23418 # Is the header compilable?
23419 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
23420 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
23421 cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h. */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 $ac_includes_default
23428 #include <sys/soundcard.h>
23429 _ACEOF
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 ac_header_compiler=yes
23448 else
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 ac_header_compiler=no
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23457 echo "${ECHO_T}$ac_header_compiler" >&6; }
23459 # Is the header present?
23460 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
23461 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
23462 cat >conftest.$ac_ext <<_ACEOF
23463 /* confdefs.h. */
23464 _ACEOF
23465 cat confdefs.h >>conftest.$ac_ext
23466 cat >>conftest.$ac_ext <<_ACEOF
23467 /* end confdefs.h. */
23468 #include <sys/soundcard.h>
23469 _ACEOF
23470 if { (ac_try="$ac_cpp conftest.$ac_ext"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474 esac
23475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } >/dev/null && {
23483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 }; then
23486 ac_header_preproc=yes
23487 else
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ac_header_preproc=no
23494 rm -f conftest.err conftest.$ac_ext
23495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23496 echo "${ECHO_T}$ac_header_preproc" >&6; }
23498 # So? What about this header?
23499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23500 yes:no: )
23501 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23502 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23503 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
23504 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
23505 ac_header_preproc=yes
23507 no:yes:* )
23508 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
23509 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
23510 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
23511 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
23512 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
23513 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
23514 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23515 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23516 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
23517 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
23518 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
23519 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
23520 ( cat <<\_ASBOX
23521 ## ------------------------------- ##
23522 ## Report this to www.asterisk.org ##
23523 ## ------------------------------- ##
23524 _ASBOX
23525 ) | sed "s/^/$as_me: WARNING: /" >&2
23527 esac
23528 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
23529 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
23530 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533 ac_cv_header_sys_soundcard_h=$ac_header_preproc
23535 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
23536 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
23539 if test $ac_cv_header_sys_soundcard_h = yes; then
23541 PBX_OSS=1
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_OSS 1
23545 _ACEOF
23552 if test "$PBX_OSS" = "0"; then
23554 if test "${USE_OSS}" != "no"; then
23555 pbxlibdir=""
23556 if test "x${OSS_DIR}" != "x"; then
23557 if test -d ${OSS_DIR}/lib; then
23558 pbxlibdir="-L${OSS_DIR}/lib"
23559 else
23560 pbxlibdir="-L${OSS_DIR}"
23563 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
23564 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
23565 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568 ac_check_lib_save_LIBS=$LIBS
23569 LIBS="-lossaudio ${pbxlibdir} $LIBS"
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h. */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23577 /* Override any GCC internal prototype to avoid an error.
23578 Use char because int might match the return type of a GCC
23579 builtin and then its argument prototype would still apply. */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 char oss_ioctl_mixer ();
23585 main ()
23587 return oss_ioctl_mixer ();
23589 return 0;
23591 _ACEOF
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23597 esac
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_link") 2>conftest.er1
23600 ac_status=$?
23601 grep -v '^ *+' conftest.er1 >conftest.err
23602 rm -f conftest.er1
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && {
23606 test -z "$ac_c_werror_flag" ||
23607 test ! -s conftest.err
23608 } && test -s conftest$ac_exeext &&
23609 $as_test_x conftest$ac_exeext; then
23610 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
23611 else
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619 conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23622 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
23623 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
23624 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
23625 AST_OSS_FOUND=yes
23626 else
23627 AST_OSS_FOUND=no
23631 if test "${AST_OSS_FOUND}" = "yes"; then
23632 OSS_LIB="-lossaudio "
23633 OSS_HEADER_FOUND="1"
23634 if test "x${OSS_DIR}" != "x"; then
23635 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
23636 OSS_INCLUDE="-I${OSS_DIR}/include"
23637 saved_cppflags="${CPPFLAGS}"
23638 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
23639 if test "xsoundcard.h" != "x" ; then
23640 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
23641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23642 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23643 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 ac_res=`eval echo '${'$as_ac_Header'}'`
23648 { echo "$as_me:$LINENO: result: $ac_res" >&5
23649 echo "${ECHO_T}$ac_res" >&6; }
23650 else
23651 # Is the header compilable?
23652 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
23653 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
23654 cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h. */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23660 $ac_includes_default
23661 #include <${OSS_DIR}/include/soundcard.h>
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670 (eval "$ac_compile") 2>conftest.er1
23671 ac_status=$?
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest.$ac_objext; then
23680 ac_header_compiler=yes
23681 else
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 ac_header_compiler=no
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23690 echo "${ECHO_T}$ac_header_compiler" >&6; }
23692 # Is the header present?
23693 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
23694 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h. */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 #include <${OSS_DIR}/include/soundcard.h>
23702 _ACEOF
23703 if { (ac_try="$ac_cpp conftest.$ac_ext"
23704 case "(($ac_try" in
23705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706 *) ac_try_echo=$ac_try;;
23707 esac
23708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23710 ac_status=$?
23711 grep -v '^ *+' conftest.er1 >conftest.err
23712 rm -f conftest.er1
23713 cat conftest.err >&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } >/dev/null && {
23716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 }; then
23719 ac_header_preproc=yes
23720 else
23721 echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23724 ac_header_preproc=no
23727 rm -f conftest.err conftest.$ac_ext
23728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23729 echo "${ECHO_T}$ac_header_preproc" >&6; }
23731 # So? What about this header?
23732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23733 yes:no: )
23734 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23735 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23736 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
23737 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
23738 ac_header_preproc=yes
23740 no:yes:* )
23741 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
23742 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
23743 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
23744 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
23745 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
23746 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
23747 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23748 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23749 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
23750 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
23751 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
23752 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
23753 ( cat <<\_ASBOX
23754 ## ------------------------------- ##
23755 ## Report this to www.asterisk.org ##
23756 ## ------------------------------- ##
23757 _ASBOX
23758 ) | sed "s/^/$as_me: WARNING: /" >&2
23760 esac
23761 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
23762 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
23763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 else
23766 eval "$as_ac_Header=\$ac_header_preproc"
23768 ac_res=`eval echo '${'$as_ac_Header'}'`
23769 { echo "$as_me:$LINENO: result: $ac_res" >&5
23770 echo "${ECHO_T}$ac_res" >&6; }
23773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23774 OSS_HEADER_FOUND=1
23775 else
23776 OSS_HEADER_FOUND=0
23781 CPPFLAGS="${saved_cppflags}"
23782 else
23783 if test "xsoundcard.h" != "x" ; then
23784 if test "${ac_cv_header_soundcard_h+set}" = set; then
23785 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23786 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23787 if test "${ac_cv_header_soundcard_h+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23791 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23792 else
23793 # Is the header compilable?
23794 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
23795 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h. */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 $ac_includes_default
23803 #include <soundcard.h>
23804 _ACEOF
23805 rm -f conftest.$ac_objext
23806 if { (ac_try="$ac_compile"
23807 case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_compile") 2>conftest.er1
23813 ac_status=$?
23814 grep -v '^ *+' conftest.er1 >conftest.err
23815 rm -f conftest.er1
23816 cat conftest.err >&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest.$ac_objext; then
23822 ac_header_compiler=yes
23823 else
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ac_header_compiler=no
23830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23832 echo "${ECHO_T}$ac_header_compiler" >&6; }
23834 # Is the header present?
23835 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
23836 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
23837 cat >conftest.$ac_ext <<_ACEOF
23838 /* confdefs.h. */
23839 _ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 #include <soundcard.h>
23844 _ACEOF
23845 if { (ac_try="$ac_cpp conftest.$ac_ext"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23852 ac_status=$?
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } >/dev/null && {
23858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 }; then
23861 ac_header_preproc=yes
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ac_header_preproc=no
23869 rm -f conftest.err conftest.$ac_ext
23870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23871 echo "${ECHO_T}$ac_header_preproc" >&6; }
23873 # So? What about this header?
23874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23875 yes:no: )
23876 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
23877 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23878 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
23879 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
23880 ac_header_preproc=yes
23882 no:yes:* )
23883 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
23884 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
23885 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
23886 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
23887 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
23888 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
23889 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
23890 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
23891 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
23892 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
23893 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
23894 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
23895 ( cat <<\_ASBOX
23896 ## ------------------------------- ##
23897 ## Report this to www.asterisk.org ##
23898 ## ------------------------------- ##
23899 _ASBOX
23900 ) | sed "s/^/$as_me: WARNING: /" >&2
23902 esac
23903 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
23904 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
23905 if test "${ac_cv_header_soundcard_h+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23907 else
23908 ac_cv_header_soundcard_h=$ac_header_preproc
23910 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
23911 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
23914 if test $ac_cv_header_soundcard_h = yes; then
23915 OSS_HEADER_FOUND=1
23916 else
23917 OSS_HEADER_FOUND=0
23923 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
23924 if test -n "${OSS_MANDATORY}" ;
23925 then
23926 { echo "$as_me:$LINENO: ***" >&5
23927 echo "$as_me: ***" >&6;}
23928 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
23929 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
23930 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
23931 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
23932 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23933 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23934 exit 1
23936 OSS_LIB=""
23937 OSS_INCLUDE=""
23938 PBX_OSS=0
23939 else
23940 PBX_OSS=1
23942 cat >>confdefs.h <<_ACEOF
23943 #define HAVE_OSS 1
23944 _ACEOF
23947 elif test -n "${OSS_MANDATORY}";
23948 then
23949 { echo "$as_me:$LINENO: ***" >&5
23950 echo "$as_me: ***" >&6;}
23951 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
23952 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
23953 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23954 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23955 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
23956 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
23957 exit 1
23964 PG_CONFIG=No
23965 if test "${USE_PGSQL}" != "no"; then
23966 if test "x${PGSQL_DIR}" != "x"; then
23967 if test -n "$ac_tool_prefix"; then
23968 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
23969 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
23970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23972 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975 case $PG_CONFIG in
23976 [\\/]* | ?:[\\/]*)
23977 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23981 for as_dir in ${PGSQL_DIR}/bin
23983 IFS=$as_save_IFS
23984 test -z "$as_dir" && as_dir=.
23985 for ac_exec_ext in '' $ac_executable_extensions; do
23986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23987 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23989 break 2
23991 done
23992 done
23993 IFS=$as_save_IFS
23996 esac
23998 PG_CONFIG=$ac_cv_path_PG_CONFIG
23999 if test -n "$PG_CONFIG"; then
24000 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24001 echo "${ECHO_T}$PG_CONFIG" >&6; }
24002 else
24003 { echo "$as_me:$LINENO: result: no" >&5
24004 echo "${ECHO_T}no" >&6; }
24009 if test -z "$ac_cv_path_PG_CONFIG"; then
24010 ac_pt_PG_CONFIG=$PG_CONFIG
24011 # Extract the first word of "pg_config", so it can be a program name with args.
24012 set dummy pg_config; ac_word=$2
24013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24015 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24017 else
24018 case $ac_pt_PG_CONFIG in
24019 [\\/]* | ?:[\\/]*)
24020 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24024 for as_dir in ${PGSQL_DIR}/bin
24026 IFS=$as_save_IFS
24027 test -z "$as_dir" && as_dir=.
24028 for ac_exec_ext in '' $ac_executable_extensions; do
24029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24030 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24032 break 2
24034 done
24035 done
24036 IFS=$as_save_IFS
24039 esac
24041 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24042 if test -n "$ac_pt_PG_CONFIG"; then
24043 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24044 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24045 else
24046 { echo "$as_me:$LINENO: result: no" >&5
24047 echo "${ECHO_T}no" >&6; }
24050 if test "x$ac_pt_PG_CONFIG" = x; then
24051 PG_CONFIG="No"
24052 else
24053 case $cross_compiling:$ac_tool_warned in
24054 yes:)
24055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24056 whose name does not start with the host triplet. If you think this
24057 configuration is useful to you, please write to autoconf@gnu.org." >&5
24058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24059 whose name does not start with the host triplet. If you think this
24060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24061 ac_tool_warned=yes ;;
24062 esac
24063 PG_CONFIG=$ac_pt_PG_CONFIG
24065 else
24066 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24069 if test x"${PG_CONFIG}" = xNo; then
24070 { echo "$as_me:$LINENO: ***" >&5
24071 echo "$as_me: ***" >&6;}
24072 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24073 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24074 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24075 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24076 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24077 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24078 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24079 echo "$as_me: *** including --without-postgres" >&6;}
24080 exit 1
24082 else
24083 if test -n "$ac_tool_prefix"; then
24084 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24085 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24088 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091 case $PG_CONFIG in
24092 [\\/]* | ?:[\\/]*)
24093 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24097 for as_dir in $PATH
24099 IFS=$as_save_IFS
24100 test -z "$as_dir" && as_dir=.
24101 for ac_exec_ext in '' $ac_executable_extensions; do
24102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24103 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24105 break 2
24107 done
24108 done
24109 IFS=$as_save_IFS
24112 esac
24114 PG_CONFIG=$ac_cv_path_PG_CONFIG
24115 if test -n "$PG_CONFIG"; then
24116 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24117 echo "${ECHO_T}$PG_CONFIG" >&6; }
24118 else
24119 { echo "$as_me:$LINENO: result: no" >&5
24120 echo "${ECHO_T}no" >&6; }
24125 if test -z "$ac_cv_path_PG_CONFIG"; then
24126 ac_pt_PG_CONFIG=$PG_CONFIG
24127 # Extract the first word of "pg_config", so it can be a program name with args.
24128 set dummy pg_config; ac_word=$2
24129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24131 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 else
24134 case $ac_pt_PG_CONFIG in
24135 [\\/]* | ?:[\\/]*)
24136 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24140 for as_dir in $PATH
24142 IFS=$as_save_IFS
24143 test -z "$as_dir" && as_dir=.
24144 for ac_exec_ext in '' $ac_executable_extensions; do
24145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24146 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24148 break 2
24150 done
24151 done
24152 IFS=$as_save_IFS
24155 esac
24157 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24158 if test -n "$ac_pt_PG_CONFIG"; then
24159 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24160 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24161 else
24162 { echo "$as_me:$LINENO: result: no" >&5
24163 echo "${ECHO_T}no" >&6; }
24166 if test "x$ac_pt_PG_CONFIG" = x; then
24167 PG_CONFIG="No"
24168 else
24169 case $cross_compiling:$ac_tool_warned in
24170 yes:)
24171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24172 whose name does not start with the host triplet. If you think this
24173 configuration is useful to you, please write to autoconf@gnu.org." >&5
24174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24175 whose name does not start with the host triplet. If you think this
24176 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24177 ac_tool_warned=yes ;;
24178 esac
24179 PG_CONFIG=$ac_pt_PG_CONFIG
24181 else
24182 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24187 if test "${PG_CONFIG}" != No; then
24188 PGSQL_libdir=`${PG_CONFIG} --libdir`
24189 PGSQL_includedir=`${PG_CONFIG} --includedir`
24191 if test "x$?" != "x0" ; then
24192 if test -n "${PGSQL_MANDATORY}" ; then
24193 { echo "$as_me:$LINENO: ***" >&5
24194 echo "$as_me: ***" >&6;}
24195 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
24196 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
24197 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24198 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24199 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24200 echo "$as_me: *** including --without-postgres" >&6;}
24201 exit 1
24203 else
24204 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
24205 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
24206 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209 ac_check_lib_save_LIBS=$LIBS
24210 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
24211 cat >conftest.$ac_ext <<_ACEOF
24212 /* confdefs.h. */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24218 /* Override any GCC internal prototype to avoid an error.
24219 Use char because int might match the return type of a GCC
24220 builtin and then its argument prototype would still apply. */
24221 #ifdef __cplusplus
24222 extern "C"
24223 #endif
24224 char PQescapeStringConn ();
24226 main ()
24228 return PQescapeStringConn ();
24230 return 0;
24232 _ACEOF
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (ac_try="$ac_link"
24235 case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24238 esac
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_link") 2>conftest.er1
24241 ac_status=$?
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } && {
24247 test -z "$ac_c_werror_flag" ||
24248 test ! -s conftest.err
24249 } && test -s conftest$ac_exeext &&
24250 $as_test_x conftest$ac_exeext; then
24251 ac_cv_lib_pq_PQescapeStringConn=yes
24252 else
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ac_cv_lib_pq_PQescapeStringConn=no
24259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24260 conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24263 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
24264 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
24265 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
24267 cat >>confdefs.h <<_ACEOF
24268 #define HAVE_PGSQL 1
24269 _ACEOF
24274 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
24275 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
24276 PGSQL_INCLUDE="-I${PGSQL_includedir}"
24277 PBX_PGSQL=1
24278 elif test -n "${PGSQL_MANDATORY}";
24279 then
24280 { echo "$as_me:$LINENO: ***" >&5
24281 echo "$as_me: ***" >&6;}
24282 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
24283 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
24284 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24285 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24286 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24287 echo "$as_me: *** including --without-postgres" >&6;}
24288 exit 1
24291 elif test -n "${PGSQL_MANDATORY}";
24292 then
24293 { echo "$as_me:$LINENO: ***" >&5
24294 echo "$as_me: ***" >&6;}
24295 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
24296 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
24297 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24298 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24299 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24300 echo "$as_me: *** including --without-postgres" >&6;}
24301 exit 1
24305 if test "${USE_POPT}" != "no"; then
24306 pbxlibdir=""
24307 if test "x${POPT_DIR}" != "x"; then
24308 if test -d ${POPT_DIR}/lib; then
24309 pbxlibdir="-L${POPT_DIR}/lib"
24310 else
24311 pbxlibdir="-L${POPT_DIR}"
24314 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
24315 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
24316 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
24317 echo $ECHO_N "(cached) $ECHO_C" >&6
24318 else
24319 ac_check_lib_save_LIBS=$LIBS
24320 LIBS="-lpopt ${pbxlibdir} $LIBS"
24321 cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h. */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24328 /* Override any GCC internal prototype to avoid an error.
24329 Use char because int might match the return type of a GCC
24330 builtin and then its argument prototype would still apply. */
24331 #ifdef __cplusplus
24332 extern "C"
24333 #endif
24334 char poptStrerror ();
24336 main ()
24338 return poptStrerror ();
24340 return 0;
24342 _ACEOF
24343 rm -f conftest.$ac_objext conftest$ac_exeext
24344 if { (ac_try="$ac_link"
24345 case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24348 esac
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_link") 2>conftest.er1
24351 ac_status=$?
24352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest$ac_exeext &&
24360 $as_test_x conftest$ac_exeext; then
24361 ac_cv_lib_popt_poptStrerror=yes
24362 else
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_lib_popt_poptStrerror=no
24369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24370 conftest$ac_exeext conftest.$ac_ext
24371 LIBS=$ac_check_lib_save_LIBS
24373 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
24374 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
24375 if test $ac_cv_lib_popt_poptStrerror = yes; then
24376 AST_POPT_FOUND=yes
24377 else
24378 AST_POPT_FOUND=no
24382 if test "${AST_POPT_FOUND}" = "yes"; then
24383 POPT_LIB="-lpopt "
24384 POPT_HEADER_FOUND="1"
24385 if test "x${POPT_DIR}" != "x"; then
24386 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
24387 POPT_INCLUDE="-I${POPT_DIR}/include"
24388 saved_cppflags="${CPPFLAGS}"
24389 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
24390 if test "xpopt.h" != "x" ; then
24391 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
24392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24393 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
24394 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
24395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 ac_res=`eval echo '${'$as_ac_Header'}'`
24399 { echo "$as_me:$LINENO: result: $ac_res" >&5
24400 echo "${ECHO_T}$ac_res" >&6; }
24401 else
24402 # Is the header compilable?
24403 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
24404 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
24405 cat >conftest.$ac_ext <<_ACEOF
24406 /* confdefs.h. */
24407 _ACEOF
24408 cat confdefs.h >>conftest.$ac_ext
24409 cat >>conftest.$ac_ext <<_ACEOF
24410 /* end confdefs.h. */
24411 $ac_includes_default
24412 #include <${POPT_DIR}/include/popt.h>
24413 _ACEOF
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24419 esac
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421 (eval "$ac_compile") 2>conftest.er1
24422 ac_status=$?
24423 grep -v '^ *+' conftest.er1 >conftest.err
24424 rm -f conftest.er1
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } && {
24428 test -z "$ac_c_werror_flag" ||
24429 test ! -s conftest.err
24430 } && test -s conftest.$ac_objext; then
24431 ac_header_compiler=yes
24432 else
24433 echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24436 ac_header_compiler=no
24439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24441 echo "${ECHO_T}$ac_header_compiler" >&6; }
24443 # Is the header present?
24444 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
24445 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
24446 cat >conftest.$ac_ext <<_ACEOF
24447 /* confdefs.h. */
24448 _ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 #include <${POPT_DIR}/include/popt.h>
24453 _ACEOF
24454 if { (ac_try="$ac_cpp conftest.$ac_ext"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } >/dev/null && {
24467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 }; then
24470 ac_header_preproc=yes
24471 else
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ac_header_preproc=no
24478 rm -f conftest.err conftest.$ac_ext
24479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24480 echo "${ECHO_T}$ac_header_preproc" >&6; }
24482 # So? What about this header?
24483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24484 yes:no: )
24485 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24486 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24487 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
24488 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
24489 ac_header_preproc=yes
24491 no:yes:* )
24492 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
24493 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
24494 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
24495 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
24496 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
24497 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
24498 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
24499 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24500 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
24501 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
24502 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
24503 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
24504 ( cat <<\_ASBOX
24505 ## ------------------------------- ##
24506 ## Report this to www.asterisk.org ##
24507 ## ------------------------------- ##
24508 _ASBOX
24509 ) | sed "s/^/$as_me: WARNING: /" >&2
24511 esac
24512 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
24513 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
24514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24515 echo $ECHO_N "(cached) $ECHO_C" >&6
24516 else
24517 eval "$as_ac_Header=\$ac_header_preproc"
24519 ac_res=`eval echo '${'$as_ac_Header'}'`
24520 { echo "$as_me:$LINENO: result: $ac_res" >&5
24521 echo "${ECHO_T}$ac_res" >&6; }
24524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24525 POPT_HEADER_FOUND=1
24526 else
24527 POPT_HEADER_FOUND=0
24532 CPPFLAGS="${saved_cppflags}"
24533 else
24534 if test "xpopt.h" != "x" ; then
24535 if test "${ac_cv_header_popt_h+set}" = set; then
24536 { echo "$as_me:$LINENO: checking for popt.h" >&5
24537 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24538 if test "${ac_cv_header_popt_h+set}" = set; then
24539 echo $ECHO_N "(cached) $ECHO_C" >&6
24541 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24542 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24543 else
24544 # Is the header compilable?
24545 { echo "$as_me:$LINENO: checking popt.h usability" >&5
24546 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
24547 cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h. */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 $ac_includes_default
24554 #include <popt.h>
24555 _ACEOF
24556 rm -f conftest.$ac_objext
24557 if { (ac_try="$ac_compile"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561 esac
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_compile") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } && {
24570 test -z "$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 } && test -s conftest.$ac_objext; then
24573 ac_header_compiler=yes
24574 else
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_header_compiler=no
24581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24583 echo "${ECHO_T}$ac_header_compiler" >&6; }
24585 # Is the header present?
24586 { echo "$as_me:$LINENO: checking popt.h presence" >&5
24587 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
24588 cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h. */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 #include <popt.h>
24595 _ACEOF
24596 if { (ac_try="$ac_cpp conftest.$ac_ext"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24603 ac_status=$?
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } >/dev/null && {
24609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 }; then
24612 ac_header_preproc=yes
24613 else
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_header_preproc=no
24620 rm -f conftest.err conftest.$ac_ext
24621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24622 echo "${ECHO_T}$ac_header_preproc" >&6; }
24624 # So? What about this header?
24625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24626 yes:no: )
24627 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24628 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24629 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
24630 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
24631 ac_header_preproc=yes
24633 no:yes:* )
24634 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
24635 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
24637 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
24639 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
24641 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24642 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
24643 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
24644 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
24645 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
24646 ( cat <<\_ASBOX
24647 ## ------------------------------- ##
24648 ## Report this to www.asterisk.org ##
24649 ## ------------------------------- ##
24650 _ASBOX
24651 ) | sed "s/^/$as_me: WARNING: /" >&2
24653 esac
24654 { echo "$as_me:$LINENO: checking for popt.h" >&5
24655 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
24656 if test "${ac_cv_header_popt_h+set}" = set; then
24657 echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659 ac_cv_header_popt_h=$ac_header_preproc
24661 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
24662 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
24665 if test $ac_cv_header_popt_h = yes; then
24666 POPT_HEADER_FOUND=1
24667 else
24668 POPT_HEADER_FOUND=0
24674 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
24675 if test -n "${POPT_MANDATORY}" ;
24676 then
24677 { echo "$as_me:$LINENO: ***" >&5
24678 echo "$as_me: ***" >&6;}
24679 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
24680 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
24681 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
24682 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
24683 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24684 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24685 exit 1
24687 POPT_LIB=""
24688 POPT_INCLUDE=""
24689 PBX_POPT=0
24690 else
24691 PBX_POPT=1
24693 cat >>confdefs.h <<_ACEOF
24694 #define HAVE_POPT 1
24695 _ACEOF
24698 elif test -n "${POPT_MANDATORY}";
24699 then
24700 { echo "$as_me:$LINENO: ***" >&5
24701 echo "$as_me: ***" >&6;}
24702 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
24703 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
24704 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24705 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24706 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
24707 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
24708 exit 1
24714 if test "${USE_PRI}" != "no"; then
24715 pbxlibdir=""
24716 if test "x${PRI_DIR}" != "x"; then
24717 if test -d ${PRI_DIR}/lib; then
24718 pbxlibdir="-L${PRI_DIR}/lib"
24719 else
24720 pbxlibdir="-L${PRI_DIR}"
24723 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
24724 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
24725 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 else
24728 ac_check_lib_save_LIBS=$LIBS
24729 LIBS="-lpri ${pbxlibdir} $LIBS"
24730 cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h. */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24737 /* Override any GCC internal prototype to avoid an error.
24738 Use char because int might match the return type of a GCC
24739 builtin and then its argument prototype would still apply. */
24740 #ifdef __cplusplus
24741 extern "C"
24742 #endif
24743 char pri_keypad_facility ();
24745 main ()
24747 return pri_keypad_facility ();
24749 return 0;
24751 _ACEOF
24752 rm -f conftest.$ac_objext conftest$ac_exeext
24753 if { (ac_try="$ac_link"
24754 case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759 (eval "$ac_link") 2>conftest.er1
24760 ac_status=$?
24761 grep -v '^ *+' conftest.er1 >conftest.err
24762 rm -f conftest.er1
24763 cat conftest.err >&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } && {
24766 test -z "$ac_c_werror_flag" ||
24767 test ! -s conftest.err
24768 } && test -s conftest$ac_exeext &&
24769 $as_test_x conftest$ac_exeext; then
24770 ac_cv_lib_pri_pri_keypad_facility=yes
24771 else
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24775 ac_cv_lib_pri_pri_keypad_facility=no
24778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24779 conftest$ac_exeext conftest.$ac_ext
24780 LIBS=$ac_check_lib_save_LIBS
24782 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
24783 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
24784 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
24785 AST_PRI_FOUND=yes
24786 else
24787 AST_PRI_FOUND=no
24791 if test "${AST_PRI_FOUND}" = "yes"; then
24792 PRI_LIB="-lpri "
24793 PRI_HEADER_FOUND="1"
24794 if test "x${PRI_DIR}" != "x"; then
24795 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
24796 PRI_INCLUDE="-I${PRI_DIR}/include"
24797 saved_cppflags="${CPPFLAGS}"
24798 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
24799 if test "xlibpri.h" != "x" ; then
24800 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
24801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24802 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24803 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 ac_res=`eval echo '${'$as_ac_Header'}'`
24808 { echo "$as_me:$LINENO: result: $ac_res" >&5
24809 echo "${ECHO_T}$ac_res" >&6; }
24810 else
24811 # Is the header compilable?
24812 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
24813 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
24814 cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h. */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 $ac_includes_default
24821 #include <${PRI_DIR}/include/libpri.h>
24822 _ACEOF
24823 rm -f conftest.$ac_objext
24824 if { (ac_try="$ac_compile"
24825 case "(($ac_try" in
24826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24828 esac
24829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24830 (eval "$ac_compile") 2>conftest.er1
24831 ac_status=$?
24832 grep -v '^ *+' conftest.er1 >conftest.err
24833 rm -f conftest.er1
24834 cat conftest.err >&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); } && {
24837 test -z "$ac_c_werror_flag" ||
24838 test ! -s conftest.err
24839 } && test -s conftest.$ac_objext; then
24840 ac_header_compiler=yes
24841 else
24842 echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24845 ac_header_compiler=no
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24850 echo "${ECHO_T}$ac_header_compiler" >&6; }
24852 # Is the header present?
24853 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
24854 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
24855 cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h. */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 #include <${PRI_DIR}/include/libpri.h>
24862 _ACEOF
24863 if { (ac_try="$ac_cpp conftest.$ac_ext"
24864 case "(($ac_try" in
24865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866 *) ac_try_echo=$ac_try;;
24867 esac
24868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24870 ac_status=$?
24871 grep -v '^ *+' conftest.er1 >conftest.err
24872 rm -f conftest.er1
24873 cat conftest.err >&5
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); } >/dev/null && {
24876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24877 test ! -s conftest.err
24878 }; then
24879 ac_header_preproc=yes
24880 else
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 ac_header_preproc=no
24887 rm -f conftest.err conftest.$ac_ext
24888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24889 echo "${ECHO_T}$ac_header_preproc" >&6; }
24891 # So? What about this header?
24892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24893 yes:no: )
24894 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
24895 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24896 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
24897 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
24898 ac_header_preproc=yes
24900 no:yes:* )
24901 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
24902 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
24903 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
24904 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
24905 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
24906 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
24907 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
24908 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
24909 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
24910 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
24912 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
24913 ( cat <<\_ASBOX
24914 ## ------------------------------- ##
24915 ## Report this to www.asterisk.org ##
24916 ## ------------------------------- ##
24917 _ASBOX
24918 ) | sed "s/^/$as_me: WARNING: /" >&2
24920 esac
24921 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
24922 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
24923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24925 else
24926 eval "$as_ac_Header=\$ac_header_preproc"
24928 ac_res=`eval echo '${'$as_ac_Header'}'`
24929 { echo "$as_me:$LINENO: result: $ac_res" >&5
24930 echo "${ECHO_T}$ac_res" >&6; }
24933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24934 PRI_HEADER_FOUND=1
24935 else
24936 PRI_HEADER_FOUND=0
24941 CPPFLAGS="${saved_cppflags}"
24942 else
24943 if test "xlibpri.h" != "x" ; then
24944 if test "${ac_cv_header_libpri_h+set}" = set; then
24945 { echo "$as_me:$LINENO: checking for libpri.h" >&5
24946 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
24947 if test "${ac_cv_header_libpri_h+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
24951 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
24952 else
24953 # Is the header compilable?
24954 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
24955 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
24956 cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h. */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962 $ac_includes_default
24963 #include <libpri.h>
24964 _ACEOF
24965 rm -f conftest.$ac_objext
24966 if { (ac_try="$ac_compile"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970 esac
24971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24972 (eval "$ac_compile") 2>conftest.er1
24973 ac_status=$?
24974 grep -v '^ *+' conftest.er1 >conftest.err
24975 rm -f conftest.er1
24976 cat conftest.err >&5
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest.$ac_objext; then
24982 ac_header_compiler=yes
24983 else
24984 echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_header_compiler=no
24990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24992 echo "${ECHO_T}$ac_header_compiler" >&6; }
24994 # Is the header present?
24995 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
24996 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
24997 cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h. */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 #include <libpri.h>
25004 _ACEOF
25005 if { (ac_try="$ac_cpp conftest.$ac_ext"
25006 case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009 esac
25010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25012 ac_status=$?
25013 grep -v '^ *+' conftest.er1 >conftest.err
25014 rm -f conftest.er1
25015 cat conftest.err >&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } >/dev/null && {
25018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25019 test ! -s conftest.err
25020 }; then
25021 ac_header_preproc=yes
25022 else
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 ac_header_preproc=no
25029 rm -f conftest.err conftest.$ac_ext
25030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25031 echo "${ECHO_T}$ac_header_preproc" >&6; }
25033 # So? What about this header?
25034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25035 yes:no: )
25036 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25037 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25038 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25039 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25040 ac_header_preproc=yes
25042 no:yes:* )
25043 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25044 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25045 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25046 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25047 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25048 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25050 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25052 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25053 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25054 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25055 ( cat <<\_ASBOX
25056 ## ------------------------------- ##
25057 ## Report this to www.asterisk.org ##
25058 ## ------------------------------- ##
25059 _ASBOX
25060 ) | sed "s/^/$as_me: WARNING: /" >&2
25062 esac
25063 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25064 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25065 if test "${ac_cv_header_libpri_h+set}" = set; then
25066 echo $ECHO_N "(cached) $ECHO_C" >&6
25067 else
25068 ac_cv_header_libpri_h=$ac_header_preproc
25070 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25071 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25074 if test $ac_cv_header_libpri_h = yes; then
25075 PRI_HEADER_FOUND=1
25076 else
25077 PRI_HEADER_FOUND=0
25083 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25084 if test -n "${PRI_MANDATORY}" ;
25085 then
25086 { echo "$as_me:$LINENO: ***" >&5
25087 echo "$as_me: ***" >&6;}
25088 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25089 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25090 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25091 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25092 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25093 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25094 exit 1
25096 PRI_LIB=""
25097 PRI_INCLUDE=""
25098 PBX_PRI=0
25099 else
25100 PBX_PRI=1
25102 cat >>confdefs.h <<_ACEOF
25103 #define HAVE_PRI 1
25104 _ACEOF
25107 elif test -n "${PRI_MANDATORY}";
25108 then
25109 { echo "$as_me:$LINENO: ***" >&5
25110 echo "$as_me: ***" >&6;}
25111 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25112 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25113 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25114 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25115 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25116 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25117 exit 1
25122 if test "${USE_PWLIB}" != "no"; then
25123 if test -n "${PWLIB_DIR}"; then
25124 PWLIBDIR="${PWLIB_DIR}"
25128 PWLIB_INCDIR=
25129 PWLIB_LIBDIR=
25130 ac_ext=cpp
25131 ac_cpp='$CXXCPP $CPPFLAGS'
25132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25136 if test "${PWLIBDIR:-unset}" != "unset" ; then
25137 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
25138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25139 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
25140 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
25141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 ac_res=`eval echo '${'$as_ac_Header'}'`
25145 { echo "$as_me:$LINENO: result: $ac_res" >&5
25146 echo "${ECHO_T}$ac_res" >&6; }
25147 else
25148 # Is the header compilable?
25149 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
25150 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
25151 cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h. */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25158 #include <${PWLIBDIR}/version.h>
25159 _ACEOF
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25165 esac
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167 (eval "$ac_compile") 2>conftest.er1
25168 ac_status=$?
25169 grep -v '^ *+' conftest.er1 >conftest.err
25170 rm -f conftest.er1
25171 cat conftest.err >&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); } && {
25174 test -z "$ac_cxx_werror_flag" ||
25175 test ! -s conftest.err
25176 } && test -s conftest.$ac_objext; then
25177 ac_header_compiler=yes
25178 else
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 ac_header_compiler=no
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25187 echo "${ECHO_T}$ac_header_compiler" >&6; }
25189 # Is the header present?
25190 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
25191 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
25192 cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h. */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 #include <${PWLIBDIR}/version.h>
25199 _ACEOF
25200 if { (ac_try="$ac_cpp conftest.$ac_ext"
25201 case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25204 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25207 ac_status=$?
25208 grep -v '^ *+' conftest.er1 >conftest.err
25209 rm -f conftest.er1
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } >/dev/null && {
25213 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25214 test ! -s conftest.err
25215 }; then
25216 ac_header_preproc=yes
25217 else
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_header_preproc=no
25224 rm -f conftest.err conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25226 echo "${ECHO_T}$ac_header_preproc" >&6; }
25228 # So? What about this header?
25229 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25230 yes:no: )
25231 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25232 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
25234 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
25235 ac_header_preproc=yes
25237 no:yes:* )
25238 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
25239 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
25241 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
25243 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
25245 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
25247 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
25248 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
25249 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
25250 ( cat <<\_ASBOX
25251 ## ------------------------------- ##
25252 ## Report this to www.asterisk.org ##
25253 ## ------------------------------- ##
25254 _ASBOX
25255 ) | sed "s/^/$as_me: WARNING: /" >&2
25257 esac
25258 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
25259 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
25260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263 eval "$as_ac_Header=\$ac_header_preproc"
25265 ac_res=`eval echo '${'$as_ac_Header'}'`
25266 { echo "$as_me:$LINENO: result: $ac_res" >&5
25267 echo "${ECHO_T}$ac_res" >&6; }
25270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25271 HAS_PWLIB=1
25276 if test "${HAS_PWLIB:-unset}" = "unset" ; then
25277 if test "${OPENH323DIR:-unset}" != "unset"; then
25278 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
25279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25280 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
25281 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
25282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25285 ac_res=`eval echo '${'$as_ac_Header'}'`
25286 { echo "$as_me:$LINENO: result: $ac_res" >&5
25287 echo "${ECHO_T}$ac_res" >&6; }
25288 else
25289 # Is the header compilable?
25290 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
25291 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
25292 cat >conftest.$ac_ext <<_ACEOF
25293 /* confdefs.h. */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 $ac_includes_default
25299 #include <${OPENH323DIR}/../pwlib/version.h>
25300 _ACEOF
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_compile") 2>conftest.er1
25309 ac_status=$?
25310 grep -v '^ *+' conftest.er1 >conftest.err
25311 rm -f conftest.er1
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && {
25315 test -z "$ac_cxx_werror_flag" ||
25316 test ! -s conftest.err
25317 } && test -s conftest.$ac_objext; then
25318 ac_header_compiler=yes
25319 else
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_header_compiler=no
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25328 echo "${ECHO_T}$ac_header_compiler" >&6; }
25330 # Is the header present?
25331 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
25332 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
25333 cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h. */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 #include <${OPENH323DIR}/../pwlib/version.h>
25340 _ACEOF
25341 if { (ac_try="$ac_cpp conftest.$ac_ext"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25348 ac_status=$?
25349 grep -v '^ *+' conftest.er1 >conftest.err
25350 rm -f conftest.er1
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } >/dev/null && {
25354 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25355 test ! -s conftest.err
25356 }; then
25357 ac_header_preproc=yes
25358 else
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_header_preproc=no
25365 rm -f conftest.err conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25367 echo "${ECHO_T}$ac_header_preproc" >&6; }
25369 # So? What about this header?
25370 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25371 yes:no: )
25372 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
25373 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25374 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
25375 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
25376 ac_header_preproc=yes
25378 no:yes:* )
25379 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
25380 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
25381 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
25382 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
25383 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
25384 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
25386 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
25388 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
25390 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
25391 ( cat <<\_ASBOX
25392 ## ------------------------------- ##
25393 ## Report this to www.asterisk.org ##
25394 ## ------------------------------- ##
25395 _ASBOX
25396 ) | sed "s/^/$as_me: WARNING: /" >&2
25398 esac
25399 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
25400 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404 eval "$as_ac_Header=\$ac_header_preproc"
25406 ac_res=`eval echo '${'$as_ac_Header'}'`
25407 { echo "$as_me:$LINENO: result: $ac_res" >&5
25408 echo "${ECHO_T}$ac_res" >&6; }
25411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25412 HAS_PWLIB=1
25417 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25418 PWLIBDIR="${OPENH323DIR}/../pwlib"
25419 else
25420 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
25421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25422 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
25423 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 ac_res=`eval echo '${'$as_ac_Header'}'`
25428 { echo "$as_me:$LINENO: result: $ac_res" >&5
25429 echo "${ECHO_T}$ac_res" >&6; }
25430 else
25431 # Is the header compilable?
25432 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
25433 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
25434 cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h. */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 $ac_includes_default
25441 #include <${HOME}/pwlib/include/ptlib.h>
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25451 ac_status=$?
25452 grep -v '^ *+' conftest.er1 >conftest.err
25453 rm -f conftest.er1
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } && {
25457 test -z "$ac_cxx_werror_flag" ||
25458 test ! -s conftest.err
25459 } && test -s conftest.$ac_objext; then
25460 ac_header_compiler=yes
25461 else
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_header_compiler=no
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25470 echo "${ECHO_T}$ac_header_compiler" >&6; }
25472 # Is the header present?
25473 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
25474 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
25475 cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h. */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25481 #include <${HOME}/pwlib/include/ptlib.h>
25482 _ACEOF
25483 if { (ac_try="$ac_cpp conftest.$ac_ext"
25484 case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25487 esac
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25490 ac_status=$?
25491 grep -v '^ *+' conftest.er1 >conftest.err
25492 rm -f conftest.er1
25493 cat conftest.err >&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } >/dev/null && {
25496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25497 test ! -s conftest.err
25498 }; then
25499 ac_header_preproc=yes
25500 else
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6; }
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25513 yes:no: )
25514 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25515 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
25517 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
25518 ac_header_preproc=yes
25520 no:yes:* )
25521 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
25522 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
25524 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
25526 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25528 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
25530 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
25532 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25533 ( cat <<\_ASBOX
25534 ## ------------------------------- ##
25535 ## Report this to www.asterisk.org ##
25536 ## ------------------------------- ##
25537 _ASBOX
25538 ) | sed "s/^/$as_me: WARNING: /" >&2
25540 esac
25541 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
25542 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
25543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546 eval "$as_ac_Header=\$ac_header_preproc"
25548 ac_res=`eval echo '${'$as_ac_Header'}'`
25549 { echo "$as_me:$LINENO: result: $ac_res" >&5
25550 echo "${ECHO_T}$ac_res" >&6; }
25553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25554 HAS_PWLIB=1
25558 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25559 PWLIBDIR="${HOME}/pwlib"
25560 else
25561 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25562 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
25563 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
25564 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25565 echo $ECHO_N "(cached) $ECHO_C" >&6
25567 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25568 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25569 else
25570 # Is the header compilable?
25571 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
25572 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
25573 cat >conftest.$ac_ext <<_ACEOF
25574 /* confdefs.h. */
25575 _ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h. */
25579 $ac_includes_default
25580 #include </usr/local/include/ptlib.h>
25581 _ACEOF
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25587 esac
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25590 ac_status=$?
25591 grep -v '^ *+' conftest.er1 >conftest.err
25592 rm -f conftest.er1
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); } && {
25596 test -z "$ac_cxx_werror_flag" ||
25597 test ! -s conftest.err
25598 } && test -s conftest.$ac_objext; then
25599 ac_header_compiler=yes
25600 else
25601 echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ac_header_compiler=no
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25609 echo "${ECHO_T}$ac_header_compiler" >&6; }
25611 # Is the header present?
25612 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
25613 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
25614 cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h. */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 #include </usr/local/include/ptlib.h>
25621 _ACEOF
25622 if { (ac_try="$ac_cpp conftest.$ac_ext"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25629 ac_status=$?
25630 grep -v '^ *+' conftest.er1 >conftest.err
25631 rm -f conftest.er1
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } >/dev/null && {
25635 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25636 test ! -s conftest.err
25637 }; then
25638 ac_header_preproc=yes
25639 else
25640 echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ac_header_preproc=no
25646 rm -f conftest.err conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25648 echo "${ECHO_T}$ac_header_preproc" >&6; }
25650 # So? What about this header?
25651 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25652 yes:no: )
25653 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25654 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25655 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
25656 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
25657 ac_header_preproc=yes
25659 no:yes:* )
25660 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
25661 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
25662 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
25663 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25664 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
25665 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
25666 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25667 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25668 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
25669 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25670 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
25671 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25672 ( cat <<\_ASBOX
25673 ## ------------------------------- ##
25674 ## Report this to www.asterisk.org ##
25675 ## ------------------------------- ##
25676 _ASBOX
25677 ) | sed "s/^/$as_me: WARNING: /" >&2
25679 esac
25680 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
25681 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
25682 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25684 else
25685 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
25687 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
25688 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
25691 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
25692 HAS_PWLIB=1
25696 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25697 # Extract the first word of "ptlib-config", so it can be a program name with args.
25698 set dummy ptlib-config; ac_word=$2
25699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25701 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25702 echo $ECHO_N "(cached) $ECHO_C" >&6
25703 else
25704 case $PTLIB_CONFIG in
25705 [\\/]* | ?:[\\/]*)
25706 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25710 for as_dir in /usr/local/bin
25712 IFS=$as_save_IFS
25713 test -z "$as_dir" && as_dir=.
25714 for ac_exec_ext in '' $ac_executable_extensions; do
25715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25716 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25718 break 2
25720 done
25721 done
25722 IFS=$as_save_IFS
25725 esac
25727 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25728 if test -n "$PTLIB_CONFIG"; then
25729 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25730 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25731 else
25732 { echo "$as_me:$LINENO: result: no" >&5
25733 echo "${ECHO_T}no" >&6; }
25737 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
25738 # Extract the first word of "ptlib-config", so it can be a program name with args.
25739 set dummy ptlib-config; ac_word=$2
25740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25742 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25743 echo $ECHO_N "(cached) $ECHO_C" >&6
25744 else
25745 case $PTLIB_CONFIG in
25746 [\\/]* | ?:[\\/]*)
25747 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25751 for as_dir in /usr/local/share/pwlib/make
25753 IFS=$as_save_IFS
25754 test -z "$as_dir" && as_dir=.
25755 for ac_exec_ext in '' $ac_executable_extensions; do
25756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25757 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25759 break 2
25761 done
25762 done
25763 IFS=$as_save_IFS
25766 esac
25768 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25769 if test -n "$PTLIB_CONFIG"; then
25770 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25771 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25772 else
25773 { echo "$as_me:$LINENO: result: no" >&5
25774 echo "${ECHO_T}no" >&6; }
25779 PWLIB_INCDIR="/usr/local/include"
25780 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25781 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25782 if test "x$LIB64" != "x"; then
25783 PWLIB_LIBDIR="/usr/local/lib64"
25784 else
25785 PWLIB_LIBDIR="/usr/local/lib"
25788 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25789 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25790 else
25791 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25792 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25793 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25794 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25795 echo $ECHO_N "(cached) $ECHO_C" >&6
25797 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25798 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25799 else
25800 # Is the header compilable?
25801 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
25802 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
25803 cat >conftest.$ac_ext <<_ACEOF
25804 /* confdefs.h. */
25805 _ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 $ac_includes_default
25810 #include </usr/include/ptlib.h>
25811 _ACEOF
25812 rm -f conftest.$ac_objext
25813 if { (ac_try="$ac_compile"
25814 case "(($ac_try" in
25815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25816 *) ac_try_echo=$ac_try;;
25817 esac
25818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25819 (eval "$ac_compile") 2>conftest.er1
25820 ac_status=$?
25821 grep -v '^ *+' conftest.er1 >conftest.err
25822 rm -f conftest.er1
25823 cat conftest.err >&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); } && {
25826 test -z "$ac_cxx_werror_flag" ||
25827 test ! -s conftest.err
25828 } && test -s conftest.$ac_objext; then
25829 ac_header_compiler=yes
25830 else
25831 echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25834 ac_header_compiler=no
25837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25839 echo "${ECHO_T}$ac_header_compiler" >&6; }
25841 # Is the header present?
25842 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
25843 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
25844 cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h. */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include </usr/include/ptlib.h>
25851 _ACEOF
25852 if { (ac_try="$ac_cpp conftest.$ac_ext"
25853 case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25859 ac_status=$?
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } >/dev/null && {
25865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25866 test ! -s conftest.err
25867 }; then
25868 ac_header_preproc=yes
25869 else
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25873 ac_header_preproc=no
25876 rm -f conftest.err conftest.$ac_ext
25877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25878 echo "${ECHO_T}$ac_header_preproc" >&6; }
25880 # So? What about this header?
25881 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25882 yes:no: )
25883 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25884 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25885 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
25886 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
25887 ac_header_preproc=yes
25889 no:yes:* )
25890 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
25891 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
25892 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
25893 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
25894 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
25895 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
25896 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
25897 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25898 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
25899 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
25901 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
25902 ( cat <<\_ASBOX
25903 ## ------------------------------- ##
25904 ## Report this to www.asterisk.org ##
25905 ## ------------------------------- ##
25906 _ASBOX
25907 ) | sed "s/^/$as_me: WARNING: /" >&2
25909 esac
25910 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
25911 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
25912 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 else
25915 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
25917 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
25918 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
25921 if test $ac_cv_header__usr_include_ptlib_h = yes; then
25922 HAS_PWLIB=1
25926 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25927 # Extract the first word of "ptlib-config", so it can be a program name with args.
25928 set dummy ptlib-config; ac_word=$2
25929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25931 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
25932 echo $ECHO_N "(cached) $ECHO_C" >&6
25933 else
25934 case $PTLIB_CONFIG in
25935 [\\/]* | ?:[\\/]*)
25936 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
25939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25940 for as_dir in /usr/share/pwlib/make
25942 IFS=$as_save_IFS
25943 test -z "$as_dir" && as_dir=.
25944 for ac_exec_ext in '' $ac_executable_extensions; do
25945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25946 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25948 break 2
25950 done
25951 done
25952 IFS=$as_save_IFS
25955 esac
25957 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
25958 if test -n "$PTLIB_CONFIG"; then
25959 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
25960 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
25961 else
25962 { echo "$as_me:$LINENO: result: no" >&5
25963 echo "${ECHO_T}no" >&6; }
25967 PWLIB_INCDIR="/usr/include"
25968 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
25969 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
25970 if test "x$LIB64" != "x"; then
25971 PWLIB_LIBDIR="/usr/lib64"
25972 else
25973 PWLIB_LIBDIR="/usr/lib"
25976 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
25977 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
25984 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
25985 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
25986 # exit
25989 if test "${HAS_PWLIB:-unset}" != "unset" ; then
25990 if test "${PWLIBDIR:-unset}" = "unset" ; then
25991 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
25992 PWLIBDIR=`$PTLIB_CONFIG --prefix`
25993 else
25994 echo "Cannot find ptlib-config - please install and try again"
25995 exit
25999 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
26000 PWLIBDIR="/usr/share/pwlib"
26001 PWLIB_INCDIR="/usr/include"
26002 if test "x$LIB64" != "x"; then
26003 PWLIB_LIBDIR="/usr/lib64"
26004 else
26005 PWLIB_LIBDIR="/usr/lib"
26008 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
26009 PWLIBDIR="/usr/local/share/pwlib"
26010 PWLIB_INCDIR="/usr/local/include"
26011 if test "x$LIB64" != "x"; then
26012 PWLIB_LIBDIR="/usr/local/lib64"
26013 else
26014 PWLIB_LIBDIR="/usr/local/lib"
26018 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
26019 PWLIB_INCDIR="${PWLIBDIR}/include"
26021 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26022 PWLIB_LIBDIR="${PWLIBDIR}/lib"
26029 ac_ext=c
26030 ac_cpp='$CPP $CPPFLAGS'
26031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26037 if test "${HAS_PWLIB:-unset}" != "unset"; then
26038 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26039 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
26040 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
26041 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
26042 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
26043 let PWLIB_REQ=1*10000+9*100+2
26045 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
26046 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26047 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
26048 { echo "$as_me:$LINENO: result: no" >&5
26049 echo "${ECHO_T}no" >&6; }
26050 unset HAS_PWLIB
26051 else
26052 { echo "$as_me:$LINENO: result: yes" >&5
26053 echo "${ECHO_T}yes" >&6; }
26058 if test "${HAS_PWLIB:-unset}" != "unset"; then
26060 PWLIB_OSTYPE=
26061 case "$host_os" in
26062 linux*) PWLIB_OSTYPE=linux ;
26064 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
26066 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
26067 ENDLDLIBS="-lossaudio" ;
26069 netbsd* ) PWLIB_OSTYPE=NetBSD ;
26070 ENDLDLIBS="-lossaudio" ;
26072 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
26074 darwin* ) PWLIB_OSTYPE=Darwin ;
26076 beos*) PWLIB_OSTYPE=beos ;
26077 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
26079 cygwin*) PWLIB_OSTYPE=cygwin ;
26081 mingw*) PWLIB_OSTYPE=mingw ;
26082 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
26083 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
26085 * ) PWLIB_OSTYPE="$host_os" ;
26086 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
26087 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
26089 esac
26091 PWLIB_MACHTYPE=
26092 case "$host_cpu" in
26093 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
26096 x86_64) PWLIB_MACHTYPE=x86_64 ;
26097 P_64BIT=1 ;
26098 LIB64=1 ;
26101 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
26102 P_64BIT=1 ;
26105 sparc ) PWLIB_MACHTYPE=sparc ;
26108 powerpc ) PWLIB_MACHTYPE=ppc ;
26111 ppc ) PWLIB_MACHTYPE=ppc ;
26114 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
26115 P_64BIT=1 ;
26116 LIB64=1 ;
26119 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
26120 P_64BIT=1 ;
26121 LIB64=1 ;
26124 ia64) PWLIB_MACHTYPE=ia64 ;
26125 P_64BIT=1 ;
26128 s390x) PWLIB_MACHTYPE=s390x ;
26129 P_64BIT=1 ;
26130 LIB64=1 ;
26133 s390) PWLIB_MACHTYPE=s390 ;
26136 * ) PWLIB_MACHTYPE="$host_cpu";
26137 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
26138 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
26139 esac
26141 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
26146 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
26149 if test "${HAS_PWLIB:-unset}" != "unset"; then
26150 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
26151 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
26153 saved_cppflags="${CPPFLAGS}"
26154 saved_libs="${LIBS}"
26155 if test "${PWLIB_LIB:-unset}" != "unset"; then
26156 LIBS="${LIBS} ${PWLIB_LIB} "
26157 else
26158 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
26160 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
26162 ac_ext=cpp
26163 ac_cpp='$CXXCPP $CPPFLAGS'
26164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26169 cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h. */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26175 #include "ptlib.h"
26177 main ()
26179 BOOL q = PTime::IsDaylightSavings();
26181 return 0;
26183 _ACEOF
26184 rm -f conftest.$ac_objext conftest$ac_exeext
26185 if { (ac_try="$ac_link"
26186 case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26189 esac
26190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191 (eval "$ac_link") 2>conftest.er1
26192 ac_status=$?
26193 grep -v '^ *+' conftest.er1 >conftest.err
26194 rm -f conftest.er1
26195 cat conftest.err >&5
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_cxx_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest$ac_exeext &&
26201 $as_test_x conftest$ac_exeext; then
26202 { echo "$as_me:$LINENO: result: yes" >&5
26203 echo "${ECHO_T}yes" >&6; }
26204 ac_cv_lib_PWLIB="yes"
26206 else
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26210 { echo "$as_me:$LINENO: result: no" >&5
26211 echo "${ECHO_T}no" >&6; }
26212 ac_cv_lib_PWLIB="no"
26217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26218 conftest$ac_exeext conftest.$ac_ext
26220 ac_ext=c
26221 ac_cpp='$CPP $CPPFLAGS'
26222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26227 LIBS="${saved_libs}"
26228 CPPFLAGS="${saved_cppflags}"
26230 if test "${ac_cv_lib_PWLIB}" = "yes"; then
26231 if test "${PWLIB_LIB:-undef}" = "undef"; then
26232 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
26233 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
26234 else
26235 PWLIB_LIB="-l${PLATFORM_PWLIB}"
26238 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
26239 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
26241 PBX_PWLIB=1
26243 cat >>confdefs.h <<\_ACEOF
26244 #define HAVE_PWLIB 1
26245 _ACEOF
26253 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
26254 { echo "$as_me:$LINENO: ***" >&5
26255 echo "$as_me: ***" >&6;}
26256 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
26257 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
26258 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26259 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26260 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
26261 echo "$as_me: *** including --without-pwlib" >&6;}
26262 exit 1
26265 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
26266 if test -n "${OPENH323_DIR}"; then
26267 OPENH323DIR="${OPENH323_DIR}"
26270 OPENH323_INCDIR=
26271 OPENH323_LIBDIR=
26272 ac_ext=cpp
26273 ac_cpp='$CXXCPP $CPPFLAGS'
26274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26278 if test "${OPENH323DIR:-unset}" != "unset" ; then
26279 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
26280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26281 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
26282 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
26283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 ac_res=`eval echo '${'$as_ac_Header'}'`
26287 { echo "$as_me:$LINENO: result: $ac_res" >&5
26288 echo "${ECHO_T}$ac_res" >&6; }
26289 else
26290 # Is the header compilable?
26291 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
26292 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
26293 cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h. */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 $ac_includes_default
26300 #include <${OPENH323DIR}/version.h>
26301 _ACEOF
26302 rm -f conftest.$ac_objext
26303 if { (ac_try="$ac_compile"
26304 case "(($ac_try" in
26305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306 *) ac_try_echo=$ac_try;;
26307 esac
26308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309 (eval "$ac_compile") 2>conftest.er1
26310 ac_status=$?
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } && {
26316 test -z "$ac_cxx_werror_flag" ||
26317 test ! -s conftest.err
26318 } && test -s conftest.$ac_objext; then
26319 ac_header_compiler=yes
26320 else
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 ac_header_compiler=no
26327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26329 echo "${ECHO_T}$ac_header_compiler" >&6; }
26331 # Is the header present?
26332 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
26333 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
26334 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h. */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26340 #include <${OPENH323DIR}/version.h>
26341 _ACEOF
26342 if { (ac_try="$ac_cpp conftest.$ac_ext"
26343 case "(($ac_try" in
26344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26346 esac
26347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26349 ac_status=$?
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } >/dev/null && {
26355 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26356 test ! -s conftest.err
26357 }; then
26358 ac_header_preproc=yes
26359 else
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_header_preproc=no
26366 rm -f conftest.err conftest.$ac_ext
26367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26368 echo "${ECHO_T}$ac_header_preproc" >&6; }
26370 # So? What about this header?
26371 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26372 yes:no: )
26373 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26374 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
26376 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
26377 ac_header_preproc=yes
26379 no:yes:* )
26380 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
26381 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
26383 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
26385 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26387 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
26389 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
26391 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
26392 ( cat <<\_ASBOX
26393 ## ------------------------------- ##
26394 ## Report this to www.asterisk.org ##
26395 ## ------------------------------- ##
26396 _ASBOX
26397 ) | sed "s/^/$as_me: WARNING: /" >&2
26399 esac
26400 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
26401 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
26402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405 eval "$as_ac_Header=\$ac_header_preproc"
26407 ac_res=`eval echo '${'$as_ac_Header'}'`
26408 { echo "$as_me:$LINENO: result: $ac_res" >&5
26409 echo "${ECHO_T}$ac_res" >&6; }
26412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26413 HAS_OPENH323=1
26418 if test "${HAS_OPENH323:-unset}" = "unset" ; then
26419 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
26420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26421 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26422 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 ac_res=`eval echo '${'$as_ac_Header'}'`
26427 { echo "$as_me:$LINENO: result: $ac_res" >&5
26428 echo "${ECHO_T}$ac_res" >&6; }
26429 else
26430 # Is the header compilable?
26431 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
26432 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
26433 cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h. */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26439 $ac_includes_default
26440 #include <${PWLIBDIR}/../openh323/version.h>
26441 _ACEOF
26442 rm -f conftest.$ac_objext
26443 if { (ac_try="$ac_compile"
26444 case "(($ac_try" in
26445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446 *) ac_try_echo=$ac_try;;
26447 esac
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449 (eval "$ac_compile") 2>conftest.er1
26450 ac_status=$?
26451 grep -v '^ *+' conftest.er1 >conftest.err
26452 rm -f conftest.er1
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } && {
26456 test -z "$ac_cxx_werror_flag" ||
26457 test ! -s conftest.err
26458 } && test -s conftest.$ac_objext; then
26459 ac_header_compiler=yes
26460 else
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_header_compiler=no
26467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26469 echo "${ECHO_T}$ac_header_compiler" >&6; }
26471 # Is the header present?
26472 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
26473 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
26474 cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h. */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h. */
26480 #include <${PWLIBDIR}/../openh323/version.h>
26481 _ACEOF
26482 if { (ac_try="$ac_cpp conftest.$ac_ext"
26483 case "(($ac_try" in
26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485 *) ac_try_echo=$ac_try;;
26486 esac
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26489 ac_status=$?
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } >/dev/null && {
26495 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26496 test ! -s conftest.err
26497 }; then
26498 ac_header_preproc=yes
26499 else
26500 echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26503 ac_header_preproc=no
26506 rm -f conftest.err conftest.$ac_ext
26507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26508 echo "${ECHO_T}$ac_header_preproc" >&6; }
26510 # So? What about this header?
26511 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26512 yes:no: )
26513 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26514 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26515 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
26516 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
26517 ac_header_preproc=yes
26519 no:yes:* )
26520 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
26521 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
26522 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
26523 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
26524 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
26525 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
26527 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
26529 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
26530 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
26531 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
26532 ( cat <<\_ASBOX
26533 ## ------------------------------- ##
26534 ## Report this to www.asterisk.org ##
26535 ## ------------------------------- ##
26536 _ASBOX
26537 ) | sed "s/^/$as_me: WARNING: /" >&2
26539 esac
26540 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
26541 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
26542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545 eval "$as_ac_Header=\$ac_header_preproc"
26547 ac_res=`eval echo '${'$as_ac_Header'}'`
26548 { echo "$as_me:$LINENO: result: $ac_res" >&5
26549 echo "${ECHO_T}$ac_res" >&6; }
26552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26553 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
26557 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26558 OPENH323DIR="${PWLIBDIR}/../openh323"
26559 saved_cppflags="${CPPFLAGS}"
26560 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
26561 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
26562 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
26563 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
26564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567 cat >conftest.$ac_ext <<_ACEOF
26568 /* confdefs.h. */
26569 _ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26573 #include <ptlib.h>
26575 #include <${OPENH323DIR}/include/h323.h>
26576 _ACEOF
26577 rm -f conftest.$ac_objext
26578 if { (ac_try="$ac_compile"
26579 case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26582 esac
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584 (eval "$ac_compile") 2>conftest.er1
26585 ac_status=$?
26586 grep -v '^ *+' conftest.er1 >conftest.err
26587 rm -f conftest.er1
26588 cat conftest.err >&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && {
26591 test -z "$ac_cxx_werror_flag" ||
26592 test ! -s conftest.err
26593 } && test -s conftest.$ac_objext; then
26594 eval "$as_ac_Header=yes"
26595 else
26596 echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26599 eval "$as_ac_Header=no"
26602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 ac_res=`eval echo '${'$as_ac_Header'}'`
26605 { echo "$as_me:$LINENO: result: $ac_res" >&5
26606 echo "${ECHO_T}$ac_res" >&6; }
26607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609 else
26610 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
26614 CPPFLAGS="${saved_cppflags}"
26615 else
26616 saved_cppflags="${CPPFLAGS}"
26617 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
26618 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
26619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26620 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26621 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 ac_res=`eval echo '${'$as_ac_Header'}'`
26626 { echo "$as_me:$LINENO: result: $ac_res" >&5
26627 echo "${ECHO_T}$ac_res" >&6; }
26628 else
26629 # Is the header compilable?
26630 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
26631 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
26632 cat >conftest.$ac_ext <<_ACEOF
26633 /* confdefs.h. */
26634 _ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h. */
26638 $ac_includes_default
26639 #include <${HOME}/openh323/include/h323.h>
26640 _ACEOF
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26646 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_compile") 2>conftest.er1
26649 ac_status=$?
26650 grep -v '^ *+' conftest.er1 >conftest.err
26651 rm -f conftest.er1
26652 cat conftest.err >&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_cxx_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
26658 ac_header_compiler=yes
26659 else
26660 echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 ac_header_compiler=no
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26668 echo "${ECHO_T}$ac_header_compiler" >&6; }
26670 # Is the header present?
26671 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
26672 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
26673 cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h. */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26679 #include <${HOME}/openh323/include/h323.h>
26680 _ACEOF
26681 if { (ac_try="$ac_cpp conftest.$ac_ext"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26688 ac_status=$?
26689 grep -v '^ *+' conftest.er1 >conftest.err
26690 rm -f conftest.er1
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } >/dev/null && {
26694 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26695 test ! -s conftest.err
26696 }; then
26697 ac_header_preproc=yes
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_header_preproc=no
26705 rm -f conftest.err conftest.$ac_ext
26706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26707 echo "${ECHO_T}$ac_header_preproc" >&6; }
26709 # So? What about this header?
26710 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26711 yes:no: )
26712 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26713 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
26715 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
26716 ac_header_preproc=yes
26718 no:yes:* )
26719 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
26720 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
26722 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
26724 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26726 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26727 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
26728 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
26730 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
26731 ( cat <<\_ASBOX
26732 ## ------------------------------- ##
26733 ## Report this to www.asterisk.org ##
26734 ## ------------------------------- ##
26735 _ASBOX
26736 ) | sed "s/^/$as_me: WARNING: /" >&2
26738 esac
26739 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
26740 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
26741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26742 echo $ECHO_N "(cached) $ECHO_C" >&6
26743 else
26744 eval "$as_ac_Header=\$ac_header_preproc"
26746 ac_res=`eval echo '${'$as_ac_Header'}'`
26747 { echo "$as_me:$LINENO: result: $ac_res" >&5
26748 echo "${ECHO_T}$ac_res" >&6; }
26751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26752 HAS_OPENH323=1
26756 CPPFLAGS="${saved_cppflags}"
26757 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26758 OPENH323DIR="${HOME}/openh323"
26759 else
26760 saved_cppflags="${CPPFLAGS}"
26761 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
26762 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26763 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26764 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26765 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26768 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26769 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26770 else
26771 # Is the header compilable?
26772 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
26773 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
26774 cat >conftest.$ac_ext <<_ACEOF
26775 /* confdefs.h. */
26776 _ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 $ac_includes_default
26781 #include </usr/local/include/openh323/h323.h>
26782 _ACEOF
26783 rm -f conftest.$ac_objext
26784 if { (ac_try="$ac_compile"
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_compile") 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); } && {
26797 test -z "$ac_cxx_werror_flag" ||
26798 test ! -s conftest.err
26799 } && test -s conftest.$ac_objext; then
26800 ac_header_compiler=yes
26801 else
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 ac_header_compiler=no
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26810 echo "${ECHO_T}$ac_header_compiler" >&6; }
26812 # Is the header present?
26813 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
26814 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
26815 cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h. */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26821 #include </usr/local/include/openh323/h323.h>
26822 _ACEOF
26823 if { (ac_try="$ac_cpp conftest.$ac_ext"
26824 case "(($ac_try" in
26825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26826 *) ac_try_echo=$ac_try;;
26827 esac
26828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26830 ac_status=$?
26831 grep -v '^ *+' conftest.er1 >conftest.err
26832 rm -f conftest.er1
26833 cat conftest.err >&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } >/dev/null && {
26836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26837 test ! -s conftest.err
26838 }; then
26839 ac_header_preproc=yes
26840 else
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26844 ac_header_preproc=no
26847 rm -f conftest.err conftest.$ac_ext
26848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26849 echo "${ECHO_T}$ac_header_preproc" >&6; }
26851 # So? What about this header?
26852 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26853 yes:no: )
26854 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
26855 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
26857 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
26858 ac_header_preproc=yes
26860 no:yes:* )
26861 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
26862 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
26864 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
26866 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
26868 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
26870 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
26872 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
26873 ( cat <<\_ASBOX
26874 ## ------------------------------- ##
26875 ## Report this to www.asterisk.org ##
26876 ## ------------------------------- ##
26877 _ASBOX
26878 ) | sed "s/^/$as_me: WARNING: /" >&2
26880 esac
26881 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
26882 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
26883 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
26888 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
26889 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
26892 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
26893 HAS_OPENH323=1
26897 CPPFLAGS="${saved_cppflags}"
26898 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26899 OPENH323DIR="/usr/local/share/openh323"
26900 OPENH323_INCDIR="/usr/local/include/openh323"
26901 if test "x$LIB64" != "x"; then
26902 OPENH323_LIBDIR="/usr/local/lib64"
26903 else
26904 OPENH323_LIBDIR="/usr/local/lib"
26906 else
26907 saved_cppflags="${CPPFLAGS}"
26908 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
26909 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
26910 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
26911 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913 else
26914 cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h. */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 #include <ptlib.h>
26922 #include </usr/include/openh323/h323.h>
26923 _ACEOF
26924 rm -f conftest.$ac_objext
26925 if { (ac_try="$ac_compile"
26926 case "(($ac_try" in
26927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26929 esac
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931 (eval "$ac_compile") 2>conftest.er1
26932 ac_status=$?
26933 grep -v '^ *+' conftest.er1 >conftest.err
26934 rm -f conftest.er1
26935 cat conftest.err >&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } && {
26938 test -z "$ac_cxx_werror_flag" ||
26939 test ! -s conftest.err
26940 } && test -s conftest.$ac_objext; then
26941 ac_cv_header__usr_include_openh323_h323_h=yes
26942 else
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 ac_cv_header__usr_include_openh323_h323_h=no
26949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
26952 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
26953 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
26954 HAS_OPENH323=1
26958 CPPFLAGS="${saved_cppflags}"
26959 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26960 OPENH323DIR="/usr/share/openh323"
26961 OPENH323_INCDIR="/usr/include/openh323"
26962 if test "x$LIB64" != "x"; then
26963 OPENH323_LIBDIR="/usr/lib64"
26964 else
26965 OPENH323_LIBDIR="/usr/lib"
26973 if test "${HAS_OPENH323:-unset}" != "unset" ; then
26974 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
26975 OPENH323_INCDIR="${OPENH323DIR}/include"
26977 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
26978 OPENH323_LIBDIR="${OPENH323DIR}/lib"
26981 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
26982 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
26983 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
26989 ac_ext=c
26990 ac_cpp='$CPP $CPPFLAGS'
26991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26997 if test "${HAS_OPENH323:-unset}" != "unset"; then
26998 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26999 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
27000 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
27001 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
27002 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
27003 let OPENH323_REQ=1*10000+17*100+3
27005 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
27006 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27007 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
27008 { echo "$as_me:$LINENO: result: no" >&5
27009 echo "${ECHO_T}no" >&6; }
27010 unset HAS_OPENH323
27011 else
27012 { echo "$as_me:$LINENO: result: yes" >&5
27013 echo "${ECHO_T}yes" >&6; }
27018 if test "${HAS_OPENH323:-unset}" != "unset"; then
27019 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
27020 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
27021 OPENH323_SUFFIX=
27022 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
27023 for pfx in $prefixes; do
27024 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
27025 libfile=
27026 if test -n "$files"; then
27027 for f in $files; do
27028 if test -f $f -a ! -L $f; then
27029 libfile=`basename $f`
27030 break;
27032 done
27034 if test -n "$libfile"; then
27035 OPENH323_PREFIX=$pfx
27036 break;
27038 done
27039 if test "${libfile:-unset}" != "unset"; then
27040 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
27042 case "${OPENH323_SUFFIX}" in
27044 OPENH323_BUILD="notrace";;
27046 OPENH323_BUILD="opt";;
27048 OPENH323_BUILD="debug";;
27050 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
27051 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
27052 if test "x$notrace" = "x"; then
27053 notrace="0"
27055 if test "$notrace" -ne 0; then
27056 OPENH323_BUILD="notrace"
27057 else
27058 OPENH323_BUILD="opt"
27060 OPENH323_LIB="-l${OPENH323_PREFIX}"
27061 else
27062 OPENH323_BUILD="notrace"
27065 esac
27066 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
27067 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
27073 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
27075 if test "${HAS_OPENH323:-unset}" != "unset"; then
27076 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
27077 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
27079 saved_cppflags="${CPPFLAGS}"
27080 saved_libs="${LIBS}"
27081 if test "${OPENH323_LIB:-unset}" != "unset"; then
27082 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
27083 else
27084 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
27086 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
27088 ac_ext=cpp
27089 ac_cpp='$CXXCPP $CPPFLAGS'
27090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27095 cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h. */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101 #include "ptlib.h"
27102 #include "h323.h"
27103 #include "h323ep.h"
27105 main ()
27107 H323EndPoint ep = H323EndPoint();
27109 return 0;
27111 _ACEOF
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (ac_try="$ac_link"
27114 case "(($ac_try" in
27115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27117 esac
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119 (eval "$ac_link") 2>conftest.er1
27120 ac_status=$?
27121 grep -v '^ *+' conftest.er1 >conftest.err
27122 rm -f conftest.er1
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } && {
27126 test -z "$ac_cxx_werror_flag" ||
27127 test ! -s conftest.err
27128 } && test -s conftest$ac_exeext &&
27129 $as_test_x conftest$ac_exeext; then
27130 { echo "$as_me:$LINENO: result: yes" >&5
27131 echo "${ECHO_T}yes" >&6; }
27132 ac_cv_lib_OPENH323="yes"
27134 else
27135 echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27138 { echo "$as_me:$LINENO: result: no" >&5
27139 echo "${ECHO_T}no" >&6; }
27140 ac_cv_lib_OPENH323="no"
27145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27146 conftest$ac_exeext conftest.$ac_ext
27148 ac_ext=c
27149 ac_cpp='$CPP $CPPFLAGS'
27150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27155 LIBS="${saved_libs}"
27156 CPPFLAGS="${saved_cppflags}"
27158 if test "${ac_cv_lib_OPENH323}" = "yes"; then
27159 if test "${OPENH323_LIB:-undef}" = "undef"; then
27160 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
27161 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
27162 else
27163 OPENH323_LIB="-l${PLATFORM_OPENH323}"
27166 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
27167 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
27169 PBX_OPENH323=1
27171 cat >>confdefs.h <<\_ACEOF
27172 #define HAVE_OPENH323 1
27173 _ACEOF
27179 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
27180 { echo "$as_me:$LINENO: ***" >&5
27181 echo "$as_me: ***" >&6;}
27182 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
27183 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
27184 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27185 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27186 { echo "$as_me:$LINENO: *** including --without-h323" >&5
27187 echo "$as_me: *** including --without-h323" >&6;}
27188 exit 1
27192 ac_ext=cpp
27193 ac_cpp='$CXXCPP $CPPFLAGS'
27194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27199 if test "${USE_QT}" != "no"; then
27200 { echo "$as_me:$LINENO: checking for QDate in -lqt" >&5
27201 echo $ECHO_N "checking for QDate in -lqt... $ECHO_C" >&6; }
27202 saved_libs="${LIBS}"
27203 saved_cppflags="${CPPFLAGS}"
27204 if test "x${QT_DIR}" != "x"; then
27205 LIBS="${LIBS} -L${QT_DIR}/lib"
27206 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
27208 LIBS="${LIBS} -lqt"
27209 qtlib="qt"
27210 cat >conftest.$ac_ext <<_ACEOF
27212 /* confdefs.h. */
27213 _ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 #include <qt3/qdatetime.h>
27219 main ()
27221 QDate date();
27223 return 0;
27226 _ACEOF
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (ac_try="$ac_link"
27229 case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_link") 2>conftest.er1
27235 ac_status=$?
27236 grep -v '^ *+' conftest.er1 >conftest.err
27237 rm -f conftest.er1
27238 cat conftest.err >&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_cxx_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest$ac_exeext &&
27244 $as_test_x conftest$ac_exeext; then
27245 ac_cv_lib_qt_qt_date="yes"
27246 else
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27250 ac_cv_lib_qt_qt_date="no"
27253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27254 conftest$ac_exeext conftest.$ac_ext
27255 LIBS="${saved_libs}"
27256 CPPFLAGS="${saved_cppflags}"
27258 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
27259 saved_libs="${LIBS}"
27260 saved_cppflags="${CPPFLAGS}"
27261 if test "x${QT_DIR}" != "x"; then
27262 LIBS="${LIBS} -L${QT_DIR}/lib"
27263 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
27265 LIBS="${LIBS} -lqt-mt"
27266 qtlib="qt-mt"
27267 cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h. */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h. */
27274 #include <qt3/qdatetime.h>
27276 main ()
27278 QDate date();
27280 return 0;
27283 _ACEOF
27284 rm -f conftest.$ac_objext conftest$ac_exeext
27285 if { (ac_try="$ac_link"
27286 case "(($ac_try" in
27287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27288 *) ac_try_echo=$ac_try;;
27289 esac
27290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27291 (eval "$ac_link") 2>conftest.er1
27292 ac_status=$?
27293 grep -v '^ *+' conftest.er1 >conftest.err
27294 rm -f conftest.er1
27295 cat conftest.err >&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } && {
27298 test -z "$ac_cxx_werror_flag" ||
27299 test ! -s conftest.err
27300 } && test -s conftest$ac_exeext &&
27301 $as_test_x conftest$ac_exeext; then
27302 ac_cv_lib_qt_qt_date="yes"
27303 else
27304 echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27307 ac_cv_lib_qt_qt_date="no"
27310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27311 conftest$ac_exeext conftest.$ac_ext
27312 LIBS="${saved_libs}"
27313 CPPFLAGS="${saved_cppflags}"
27316 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
27317 { echo "$as_me:$LINENO: result: yes" >&5
27318 echo "${ECHO_T}yes" >&6; }
27319 else
27320 { echo "$as_me:$LINENO: result: no" >&5
27321 echo "${ECHO_T}no" >&6; }
27324 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
27325 QT_LIB="-l${qtlib}"
27326 if test "${QT_DIR}" != ""; then
27327 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
27328 QT_INCLUDE="-I${QT_DIR}/include"
27330 PBX_QT=1
27332 cat >>confdefs.h <<\_ACEOF
27333 #define HAVE_QT 1
27334 _ACEOF
27336 if test -n "$ac_tool_prefix"; then
27337 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
27338 set dummy ${ac_tool_prefix}moc; ac_word=$2
27339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27341 if test "${ac_cv_path_QTMOC+set}" = set; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 else
27344 case $QTMOC in
27345 [\\/]* | ?:[\\/]*)
27346 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
27349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27350 for as_dir in $PATH
27352 IFS=$as_save_IFS
27353 test -z "$as_dir" && as_dir=.
27354 for ac_exec_ext in '' $ac_executable_extensions; do
27355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27356 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
27357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27358 break 2
27360 done
27361 done
27362 IFS=$as_save_IFS
27365 esac
27367 QTMOC=$ac_cv_path_QTMOC
27368 if test -n "$QTMOC"; then
27369 { echo "$as_me:$LINENO: result: $QTMOC" >&5
27370 echo "${ECHO_T}$QTMOC" >&6; }
27371 else
27372 { echo "$as_me:$LINENO: result: no" >&5
27373 echo "${ECHO_T}no" >&6; }
27378 if test -z "$ac_cv_path_QTMOC"; then
27379 ac_pt_QTMOC=$QTMOC
27380 # Extract the first word of "moc", so it can be a program name with args.
27381 set dummy moc; ac_word=$2
27382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27384 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
27385 echo $ECHO_N "(cached) $ECHO_C" >&6
27386 else
27387 case $ac_pt_QTMOC in
27388 [\\/]* | ?:[\\/]*)
27389 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
27392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27393 for as_dir in $PATH
27395 IFS=$as_save_IFS
27396 test -z "$as_dir" && as_dir=.
27397 for ac_exec_ext in '' $ac_executable_extensions; do
27398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27399 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
27400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27401 break 2
27403 done
27404 done
27405 IFS=$as_save_IFS
27408 esac
27410 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
27411 if test -n "$ac_pt_QTMOC"; then
27412 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
27413 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
27414 else
27415 { echo "$as_me:$LINENO: result: no" >&5
27416 echo "${ECHO_T}no" >&6; }
27419 if test "x$ac_pt_QTMOC" = x; then
27420 QTMOC="No"
27421 else
27422 case $cross_compiling:$ac_tool_warned in
27423 yes:)
27424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27425 whose name does not start with the host triplet. If you think this
27426 configuration is useful to you, please write to autoconf@gnu.org." >&5
27427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27428 whose name does not start with the host triplet. If you think this
27429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27430 ac_tool_warned=yes ;;
27431 esac
27432 QTMOC=$ac_pt_QTMOC
27434 else
27435 QTMOC="$ac_cv_path_QTMOC"
27438 elif test -n "${QT_MANDATORY}";
27439 then
27440 { echo "$as_me:$LINENO: ***" >&5
27441 echo "$as_me: ***" >&6;}
27442 { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
27443 echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
27444 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27445 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27446 { echo "$as_me:$LINENO: *** including --without-qt." >&5
27447 echo "$as_me: *** including --without-qt." >&6;}
27448 exit 1
27452 ac_ext=c
27453 ac_cpp='$CPP $CPPFLAGS'
27454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27460 if test "${USE_RADIUS}" != "no"; then
27461 pbxlibdir=""
27462 if test "x${RADIUS_DIR}" != "x"; then
27463 if test -d ${RADIUS_DIR}/lib; then
27464 pbxlibdir="-L${RADIUS_DIR}/lib"
27465 else
27466 pbxlibdir="-L${RADIUS_DIR}"
27469 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
27470 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
27471 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27473 else
27474 ac_check_lib_save_LIBS=$LIBS
27475 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
27476 cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h. */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27483 /* Override any GCC internal prototype to avoid an error.
27484 Use char because int might match the return type of a GCC
27485 builtin and then its argument prototype would still apply. */
27486 #ifdef __cplusplus
27487 extern "C"
27488 #endif
27489 char rc_read_config ();
27491 main ()
27493 return rc_read_config ();
27495 return 0;
27497 _ACEOF
27498 rm -f conftest.$ac_objext conftest$ac_exeext
27499 if { (ac_try="$ac_link"
27500 case "(($ac_try" in
27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27503 esac
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_link") 2>conftest.er1
27506 ac_status=$?
27507 grep -v '^ *+' conftest.er1 >conftest.err
27508 rm -f conftest.er1
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_c_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest$ac_exeext &&
27515 $as_test_x conftest$ac_exeext; then
27516 ac_cv_lib_radiusclient_ng_rc_read_config=yes
27517 else
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27521 ac_cv_lib_radiusclient_ng_rc_read_config=no
27524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27525 conftest$ac_exeext conftest.$ac_ext
27526 LIBS=$ac_check_lib_save_LIBS
27528 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
27529 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
27530 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
27531 AST_RADIUS_FOUND=yes
27532 else
27533 AST_RADIUS_FOUND=no
27537 if test "${AST_RADIUS_FOUND}" = "yes"; then
27538 RADIUS_LIB="-lradiusclient-ng "
27539 RADIUS_HEADER_FOUND="1"
27540 if test "x${RADIUS_DIR}" != "x"; then
27541 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
27542 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
27543 saved_cppflags="${CPPFLAGS}"
27544 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
27545 if test "xradiusclient-ng.h" != "x" ; then
27546 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
27547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27548 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27549 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27553 ac_res=`eval echo '${'$as_ac_Header'}'`
27554 { echo "$as_me:$LINENO: result: $ac_res" >&5
27555 echo "${ECHO_T}$ac_res" >&6; }
27556 else
27557 # Is the header compilable?
27558 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
27559 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h. */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27566 $ac_includes_default
27567 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27568 _ACEOF
27569 rm -f conftest.$ac_objext
27570 if { (ac_try="$ac_compile"
27571 case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_compile") 2>conftest.er1
27577 ac_status=$?
27578 grep -v '^ *+' conftest.er1 >conftest.err
27579 rm -f conftest.er1
27580 cat conftest.err >&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } && {
27583 test -z "$ac_c_werror_flag" ||
27584 test ! -s conftest.err
27585 } && test -s conftest.$ac_objext; then
27586 ac_header_compiler=yes
27587 else
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_header_compiler=no
27594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27596 echo "${ECHO_T}$ac_header_compiler" >&6; }
27598 # Is the header present?
27599 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
27600 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
27601 cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h. */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27607 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
27608 _ACEOF
27609 if { (ac_try="$ac_cpp conftest.$ac_ext"
27610 case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27613 esac
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27616 ac_status=$?
27617 grep -v '^ *+' conftest.er1 >conftest.err
27618 rm -f conftest.er1
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } >/dev/null && {
27622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27623 test ! -s conftest.err
27624 }; then
27625 ac_header_preproc=yes
27626 else
27627 echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27630 ac_header_preproc=no
27633 rm -f conftest.err conftest.$ac_ext
27634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27635 echo "${ECHO_T}$ac_header_preproc" >&6; }
27637 # So? What about this header?
27638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27639 yes:no: )
27640 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27641 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27642 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
27643 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27644 ac_header_preproc=yes
27646 no:yes:* )
27647 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
27648 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
27650 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27651 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
27652 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27654 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27656 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27657 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27658 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27659 ( cat <<\_ASBOX
27660 ## ------------------------------- ##
27661 ## Report this to www.asterisk.org ##
27662 ## ------------------------------- ##
27663 _ASBOX
27664 ) | sed "s/^/$as_me: WARNING: /" >&2
27666 esac
27667 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
27668 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
27669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27671 else
27672 eval "$as_ac_Header=\$ac_header_preproc"
27674 ac_res=`eval echo '${'$as_ac_Header'}'`
27675 { echo "$as_me:$LINENO: result: $ac_res" >&5
27676 echo "${ECHO_T}$ac_res" >&6; }
27679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27680 RADIUS_HEADER_FOUND=1
27681 else
27682 RADIUS_HEADER_FOUND=0
27687 CPPFLAGS="${saved_cppflags}"
27688 else
27689 if test "xradiusclient-ng.h" != "x" ; then
27690 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27691 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27692 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27693 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27694 echo $ECHO_N "(cached) $ECHO_C" >&6
27696 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27697 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27698 else
27699 # Is the header compilable?
27700 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
27701 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
27702 cat >conftest.$ac_ext <<_ACEOF
27703 /* confdefs.h. */
27704 _ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27708 $ac_includes_default
27709 #include <radiusclient-ng.h>
27710 _ACEOF
27711 rm -f conftest.$ac_objext
27712 if { (ac_try="$ac_compile"
27713 case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_compile") 2>conftest.er1
27719 ac_status=$?
27720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } && {
27725 test -z "$ac_c_werror_flag" ||
27726 test ! -s conftest.err
27727 } && test -s conftest.$ac_objext; then
27728 ac_header_compiler=yes
27729 else
27730 echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27733 ac_header_compiler=no
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27738 echo "${ECHO_T}$ac_header_compiler" >&6; }
27740 # Is the header present?
27741 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
27742 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
27743 cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h. */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h. */
27749 #include <radiusclient-ng.h>
27750 _ACEOF
27751 if { (ac_try="$ac_cpp conftest.$ac_ext"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27758 ac_status=$?
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } >/dev/null && {
27764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27766 }; then
27767 ac_header_preproc=yes
27768 else
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27772 ac_header_preproc=no
27775 rm -f conftest.err conftest.$ac_ext
27776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27777 echo "${ECHO_T}$ac_header_preproc" >&6; }
27779 # So? What about this header?
27780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27781 yes:no: )
27782 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
27783 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
27785 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
27786 ac_header_preproc=yes
27788 no:yes:* )
27789 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
27790 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
27791 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
27792 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
27793 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
27794 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
27796 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
27798 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
27800 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
27801 ( cat <<\_ASBOX
27802 ## ------------------------------- ##
27803 ## Report this to www.asterisk.org ##
27804 ## ------------------------------- ##
27805 _ASBOX
27806 ) | sed "s/^/$as_me: WARNING: /" >&2
27808 esac
27809 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
27810 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
27811 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
27813 else
27814 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
27816 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
27817 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
27820 if test $ac_cv_header_radiusclient_ng_h = yes; then
27821 RADIUS_HEADER_FOUND=1
27822 else
27823 RADIUS_HEADER_FOUND=0
27829 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
27830 if test -n "${RADIUS_MANDATORY}" ;
27831 then
27832 { echo "$as_me:$LINENO: ***" >&5
27833 echo "$as_me: ***" >&6;}
27834 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
27835 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
27836 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
27837 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
27838 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27839 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27840 exit 1
27842 RADIUS_LIB=""
27843 RADIUS_INCLUDE=""
27844 PBX_RADIUS=0
27845 else
27846 PBX_RADIUS=1
27848 cat >>confdefs.h <<_ACEOF
27849 #define HAVE_RADIUS 1
27850 _ACEOF
27853 elif test -n "${RADIUS_MANDATORY}";
27854 then
27855 { echo "$as_me:$LINENO: ***" >&5
27856 echo "$as_me: ***" >&6;}
27857 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
27858 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
27859 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27860 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27861 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
27862 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
27863 exit 1
27869 if test "${USE_SPEEX}" != "no"; then
27870 pbxlibdir=""
27871 if test "x${SPEEX_DIR}" != "x"; then
27872 if test -d ${SPEEX_DIR}/lib; then
27873 pbxlibdir="-L${SPEEX_DIR}/lib"
27874 else
27875 pbxlibdir="-L${SPEEX_DIR}"
27878 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
27879 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
27880 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
27881 echo $ECHO_N "(cached) $ECHO_C" >&6
27882 else
27883 ac_check_lib_save_LIBS=$LIBS
27884 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
27885 cat >conftest.$ac_ext <<_ACEOF
27886 /* confdefs.h. */
27887 _ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h. */
27892 /* Override any GCC internal prototype to avoid an error.
27893 Use char because int might match the return type of a GCC
27894 builtin and then its argument prototype would still apply. */
27895 #ifdef __cplusplus
27896 extern "C"
27897 #endif
27898 char speex_encode ();
27900 main ()
27902 return speex_encode ();
27904 return 0;
27906 _ACEOF
27907 rm -f conftest.$ac_objext conftest$ac_exeext
27908 if { (ac_try="$ac_link"
27909 case "(($ac_try" in
27910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27912 esac
27913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914 (eval "$ac_link") 2>conftest.er1
27915 ac_status=$?
27916 grep -v '^ *+' conftest.er1 >conftest.err
27917 rm -f conftest.er1
27918 cat conftest.err >&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && {
27921 test -z "$ac_c_werror_flag" ||
27922 test ! -s conftest.err
27923 } && test -s conftest$ac_exeext &&
27924 $as_test_x conftest$ac_exeext; then
27925 ac_cv_lib_speex_speex_encode=yes
27926 else
27927 echo "$as_me: failed program was:" >&5
27928 sed 's/^/| /' conftest.$ac_ext >&5
27930 ac_cv_lib_speex_speex_encode=no
27933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27934 conftest$ac_exeext conftest.$ac_ext
27935 LIBS=$ac_check_lib_save_LIBS
27937 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
27938 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
27939 if test $ac_cv_lib_speex_speex_encode = yes; then
27940 AST_SPEEX_FOUND=yes
27941 else
27942 AST_SPEEX_FOUND=no
27946 if test "${AST_SPEEX_FOUND}" = "yes"; then
27947 SPEEX_LIB="-lspeex -lm"
27948 SPEEX_HEADER_FOUND="1"
27949 if test "x${SPEEX_DIR}" != "x"; then
27950 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
27951 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
27952 saved_cppflags="${CPPFLAGS}"
27953 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
27954 if test "xspeex/speex.h" != "x" ; then
27955 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
27956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27957 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
27958 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
27959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27962 ac_res=`eval echo '${'$as_ac_Header'}'`
27963 { echo "$as_me:$LINENO: result: $ac_res" >&5
27964 echo "${ECHO_T}$ac_res" >&6; }
27965 else
27966 # Is the header compilable?
27967 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
27968 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
27969 cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h. */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27975 $ac_includes_default
27976 #include <${SPEEX_DIR}/include/speex/speex.h>
27977 _ACEOF
27978 rm -f conftest.$ac_objext
27979 if { (ac_try="$ac_compile"
27980 case "(($ac_try" in
27981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982 *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985 (eval "$ac_compile") 2>conftest.er1
27986 ac_status=$?
27987 grep -v '^ *+' conftest.er1 >conftest.err
27988 rm -f conftest.er1
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } && {
27992 test -z "$ac_c_werror_flag" ||
27993 test ! -s conftest.err
27994 } && test -s conftest.$ac_objext; then
27995 ac_header_compiler=yes
27996 else
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
28000 ac_header_compiler=no
28003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28005 echo "${ECHO_T}$ac_header_compiler" >&6; }
28007 # Is the header present?
28008 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
28009 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
28010 cat >conftest.$ac_ext <<_ACEOF
28011 /* confdefs.h. */
28012 _ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28016 #include <${SPEEX_DIR}/include/speex/speex.h>
28017 _ACEOF
28018 if { (ac_try="$ac_cpp conftest.$ac_ext"
28019 case "(($ac_try" in
28020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28021 *) ac_try_echo=$ac_try;;
28022 esac
28023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28025 ac_status=$?
28026 grep -v '^ *+' conftest.er1 >conftest.err
28027 rm -f conftest.er1
28028 cat conftest.err >&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } >/dev/null && {
28031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28032 test ! -s conftest.err
28033 }; then
28034 ac_header_preproc=yes
28035 else
28036 echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28039 ac_header_preproc=no
28042 rm -f conftest.err conftest.$ac_ext
28043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28044 echo "${ECHO_T}$ac_header_preproc" >&6; }
28046 # So? What about this header?
28047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28048 yes:no: )
28049 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28050 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28051 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
28052 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
28053 ac_header_preproc=yes
28055 no:yes:* )
28056 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
28057 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
28059 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
28060 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
28061 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
28062 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28063 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28064 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
28065 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
28066 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
28067 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
28068 ( cat <<\_ASBOX
28069 ## ------------------------------- ##
28070 ## Report this to www.asterisk.org ##
28071 ## ------------------------------- ##
28072 _ASBOX
28073 ) | sed "s/^/$as_me: WARNING: /" >&2
28075 esac
28076 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28077 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28080 else
28081 eval "$as_ac_Header=\$ac_header_preproc"
28083 ac_res=`eval echo '${'$as_ac_Header'}'`
28084 { echo "$as_me:$LINENO: result: $ac_res" >&5
28085 echo "${ECHO_T}$ac_res" >&6; }
28088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28089 SPEEX_HEADER_FOUND=1
28090 else
28091 SPEEX_HEADER_FOUND=0
28096 CPPFLAGS="${saved_cppflags}"
28097 else
28098 if test "xspeex/speex.h" != "x" ; then
28099 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28100 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28101 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28102 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28106 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28107 else
28108 # Is the header compilable?
28109 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
28110 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
28111 cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h. */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28117 $ac_includes_default
28118 #include <speex/speex.h>
28119 _ACEOF
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124 *) ac_try_echo=$ac_try;;
28125 esac
28126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28127 (eval "$ac_compile") 2>conftest.er1
28128 ac_status=$?
28129 grep -v '^ *+' conftest.er1 >conftest.err
28130 rm -f conftest.er1
28131 cat conftest.err >&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } && {
28134 test -z "$ac_c_werror_flag" ||
28135 test ! -s conftest.err
28136 } && test -s conftest.$ac_objext; then
28137 ac_header_compiler=yes
28138 else
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28142 ac_header_compiler=no
28145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28147 echo "${ECHO_T}$ac_header_compiler" >&6; }
28149 # Is the header present?
28150 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
28151 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
28152 cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h. */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28158 #include <speex/speex.h>
28159 _ACEOF
28160 if { (ac_try="$ac_cpp conftest.$ac_ext"
28161 case "(($ac_try" in
28162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28164 esac
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28167 ac_status=$?
28168 grep -v '^ *+' conftest.er1 >conftest.err
28169 rm -f conftest.er1
28170 cat conftest.err >&5
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); } >/dev/null && {
28173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28174 test ! -s conftest.err
28175 }; then
28176 ac_header_preproc=yes
28177 else
28178 echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28181 ac_header_preproc=no
28184 rm -f conftest.err conftest.$ac_ext
28185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28186 echo "${ECHO_T}$ac_header_preproc" >&6; }
28188 # So? What about this header?
28189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28190 yes:no: )
28191 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28192 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28193 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
28194 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
28195 ac_header_preproc=yes
28197 no:yes:* )
28198 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
28199 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
28200 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
28201 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
28202 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
28203 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
28204 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28205 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28206 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
28207 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
28208 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
28209 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
28210 ( cat <<\_ASBOX
28211 ## ------------------------------- ##
28212 ## Report this to www.asterisk.org ##
28213 ## ------------------------------- ##
28214 _ASBOX
28215 ) | sed "s/^/$as_me: WARNING: /" >&2
28217 esac
28218 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28219 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28220 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28222 else
28223 ac_cv_header_speex_speex_h=$ac_header_preproc
28225 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28226 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28229 if test $ac_cv_header_speex_speex_h = yes; then
28230 SPEEX_HEADER_FOUND=1
28231 else
28232 SPEEX_HEADER_FOUND=0
28238 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
28239 if test -n "${SPEEX_MANDATORY}" ;
28240 then
28241 { echo "$as_me:$LINENO: ***" >&5
28242 echo "$as_me: ***" >&6;}
28243 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
28244 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
28245 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
28246 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
28247 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28248 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28249 exit 1
28251 SPEEX_LIB=""
28252 SPEEX_INCLUDE=""
28253 PBX_SPEEX=0
28254 else
28255 PBX_SPEEX=1
28257 cat >>confdefs.h <<_ACEOF
28258 #define HAVE_SPEEX 1
28259 _ACEOF
28262 elif test -n "${SPEEX_MANDATORY}";
28263 then
28264 { echo "$as_me:$LINENO: ***" >&5
28265 echo "$as_me: ***" >&6;}
28266 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
28267 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
28268 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28269 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28270 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28271 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28272 exit 1
28278 if test "${USE_SQLITE}" != "no"; then
28279 pbxlibdir=""
28280 if test "x${SQLITE_DIR}" != "x"; then
28281 if test -d ${SQLITE_DIR}/lib; then
28282 pbxlibdir="-L${SQLITE_DIR}/lib"
28283 else
28284 pbxlibdir="-L${SQLITE_DIR}"
28287 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
28288 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
28289 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
28290 echo $ECHO_N "(cached) $ECHO_C" >&6
28291 else
28292 ac_check_lib_save_LIBS=$LIBS
28293 LIBS="-lsqlite ${pbxlibdir} $LIBS"
28294 cat >conftest.$ac_ext <<_ACEOF
28295 /* confdefs.h. */
28296 _ACEOF
28297 cat confdefs.h >>conftest.$ac_ext
28298 cat >>conftest.$ac_ext <<_ACEOF
28299 /* end confdefs.h. */
28301 /* Override any GCC internal prototype to avoid an error.
28302 Use char because int might match the return type of a GCC
28303 builtin and then its argument prototype would still apply. */
28304 #ifdef __cplusplus
28305 extern "C"
28306 #endif
28307 char sqlite_exec ();
28309 main ()
28311 return sqlite_exec ();
28313 return 0;
28315 _ACEOF
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (ac_try="$ac_link"
28318 case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_link") 2>conftest.er1
28324 ac_status=$?
28325 grep -v '^ *+' conftest.er1 >conftest.err
28326 rm -f conftest.er1
28327 cat conftest.err >&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } && {
28330 test -z "$ac_c_werror_flag" ||
28331 test ! -s conftest.err
28332 } && test -s conftest$ac_exeext &&
28333 $as_test_x conftest$ac_exeext; then
28334 ac_cv_lib_sqlite_sqlite_exec=yes
28335 else
28336 echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.$ac_ext >&5
28339 ac_cv_lib_sqlite_sqlite_exec=no
28342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28343 conftest$ac_exeext conftest.$ac_ext
28344 LIBS=$ac_check_lib_save_LIBS
28346 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
28347 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
28348 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
28349 AST_SQLITE_FOUND=yes
28350 else
28351 AST_SQLITE_FOUND=no
28355 if test "${AST_SQLITE_FOUND}" = "yes"; then
28356 SQLITE_LIB="-lsqlite "
28357 SQLITE_HEADER_FOUND="1"
28358 if test "x${SQLITE_DIR}" != "x"; then
28359 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
28360 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
28361 saved_cppflags="${CPPFLAGS}"
28362 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
28363 if test "xsqlite.h" != "x" ; then
28364 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
28365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28366 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
28367 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
28368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_res=`eval echo '${'$as_ac_Header'}'`
28372 { echo "$as_me:$LINENO: result: $ac_res" >&5
28373 echo "${ECHO_T}$ac_res" >&6; }
28374 else
28375 # Is the header compilable?
28376 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
28377 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
28378 cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h. */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 $ac_includes_default
28385 #include <${SQLITE_DIR}/include/sqlite.h>
28386 _ACEOF
28387 rm -f conftest.$ac_objext
28388 if { (ac_try="$ac_compile"
28389 case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28392 esac
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_compile") 2>conftest.er1
28395 ac_status=$?
28396 grep -v '^ *+' conftest.er1 >conftest.err
28397 rm -f conftest.er1
28398 cat conftest.err >&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); } && {
28401 test -z "$ac_c_werror_flag" ||
28402 test ! -s conftest.err
28403 } && test -s conftest.$ac_objext; then
28404 ac_header_compiler=yes
28405 else
28406 echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28409 ac_header_compiler=no
28412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28414 echo "${ECHO_T}$ac_header_compiler" >&6; }
28416 # Is the header present?
28417 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
28418 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
28419 cat >conftest.$ac_ext <<_ACEOF
28420 /* confdefs.h. */
28421 _ACEOF
28422 cat confdefs.h >>conftest.$ac_ext
28423 cat >>conftest.$ac_ext <<_ACEOF
28424 /* end confdefs.h. */
28425 #include <${SQLITE_DIR}/include/sqlite.h>
28426 _ACEOF
28427 if { (ac_try="$ac_cpp conftest.$ac_ext"
28428 case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28434 ac_status=$?
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } >/dev/null && {
28440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28442 }; then
28443 ac_header_preproc=yes
28444 else
28445 echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28448 ac_header_preproc=no
28451 rm -f conftest.err conftest.$ac_ext
28452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28453 echo "${ECHO_T}$ac_header_preproc" >&6; }
28455 # So? What about this header?
28456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28457 yes:no: )
28458 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28459 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28460 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
28461 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
28462 ac_header_preproc=yes
28464 no:yes:* )
28465 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
28466 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
28468 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
28470 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28472 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28473 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
28474 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
28475 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
28476 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
28477 ( cat <<\_ASBOX
28478 ## ------------------------------- ##
28479 ## Report this to www.asterisk.org ##
28480 ## ------------------------------- ##
28481 _ASBOX
28482 ) | sed "s/^/$as_me: WARNING: /" >&2
28484 esac
28485 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
28486 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
28487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28489 else
28490 eval "$as_ac_Header=\$ac_header_preproc"
28492 ac_res=`eval echo '${'$as_ac_Header'}'`
28493 { echo "$as_me:$LINENO: result: $ac_res" >&5
28494 echo "${ECHO_T}$ac_res" >&6; }
28497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28498 SQLITE_HEADER_FOUND=1
28499 else
28500 SQLITE_HEADER_FOUND=0
28505 CPPFLAGS="${saved_cppflags}"
28506 else
28507 if test "xsqlite.h" != "x" ; then
28508 if test "${ac_cv_header_sqlite_h+set}" = set; then
28509 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28510 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28511 if test "${ac_cv_header_sqlite_h+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28515 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28516 else
28517 # Is the header compilable?
28518 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
28519 echo $ECHO_N "checking sqlite.h usability... $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 $ac_includes_default
28527 #include <sqlite.h>
28528 _ACEOF
28529 rm -f conftest.$ac_objext
28530 if { (ac_try="$ac_compile"
28531 case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_compile") 2>conftest.er1
28537 ac_status=$?
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && {
28543 test -z "$ac_c_werror_flag" ||
28544 test ! -s conftest.err
28545 } && test -s conftest.$ac_objext; then
28546 ac_header_compiler=yes
28547 else
28548 echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28551 ac_header_compiler=no
28554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28556 echo "${ECHO_T}$ac_header_compiler" >&6; }
28558 # Is the header present?
28559 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
28560 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
28561 cat >conftest.$ac_ext <<_ACEOF
28562 /* confdefs.h. */
28563 _ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h. */
28567 #include <sqlite.h>
28568 _ACEOF
28569 if { (ac_try="$ac_cpp conftest.$ac_ext"
28570 case "(($ac_try" in
28571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28572 *) ac_try_echo=$ac_try;;
28573 esac
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28576 ac_status=$?
28577 grep -v '^ *+' conftest.er1 >conftest.err
28578 rm -f conftest.er1
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } >/dev/null && {
28582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28583 test ! -s conftest.err
28584 }; then
28585 ac_header_preproc=yes
28586 else
28587 echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.$ac_ext >&5
28590 ac_header_preproc=no
28593 rm -f conftest.err conftest.$ac_ext
28594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28595 echo "${ECHO_T}$ac_header_preproc" >&6; }
28597 # So? What about this header?
28598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28599 yes:no: )
28600 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
28601 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28602 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
28603 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
28604 ac_header_preproc=yes
28606 no:yes:* )
28607 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
28608 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
28609 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
28610 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
28611 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
28612 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
28613 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
28614 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
28615 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
28616 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
28617 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
28618 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
28619 ( cat <<\_ASBOX
28620 ## ------------------------------- ##
28621 ## Report this to www.asterisk.org ##
28622 ## ------------------------------- ##
28623 _ASBOX
28624 ) | sed "s/^/$as_me: WARNING: /" >&2
28626 esac
28627 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
28628 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
28629 if test "${ac_cv_header_sqlite_h+set}" = set; then
28630 echo $ECHO_N "(cached) $ECHO_C" >&6
28631 else
28632 ac_cv_header_sqlite_h=$ac_header_preproc
28634 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
28635 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
28638 if test $ac_cv_header_sqlite_h = yes; then
28639 SQLITE_HEADER_FOUND=1
28640 else
28641 SQLITE_HEADER_FOUND=0
28647 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
28648 if test -n "${SQLITE_MANDATORY}" ;
28649 then
28650 { echo "$as_me:$LINENO: ***" >&5
28651 echo "$as_me: ***" >&6;}
28652 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
28653 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
28654 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
28655 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
28656 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28657 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28658 exit 1
28660 SQLITE_LIB=""
28661 SQLITE_INCLUDE=""
28662 PBX_SQLITE=0
28663 else
28664 PBX_SQLITE=1
28666 cat >>confdefs.h <<_ACEOF
28667 #define HAVE_SQLITE 1
28668 _ACEOF
28671 elif test -n "${SQLITE_MANDATORY}";
28672 then
28673 { echo "$as_me:$LINENO: ***" >&5
28674 echo "$as_me: ***" >&6;}
28675 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
28676 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
28677 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28678 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28679 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
28680 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
28681 exit 1
28687 if test "${USE_OPENSSL}" != "no"; then
28688 pbxlibdir=""
28689 if test "x${OPENSSL_DIR}" != "x"; then
28690 if test -d ${OPENSSL_DIR}/lib; then
28691 pbxlibdir="-L${OPENSSL_DIR}/lib"
28692 else
28693 pbxlibdir="-L${OPENSSL_DIR}"
28696 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
28697 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
28698 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
28699 echo $ECHO_N "(cached) $ECHO_C" >&6
28700 else
28701 ac_check_lib_save_LIBS=$LIBS
28702 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
28703 cat >conftest.$ac_ext <<_ACEOF
28704 /* confdefs.h. */
28705 _ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h. */
28710 /* Override any GCC internal prototype to avoid an error.
28711 Use char because int might match the return type of a GCC
28712 builtin and then its argument prototype would still apply. */
28713 #ifdef __cplusplus
28714 extern "C"
28715 #endif
28716 char ssl2_connect ();
28718 main ()
28720 return ssl2_connect ();
28722 return 0;
28724 _ACEOF
28725 rm -f conftest.$ac_objext conftest$ac_exeext
28726 if { (ac_try="$ac_link"
28727 case "(($ac_try" in
28728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729 *) ac_try_echo=$ac_try;;
28730 esac
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732 (eval "$ac_link") 2>conftest.er1
28733 ac_status=$?
28734 grep -v '^ *+' conftest.er1 >conftest.err
28735 rm -f conftest.er1
28736 cat conftest.err >&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } && {
28739 test -z "$ac_c_werror_flag" ||
28740 test ! -s conftest.err
28741 } && test -s conftest$ac_exeext &&
28742 $as_test_x conftest$ac_exeext; then
28743 ac_cv_lib_ssl_ssl2_connect=yes
28744 else
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28748 ac_cv_lib_ssl_ssl2_connect=no
28751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28752 conftest$ac_exeext conftest.$ac_ext
28753 LIBS=$ac_check_lib_save_LIBS
28755 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
28756 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
28757 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
28758 AST_OPENSSL_FOUND=yes
28759 else
28760 AST_OPENSSL_FOUND=no
28764 if test "${AST_OPENSSL_FOUND}" = "yes"; then
28765 OPENSSL_LIB="-lssl -lcrypto"
28766 OPENSSL_HEADER_FOUND="1"
28767 if test "x${OPENSSL_DIR}" != "x"; then
28768 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
28769 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
28770 saved_cppflags="${CPPFLAGS}"
28771 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
28772 if test "xopenssl/ssl.h" != "x" ; then
28773 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
28774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28775 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28776 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28780 ac_res=`eval echo '${'$as_ac_Header'}'`
28781 { echo "$as_me:$LINENO: result: $ac_res" >&5
28782 echo "${ECHO_T}$ac_res" >&6; }
28783 else
28784 # Is the header compilable?
28785 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
28786 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
28787 cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h. */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28793 $ac_includes_default
28794 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28795 _ACEOF
28796 rm -f conftest.$ac_objext
28797 if { (ac_try="$ac_compile"
28798 case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28801 esac
28802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_compile") 2>conftest.er1
28804 ac_status=$?
28805 grep -v '^ *+' conftest.er1 >conftest.err
28806 rm -f conftest.er1
28807 cat conftest.err >&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); } && {
28810 test -z "$ac_c_werror_flag" ||
28811 test ! -s conftest.err
28812 } && test -s conftest.$ac_objext; then
28813 ac_header_compiler=yes
28814 else
28815 echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28818 ac_header_compiler=no
28821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28823 echo "${ECHO_T}$ac_header_compiler" >&6; }
28825 # Is the header present?
28826 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
28827 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
28828 cat >conftest.$ac_ext <<_ACEOF
28829 /* confdefs.h. */
28830 _ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h. */
28834 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
28835 _ACEOF
28836 if { (ac_try="$ac_cpp conftest.$ac_ext"
28837 case "(($ac_try" in
28838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839 *) ac_try_echo=$ac_try;;
28840 esac
28841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28843 ac_status=$?
28844 grep -v '^ *+' conftest.er1 >conftest.err
28845 rm -f conftest.er1
28846 cat conftest.err >&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } >/dev/null && {
28849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28850 test ! -s conftest.err
28851 }; then
28852 ac_header_preproc=yes
28853 else
28854 echo "$as_me: failed program was:" >&5
28855 sed 's/^/| /' conftest.$ac_ext >&5
28857 ac_header_preproc=no
28860 rm -f conftest.err conftest.$ac_ext
28861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28862 echo "${ECHO_T}$ac_header_preproc" >&6; }
28864 # So? What about this header?
28865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28866 yes:no: )
28867 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28868 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
28870 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
28871 ac_header_preproc=yes
28873 no:yes:* )
28874 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
28875 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
28877 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
28879 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
28881 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
28883 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
28885 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
28886 ( cat <<\_ASBOX
28887 ## ------------------------------- ##
28888 ## Report this to www.asterisk.org ##
28889 ## ------------------------------- ##
28890 _ASBOX
28891 ) | sed "s/^/$as_me: WARNING: /" >&2
28893 esac
28894 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
28895 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
28896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28898 else
28899 eval "$as_ac_Header=\$ac_header_preproc"
28901 ac_res=`eval echo '${'$as_ac_Header'}'`
28902 { echo "$as_me:$LINENO: result: $ac_res" >&5
28903 echo "${ECHO_T}$ac_res" >&6; }
28906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28907 OPENSSL_HEADER_FOUND=1
28908 else
28909 OPENSSL_HEADER_FOUND=0
28914 CPPFLAGS="${saved_cppflags}"
28915 else
28916 if test "xopenssl/ssl.h" != "x" ; then
28917 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28918 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
28919 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
28920 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
28921 echo $ECHO_N "(cached) $ECHO_C" >&6
28923 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
28924 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
28925 else
28926 # Is the header compilable?
28927 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
28928 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
28929 cat >conftest.$ac_ext <<_ACEOF
28930 /* confdefs.h. */
28931 _ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28935 $ac_includes_default
28936 #include <openssl/ssl.h>
28937 _ACEOF
28938 rm -f conftest.$ac_objext
28939 if { (ac_try="$ac_compile"
28940 case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28943 esac
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_compile") 2>conftest.er1
28946 ac_status=$?
28947 grep -v '^ *+' conftest.er1 >conftest.err
28948 rm -f conftest.er1
28949 cat conftest.err >&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } && {
28952 test -z "$ac_c_werror_flag" ||
28953 test ! -s conftest.err
28954 } && test -s conftest.$ac_objext; then
28955 ac_header_compiler=yes
28956 else
28957 echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28960 ac_header_compiler=no
28963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28965 echo "${ECHO_T}$ac_header_compiler" >&6; }
28967 # Is the header present?
28968 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
28969 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
28970 cat >conftest.$ac_ext <<_ACEOF
28971 /* confdefs.h. */
28972 _ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h. */
28976 #include <openssl/ssl.h>
28977 _ACEOF
28978 if { (ac_try="$ac_cpp conftest.$ac_ext"
28979 case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28982 esac
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28985 ac_status=$?
28986 grep -v '^ *+' conftest.er1 >conftest.err
28987 rm -f conftest.er1
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } >/dev/null && {
28991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28992 test ! -s conftest.err
28993 }; then
28994 ac_header_preproc=yes
28995 else
28996 echo "$as_me: failed program was:" >&5
28997 sed 's/^/| /' conftest.$ac_ext >&5
28999 ac_header_preproc=no
29002 rm -f conftest.err conftest.$ac_ext
29003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29004 echo "${ECHO_T}$ac_header_preproc" >&6; }
29006 # So? What about this header?
29007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29008 yes:no: )
29009 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29010 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
29012 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
29013 ac_header_preproc=yes
29015 no:yes:* )
29016 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
29017 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
29018 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
29019 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
29020 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
29021 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
29022 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
29023 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29024 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
29025 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
29027 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
29028 ( cat <<\_ASBOX
29029 ## ------------------------------- ##
29030 ## Report this to www.asterisk.org ##
29031 ## ------------------------------- ##
29032 _ASBOX
29033 ) | sed "s/^/$as_me: WARNING: /" >&2
29035 esac
29036 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
29037 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
29038 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29039 echo $ECHO_N "(cached) $ECHO_C" >&6
29040 else
29041 ac_cv_header_openssl_ssl_h=$ac_header_preproc
29043 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
29044 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
29047 if test $ac_cv_header_openssl_ssl_h = yes; then
29048 OPENSSL_HEADER_FOUND=1
29049 else
29050 OPENSSL_HEADER_FOUND=0
29056 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
29057 if test -n "${OPENSSL_MANDATORY}" ;
29058 then
29059 { echo "$as_me:$LINENO: ***" >&5
29060 echo "$as_me: ***" >&6;}
29061 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
29062 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
29063 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
29064 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
29065 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
29066 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
29067 exit 1
29069 OPENSSL_LIB=""
29070 OPENSSL_INCLUDE=""
29071 PBX_OPENSSL=0
29072 else
29073 PBX_OPENSSL=1
29075 cat >>confdefs.h <<_ACEOF
29076 #define HAVE_OPENSSL 1
29077 _ACEOF
29080 elif test -n "${OPENSSL_MANDATORY}";
29081 then
29082 { echo "$as_me:$LINENO: ***" >&5
29083 echo "$as_me: ***" >&6;}
29084 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
29085 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
29086 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29087 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29088 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
29089 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
29090 exit 1
29094 if test "$PBX_OPENSSL" = "1";
29095 then
29097 if test "${USE_OSPTK}" != "no"; then
29098 pbxlibdir=""
29099 if test "x${OSPTK_DIR}" != "x"; then
29100 if test -d ${OSPTK_DIR}/lib; then
29101 pbxlibdir="-L${OSPTK_DIR}/lib"
29102 else
29103 pbxlibdir="-L${OSPTK_DIR}"
29106 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
29107 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
29108 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 else
29111 ac_check_lib_save_LIBS=$LIBS
29112 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
29113 cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h. */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29120 /* Override any GCC internal prototype to avoid an error.
29121 Use char because int might match the return type of a GCC
29122 builtin and then its argument prototype would still apply. */
29123 #ifdef __cplusplus
29124 extern "C"
29125 #endif
29126 char OSPPCryptoDecrypt ();
29128 main ()
29130 return OSPPCryptoDecrypt ();
29132 return 0;
29134 _ACEOF
29135 rm -f conftest.$ac_objext conftest$ac_exeext
29136 if { (ac_try="$ac_link"
29137 case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29140 esac
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_link") 2>conftest.er1
29143 ac_status=$?
29144 grep -v '^ *+' conftest.er1 >conftest.err
29145 rm -f conftest.er1
29146 cat conftest.err >&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } && {
29149 test -z "$ac_c_werror_flag" ||
29150 test ! -s conftest.err
29151 } && test -s conftest$ac_exeext &&
29152 $as_test_x conftest$ac_exeext; then
29153 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
29154 else
29155 echo "$as_me: failed program was:" >&5
29156 sed 's/^/| /' conftest.$ac_ext >&5
29158 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
29161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29162 conftest$ac_exeext conftest.$ac_ext
29163 LIBS=$ac_check_lib_save_LIBS
29165 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
29166 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
29167 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
29168 AST_OSPTK_FOUND=yes
29169 else
29170 AST_OSPTK_FOUND=no
29174 if test "${AST_OSPTK_FOUND}" = "yes"; then
29175 OSPTK_LIB="-losptk -lcrypto -lssl"
29176 OSPTK_HEADER_FOUND="1"
29177 if test "x${OSPTK_DIR}" != "x"; then
29178 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
29179 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
29180 saved_cppflags="${CPPFLAGS}"
29181 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
29182 if test "xosp/osp.h" != "x" ; then
29183 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
29184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29185 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
29186 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
29187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 ac_res=`eval echo '${'$as_ac_Header'}'`
29191 { echo "$as_me:$LINENO: result: $ac_res" >&5
29192 echo "${ECHO_T}$ac_res" >&6; }
29193 else
29194 # Is the header compilable?
29195 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
29196 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
29197 cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h. */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203 $ac_includes_default
29204 #include <${OSPTK_DIR}/include/osp/osp.h>
29205 _ACEOF
29206 rm -f conftest.$ac_objext
29207 if { (ac_try="$ac_compile"
29208 case "(($ac_try" in
29209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210 *) ac_try_echo=$ac_try;;
29211 esac
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213 (eval "$ac_compile") 2>conftest.er1
29214 ac_status=$?
29215 grep -v '^ *+' conftest.er1 >conftest.err
29216 rm -f conftest.er1
29217 cat conftest.err >&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } && {
29220 test -z "$ac_c_werror_flag" ||
29221 test ! -s conftest.err
29222 } && test -s conftest.$ac_objext; then
29223 ac_header_compiler=yes
29224 else
29225 echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29228 ac_header_compiler=no
29231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29233 echo "${ECHO_T}$ac_header_compiler" >&6; }
29235 # Is the header present?
29236 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
29237 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
29238 cat >conftest.$ac_ext <<_ACEOF
29239 /* confdefs.h. */
29240 _ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h. */
29244 #include <${OSPTK_DIR}/include/osp/osp.h>
29245 _ACEOF
29246 if { (ac_try="$ac_cpp conftest.$ac_ext"
29247 case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29253 ac_status=$?
29254 grep -v '^ *+' conftest.er1 >conftest.err
29255 rm -f conftest.er1
29256 cat conftest.err >&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } >/dev/null && {
29259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29260 test ! -s conftest.err
29261 }; then
29262 ac_header_preproc=yes
29263 else
29264 echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29267 ac_header_preproc=no
29270 rm -f conftest.err conftest.$ac_ext
29271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29272 echo "${ECHO_T}$ac_header_preproc" >&6; }
29274 # So? What about this header?
29275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29276 yes:no: )
29277 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
29278 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29279 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
29280 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
29281 ac_header_preproc=yes
29283 no:yes:* )
29284 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
29285 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
29286 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
29287 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
29288 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
29289 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
29290 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
29291 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
29292 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
29293 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
29294 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
29295 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
29296 ( cat <<\_ASBOX
29297 ## ------------------------------- ##
29298 ## Report this to www.asterisk.org ##
29299 ## ------------------------------- ##
29300 _ASBOX
29301 ) | sed "s/^/$as_me: WARNING: /" >&2
29303 esac
29304 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
29305 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
29306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 else
29309 eval "$as_ac_Header=\$ac_header_preproc"
29311 ac_res=`eval echo '${'$as_ac_Header'}'`
29312 { echo "$as_me:$LINENO: result: $ac_res" >&5
29313 echo "${ECHO_T}$ac_res" >&6; }
29316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29317 OSPTK_HEADER_FOUND=1
29318 else
29319 OSPTK_HEADER_FOUND=0
29324 CPPFLAGS="${saved_cppflags}"
29325 else
29326 if test "xosp/osp.h" != "x" ; then
29327 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29328 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
29329 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
29330 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29333 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
29334 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
29335 else
29336 # Is the header compilable?
29337 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
29338 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
29339 cat >conftest.$ac_ext <<_ACEOF
29340 /* confdefs.h. */
29341 _ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h. */
29345 $ac_includes_default
29346 #include <osp/osp.h>
29347 _ACEOF
29348 rm -f conftest.$ac_objext
29349 if { (ac_try="$ac_compile"
29350 case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_compile") 2>conftest.er1
29356 ac_status=$?
29357 grep -v '^ *+' conftest.er1 >conftest.err
29358 rm -f conftest.er1
29359 cat conftest.err >&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); } && {
29362 test -z "$ac_c_werror_flag" ||
29363 test ! -s conftest.err
29364 } && test -s conftest.$ac_objext; then
29365 ac_header_compiler=yes
29366 else
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 ac_header_compiler=no
29373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29375 echo "${ECHO_T}$ac_header_compiler" >&6; }
29377 # Is the header present?
29378 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
29379 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h. */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 #include <osp/osp.h>
29387 _ACEOF
29388 if { (ac_try="$ac_cpp conftest.$ac_ext"
29389 case "(($ac_try" in
29390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29391 *) ac_try_echo=$ac_try;;
29392 esac
29393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29395 ac_status=$?
29396 grep -v '^ *+' conftest.er1 >conftest.err
29397 rm -f conftest.er1
29398 cat conftest.err >&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); } >/dev/null && {
29401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29402 test ! -s conftest.err
29403 }; then
29404 ac_header_preproc=yes
29405 else
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29409 ac_header_preproc=no
29412 rm -f conftest.err conftest.$ac_ext
29413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29414 echo "${ECHO_T}$ac_header_preproc" >&6; }
29416 # So? What about this header?
29417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29418 yes:no: )
29419 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
29420 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29421 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
29422 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
29423 ac_header_preproc=yes
29425 no:yes:* )
29426 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
29427 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
29429 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
29430 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
29431 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
29433 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
29435 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
29437 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
29438 ( cat <<\_ASBOX
29439 ## ------------------------------- ##
29440 ## Report this to www.asterisk.org ##
29441 ## ------------------------------- ##
29442 _ASBOX
29443 ) | sed "s/^/$as_me: WARNING: /" >&2
29445 esac
29446 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
29447 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
29448 if test "${ac_cv_header_osp_osp_h+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451 ac_cv_header_osp_osp_h=$ac_header_preproc
29453 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
29454 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
29457 if test $ac_cv_header_osp_osp_h = yes; then
29458 OSPTK_HEADER_FOUND=1
29459 else
29460 OSPTK_HEADER_FOUND=0
29466 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
29467 if test -n "${OSPTK_MANDATORY}" ;
29468 then
29469 { echo "$as_me:$LINENO: ***" >&5
29470 echo "$as_me: ***" >&6;}
29471 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
29472 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
29473 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
29474 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
29475 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
29476 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
29477 exit 1
29479 OSPTK_LIB=""
29480 OSPTK_INCLUDE=""
29481 PBX_OSPTK=0
29482 else
29483 PBX_OSPTK=1
29485 cat >>confdefs.h <<_ACEOF
29486 #define HAVE_OSPTK 1
29487 _ACEOF
29490 elif test -n "${OSPTK_MANDATORY}";
29491 then
29492 { echo "$as_me:$LINENO: ***" >&5
29493 echo "$as_me: ***" >&6;}
29494 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
29495 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
29496 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29497 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29498 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
29499 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
29500 exit 1
29507 if test "${USE_FREETDS}" != "no"; then
29508 pbxlibdir=""
29509 if test "x${FREETDS_DIR}" != "x"; then
29510 if test -d ${FREETDS_DIR}/lib; then
29511 pbxlibdir="-L${FREETDS_DIR}/lib"
29512 else
29513 pbxlibdir="-L${FREETDS_DIR}"
29516 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
29517 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
29518 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 else
29521 ac_check_lib_save_LIBS=$LIBS
29522 LIBS="-ltds ${pbxlibdir} $LIBS"
29523 cat >conftest.$ac_ext <<_ACEOF
29524 /* confdefs.h. */
29525 _ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h. */
29530 /* Override any GCC internal prototype to avoid an error.
29531 Use char because int might match the return type of a GCC
29532 builtin and then its argument prototype would still apply. */
29533 #ifdef __cplusplus
29534 extern "C"
29535 #endif
29536 char tds_version ();
29538 main ()
29540 return tds_version ();
29542 return 0;
29544 _ACEOF
29545 rm -f conftest.$ac_objext conftest$ac_exeext
29546 if { (ac_try="$ac_link"
29547 case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_link") 2>conftest.er1
29553 ac_status=$?
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } && {
29559 test -z "$ac_c_werror_flag" ||
29560 test ! -s conftest.err
29561 } && test -s conftest$ac_exeext &&
29562 $as_test_x conftest$ac_exeext; then
29563 ac_cv_lib_tds_tds_version=yes
29564 else
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ac_cv_lib_tds_tds_version=no
29571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29572 conftest$ac_exeext conftest.$ac_ext
29573 LIBS=$ac_check_lib_save_LIBS
29575 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
29576 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
29577 if test $ac_cv_lib_tds_tds_version = yes; then
29578 AST_FREETDS_FOUND=yes
29579 else
29580 AST_FREETDS_FOUND=no
29584 if test "${AST_FREETDS_FOUND}" = "yes"; then
29585 FREETDS_LIB="-ltds "
29586 FREETDS_HEADER_FOUND="1"
29587 if test "x${FREETDS_DIR}" != "x"; then
29588 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
29589 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
29590 saved_cppflags="${CPPFLAGS}"
29591 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
29592 if test "xtds.h" != "x" ; then
29593 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
29594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29595 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29596 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29598 echo $ECHO_N "(cached) $ECHO_C" >&6
29600 ac_res=`eval echo '${'$as_ac_Header'}'`
29601 { echo "$as_me:$LINENO: result: $ac_res" >&5
29602 echo "${ECHO_T}$ac_res" >&6; }
29603 else
29604 # Is the header compilable?
29605 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
29606 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
29607 cat >conftest.$ac_ext <<_ACEOF
29608 /* confdefs.h. */
29609 _ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h. */
29613 $ac_includes_default
29614 #include <${FREETDS_DIR}/include/tds.h>
29615 _ACEOF
29616 rm -f conftest.$ac_objext
29617 if { (ac_try="$ac_compile"
29618 case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_compile") 2>conftest.er1
29624 ac_status=$?
29625 grep -v '^ *+' conftest.er1 >conftest.err
29626 rm -f conftest.er1
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } && {
29630 test -z "$ac_c_werror_flag" ||
29631 test ! -s conftest.err
29632 } && test -s conftest.$ac_objext; then
29633 ac_header_compiler=yes
29634 else
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ac_header_compiler=no
29641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29643 echo "${ECHO_T}$ac_header_compiler" >&6; }
29645 # Is the header present?
29646 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
29647 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
29648 cat >conftest.$ac_ext <<_ACEOF
29649 /* confdefs.h. */
29650 _ACEOF
29651 cat confdefs.h >>conftest.$ac_ext
29652 cat >>conftest.$ac_ext <<_ACEOF
29653 /* end confdefs.h. */
29654 #include <${FREETDS_DIR}/include/tds.h>
29655 _ACEOF
29656 if { (ac_try="$ac_cpp conftest.$ac_ext"
29657 case "(($ac_try" in
29658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29660 esac
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29663 ac_status=$?
29664 grep -v '^ *+' conftest.er1 >conftest.err
29665 rm -f conftest.er1
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } >/dev/null && {
29669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29670 test ! -s conftest.err
29671 }; then
29672 ac_header_preproc=yes
29673 else
29674 echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ac_header_preproc=no
29680 rm -f conftest.err conftest.$ac_ext
29681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29682 echo "${ECHO_T}$ac_header_preproc" >&6; }
29684 # So? What about this header?
29685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29686 yes:no: )
29687 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29688 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29689 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
29690 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
29691 ac_header_preproc=yes
29693 no:yes:* )
29694 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
29695 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
29696 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
29697 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
29698 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
29699 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
29700 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
29701 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
29703 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
29704 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
29705 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
29706 ( cat <<\_ASBOX
29707 ## ------------------------------- ##
29708 ## Report this to www.asterisk.org ##
29709 ## ------------------------------- ##
29710 _ASBOX
29711 ) | sed "s/^/$as_me: WARNING: /" >&2
29713 esac
29714 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
29715 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
29716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29718 else
29719 eval "$as_ac_Header=\$ac_header_preproc"
29721 ac_res=`eval echo '${'$as_ac_Header'}'`
29722 { echo "$as_me:$LINENO: result: $ac_res" >&5
29723 echo "${ECHO_T}$ac_res" >&6; }
29726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29727 FREETDS_HEADER_FOUND=1
29728 else
29729 FREETDS_HEADER_FOUND=0
29734 CPPFLAGS="${saved_cppflags}"
29735 else
29736 if test "xtds.h" != "x" ; then
29737 if test "${ac_cv_header_tds_h+set}" = set; then
29738 { echo "$as_me:$LINENO: checking for tds.h" >&5
29739 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29740 if test "${ac_cv_header_tds_h+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29743 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29744 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29745 else
29746 # Is the header compilable?
29747 { echo "$as_me:$LINENO: checking tds.h usability" >&5
29748 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
29749 cat >conftest.$ac_ext <<_ACEOF
29750 /* confdefs.h. */
29751 _ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h. */
29755 $ac_includes_default
29756 #include <tds.h>
29757 _ACEOF
29758 rm -f conftest.$ac_objext
29759 if { (ac_try="$ac_compile"
29760 case "(($ac_try" in
29761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29762 *) ac_try_echo=$ac_try;;
29763 esac
29764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29765 (eval "$ac_compile") 2>conftest.er1
29766 ac_status=$?
29767 grep -v '^ *+' conftest.er1 >conftest.err
29768 rm -f conftest.er1
29769 cat conftest.err >&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } && {
29772 test -z "$ac_c_werror_flag" ||
29773 test ! -s conftest.err
29774 } && test -s conftest.$ac_objext; then
29775 ac_header_compiler=yes
29776 else
29777 echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29780 ac_header_compiler=no
29783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29785 echo "${ECHO_T}$ac_header_compiler" >&6; }
29787 # Is the header present?
29788 { echo "$as_me:$LINENO: checking tds.h presence" >&5
29789 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
29790 cat >conftest.$ac_ext <<_ACEOF
29791 /* confdefs.h. */
29792 _ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h. */
29796 #include <tds.h>
29797 _ACEOF
29798 if { (ac_try="$ac_cpp conftest.$ac_ext"
29799 case "(($ac_try" in
29800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801 *) ac_try_echo=$ac_try;;
29802 esac
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29805 ac_status=$?
29806 grep -v '^ *+' conftest.er1 >conftest.err
29807 rm -f conftest.er1
29808 cat conftest.err >&5
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } >/dev/null && {
29811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29812 test ! -s conftest.err
29813 }; then
29814 ac_header_preproc=yes
29815 else
29816 echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29819 ac_header_preproc=no
29822 rm -f conftest.err conftest.$ac_ext
29823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29824 echo "${ECHO_T}$ac_header_preproc" >&6; }
29826 # So? What about this header?
29827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29828 yes:no: )
29829 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
29830 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29831 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
29832 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
29833 ac_header_preproc=yes
29835 no:yes:* )
29836 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
29837 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
29838 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
29839 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
29840 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
29841 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
29842 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
29843 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
29844 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
29845 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
29846 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
29847 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
29848 ( cat <<\_ASBOX
29849 ## ------------------------------- ##
29850 ## Report this to www.asterisk.org ##
29851 ## ------------------------------- ##
29852 _ASBOX
29853 ) | sed "s/^/$as_me: WARNING: /" >&2
29855 esac
29856 { echo "$as_me:$LINENO: checking for tds.h" >&5
29857 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
29858 if test "${ac_cv_header_tds_h+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29860 else
29861 ac_cv_header_tds_h=$ac_header_preproc
29863 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
29864 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
29867 if test $ac_cv_header_tds_h = yes; then
29868 FREETDS_HEADER_FOUND=1
29869 else
29870 FREETDS_HEADER_FOUND=0
29876 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
29877 if test -n "${FREETDS_MANDATORY}" ;
29878 then
29879 { echo "$as_me:$LINENO: ***" >&5
29880 echo "$as_me: ***" >&6;}
29881 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
29882 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
29883 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
29884 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
29885 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29886 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29887 exit 1
29889 FREETDS_LIB=""
29890 FREETDS_INCLUDE=""
29891 PBX_FREETDS=0
29892 else
29893 PBX_FREETDS=1
29895 cat >>confdefs.h <<_ACEOF
29896 #define HAVE_FREETDS 1
29897 _ACEOF
29900 elif test -n "${FREETDS_MANDATORY}";
29901 then
29902 { echo "$as_me:$LINENO: ***" >&5
29903 echo "$as_me: ***" >&6;}
29904 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
29905 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
29906 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29907 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29908 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
29909 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
29910 exit 1
29914 if test "${PBX_FREETDS}" != "0";
29915 then
29916 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
29917 *0.64*)
29918 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
29920 *0.63*)
29921 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
29923 *0.62*)
29924 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
29927 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
29929 esac
29933 if test "${USE_TERMCAP}" != "no"; then
29934 pbxlibdir=""
29935 if test "x${TERMCAP_DIR}" != "x"; then
29936 if test -d ${TERMCAP_DIR}/lib; then
29937 pbxlibdir="-L${TERMCAP_DIR}/lib"
29938 else
29939 pbxlibdir="-L${TERMCAP_DIR}"
29942 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29943 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
29944 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29947 ac_check_lib_save_LIBS=$LIBS
29948 LIBS="-ltermcap ${pbxlibdir} $LIBS"
29949 cat >conftest.$ac_ext <<_ACEOF
29950 /* confdefs.h. */
29951 _ACEOF
29952 cat confdefs.h >>conftest.$ac_ext
29953 cat >>conftest.$ac_ext <<_ACEOF
29954 /* end confdefs.h. */
29956 /* Override any GCC internal prototype to avoid an error.
29957 Use char because int might match the return type of a GCC
29958 builtin and then its argument prototype would still apply. */
29959 #ifdef __cplusplus
29960 extern "C"
29961 #endif
29962 char tgetent ();
29964 main ()
29966 return tgetent ();
29968 return 0;
29970 _ACEOF
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (ac_try="$ac_link"
29973 case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976 esac
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_link") 2>conftest.er1
29979 ac_status=$?
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && {
29985 test -z "$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 } && test -s conftest$ac_exeext &&
29988 $as_test_x conftest$ac_exeext; then
29989 ac_cv_lib_termcap_tgetent=yes
29990 else
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29994 ac_cv_lib_termcap_tgetent=no
29997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29998 conftest$ac_exeext conftest.$ac_ext
29999 LIBS=$ac_check_lib_save_LIBS
30001 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30002 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
30003 if test $ac_cv_lib_termcap_tgetent = yes; then
30004 AST_TERMCAP_FOUND=yes
30005 else
30006 AST_TERMCAP_FOUND=no
30010 if test "${AST_TERMCAP_FOUND}" = "yes"; then
30011 TERMCAP_LIB="-ltermcap "
30012 TERMCAP_HEADER_FOUND="1"
30013 if test "x${TERMCAP_DIR}" != "x"; then
30014 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
30015 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
30016 saved_cppflags="${CPPFLAGS}"
30017 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
30018 if test "x" != "x" ; then
30019 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
30020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30021 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
30022 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
30023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30026 ac_res=`eval echo '${'$as_ac_Header'}'`
30027 { echo "$as_me:$LINENO: result: $ac_res" >&5
30028 echo "${ECHO_T}$ac_res" >&6; }
30029 else
30030 # Is the header compilable?
30031 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
30032 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
30033 cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h. */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h. */
30039 $ac_includes_default
30040 #include <${TERMCAP_DIR}/include/>
30041 _ACEOF
30042 rm -f conftest.$ac_objext
30043 if { (ac_try="$ac_compile"
30044 case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_compile") 2>conftest.er1
30050 ac_status=$?
30051 grep -v '^ *+' conftest.er1 >conftest.err
30052 rm -f conftest.er1
30053 cat conftest.err >&5
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } && {
30056 test -z "$ac_c_werror_flag" ||
30057 test ! -s conftest.err
30058 } && test -s conftest.$ac_objext; then
30059 ac_header_compiler=yes
30060 else
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_header_compiler=no
30067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30069 echo "${ECHO_T}$ac_header_compiler" >&6; }
30071 # Is the header present?
30072 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
30073 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
30074 cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h. */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h. */
30080 #include <${TERMCAP_DIR}/include/>
30081 _ACEOF
30082 if { (ac_try="$ac_cpp conftest.$ac_ext"
30083 case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30086 esac
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30089 ac_status=$?
30090 grep -v '^ *+' conftest.er1 >conftest.err
30091 rm -f conftest.er1
30092 cat conftest.err >&5
30093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094 (exit $ac_status); } >/dev/null && {
30095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30096 test ! -s conftest.err
30097 }; then
30098 ac_header_preproc=yes
30099 else
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ac_header_preproc=no
30106 rm -f conftest.err conftest.$ac_ext
30107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30108 echo "${ECHO_T}$ac_header_preproc" >&6; }
30110 # So? What about this header?
30111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30112 yes:no: )
30113 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
30114 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
30116 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
30117 ac_header_preproc=yes
30119 no:yes:* )
30120 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
30121 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
30122 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
30123 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
30124 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
30125 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
30126 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
30127 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
30128 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
30129 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
30130 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
30131 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
30132 ( cat <<\_ASBOX
30133 ## ------------------------------- ##
30134 ## Report this to www.asterisk.org ##
30135 ## ------------------------------- ##
30136 _ASBOX
30137 ) | sed "s/^/$as_me: WARNING: /" >&2
30139 esac
30140 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
30141 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
30142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30144 else
30145 eval "$as_ac_Header=\$ac_header_preproc"
30147 ac_res=`eval echo '${'$as_ac_Header'}'`
30148 { echo "$as_me:$LINENO: result: $ac_res" >&5
30149 echo "${ECHO_T}$ac_res" >&6; }
30152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30153 TERMCAP_HEADER_FOUND=1
30154 else
30155 TERMCAP_HEADER_FOUND=0
30160 CPPFLAGS="${saved_cppflags}"
30161 else
30162 if test "x" != "x" ; then
30163 if test "${ac_cv_header_+set}" = set; then
30164 { echo "$as_me:$LINENO: checking for " >&5
30165 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30166 if test "${ac_cv_header_+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30169 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30170 echo "${ECHO_T}$ac_cv_header_" >&6; }
30171 else
30172 # Is the header compilable?
30173 { echo "$as_me:$LINENO: checking usability" >&5
30174 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30175 cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h. */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 $ac_includes_default
30182 #include <>
30183 _ACEOF
30184 rm -f conftest.$ac_objext
30185 if { (ac_try="$ac_compile"
30186 case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30189 esac
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_compile") 2>conftest.er1
30192 ac_status=$?
30193 grep -v '^ *+' conftest.er1 >conftest.err
30194 rm -f conftest.er1
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } && {
30198 test -z "$ac_c_werror_flag" ||
30199 test ! -s conftest.err
30200 } && test -s conftest.$ac_objext; then
30201 ac_header_compiler=yes
30202 else
30203 echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30206 ac_header_compiler=no
30209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30211 echo "${ECHO_T}$ac_header_compiler" >&6; }
30213 # Is the header present?
30214 { echo "$as_me:$LINENO: checking presence" >&5
30215 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30216 cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h. */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h. */
30222 #include <>
30223 _ACEOF
30224 if { (ac_try="$ac_cpp conftest.$ac_ext"
30225 case "(($ac_try" in
30226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227 *) ac_try_echo=$ac_try;;
30228 esac
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30231 ac_status=$?
30232 grep -v '^ *+' conftest.er1 >conftest.err
30233 rm -f conftest.er1
30234 cat conftest.err >&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); } >/dev/null && {
30237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30238 test ! -s conftest.err
30239 }; then
30240 ac_header_preproc=yes
30241 else
30242 echo "$as_me: failed program was:" >&5
30243 sed 's/^/| /' conftest.$ac_ext >&5
30245 ac_header_preproc=no
30248 rm -f conftest.err conftest.$ac_ext
30249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30250 echo "${ECHO_T}$ac_header_preproc" >&6; }
30252 # So? What about this header?
30253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30254 yes:no: )
30255 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30256 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30257 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30258 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30259 ac_header_preproc=yes
30261 no:yes:* )
30262 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30263 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30264 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30265 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30266 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30267 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30268 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30269 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30271 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30273 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30274 ( cat <<\_ASBOX
30275 ## ------------------------------- ##
30276 ## Report this to www.asterisk.org ##
30277 ## ------------------------------- ##
30278 _ASBOX
30279 ) | sed "s/^/$as_me: WARNING: /" >&2
30281 esac
30282 { echo "$as_me:$LINENO: checking for " >&5
30283 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30284 if test "${ac_cv_header_+set}" = set; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30286 else
30287 ac_cv_header_=$ac_header_preproc
30289 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30290 echo "${ECHO_T}$ac_cv_header_" >&6; }
30293 if test $ac_cv_header_ = yes; then
30294 TERMCAP_HEADER_FOUND=1
30295 else
30296 TERMCAP_HEADER_FOUND=0
30302 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
30303 if test -n "${TERMCAP_MANDATORY}" ;
30304 then
30305 { echo "$as_me:$LINENO: ***" >&5
30306 echo "$as_me: ***" >&6;}
30307 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
30308 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
30309 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
30310 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
30311 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
30312 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
30313 exit 1
30315 TERMCAP_LIB=""
30316 TERMCAP_INCLUDE=""
30317 PBX_TERMCAP=0
30318 else
30319 PBX_TERMCAP=1
30321 cat >>confdefs.h <<_ACEOF
30322 #define HAVE_TERMCAP 1
30323 _ACEOF
30326 elif test -n "${TERMCAP_MANDATORY}";
30327 then
30328 { echo "$as_me:$LINENO: ***" >&5
30329 echo "$as_me: ***" >&6;}
30330 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
30331 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
30332 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30333 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30334 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
30335 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
30336 exit 1
30342 if test "${USE_TINFO}" != "no"; then
30343 pbxlibdir=""
30344 if test "x${TINFO_DIR}" != "x"; then
30345 if test -d ${TINFO_DIR}/lib; then
30346 pbxlibdir="-L${TINFO_DIR}/lib"
30347 else
30348 pbxlibdir="-L${TINFO_DIR}"
30351 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30352 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
30353 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30355 else
30356 ac_check_lib_save_LIBS=$LIBS
30357 LIBS="-ltinfo ${pbxlibdir} $LIBS"
30358 cat >conftest.$ac_ext <<_ACEOF
30359 /* confdefs.h. */
30360 _ACEOF
30361 cat confdefs.h >>conftest.$ac_ext
30362 cat >>conftest.$ac_ext <<_ACEOF
30363 /* end confdefs.h. */
30365 /* Override any GCC internal prototype to avoid an error.
30366 Use char because int might match the return type of a GCC
30367 builtin and then its argument prototype would still apply. */
30368 #ifdef __cplusplus
30369 extern "C"
30370 #endif
30371 char tgetent ();
30373 main ()
30375 return tgetent ();
30377 return 0;
30379 _ACEOF
30380 rm -f conftest.$ac_objext conftest$ac_exeext
30381 if { (ac_try="$ac_link"
30382 case "(($ac_try" in
30383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30384 *) ac_try_echo=$ac_try;;
30385 esac
30386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30387 (eval "$ac_link") 2>conftest.er1
30388 ac_status=$?
30389 grep -v '^ *+' conftest.er1 >conftest.err
30390 rm -f conftest.er1
30391 cat conftest.err >&5
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); } && {
30394 test -z "$ac_c_werror_flag" ||
30395 test ! -s conftest.err
30396 } && test -s conftest$ac_exeext &&
30397 $as_test_x conftest$ac_exeext; then
30398 ac_cv_lib_tinfo_tgetent=yes
30399 else
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403 ac_cv_lib_tinfo_tgetent=no
30406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30407 conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30410 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30411 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
30412 if test $ac_cv_lib_tinfo_tgetent = yes; then
30413 AST_TINFO_FOUND=yes
30414 else
30415 AST_TINFO_FOUND=no
30419 if test "${AST_TINFO_FOUND}" = "yes"; then
30420 TINFO_LIB="-ltinfo "
30421 TINFO_HEADER_FOUND="1"
30422 if test "x${TINFO_DIR}" != "x"; then
30423 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
30424 TINFO_INCLUDE="-I${TINFO_DIR}/include"
30425 saved_cppflags="${CPPFLAGS}"
30426 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
30427 if test "x" != "x" ; then
30428 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
30429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30430 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
30431 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
30432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30435 ac_res=`eval echo '${'$as_ac_Header'}'`
30436 { echo "$as_me:$LINENO: result: $ac_res" >&5
30437 echo "${ECHO_T}$ac_res" >&6; }
30438 else
30439 # Is the header compilable?
30440 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
30441 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
30442 cat >conftest.$ac_ext <<_ACEOF
30443 /* confdefs.h. */
30444 _ACEOF
30445 cat confdefs.h >>conftest.$ac_ext
30446 cat >>conftest.$ac_ext <<_ACEOF
30447 /* end confdefs.h. */
30448 $ac_includes_default
30449 #include <${TINFO_DIR}/include/>
30450 _ACEOF
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455 *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30459 ac_status=$?
30460 grep -v '^ *+' conftest.er1 >conftest.err
30461 rm -f conftest.er1
30462 cat conftest.err >&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } && {
30465 test -z "$ac_c_werror_flag" ||
30466 test ! -s conftest.err
30467 } && test -s conftest.$ac_objext; then
30468 ac_header_compiler=yes
30469 else
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30473 ac_header_compiler=no
30476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30478 echo "${ECHO_T}$ac_header_compiler" >&6; }
30480 # Is the header present?
30481 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
30482 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
30483 cat >conftest.$ac_ext <<_ACEOF
30484 /* confdefs.h. */
30485 _ACEOF
30486 cat confdefs.h >>conftest.$ac_ext
30487 cat >>conftest.$ac_ext <<_ACEOF
30488 /* end confdefs.h. */
30489 #include <${TINFO_DIR}/include/>
30490 _ACEOF
30491 if { (ac_try="$ac_cpp conftest.$ac_ext"
30492 case "(($ac_try" in
30493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494 *) ac_try_echo=$ac_try;;
30495 esac
30496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30498 ac_status=$?
30499 grep -v '^ *+' conftest.er1 >conftest.err
30500 rm -f conftest.er1
30501 cat conftest.err >&5
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); } >/dev/null && {
30504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30505 test ! -s conftest.err
30506 }; then
30507 ac_header_preproc=yes
30508 else
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30512 ac_header_preproc=no
30515 rm -f conftest.err conftest.$ac_ext
30516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30517 echo "${ECHO_T}$ac_header_preproc" >&6; }
30519 # So? What about this header?
30520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30521 yes:no: )
30522 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
30523 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
30525 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
30526 ac_header_preproc=yes
30528 no:yes:* )
30529 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
30530 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
30531 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
30532 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
30533 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
30534 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
30535 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
30536 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
30537 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
30538 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
30539 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
30540 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
30541 ( cat <<\_ASBOX
30542 ## ------------------------------- ##
30543 ## Report this to www.asterisk.org ##
30544 ## ------------------------------- ##
30545 _ASBOX
30546 ) | sed "s/^/$as_me: WARNING: /" >&2
30548 esac
30549 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
30550 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
30551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30552 echo $ECHO_N "(cached) $ECHO_C" >&6
30553 else
30554 eval "$as_ac_Header=\$ac_header_preproc"
30556 ac_res=`eval echo '${'$as_ac_Header'}'`
30557 { echo "$as_me:$LINENO: result: $ac_res" >&5
30558 echo "${ECHO_T}$ac_res" >&6; }
30561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30562 TINFO_HEADER_FOUND=1
30563 else
30564 TINFO_HEADER_FOUND=0
30569 CPPFLAGS="${saved_cppflags}"
30570 else
30571 if test "x" != "x" ; then
30572 if test "${ac_cv_header_+set}" = set; then
30573 { echo "$as_me:$LINENO: checking for " >&5
30574 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30575 if test "${ac_cv_header_+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30578 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30579 echo "${ECHO_T}$ac_cv_header_" >&6; }
30580 else
30581 # Is the header compilable?
30582 { echo "$as_me:$LINENO: checking usability" >&5
30583 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30584 cat >conftest.$ac_ext <<_ACEOF
30585 /* confdefs.h. */
30586 _ACEOF
30587 cat confdefs.h >>conftest.$ac_ext
30588 cat >>conftest.$ac_ext <<_ACEOF
30589 /* end confdefs.h. */
30590 $ac_includes_default
30591 #include <>
30592 _ACEOF
30593 rm -f conftest.$ac_objext
30594 if { (ac_try="$ac_compile"
30595 case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30598 esac
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_compile") 2>conftest.er1
30601 ac_status=$?
30602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } && {
30607 test -z "$ac_c_werror_flag" ||
30608 test ! -s conftest.err
30609 } && test -s conftest.$ac_objext; then
30610 ac_header_compiler=yes
30611 else
30612 echo "$as_me: failed program was:" >&5
30613 sed 's/^/| /' conftest.$ac_ext >&5
30615 ac_header_compiler=no
30618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30620 echo "${ECHO_T}$ac_header_compiler" >&6; }
30622 # Is the header present?
30623 { echo "$as_me:$LINENO: checking presence" >&5
30624 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30625 cat >conftest.$ac_ext <<_ACEOF
30626 /* confdefs.h. */
30627 _ACEOF
30628 cat confdefs.h >>conftest.$ac_ext
30629 cat >>conftest.$ac_ext <<_ACEOF
30630 /* end confdefs.h. */
30631 #include <>
30632 _ACEOF
30633 if { (ac_try="$ac_cpp conftest.$ac_ext"
30634 case "(($ac_try" in
30635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30637 esac
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30640 ac_status=$?
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } >/dev/null && {
30646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30647 test ! -s conftest.err
30648 }; then
30649 ac_header_preproc=yes
30650 else
30651 echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30654 ac_header_preproc=no
30657 rm -f conftest.err conftest.$ac_ext
30658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30659 echo "${ECHO_T}$ac_header_preproc" >&6; }
30661 # So? What about this header?
30662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30663 yes:no: )
30664 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30665 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30666 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30667 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30668 ac_header_preproc=yes
30670 no:yes:* )
30671 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30672 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30673 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30674 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30676 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30677 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30678 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30679 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30680 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30681 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30682 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30683 ( cat <<\_ASBOX
30684 ## ------------------------------- ##
30685 ## Report this to www.asterisk.org ##
30686 ## ------------------------------- ##
30687 _ASBOX
30688 ) | sed "s/^/$as_me: WARNING: /" >&2
30690 esac
30691 { echo "$as_me:$LINENO: checking for " >&5
30692 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30693 if test "${ac_cv_header_+set}" = set; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30695 else
30696 ac_cv_header_=$ac_header_preproc
30698 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30699 echo "${ECHO_T}$ac_cv_header_" >&6; }
30702 if test $ac_cv_header_ = yes; then
30703 TINFO_HEADER_FOUND=1
30704 else
30705 TINFO_HEADER_FOUND=0
30711 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
30712 if test -n "${TINFO_MANDATORY}" ;
30713 then
30714 { echo "$as_me:$LINENO: ***" >&5
30715 echo "$as_me: ***" >&6;}
30716 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
30717 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
30718 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
30719 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
30720 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30721 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30722 exit 1
30724 TINFO_LIB=""
30725 TINFO_INCLUDE=""
30726 PBX_TINFO=0
30727 else
30728 PBX_TINFO=1
30730 cat >>confdefs.h <<_ACEOF
30731 #define HAVE_TINFO 1
30732 _ACEOF
30735 elif test -n "${TINFO_MANDATORY}";
30736 then
30737 { echo "$as_me:$LINENO: ***" >&5
30738 echo "$as_me: ***" >&6;}
30739 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
30740 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
30741 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30742 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30743 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
30744 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
30745 exit 1
30750 if test "${host_os}" != "linux-gnu" ; then
30751 tonezone_extra="-lm"
30755 if test "${USE_TONEZONE}" != "no"; then
30756 pbxlibdir=""
30757 if test "x${TONEZONE_DIR}" != "x"; then
30758 if test -d ${TONEZONE_DIR}/lib; then
30759 pbxlibdir="-L${TONEZONE_DIR}/lib"
30760 else
30761 pbxlibdir="-L${TONEZONE_DIR}"
30764 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
30765 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
30766 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
30767 echo $ECHO_N "(cached) $ECHO_C" >&6
30768 else
30769 ac_check_lib_save_LIBS=$LIBS
30770 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
30771 cat >conftest.$ac_ext <<_ACEOF
30772 /* confdefs.h. */
30773 _ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30778 /* Override any GCC internal prototype to avoid an error.
30779 Use char because int might match the return type of a GCC
30780 builtin and then its argument prototype would still apply. */
30781 #ifdef __cplusplus
30782 extern "C"
30783 #endif
30784 char tone_zone_find ();
30786 main ()
30788 return tone_zone_find ();
30790 return 0;
30792 _ACEOF
30793 rm -f conftest.$ac_objext conftest$ac_exeext
30794 if { (ac_try="$ac_link"
30795 case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798 esac
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_link") 2>conftest.er1
30801 ac_status=$?
30802 grep -v '^ *+' conftest.er1 >conftest.err
30803 rm -f conftest.er1
30804 cat conftest.err >&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); } && {
30807 test -z "$ac_c_werror_flag" ||
30808 test ! -s conftest.err
30809 } && test -s conftest$ac_exeext &&
30810 $as_test_x conftest$ac_exeext; then
30811 ac_cv_lib_tonezone_tone_zone_find=yes
30812 else
30813 echo "$as_me: failed program was:" >&5
30814 sed 's/^/| /' conftest.$ac_ext >&5
30816 ac_cv_lib_tonezone_tone_zone_find=no
30819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30820 conftest$ac_exeext conftest.$ac_ext
30821 LIBS=$ac_check_lib_save_LIBS
30823 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
30824 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
30825 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
30826 AST_TONEZONE_FOUND=yes
30827 else
30828 AST_TONEZONE_FOUND=no
30832 if test "${AST_TONEZONE_FOUND}" = "yes"; then
30833 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
30834 TONEZONE_HEADER_FOUND="1"
30835 if test "x${TONEZONE_DIR}" != "x"; then
30836 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
30837 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
30838 saved_cppflags="${CPPFLAGS}"
30839 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
30840 if test "xzaptel/tonezone.h" != "x" ; then
30841 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
30842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30844 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30848 ac_res=`eval echo '${'$as_ac_Header'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30851 else
30852 # Is the header compilable?
30853 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
30854 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
30855 cat >conftest.$ac_ext <<_ACEOF
30856 /* confdefs.h. */
30857 _ACEOF
30858 cat confdefs.h >>conftest.$ac_ext
30859 cat >>conftest.$ac_ext <<_ACEOF
30860 /* end confdefs.h. */
30861 $ac_includes_default
30862 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30863 _ACEOF
30864 rm -f conftest.$ac_objext
30865 if { (ac_try="$ac_compile"
30866 case "(($ac_try" in
30867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868 *) ac_try_echo=$ac_try;;
30869 esac
30870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871 (eval "$ac_compile") 2>conftest.er1
30872 ac_status=$?
30873 grep -v '^ *+' conftest.er1 >conftest.err
30874 rm -f conftest.er1
30875 cat conftest.err >&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } && {
30878 test -z "$ac_c_werror_flag" ||
30879 test ! -s conftest.err
30880 } && test -s conftest.$ac_objext; then
30881 ac_header_compiler=yes
30882 else
30883 echo "$as_me: failed program was:" >&5
30884 sed 's/^/| /' conftest.$ac_ext >&5
30886 ac_header_compiler=no
30889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30891 echo "${ECHO_T}$ac_header_compiler" >&6; }
30893 # Is the header present?
30894 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
30895 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
30896 cat >conftest.$ac_ext <<_ACEOF
30897 /* confdefs.h. */
30898 _ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h. */
30902 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
30903 _ACEOF
30904 if { (ac_try="$ac_cpp conftest.$ac_ext"
30905 case "(($ac_try" in
30906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907 *) ac_try_echo=$ac_try;;
30908 esac
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30911 ac_status=$?
30912 grep -v '^ *+' conftest.er1 >conftest.err
30913 rm -f conftest.er1
30914 cat conftest.err >&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); } >/dev/null && {
30917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30918 test ! -s conftest.err
30919 }; then
30920 ac_header_preproc=yes
30921 else
30922 echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30925 ac_header_preproc=no
30928 rm -f conftest.err conftest.$ac_ext
30929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30930 echo "${ECHO_T}$ac_header_preproc" >&6; }
30932 # So? What about this header?
30933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30934 yes:no: )
30935 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
30936 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30937 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
30938 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
30939 ac_header_preproc=yes
30941 no:yes:* )
30942 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
30943 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
30944 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
30945 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
30946 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
30947 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
30948 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
30949 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
30951 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
30952 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
30953 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
30954 ( cat <<\_ASBOX
30955 ## ------------------------------- ##
30956 ## Report this to www.asterisk.org ##
30957 ## ------------------------------- ##
30958 _ASBOX
30959 ) | sed "s/^/$as_me: WARNING: /" >&2
30961 esac
30962 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
30963 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
30964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30965 echo $ECHO_N "(cached) $ECHO_C" >&6
30966 else
30967 eval "$as_ac_Header=\$ac_header_preproc"
30969 ac_res=`eval echo '${'$as_ac_Header'}'`
30970 { echo "$as_me:$LINENO: result: $ac_res" >&5
30971 echo "${ECHO_T}$ac_res" >&6; }
30974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30975 TONEZONE_HEADER_FOUND=1
30976 else
30977 TONEZONE_HEADER_FOUND=0
30982 CPPFLAGS="${saved_cppflags}"
30983 else
30984 if test "xzaptel/tonezone.h" != "x" ; then
30985 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30986 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
30987 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
30988 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
30992 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
30993 else
30994 # Is the header compilable?
30995 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
30996 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
30997 cat >conftest.$ac_ext <<_ACEOF
30998 /* confdefs.h. */
30999 _ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31003 $ac_includes_default
31004 #include <zaptel/tonezone.h>
31005 _ACEOF
31006 rm -f conftest.$ac_objext
31007 if { (ac_try="$ac_compile"
31008 case "(($ac_try" in
31009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31011 esac
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_compile") 2>conftest.er1
31014 ac_status=$?
31015 grep -v '^ *+' conftest.er1 >conftest.err
31016 rm -f conftest.er1
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } && {
31020 test -z "$ac_c_werror_flag" ||
31021 test ! -s conftest.err
31022 } && test -s conftest.$ac_objext; then
31023 ac_header_compiler=yes
31024 else
31025 echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31028 ac_header_compiler=no
31031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31033 echo "${ECHO_T}$ac_header_compiler" >&6; }
31035 # Is the header present?
31036 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
31037 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
31038 cat >conftest.$ac_ext <<_ACEOF
31039 /* confdefs.h. */
31040 _ACEOF
31041 cat confdefs.h >>conftest.$ac_ext
31042 cat >>conftest.$ac_ext <<_ACEOF
31043 /* end confdefs.h. */
31044 #include <zaptel/tonezone.h>
31045 _ACEOF
31046 if { (ac_try="$ac_cpp conftest.$ac_ext"
31047 case "(($ac_try" in
31048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049 *) ac_try_echo=$ac_try;;
31050 esac
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31053 ac_status=$?
31054 grep -v '^ *+' conftest.er1 >conftest.err
31055 rm -f conftest.er1
31056 cat conftest.err >&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } >/dev/null && {
31059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31060 test ! -s conftest.err
31061 }; then
31062 ac_header_preproc=yes
31063 else
31064 echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.$ac_ext >&5
31067 ac_header_preproc=no
31070 rm -f conftest.err conftest.$ac_ext
31071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31072 echo "${ECHO_T}$ac_header_preproc" >&6; }
31074 # So? What about this header?
31075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31076 yes:no: )
31077 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
31078 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31079 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
31080 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
31081 ac_header_preproc=yes
31083 no:yes:* )
31084 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
31085 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
31086 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
31087 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
31088 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
31089 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
31090 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
31091 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
31092 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
31093 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
31094 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
31095 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
31096 ( cat <<\_ASBOX
31097 ## ------------------------------- ##
31098 ## Report this to www.asterisk.org ##
31099 ## ------------------------------- ##
31100 _ASBOX
31101 ) | sed "s/^/$as_me: WARNING: /" >&2
31103 esac
31104 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
31105 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
31106 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31107 echo $ECHO_N "(cached) $ECHO_C" >&6
31108 else
31109 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
31111 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
31112 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
31115 if test $ac_cv_header_zaptel_tonezone_h = yes; then
31116 TONEZONE_HEADER_FOUND=1
31117 else
31118 TONEZONE_HEADER_FOUND=0
31124 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
31125 if test -n "${TONEZONE_MANDATORY}" ;
31126 then
31127 { echo "$as_me:$LINENO: ***" >&5
31128 echo "$as_me: ***" >&6;}
31129 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
31130 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
31131 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
31132 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
31133 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
31134 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
31135 exit 1
31137 TONEZONE_LIB=""
31138 TONEZONE_INCLUDE=""
31139 PBX_TONEZONE=0
31140 else
31141 PBX_TONEZONE=1
31143 cat >>confdefs.h <<_ACEOF
31144 #define HAVE_TONEZONE 1
31145 _ACEOF
31148 elif test -n "${TONEZONE_MANDATORY}";
31149 then
31150 { echo "$as_me:$LINENO: ***" >&5
31151 echo "$as_me: ***" >&6;}
31152 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
31153 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
31154 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31155 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31156 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
31157 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
31158 exit 1
31164 if test "${USE_USB}" != "no"; then
31165 pbxlibdir=""
31166 if test "x${USB_DIR}" != "x"; then
31167 if test -d ${USB_DIR}/lib; then
31168 pbxlibdir="-L${USB_DIR}/lib"
31169 else
31170 pbxlibdir="-L${USB_DIR}"
31173 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
31174 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
31175 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31177 else
31178 ac_check_lib_save_LIBS=$LIBS
31179 LIBS="-lusb ${pbxlibdir} $LIBS"
31180 cat >conftest.$ac_ext <<_ACEOF
31181 /* confdefs.h. */
31182 _ACEOF
31183 cat confdefs.h >>conftest.$ac_ext
31184 cat >>conftest.$ac_ext <<_ACEOF
31185 /* end confdefs.h. */
31187 /* Override any GCC internal prototype to avoid an error.
31188 Use char because int might match the return type of a GCC
31189 builtin and then its argument prototype would still apply. */
31190 #ifdef __cplusplus
31191 extern "C"
31192 #endif
31193 char usb_init ();
31195 main ()
31197 return usb_init ();
31199 return 0;
31201 _ACEOF
31202 rm -f conftest.$ac_objext conftest$ac_exeext
31203 if { (ac_try="$ac_link"
31204 case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31207 esac
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_link") 2>conftest.er1
31210 ac_status=$?
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
31213 cat conftest.err >&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } && {
31216 test -z "$ac_c_werror_flag" ||
31217 test ! -s conftest.err
31218 } && test -s conftest$ac_exeext &&
31219 $as_test_x conftest$ac_exeext; then
31220 ac_cv_lib_usb_usb_init=yes
31221 else
31222 echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31225 ac_cv_lib_usb_usb_init=no
31228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31229 conftest$ac_exeext conftest.$ac_ext
31230 LIBS=$ac_check_lib_save_LIBS
31232 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
31233 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
31234 if test $ac_cv_lib_usb_usb_init = yes; then
31235 AST_USB_FOUND=yes
31236 else
31237 AST_USB_FOUND=no
31241 if test "${AST_USB_FOUND}" = "yes"; then
31242 USB_LIB="-lusb "
31243 USB_HEADER_FOUND="1"
31244 if test "x${USB_DIR}" != "x"; then
31245 USB_LIB="${pbxlibdir} ${USB_LIB}"
31246 USB_INCLUDE="-I${USB_DIR}/include"
31247 saved_cppflags="${CPPFLAGS}"
31248 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
31249 if test "xusb.h" != "x" ; then
31250 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
31251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31252 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
31253 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
31254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31257 ac_res=`eval echo '${'$as_ac_Header'}'`
31258 { echo "$as_me:$LINENO: result: $ac_res" >&5
31259 echo "${ECHO_T}$ac_res" >&6; }
31260 else
31261 # Is the header compilable?
31262 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
31263 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
31264 cat >conftest.$ac_ext <<_ACEOF
31265 /* confdefs.h. */
31266 _ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31270 $ac_includes_default
31271 #include <${USB_DIR}/include/usb.h>
31272 _ACEOF
31273 rm -f conftest.$ac_objext
31274 if { (ac_try="$ac_compile"
31275 case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31278 esac
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_compile") 2>conftest.er1
31281 ac_status=$?
31282 grep -v '^ *+' conftest.er1 >conftest.err
31283 rm -f conftest.er1
31284 cat conftest.err >&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } && {
31287 test -z "$ac_c_werror_flag" ||
31288 test ! -s conftest.err
31289 } && test -s conftest.$ac_objext; then
31290 ac_header_compiler=yes
31291 else
31292 echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.$ac_ext >&5
31295 ac_header_compiler=no
31298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31300 echo "${ECHO_T}$ac_header_compiler" >&6; }
31302 # Is the header present?
31303 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
31304 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
31305 cat >conftest.$ac_ext <<_ACEOF
31306 /* confdefs.h. */
31307 _ACEOF
31308 cat confdefs.h >>conftest.$ac_ext
31309 cat >>conftest.$ac_ext <<_ACEOF
31310 /* end confdefs.h. */
31311 #include <${USB_DIR}/include/usb.h>
31312 _ACEOF
31313 if { (ac_try="$ac_cpp conftest.$ac_ext"
31314 case "(($ac_try" in
31315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31316 *) ac_try_echo=$ac_try;;
31317 esac
31318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31320 ac_status=$?
31321 grep -v '^ *+' conftest.er1 >conftest.err
31322 rm -f conftest.er1
31323 cat conftest.err >&5
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } >/dev/null && {
31326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31327 test ! -s conftest.err
31328 }; then
31329 ac_header_preproc=yes
31330 else
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31334 ac_header_preproc=no
31337 rm -f conftest.err conftest.$ac_ext
31338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31339 echo "${ECHO_T}$ac_header_preproc" >&6; }
31341 # So? What about this header?
31342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31343 yes:no: )
31344 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
31345 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31346 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
31347 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
31348 ac_header_preproc=yes
31350 no:yes:* )
31351 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
31352 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
31353 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
31354 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
31355 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
31356 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
31357 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
31358 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
31359 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
31360 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
31361 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
31362 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
31363 ( cat <<\_ASBOX
31364 ## ------------------------------- ##
31365 ## Report this to www.asterisk.org ##
31366 ## ------------------------------- ##
31367 _ASBOX
31368 ) | sed "s/^/$as_me: WARNING: /" >&2
31370 esac
31371 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
31372 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
31373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31374 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 else
31376 eval "$as_ac_Header=\$ac_header_preproc"
31378 ac_res=`eval echo '${'$as_ac_Header'}'`
31379 { echo "$as_me:$LINENO: result: $ac_res" >&5
31380 echo "${ECHO_T}$ac_res" >&6; }
31383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31384 USB_HEADER_FOUND=1
31385 else
31386 USB_HEADER_FOUND=0
31391 CPPFLAGS="${saved_cppflags}"
31392 else
31393 if test "xusb.h" != "x" ; then
31394 if test "${ac_cv_header_usb_h+set}" = set; then
31395 { echo "$as_me:$LINENO: checking for usb.h" >&5
31396 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
31397 if test "${ac_cv_header_usb_h+set}" = set; then
31398 echo $ECHO_N "(cached) $ECHO_C" >&6
31400 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
31401 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
31402 else
31403 # Is the header compilable?
31404 { echo "$as_me:$LINENO: checking usb.h usability" >&5
31405 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
31406 cat >conftest.$ac_ext <<_ACEOF
31407 /* confdefs.h. */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h. */
31412 $ac_includes_default
31413 #include <usb.h>
31414 _ACEOF
31415 rm -f conftest.$ac_objext
31416 if { (ac_try="$ac_compile"
31417 case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31420 esac
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_compile") 2>conftest.er1
31423 ac_status=$?
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } && {
31429 test -z "$ac_c_werror_flag" ||
31430 test ! -s conftest.err
31431 } && test -s conftest.$ac_objext; then
31432 ac_header_compiler=yes
31433 else
31434 echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.$ac_ext >&5
31437 ac_header_compiler=no
31440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31442 echo "${ECHO_T}$ac_header_compiler" >&6; }
31444 # Is the header present?
31445 { echo "$as_me:$LINENO: checking usb.h presence" >&5
31446 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
31447 cat >conftest.$ac_ext <<_ACEOF
31448 /* confdefs.h. */
31449 _ACEOF
31450 cat confdefs.h >>conftest.$ac_ext
31451 cat >>conftest.$ac_ext <<_ACEOF
31452 /* end confdefs.h. */
31453 #include <usb.h>
31454 _ACEOF
31455 if { (ac_try="$ac_cpp conftest.$ac_ext"
31456 case "(($ac_try" in
31457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458 *) ac_try_echo=$ac_try;;
31459 esac
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31462 ac_status=$?
31463 grep -v '^ *+' conftest.er1 >conftest.err
31464 rm -f conftest.er1
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } >/dev/null && {
31468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31469 test ! -s conftest.err
31470 }; then
31471 ac_header_preproc=yes
31472 else
31473 echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31476 ac_header_preproc=no
31479 rm -f conftest.err conftest.$ac_ext
31480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31481 echo "${ECHO_T}$ac_header_preproc" >&6; }
31483 # So? What about this header?
31484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31485 yes:no: )
31486 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
31487 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31488 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
31489 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
31490 ac_header_preproc=yes
31492 no:yes:* )
31493 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
31494 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
31495 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
31496 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
31497 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
31498 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
31499 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
31500 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
31501 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
31502 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
31504 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
31505 ( cat <<\_ASBOX
31506 ## ------------------------------- ##
31507 ## Report this to www.asterisk.org ##
31508 ## ------------------------------- ##
31509 _ASBOX
31510 ) | sed "s/^/$as_me: WARNING: /" >&2
31512 esac
31513 { echo "$as_me:$LINENO: checking for usb.h" >&5
31514 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
31515 if test "${ac_cv_header_usb_h+set}" = set; then
31516 echo $ECHO_N "(cached) $ECHO_C" >&6
31517 else
31518 ac_cv_header_usb_h=$ac_header_preproc
31520 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
31521 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
31524 if test $ac_cv_header_usb_h = yes; then
31525 USB_HEADER_FOUND=1
31526 else
31527 USB_HEADER_FOUND=0
31533 if test "x${USB_HEADER_FOUND}" = "x0" ; then
31534 if test -n "${USB_MANDATORY}" ;
31535 then
31536 { echo "$as_me:$LINENO: ***" >&5
31537 echo "$as_me: ***" >&6;}
31538 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
31539 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
31540 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
31541 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
31542 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
31543 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
31544 exit 1
31546 USB_LIB=""
31547 USB_INCLUDE=""
31548 PBX_USB=0
31549 else
31550 PBX_USB=1
31552 cat >>confdefs.h <<_ACEOF
31553 #define HAVE_USB 1
31554 _ACEOF
31557 elif test -n "${USB_MANDATORY}";
31558 then
31559 { echo "$as_me:$LINENO: ***" >&5
31560 echo "$as_me: ***" >&6;}
31561 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
31562 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
31563 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31564 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31565 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
31566 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
31567 exit 1
31573 if test "${USE_VORBIS}" != "no"; then
31574 pbxlibdir=""
31575 if test "x${VORBIS_DIR}" != "x"; then
31576 if test -d ${VORBIS_DIR}/lib; then
31577 pbxlibdir="-L${VORBIS_DIR}/lib"
31578 else
31579 pbxlibdir="-L${VORBIS_DIR}"
31582 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
31583 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
31584 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
31585 echo $ECHO_N "(cached) $ECHO_C" >&6
31586 else
31587 ac_check_lib_save_LIBS=$LIBS
31588 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
31589 cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h. */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31596 /* Override any GCC internal prototype to avoid an error.
31597 Use char because int might match the return type of a GCC
31598 builtin and then its argument prototype would still apply. */
31599 #ifdef __cplusplus
31600 extern "C"
31601 #endif
31602 char vorbis_info_init ();
31604 main ()
31606 return vorbis_info_init ();
31608 return 0;
31610 _ACEOF
31611 rm -f conftest.$ac_objext conftest$ac_exeext
31612 if { (ac_try="$ac_link"
31613 case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31616 esac
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_link") 2>conftest.er1
31619 ac_status=$?
31620 grep -v '^ *+' conftest.er1 >conftest.err
31621 rm -f conftest.er1
31622 cat conftest.err >&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } && {
31625 test -z "$ac_c_werror_flag" ||
31626 test ! -s conftest.err
31627 } && test -s conftest$ac_exeext &&
31628 $as_test_x conftest$ac_exeext; then
31629 ac_cv_lib_vorbis_vorbis_info_init=yes
31630 else
31631 echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.$ac_ext >&5
31634 ac_cv_lib_vorbis_vorbis_info_init=no
31637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31638 conftest$ac_exeext conftest.$ac_ext
31639 LIBS=$ac_check_lib_save_LIBS
31641 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
31642 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
31643 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
31644 AST_VORBIS_FOUND=yes
31645 else
31646 AST_VORBIS_FOUND=no
31650 if test "${AST_VORBIS_FOUND}" = "yes"; then
31651 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
31652 VORBIS_HEADER_FOUND="1"
31653 if test "x${VORBIS_DIR}" != "x"; then
31654 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
31655 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
31656 saved_cppflags="${CPPFLAGS}"
31657 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
31658 if test "xvorbis/codec.h" != "x" ; then
31659 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
31660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31661 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
31662 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
31663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 ac_res=`eval echo '${'$as_ac_Header'}'`
31667 { echo "$as_me:$LINENO: result: $ac_res" >&5
31668 echo "${ECHO_T}$ac_res" >&6; }
31669 else
31670 # Is the header compilable?
31671 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
31672 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
31673 cat >conftest.$ac_ext <<_ACEOF
31674 /* confdefs.h. */
31675 _ACEOF
31676 cat confdefs.h >>conftest.$ac_ext
31677 cat >>conftest.$ac_ext <<_ACEOF
31678 /* end confdefs.h. */
31679 $ac_includes_default
31680 #include <${VORBIS_DIR}/include/vorbis/codec.h>
31681 _ACEOF
31682 rm -f conftest.$ac_objext
31683 if { (ac_try="$ac_compile"
31684 case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31687 esac
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_compile") 2>conftest.er1
31690 ac_status=$?
31691 grep -v '^ *+' conftest.er1 >conftest.err
31692 rm -f conftest.er1
31693 cat conftest.err >&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } && {
31696 test -z "$ac_c_werror_flag" ||
31697 test ! -s conftest.err
31698 } && test -s conftest.$ac_objext; then
31699 ac_header_compiler=yes
31700 else
31701 echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31704 ac_header_compiler=no
31707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31709 echo "${ECHO_T}$ac_header_compiler" >&6; }
31711 # Is the header present?
31712 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
31713 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
31714 cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h. */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h. */
31720 #include <${VORBIS_DIR}/include/vorbis/codec.h>
31721 _ACEOF
31722 if { (ac_try="$ac_cpp conftest.$ac_ext"
31723 case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31726 esac
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31729 ac_status=$?
31730 grep -v '^ *+' conftest.er1 >conftest.err
31731 rm -f conftest.er1
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } >/dev/null && {
31735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31736 test ! -s conftest.err
31737 }; then
31738 ac_header_preproc=yes
31739 else
31740 echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31743 ac_header_preproc=no
31746 rm -f conftest.err conftest.$ac_ext
31747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31748 echo "${ECHO_T}$ac_header_preproc" >&6; }
31750 # So? What about this header?
31751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31752 yes:no: )
31753 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31754 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31755 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
31756 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
31757 ac_header_preproc=yes
31759 no:yes:* )
31760 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
31761 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
31762 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
31763 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31764 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
31765 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
31766 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31767 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31768 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
31769 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31770 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
31771 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31772 ( cat <<\_ASBOX
31773 ## ------------------------------- ##
31774 ## Report this to www.asterisk.org ##
31775 ## ------------------------------- ##
31776 _ASBOX
31777 ) | sed "s/^/$as_me: WARNING: /" >&2
31779 esac
31780 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
31781 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
31782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31784 else
31785 eval "$as_ac_Header=\$ac_header_preproc"
31787 ac_res=`eval echo '${'$as_ac_Header'}'`
31788 { echo "$as_me:$LINENO: result: $ac_res" >&5
31789 echo "${ECHO_T}$ac_res" >&6; }
31792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31793 VORBIS_HEADER_FOUND=1
31794 else
31795 VORBIS_HEADER_FOUND=0
31800 CPPFLAGS="${saved_cppflags}"
31801 else
31802 if test "xvorbis/codec.h" != "x" ; then
31803 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31804 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31805 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
31806 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31809 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31810 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
31811 else
31812 # Is the header compilable?
31813 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
31814 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
31815 cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h. */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h. */
31821 $ac_includes_default
31822 #include <vorbis/codec.h>
31823 _ACEOF
31824 rm -f conftest.$ac_objext
31825 if { (ac_try="$ac_compile"
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_compile") 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); } && {
31838 test -z "$ac_c_werror_flag" ||
31839 test ! -s conftest.err
31840 } && test -s conftest.$ac_objext; then
31841 ac_header_compiler=yes
31842 else
31843 echo "$as_me: failed program was:" >&5
31844 sed 's/^/| /' conftest.$ac_ext >&5
31846 ac_header_compiler=no
31849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31851 echo "${ECHO_T}$ac_header_compiler" >&6; }
31853 # Is the header present?
31854 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
31855 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
31856 cat >conftest.$ac_ext <<_ACEOF
31857 /* confdefs.h. */
31858 _ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31862 #include <vorbis/codec.h>
31863 _ACEOF
31864 if { (ac_try="$ac_cpp conftest.$ac_ext"
31865 case "(($ac_try" in
31866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31867 *) ac_try_echo=$ac_try;;
31868 esac
31869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31871 ac_status=$?
31872 grep -v '^ *+' conftest.er1 >conftest.err
31873 rm -f conftest.er1
31874 cat conftest.err >&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } >/dev/null && {
31877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31878 test ! -s conftest.err
31879 }; then
31880 ac_header_preproc=yes
31881 else
31882 echo "$as_me: failed program was:" >&5
31883 sed 's/^/| /' conftest.$ac_ext >&5
31885 ac_header_preproc=no
31888 rm -f conftest.err conftest.$ac_ext
31889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31890 echo "${ECHO_T}$ac_header_preproc" >&6; }
31892 # So? What about this header?
31893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31894 yes:no: )
31895 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
31896 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
31898 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
31899 ac_header_preproc=yes
31901 no:yes:* )
31902 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
31903 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
31904 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
31905 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
31906 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
31907 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
31908 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
31909 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
31910 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
31911 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
31912 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
31913 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
31914 ( cat <<\_ASBOX
31915 ## ------------------------------- ##
31916 ## Report this to www.asterisk.org ##
31917 ## ------------------------------- ##
31918 _ASBOX
31919 ) | sed "s/^/$as_me: WARNING: /" >&2
31921 esac
31922 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
31923 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
31924 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927 ac_cv_header_vorbis_codec_h=$ac_header_preproc
31929 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
31930 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
31933 if test $ac_cv_header_vorbis_codec_h = yes; then
31934 VORBIS_HEADER_FOUND=1
31935 else
31936 VORBIS_HEADER_FOUND=0
31942 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
31943 if test -n "${VORBIS_MANDATORY}" ;
31944 then
31945 { echo "$as_me:$LINENO: ***" >&5
31946 echo "$as_me: ***" >&6;}
31947 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
31948 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
31949 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
31950 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
31951 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
31952 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
31953 exit 1
31955 VORBIS_LIB=""
31956 VORBIS_INCLUDE=""
31957 PBX_VORBIS=0
31958 else
31959 PBX_VORBIS=1
31961 cat >>confdefs.h <<_ACEOF
31962 #define HAVE_VORBIS 1
31963 _ACEOF
31966 elif test -n "${VORBIS_MANDATORY}";
31967 then
31968 { echo "$as_me:$LINENO: ***" >&5
31969 echo "$as_me: ***" >&6;}
31970 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
31971 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
31972 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31973 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31974 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
31975 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
31976 exit 1
31981 ac_ext=cpp
31982 ac_cpp='$CXXCPP $CPPFLAGS'
31983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31988 if test "${USE_VPB}" != "no"; then
31989 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
31990 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
31991 saved_libs="${LIBS}"
31992 saved_cppflags="${CPPFLAGS}"
31993 if test "x${VPB_DIR}" != "x"; then
31994 if test -d ${VPB_DIR}/lib; then
31995 vpblibdir=${VPB_DIR}/lib
31996 else
31997 vpblibdir=${VPB_DIR}
31999 LIBS="${LIBS} -L${vpblibdir}"
32000 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
32002 LIBS="${LIBS} -lvpb -lpthread"
32003 cat >conftest.$ac_ext <<_ACEOF
32005 /* confdefs.h. */
32006 _ACEOF
32007 cat confdefs.h >>conftest.$ac_ext
32008 cat >>conftest.$ac_ext <<_ACEOF
32009 /* end confdefs.h. */
32010 #include <vpbapi.h>
32012 main ()
32014 int q = vpb_open(0,0);
32016 return 0;
32019 _ACEOF
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (ac_try="$ac_link"
32022 case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_link") 2>conftest.er1
32028 ac_status=$?
32029 grep -v '^ *+' conftest.er1 >conftest.err
32030 rm -f conftest.er1
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } && {
32034 test -z "$ac_cxx_werror_flag" ||
32035 test ! -s conftest.err
32036 } && test -s conftest$ac_exeext &&
32037 $as_test_x conftest$ac_exeext; then
32038 { echo "$as_me:$LINENO: result: yes" >&5
32039 echo "${ECHO_T}yes" >&6; }
32040 ac_cv_lib_vpb_vpb_open="yes"
32042 else
32043 echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32046 { echo "$as_me:$LINENO: result: no" >&5
32047 echo "${ECHO_T}no" >&6; }
32048 ac_cv_lib_vpb_vpb_open="no"
32053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32054 conftest$ac_exeext conftest.$ac_ext
32055 LIBS="${saved_libs}"
32056 CPPFLAGS="${saved_cppflags}"
32057 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
32058 VPB_LIB="-lvpb"
32059 if test "${VPB_DIR}" != ""; then
32060 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
32061 VPB_INCLUDE="-I${VPB_DIR}/include"
32063 PBX_VPB=1
32065 cat >>confdefs.h <<\_ACEOF
32066 #define HAVE_VPB 1
32067 _ACEOF
32069 elif test -n "${VPB_MANDATORY}"; then
32070 { echo "$as_me:$LINENO: ***" >&5
32071 echo "$as_me: ***" >&6;}
32072 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
32073 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
32074 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32075 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32076 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
32077 echo "$as_me: *** including --without-vpb." >&6;}
32078 exit 1
32082 ac_ext=c
32083 ac_cpp='$CPP $CPPFLAGS'
32084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32090 if test "${USE_ZLIB}" != "no"; then
32091 pbxlibdir=""
32092 if test "x${ZLIB_DIR}" != "x"; then
32093 if test -d ${ZLIB_DIR}/lib; then
32094 pbxlibdir="-L${ZLIB_DIR}/lib"
32095 else
32096 pbxlibdir="-L${ZLIB_DIR}"
32099 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
32100 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
32101 if test "${ac_cv_lib_z_compress+set}" = set; then
32102 echo $ECHO_N "(cached) $ECHO_C" >&6
32103 else
32104 ac_check_lib_save_LIBS=$LIBS
32105 LIBS="-lz ${pbxlibdir} $LIBS"
32106 cat >conftest.$ac_ext <<_ACEOF
32107 /* confdefs.h. */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h. */
32113 /* Override any GCC internal prototype to avoid an error.
32114 Use char because int might match the return type of a GCC
32115 builtin and then its argument prototype would still apply. */
32116 #ifdef __cplusplus
32117 extern "C"
32118 #endif
32119 char compress ();
32121 main ()
32123 return compress ();
32125 return 0;
32127 _ACEOF
32128 rm -f conftest.$ac_objext conftest$ac_exeext
32129 if { (ac_try="$ac_link"
32130 case "(($ac_try" in
32131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32132 *) ac_try_echo=$ac_try;;
32133 esac
32134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135 (eval "$ac_link") 2>conftest.er1
32136 ac_status=$?
32137 grep -v '^ *+' conftest.er1 >conftest.err
32138 rm -f conftest.er1
32139 cat conftest.err >&5
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); } && {
32142 test -z "$ac_c_werror_flag" ||
32143 test ! -s conftest.err
32144 } && test -s conftest$ac_exeext &&
32145 $as_test_x conftest$ac_exeext; then
32146 ac_cv_lib_z_compress=yes
32147 else
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 ac_cv_lib_z_compress=no
32154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32155 conftest$ac_exeext conftest.$ac_ext
32156 LIBS=$ac_check_lib_save_LIBS
32158 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
32159 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
32160 if test $ac_cv_lib_z_compress = yes; then
32161 AST_ZLIB_FOUND=yes
32162 else
32163 AST_ZLIB_FOUND=no
32167 if test "${AST_ZLIB_FOUND}" = "yes"; then
32168 ZLIB_LIB="-lz "
32169 ZLIB_HEADER_FOUND="1"
32170 if test "x${ZLIB_DIR}" != "x"; then
32171 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
32172 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
32173 saved_cppflags="${CPPFLAGS}"
32174 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
32175 if test "xzlib.h" != "x" ; then
32176 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
32177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32178 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
32179 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
32180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32181 echo $ECHO_N "(cached) $ECHO_C" >&6
32183 ac_res=`eval echo '${'$as_ac_Header'}'`
32184 { echo "$as_me:$LINENO: result: $ac_res" >&5
32185 echo "${ECHO_T}$ac_res" >&6; }
32186 else
32187 # Is the header compilable?
32188 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
32189 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
32190 cat >conftest.$ac_ext <<_ACEOF
32191 /* confdefs.h. */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32196 $ac_includes_default
32197 #include <${ZLIB_DIR}/include/zlib.h>
32198 _ACEOF
32199 rm -f conftest.$ac_objext
32200 if { (ac_try="$ac_compile"
32201 case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32204 esac
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
32207 ac_status=$?
32208 grep -v '^ *+' conftest.er1 >conftest.err
32209 rm -f conftest.er1
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); } && {
32213 test -z "$ac_c_werror_flag" ||
32214 test ! -s conftest.err
32215 } && test -s conftest.$ac_objext; then
32216 ac_header_compiler=yes
32217 else
32218 echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32221 ac_header_compiler=no
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32226 echo "${ECHO_T}$ac_header_compiler" >&6; }
32228 # Is the header present?
32229 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
32230 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
32231 cat >conftest.$ac_ext <<_ACEOF
32232 /* confdefs.h. */
32233 _ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h. */
32237 #include <${ZLIB_DIR}/include/zlib.h>
32238 _ACEOF
32239 if { (ac_try="$ac_cpp conftest.$ac_ext"
32240 case "(($ac_try" in
32241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242 *) ac_try_echo=$ac_try;;
32243 esac
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32246 ac_status=$?
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } >/dev/null && {
32252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32253 test ! -s conftest.err
32254 }; then
32255 ac_header_preproc=yes
32256 else
32257 echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32260 ac_header_preproc=no
32263 rm -f conftest.err conftest.$ac_ext
32264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32265 echo "${ECHO_T}$ac_header_preproc" >&6; }
32267 # So? What about this header?
32268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32269 yes:no: )
32270 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
32271 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32272 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
32273 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
32274 ac_header_preproc=yes
32276 no:yes:* )
32277 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
32278 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
32279 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
32280 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
32281 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
32282 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
32283 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
32284 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
32285 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
32286 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
32287 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
32288 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
32289 ( cat <<\_ASBOX
32290 ## ------------------------------- ##
32291 ## Report this to www.asterisk.org ##
32292 ## ------------------------------- ##
32293 _ASBOX
32294 ) | sed "s/^/$as_me: WARNING: /" >&2
32296 esac
32297 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
32298 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
32299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
32302 eval "$as_ac_Header=\$ac_header_preproc"
32304 ac_res=`eval echo '${'$as_ac_Header'}'`
32305 { echo "$as_me:$LINENO: result: $ac_res" >&5
32306 echo "${ECHO_T}$ac_res" >&6; }
32309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32310 ZLIB_HEADER_FOUND=1
32311 else
32312 ZLIB_HEADER_FOUND=0
32317 CPPFLAGS="${saved_cppflags}"
32318 else
32319 if test "xzlib.h" != "x" ; then
32320 if test "${ac_cv_header_zlib_h+set}" = set; then
32321 { echo "$as_me:$LINENO: checking for zlib.h" >&5
32322 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
32323 if test "${ac_cv_header_zlib_h+set}" = set; then
32324 echo $ECHO_N "(cached) $ECHO_C" >&6
32326 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
32327 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
32328 else
32329 # Is the header compilable?
32330 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
32331 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
32332 cat >conftest.$ac_ext <<_ACEOF
32333 /* confdefs.h. */
32334 _ACEOF
32335 cat confdefs.h >>conftest.$ac_ext
32336 cat >>conftest.$ac_ext <<_ACEOF
32337 /* end confdefs.h. */
32338 $ac_includes_default
32339 #include <zlib.h>
32340 _ACEOF
32341 rm -f conftest.$ac_objext
32342 if { (ac_try="$ac_compile"
32343 case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32346 esac
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_compile") 2>conftest.er1
32349 ac_status=$?
32350 grep -v '^ *+' conftest.er1 >conftest.err
32351 rm -f conftest.er1
32352 cat conftest.err >&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); } && {
32355 test -z "$ac_c_werror_flag" ||
32356 test ! -s conftest.err
32357 } && test -s conftest.$ac_objext; then
32358 ac_header_compiler=yes
32359 else
32360 echo "$as_me: failed program was:" >&5
32361 sed 's/^/| /' conftest.$ac_ext >&5
32363 ac_header_compiler=no
32366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32368 echo "${ECHO_T}$ac_header_compiler" >&6; }
32370 # Is the header present?
32371 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
32372 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
32373 cat >conftest.$ac_ext <<_ACEOF
32374 /* confdefs.h. */
32375 _ACEOF
32376 cat confdefs.h >>conftest.$ac_ext
32377 cat >>conftest.$ac_ext <<_ACEOF
32378 /* end confdefs.h. */
32379 #include <zlib.h>
32380 _ACEOF
32381 if { (ac_try="$ac_cpp conftest.$ac_ext"
32382 case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32385 esac
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32388 ac_status=$?
32389 grep -v '^ *+' conftest.er1 >conftest.err
32390 rm -f conftest.er1
32391 cat conftest.err >&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); } >/dev/null && {
32394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32395 test ! -s conftest.err
32396 }; then
32397 ac_header_preproc=yes
32398 else
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 ac_header_preproc=no
32405 rm -f conftest.err conftest.$ac_ext
32406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32407 echo "${ECHO_T}$ac_header_preproc" >&6; }
32409 # So? What about this header?
32410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32411 yes:no: )
32412 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
32413 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32414 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
32415 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
32416 ac_header_preproc=yes
32418 no:yes:* )
32419 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
32420 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
32421 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
32422 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
32423 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
32424 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
32425 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
32426 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
32427 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
32428 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
32429 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
32430 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
32431 ( cat <<\_ASBOX
32432 ## ------------------------------- ##
32433 ## Report this to www.asterisk.org ##
32434 ## ------------------------------- ##
32435 _ASBOX
32436 ) | sed "s/^/$as_me: WARNING: /" >&2
32438 esac
32439 { echo "$as_me:$LINENO: checking for zlib.h" >&5
32440 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
32441 if test "${ac_cv_header_zlib_h+set}" = set; then
32442 echo $ECHO_N "(cached) $ECHO_C" >&6
32443 else
32444 ac_cv_header_zlib_h=$ac_header_preproc
32446 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
32447 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
32450 if test $ac_cv_header_zlib_h = yes; then
32451 ZLIB_HEADER_FOUND=1
32452 else
32453 ZLIB_HEADER_FOUND=0
32459 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
32460 if test -n "${ZLIB_MANDATORY}" ;
32461 then
32462 { echo "$as_me:$LINENO: ***" >&5
32463 echo "$as_me: ***" >&6;}
32464 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
32465 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
32466 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
32467 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
32468 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
32469 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
32470 exit 1
32472 ZLIB_LIB=""
32473 ZLIB_INCLUDE=""
32474 PBX_ZLIB=0
32475 else
32476 PBX_ZLIB=1
32478 cat >>confdefs.h <<_ACEOF
32479 #define HAVE_ZLIB 1
32480 _ACEOF
32483 elif test -n "${ZLIB_MANDATORY}";
32484 then
32485 { echo "$as_me:$LINENO: ***" >&5
32486 echo "$as_me: ***" >&6;}
32487 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
32488 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
32489 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32490 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32491 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
32492 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
32493 exit 1
32498 if test "${USE_ZAPTEL}" != "no"; then
32499 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
32500 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
32501 saved_cppflags="${CPPFLAGS}"
32502 if test "x${ZAPTEL_DIR}" != "x"; then
32503 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32505 cat >conftest.$ac_ext <<_ACEOF
32507 /* confdefs.h. */
32508 _ACEOF
32509 cat confdefs.h >>conftest.$ac_ext
32510 cat >>conftest.$ac_ext <<_ACEOF
32511 /* end confdefs.h. */
32512 #include <zaptel/zaptel.h>
32514 main ()
32516 int foo = ZT_DIAL_OP_CANCEL;
32518 return 0;
32521 _ACEOF
32522 rm -f conftest.$ac_objext
32523 if { (ac_try="$ac_compile"
32524 case "(($ac_try" in
32525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526 *) ac_try_echo=$ac_try;;
32527 esac
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529 (eval "$ac_compile") 2>conftest.er1
32530 ac_status=$?
32531 grep -v '^ *+' conftest.er1 >conftest.err
32532 rm -f conftest.er1
32533 cat conftest.err >&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); } && {
32536 test -z "$ac_c_werror_flag" ||
32537 test ! -s conftest.err
32538 } && test -s conftest.$ac_objext; then
32539 { echo "$as_me:$LINENO: result: yes" >&5
32540 echo "${ECHO_T}yes" >&6; }
32541 ac_cv_zaptel_h="yes"
32543 else
32544 echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32547 { echo "$as_me:$LINENO: result: no" >&5
32548 echo "${ECHO_T}no" >&6; }
32549 ac_cv_zaptel_h="no"
32554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32555 CPPFLAGS="${saved_cppflags}"
32556 if test "${ac_cv_zaptel_h}" = "yes"; then
32557 if test "${ZAPTEL_DIR}" != ""; then
32558 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
32560 PBX_ZAPTEL=1
32562 cat >>confdefs.h <<\_ACEOF
32563 #define HAVE_ZAPTEL 1
32564 _ACEOF
32566 elif test -n "${ZAPTEL_MANDATORY}";
32567 then
32568 { echo "$as_me:$LINENO: ***" >&5
32569 echo "$as_me: ***" >&6;}
32570 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
32571 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
32572 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32573 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32574 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
32575 echo "$as_me: *** including --without-zaptel." >&6;}
32576 exit 1
32580 if test "${PBX_ZAPTEL}" = 1; then
32581 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
32582 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
32583 saved_cppflags="${CPPFLAGS}"
32584 if test "x${ZAPTEL_DIR}" != "x"; then
32585 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32587 cat >conftest.$ac_ext <<_ACEOF
32589 /* confdefs.h. */
32590 _ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h. */
32594 #include <zaptel/zaptel.h>
32596 main ()
32598 int foo = ZT_EVENT_REMOVED;
32600 return 0;
32603 _ACEOF
32604 rm -f conftest.$ac_objext
32605 if { (ac_try="$ac_compile"
32606 case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32609 esac
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_compile") 2>conftest.er1
32612 ac_status=$?
32613 grep -v '^ *+' conftest.er1 >conftest.err
32614 rm -f conftest.er1
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } && {
32618 test -z "$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32620 } && test -s conftest.$ac_objext; then
32621 { echo "$as_me:$LINENO: result: yes" >&5
32622 echo "${ECHO_T}yes" >&6; }
32623 ac_cv_zaptel_vldtmf="yes"
32625 else
32626 echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32629 { echo "$as_me:$LINENO: result: no" >&5
32630 echo "${ECHO_T}no" >&6; }
32631 ac_cv_zaptel_vldtmf="no"
32636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32637 CPPFLAGS="${saved_cppflags}"
32638 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
32639 PBX_ZAPTEL_VLDTMF=1
32641 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
32642 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
32643 saved_cppflags="${CPPFLAGS}"
32644 if test "x${ZAPTEL_DIR}" != "x"; then
32645 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
32647 cat >conftest.$ac_ext <<_ACEOF
32649 /* confdefs.h. */
32650 _ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h. */
32654 #include <zaptel/zaptel.h>
32656 main ()
32658 int foo = ZT_TCOP_ALLOCATE;
32660 return 0;
32663 _ACEOF
32664 rm -f conftest.$ac_objext
32665 if { (ac_try="$ac_compile"
32666 case "(($ac_try" in
32667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668 *) ac_try_echo=$ac_try;;
32669 esac
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671 (eval "$ac_compile") 2>conftest.er1
32672 ac_status=$?
32673 grep -v '^ *+' conftest.er1 >conftest.err
32674 rm -f conftest.er1
32675 cat conftest.err >&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); } && {
32678 test -z "$ac_c_werror_flag" ||
32679 test ! -s conftest.err
32680 } && test -s conftest.$ac_objext; then
32681 { echo "$as_me:$LINENO: result: yes" >&5
32682 echo "${ECHO_T}yes" >&6; }
32683 ac_cv_zaptel_transcode="yes"
32685 else
32686 echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32689 { echo "$as_me:$LINENO: result: no" >&5
32690 echo "${ECHO_T}no" >&6; }
32691 ac_cv_zaptel_transcode="no"
32696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32697 CPPFLAGS="${saved_cppflags}"
32698 if test "${ac_cv_zaptel_transcode}" = "yes"; then
32699 PBX_ZAPTEL_TRANSCODE=1
32705 EDITLINE_LIB=""
32706 if test "x$TERMCAP_LIB" != "x" ; then
32707 EDITLINE_LIB="$TERMCAP_LIB"
32708 elif test "x$TINFO_LIB" != "x" ; then
32709 EDITLINE_LIB="$TINFO_LIB"
32710 elif test "x$CURSES_LIB" != "x" ; then
32711 EDITLINE_LIB="$CURSES_LIB"
32712 elif test "x$NCURSES_LIB" != "x" ; then
32713 EDITLINE_LIB="$NCURSES_LIB"
32714 else
32715 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
32716 echo "$as_me: error: *** termcap support not found" >&2;}
32717 { (exit 1); exit 1; }; }
32721 if test "${ac_cv_header_h323_h+set}" = set; then
32722 { echo "$as_me:$LINENO: checking for h323.h" >&5
32723 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
32724 if test "${ac_cv_header_h323_h+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32727 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
32728 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
32729 else
32730 # Is the header compilable?
32731 { echo "$as_me:$LINENO: checking h323.h usability" >&5
32732 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
32733 cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h. */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h. */
32739 $ac_includes_default
32740 #include <h323.h>
32741 _ACEOF
32742 rm -f conftest.$ac_objext
32743 if { (ac_try="$ac_compile"
32744 case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747 esac
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_compile") 2>conftest.er1
32750 ac_status=$?
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } && {
32756 test -z "$ac_c_werror_flag" ||
32757 test ! -s conftest.err
32758 } && test -s conftest.$ac_objext; then
32759 ac_header_compiler=yes
32760 else
32761 echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.$ac_ext >&5
32764 ac_header_compiler=no
32767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32769 echo "${ECHO_T}$ac_header_compiler" >&6; }
32771 # Is the header present?
32772 { echo "$as_me:$LINENO: checking h323.h presence" >&5
32773 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
32774 cat >conftest.$ac_ext <<_ACEOF
32775 /* confdefs.h. */
32776 _ACEOF
32777 cat confdefs.h >>conftest.$ac_ext
32778 cat >>conftest.$ac_ext <<_ACEOF
32779 /* end confdefs.h. */
32780 #include <h323.h>
32781 _ACEOF
32782 if { (ac_try="$ac_cpp conftest.$ac_ext"
32783 case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32786 esac
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32789 ac_status=$?
32790 grep -v '^ *+' conftest.er1 >conftest.err
32791 rm -f conftest.er1
32792 cat conftest.err >&5
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); } >/dev/null && {
32795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32796 test ! -s conftest.err
32797 }; then
32798 ac_header_preproc=yes
32799 else
32800 echo "$as_me: failed program was:" >&5
32801 sed 's/^/| /' conftest.$ac_ext >&5
32803 ac_header_preproc=no
32806 rm -f conftest.err conftest.$ac_ext
32807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32808 echo "${ECHO_T}$ac_header_preproc" >&6; }
32810 # So? What about this header?
32811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32812 yes:no: )
32813 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
32814 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32815 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
32816 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
32817 ac_header_preproc=yes
32819 no:yes:* )
32820 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
32821 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
32823 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
32824 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
32825 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
32826 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
32827 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
32828 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
32829 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
32830 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
32831 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
32832 ( cat <<\_ASBOX
32833 ## ------------------------------- ##
32834 ## Report this to www.asterisk.org ##
32835 ## ------------------------------- ##
32836 _ASBOX
32837 ) | sed "s/^/$as_me: WARNING: /" >&2
32839 esac
32840 { echo "$as_me:$LINENO: checking for h323.h" >&5
32841 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
32842 if test "${ac_cv_header_h323_h+set}" = set; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32844 else
32845 ac_cv_header_h323_h=$ac_header_preproc
32847 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
32848 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
32851 if test $ac_cv_header_h323_h = yes; then
32852 PBX_H323=1
32853 else
32854 PBX_H323=0
32860 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32861 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
32862 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
32863 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32866 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
32867 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
32868 else
32869 # Is the header compilable?
32870 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
32871 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
32872 cat >conftest.$ac_ext <<_ACEOF
32873 /* confdefs.h. */
32874 _ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h. */
32878 $ac_includes_default
32879 #include <linux/compiler.h>
32880 _ACEOF
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32889 ac_status=$?
32890 grep -v '^ *+' conftest.er1 >conftest.err
32891 rm -f conftest.er1
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } && {
32895 test -z "$ac_c_werror_flag" ||
32896 test ! -s conftest.err
32897 } && test -s conftest.$ac_objext; then
32898 ac_header_compiler=yes
32899 else
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32903 ac_header_compiler=no
32906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32908 echo "${ECHO_T}$ac_header_compiler" >&6; }
32910 # Is the header present?
32911 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
32912 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
32913 cat >conftest.$ac_ext <<_ACEOF
32914 /* confdefs.h. */
32915 _ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h. */
32919 #include <linux/compiler.h>
32920 _ACEOF
32921 if { (ac_try="$ac_cpp conftest.$ac_ext"
32922 case "(($ac_try" in
32923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924 *) ac_try_echo=$ac_try;;
32925 esac
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32928 ac_status=$?
32929 grep -v '^ *+' conftest.er1 >conftest.err
32930 rm -f conftest.er1
32931 cat conftest.err >&5
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } >/dev/null && {
32934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32935 test ! -s conftest.err
32936 }; then
32937 ac_header_preproc=yes
32938 else
32939 echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32942 ac_header_preproc=no
32945 rm -f conftest.err conftest.$ac_ext
32946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32947 echo "${ECHO_T}$ac_header_preproc" >&6; }
32949 # So? What about this header?
32950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32951 yes:no: )
32952 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
32953 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32954 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
32955 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
32956 ac_header_preproc=yes
32958 no:yes:* )
32959 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
32960 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
32961 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
32962 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
32963 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
32964 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
32965 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
32966 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
32967 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
32968 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
32969 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
32970 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
32971 ( cat <<\_ASBOX
32972 ## ------------------------------- ##
32973 ## Report this to www.asterisk.org ##
32974 ## ------------------------------- ##
32975 _ASBOX
32976 ) | sed "s/^/$as_me: WARNING: /" >&2
32978 esac
32979 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
32980 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
32981 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984 ac_cv_header_linux_compiler_h=$ac_header_preproc
32986 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
32987 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
32990 if test $ac_cv_header_linux_compiler_h = yes; then
32992 cat >>confdefs.h <<_ACEOF
32993 #define HAVE_LINUX_COMPILER_H 1
32994 _ACEOF
33000 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
33001 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
33002 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33004 else
33005 cat >conftest.$ac_ext <<_ACEOF
33006 /* confdefs.h. */
33007 _ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h. */
33012 #include <linux/version.h>
33013 #ifdef HAVE_LINUX_COMPILER_H
33014 #include <linux/compiler.h>
33015 #endif
33018 #include <linux/ixjuser.h>
33019 _ACEOF
33020 rm -f conftest.$ac_objext
33021 if { (ac_try="$ac_compile"
33022 case "(($ac_try" in
33023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024 *) ac_try_echo=$ac_try;;
33025 esac
33026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027 (eval "$ac_compile") 2>conftest.er1
33028 ac_status=$?
33029 grep -v '^ *+' conftest.er1 >conftest.err
33030 rm -f conftest.er1
33031 cat conftest.err >&5
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } && {
33034 test -z "$ac_c_werror_flag" ||
33035 test ! -s conftest.err
33036 } && test -s conftest.$ac_objext; then
33037 ac_cv_header_linux_ixjuser_h=yes
33038 else
33039 echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33042 ac_cv_header_linux_ixjuser_h=no
33045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33047 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
33048 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
33049 if test $ac_cv_header_linux_ixjuser_h = yes; then
33050 PBX_IXJUSER=1
33051 else
33052 PBX_IXJUSER=0
33058 PBX_GTK=0
33059 if test -n "$ac_tool_prefix"; then
33060 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
33061 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
33062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33064 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067 if test -n "$GTKCONFIG"; then
33068 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
33069 else
33070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071 for as_dir in $PATH
33073 IFS=$as_save_IFS
33074 test -z "$as_dir" && as_dir=.
33075 for ac_exec_ext in '' $ac_executable_extensions; do
33076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33077 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
33078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33079 break 2
33081 done
33082 done
33083 IFS=$as_save_IFS
33087 GTKCONFIG=$ac_cv_prog_GTKCONFIG
33088 if test -n "$GTKCONFIG"; then
33089 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
33090 echo "${ECHO_T}$GTKCONFIG" >&6; }
33091 else
33092 { echo "$as_me:$LINENO: result: no" >&5
33093 echo "${ECHO_T}no" >&6; }
33098 if test -z "$ac_cv_prog_GTKCONFIG"; then
33099 ac_ct_GTKCONFIG=$GTKCONFIG
33100 # Extract the first word of "gtk-config", so it can be a program name with args.
33101 set dummy gtk-config; ac_word=$2
33102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33104 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
33105 echo $ECHO_N "(cached) $ECHO_C" >&6
33106 else
33107 if test -n "$ac_ct_GTKCONFIG"; then
33108 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
33109 else
33110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33111 for as_dir in $PATH
33113 IFS=$as_save_IFS
33114 test -z "$as_dir" && as_dir=.
33115 for ac_exec_ext in '' $ac_executable_extensions; do
33116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33117 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
33118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33119 break 2
33121 done
33122 done
33123 IFS=$as_save_IFS
33127 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
33128 if test -n "$ac_ct_GTKCONFIG"; then
33129 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
33130 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
33131 else
33132 { echo "$as_me:$LINENO: result: no" >&5
33133 echo "${ECHO_T}no" >&6; }
33136 if test "x$ac_ct_GTKCONFIG" = x; then
33137 GTKCONFIG="No"
33138 else
33139 case $cross_compiling:$ac_tool_warned in
33140 yes:)
33141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33142 whose name does not start with the host triplet. If you think this
33143 configuration is useful to you, please write to autoconf@gnu.org." >&5
33144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33145 whose name does not start with the host triplet. If you think this
33146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33147 ac_tool_warned=yes ;;
33148 esac
33149 GTKCONFIG=$ac_ct_GTKCONFIG
33151 else
33152 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
33155 if test ! "x${GTKCONFIG}" = xNo; then
33156 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
33157 GTK_LIB=$(${GTKCONFIG} --libs gthread)
33158 PBX_GTK=1
33160 cat >>confdefs.h <<\_ACEOF
33161 #define HAVE_GTK 1
33162 _ACEOF
33169 PBX_GTK2=0
33170 if test -n "$ac_tool_prefix"; then
33171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33172 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33175 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
33176 echo $ECHO_N "(cached) $ECHO_C" >&6
33177 else
33178 if test -n "$PKGCONFIG"; then
33179 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
33180 else
33181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33182 for as_dir in $PATH
33184 IFS=$as_save_IFS
33185 test -z "$as_dir" && as_dir=.
33186 for ac_exec_ext in '' $ac_executable_extensions; do
33187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33188 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
33189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33190 break 2
33192 done
33193 done
33194 IFS=$as_save_IFS
33198 PKGCONFIG=$ac_cv_prog_PKGCONFIG
33199 if test -n "$PKGCONFIG"; then
33200 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
33201 echo "${ECHO_T}$PKGCONFIG" >&6; }
33202 else
33203 { echo "$as_me:$LINENO: result: no" >&5
33204 echo "${ECHO_T}no" >&6; }
33209 if test -z "$ac_cv_prog_PKGCONFIG"; then
33210 ac_ct_PKGCONFIG=$PKGCONFIG
33211 # Extract the first word of "pkg-config", so it can be a program name with args.
33212 set dummy pkg-config; ac_word=$2
33213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33215 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
33216 echo $ECHO_N "(cached) $ECHO_C" >&6
33217 else
33218 if test -n "$ac_ct_PKGCONFIG"; then
33219 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
33220 else
33221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33222 for as_dir in $PATH
33224 IFS=$as_save_IFS
33225 test -z "$as_dir" && as_dir=.
33226 for ac_exec_ext in '' $ac_executable_extensions; do
33227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33228 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
33229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33230 break 2
33232 done
33233 done
33234 IFS=$as_save_IFS
33238 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
33239 if test -n "$ac_ct_PKGCONFIG"; then
33240 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
33241 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
33242 else
33243 { echo "$as_me:$LINENO: result: no" >&5
33244 echo "${ECHO_T}no" >&6; }
33247 if test "x$ac_ct_PKGCONFIG" = x; then
33248 PKGCONFIG="No"
33249 else
33250 case $cross_compiling:$ac_tool_warned in
33251 yes:)
33252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33253 whose name does not start with the host triplet. If you think this
33254 configuration is useful to you, please write to autoconf@gnu.org." >&5
33255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33256 whose name does not start with the host triplet. If you think this
33257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33258 ac_tool_warned=yes ;;
33259 esac
33260 PKGCONFIG=$ac_ct_PKGCONFIG
33262 else
33263 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
33266 if test ! "x${PKGCONFIG}" = xNo; then
33267 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
33268 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
33269 PBX_GTK2=1
33271 cat >>confdefs.h <<\_ACEOF
33272 #define HAVE_GTK2 1
33273 _ACEOF
33280 if test "${USE_CURL}" != "no"; then
33281 if test -n "$ac_tool_prefix"; then
33282 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
33283 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
33284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33286 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
33287 echo $ECHO_N "(cached) $ECHO_C" >&6
33288 else
33289 case $CURL_CONFIG in
33290 [\\/]* | ?:[\\/]*)
33291 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
33294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33295 for as_dir in $PATH
33297 IFS=$as_save_IFS
33298 test -z "$as_dir" && as_dir=.
33299 for ac_exec_ext in '' $ac_executable_extensions; do
33300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33301 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33303 break 2
33305 done
33306 done
33307 IFS=$as_save_IFS
33310 esac
33312 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
33313 if test -n "$CURL_CONFIG"; then
33314 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
33315 echo "${ECHO_T}$CURL_CONFIG" >&6; }
33316 else
33317 { echo "$as_me:$LINENO: result: no" >&5
33318 echo "${ECHO_T}no" >&6; }
33323 if test -z "$ac_cv_path_CURL_CONFIG"; then
33324 ac_pt_CURL_CONFIG=$CURL_CONFIG
33325 # Extract the first word of "curl-config", so it can be a program name with args.
33326 set dummy curl-config; ac_word=$2
33327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33329 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33331 else
33332 case $ac_pt_CURL_CONFIG in
33333 [\\/]* | ?:[\\/]*)
33334 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
33337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33338 for as_dir in $PATH
33340 IFS=$as_save_IFS
33341 test -z "$as_dir" && as_dir=.
33342 for ac_exec_ext in '' $ac_executable_extensions; do
33343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33344 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33346 break 2
33348 done
33349 done
33350 IFS=$as_save_IFS
33353 esac
33355 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
33356 if test -n "$ac_pt_CURL_CONFIG"; then
33357 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
33358 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
33359 else
33360 { echo "$as_me:$LINENO: result: no" >&5
33361 echo "${ECHO_T}no" >&6; }
33364 if test "x$ac_pt_CURL_CONFIG" = x; then
33365 CURL_CONFIG="No"
33366 else
33367 case $cross_compiling:$ac_tool_warned in
33368 yes:)
33369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33370 whose name does not start with the host triplet. If you think this
33371 configuration is useful to you, please write to autoconf@gnu.org." >&5
33372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33373 whose name does not start with the host triplet. If you think this
33374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33375 ac_tool_warned=yes ;;
33376 esac
33377 CURL_CONFIG=$ac_pt_CURL_CONFIG
33379 else
33380 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
33383 if test ! x"${CURL_CONFIG}" = xNo; then
33384 # check for version
33385 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
33386 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
33387 CURL_LIB=$(${CURL_CONFIG} --libs)
33389 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
33390 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
33391 saved_cppflags="${CPPFLAGS}"
33392 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
33393 cat >conftest.$ac_ext <<_ACEOF
33394 /* confdefs.h. */
33395 _ACEOF
33396 cat confdefs.h >>conftest.$ac_ext
33397 cat >>conftest.$ac_ext <<_ACEOF
33398 /* end confdefs.h. */
33399 #include <curl/curl.h>
33401 main ()
33403 curl_version();
33405 return 0;
33408 _ACEOF
33409 rm -f conftest.$ac_objext
33410 if { (ac_try="$ac_compile"
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_compile") 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); } && {
33423 test -z "$ac_c_werror_flag" ||
33424 test ! -s conftest.err
33425 } && test -s conftest.$ac_objext; then
33427 { echo "$as_me:$LINENO: result: yes" >&5
33428 echo "${ECHO_T}yes" >&6; }
33429 ac_cv_curl_h="yes"
33431 else
33432 echo "$as_me: failed program was:" >&5
33433 sed 's/^/| /' conftest.$ac_ext >&5
33436 { echo "$as_me:$LINENO: result: no" >&5
33437 echo "${ECHO_T}no" >&6; }
33438 ac_cv_curl_h="no"
33443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 CPPFLAGS="${saved_cppflags}"
33445 if test "${ac_cv_curl_h}" = "yes"; then
33446 PBX_CURL=1
33448 cat >>confdefs.h <<\_ACEOF
33449 #define HAVE_CURL 1
33450 _ACEOF
33457 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
33459 cat >confcache <<\_ACEOF
33460 # This file is a shell script that caches the results of configure
33461 # tests run on this system so they can be shared between configure
33462 # scripts and configure runs, see configure's option --config-cache.
33463 # It is not useful on other systems. If it contains results you don't
33464 # want to keep, you may remove or edit it.
33466 # config.status only pays attention to the cache file if you give it
33467 # the --recheck option to rerun configure.
33469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33471 # following values.
33473 _ACEOF
33475 # The following way of writing the cache mishandles newlines in values,
33476 # but we know of no workaround that is simple, portable, and efficient.
33477 # So, we kill variables containing newlines.
33478 # Ultrix sh set writes to stderr and can't be redirected directly,
33479 # and sets the high bit in the cache file unless we assign to the vars.
33481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33482 eval ac_val=\$$ac_var
33483 case $ac_val in #(
33484 *${as_nl}*)
33485 case $ac_var in #(
33486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33488 esac
33489 case $ac_var in #(
33490 _ | IFS | as_nl) ;; #(
33491 *) $as_unset $ac_var ;;
33492 esac ;;
33493 esac
33494 done
33496 (set) 2>&1 |
33497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33498 *${as_nl}ac_space=\ *)
33499 # `set' does not quote correctly, so add quotes (double-quote
33500 # substitution turns \\\\ into \\, and sed turns \\ into \).
33501 sed -n \
33502 "s/'/'\\\\''/g;
33503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33504 ;; #(
33506 # `set' quotes correctly as required by POSIX, so do not add quotes.
33507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33509 esac |
33510 sort
33512 sed '
33513 /^ac_cv_env_/b end
33514 t clear
33515 :clear
33516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33517 t end
33518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33519 :end' >>confcache
33520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33521 if test -w "$cache_file"; then
33522 test "x$cache_file" != "x/dev/null" &&
33523 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33524 echo "$as_me: updating cache $cache_file" >&6;}
33525 cat confcache >$cache_file
33526 else
33527 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33531 rm -f confcache
33533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33534 # Let make expand exec_prefix.
33535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33537 DEFS=-DHAVE_CONFIG_H
33539 ac_libobjs=
33540 ac_ltlibobjs=
33541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33542 # 1. Remove the extension, and $U if already installed.
33543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33544 ac_i=`echo "$ac_i" | sed "$ac_script"`
33545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33546 # will be set to the directory where LIBOBJS objects are built.
33547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33549 done
33550 LIBOBJS=$ac_libobjs
33552 LTLIBOBJS=$ac_ltlibobjs
33556 : ${CONFIG_STATUS=./config.status}
33557 ac_clean_files_save=$ac_clean_files
33558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33561 cat >$CONFIG_STATUS <<_ACEOF
33562 #! $SHELL
33563 # Generated by $as_me.
33564 # Run this file to recreate the current configuration.
33565 # Compiler output produced by configure, useful for debugging
33566 # configure, is in config.log if it exists.
33568 debug=false
33569 ac_cs_recheck=false
33570 ac_cs_silent=false
33571 SHELL=\${CONFIG_SHELL-$SHELL}
33572 _ACEOF
33574 cat >>$CONFIG_STATUS <<\_ACEOF
33575 ## --------------------- ##
33576 ## M4sh Initialization. ##
33577 ## --------------------- ##
33579 # Be more Bourne compatible
33580 DUALCASE=1; export DUALCASE # for MKS sh
33581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33582 emulate sh
33583 NULLCMD=:
33584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33585 # is contrary to our usage. Disable this feature.
33586 alias -g '${1+"$@"}'='"$@"'
33587 setopt NO_GLOB_SUBST
33588 else
33589 case `(set -o) 2>/dev/null` in
33590 *posix*) set -o posix ;;
33591 esac
33598 # PATH needs CR
33599 # Avoid depending upon Character Ranges.
33600 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33601 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33602 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33603 as_cr_digits='0123456789'
33604 as_cr_alnum=$as_cr_Letters$as_cr_digits
33606 # The user is always right.
33607 if test "${PATH_SEPARATOR+set}" != set; then
33608 echo "#! /bin/sh" >conf$$.sh
33609 echo "exit 0" >>conf$$.sh
33610 chmod +x conf$$.sh
33611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33612 PATH_SEPARATOR=';'
33613 else
33614 PATH_SEPARATOR=:
33616 rm -f conf$$.sh
33619 # Support unset when possible.
33620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33621 as_unset=unset
33622 else
33623 as_unset=false
33627 # IFS
33628 # We need space, tab and new line, in precisely that order. Quoting is
33629 # there to prevent editors from complaining about space-tab.
33630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33631 # splitting by setting IFS to empty value.)
33632 as_nl='
33634 IFS=" "" $as_nl"
33636 # Find who we are. Look in the path if we contain no directory separator.
33637 case $0 in
33638 *[\\/]* ) as_myself=$0 ;;
33639 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33640 for as_dir in $PATH
33642 IFS=$as_save_IFS
33643 test -z "$as_dir" && as_dir=.
33644 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33645 done
33646 IFS=$as_save_IFS
33649 esac
33650 # We did not find ourselves, most probably we were run as `sh COMMAND'
33651 # in which case we are not to be found in the path.
33652 if test "x$as_myself" = x; then
33653 as_myself=$0
33655 if test ! -f "$as_myself"; then
33656 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33657 { (exit 1); exit 1; }
33660 # Work around bugs in pre-3.0 UWIN ksh.
33661 for as_var in ENV MAIL MAILPATH
33662 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33663 done
33664 PS1='$ '
33665 PS2='> '
33666 PS4='+ '
33668 # NLS nuisances.
33669 for as_var in \
33670 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33671 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33672 LC_TELEPHONE LC_TIME
33674 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33675 eval $as_var=C; export $as_var
33676 else
33677 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33679 done
33681 # Required to use basename.
33682 if expr a : '\(a\)' >/dev/null 2>&1 &&
33683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33684 as_expr=expr
33685 else
33686 as_expr=false
33689 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33690 as_basename=basename
33691 else
33692 as_basename=false
33696 # Name of the executable.
33697 as_me=`$as_basename -- "$0" ||
33698 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33699 X"$0" : 'X\(//\)$' \| \
33700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33701 echo X/"$0" |
33702 sed '/^.*\/\([^/][^/]*\)\/*$/{
33703 s//\1/
33706 /^X\/\(\/\/\)$/{
33707 s//\1/
33710 /^X\/\(\/\).*/{
33711 s//\1/
33714 s/.*/./; q'`
33716 # CDPATH.
33717 $as_unset CDPATH
33721 as_lineno_1=$LINENO
33722 as_lineno_2=$LINENO
33723 test "x$as_lineno_1" != "x$as_lineno_2" &&
33724 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33726 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33727 # uniformly replaced by the line number. The first 'sed' inserts a
33728 # line-number line after each line using $LINENO; the second 'sed'
33729 # does the real work. The second script uses 'N' to pair each
33730 # line-number line with the line containing $LINENO, and appends
33731 # trailing '-' during substitution so that $LINENO is not a special
33732 # case at line end.
33733 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33734 # scripts with optimization help from Paolo Bonzini. Blame Lee
33735 # E. McMahon (1931-1989) for sed's syntax. :-)
33736 sed -n '
33738 /[$]LINENO/=
33739 ' <$as_myself |
33740 sed '
33741 s/[$]LINENO.*/&-/
33742 t lineno
33744 :lineno
33746 :loop
33747 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33748 t loop
33749 s/-\n.*//
33750 ' >$as_me.lineno &&
33751 chmod +x "$as_me.lineno" ||
33752 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33753 { (exit 1); exit 1; }; }
33755 # Don't try to exec as it changes $[0], causing all sort of problems
33756 # (the dirname of $[0] is not the place where we might find the
33757 # original and so on. Autoconf is especially sensitive to this).
33758 . "./$as_me.lineno"
33759 # Exit status is that of the last command.
33760 exit
33764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33765 as_dirname=dirname
33766 else
33767 as_dirname=false
33770 ECHO_C= ECHO_N= ECHO_T=
33771 case `echo -n x` in
33772 -n*)
33773 case `echo 'x\c'` in
33774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33775 *) ECHO_C='\c';;
33776 esac;;
33778 ECHO_N='-n';;
33779 esac
33781 if expr a : '\(a\)' >/dev/null 2>&1 &&
33782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33783 as_expr=expr
33784 else
33785 as_expr=false
33788 rm -f conf$$ conf$$.exe conf$$.file
33789 if test -d conf$$.dir; then
33790 rm -f conf$$.dir/conf$$.file
33791 else
33792 rm -f conf$$.dir
33793 mkdir conf$$.dir
33795 echo >conf$$.file
33796 if ln -s conf$$.file conf$$ 2>/dev/null; then
33797 as_ln_s='ln -s'
33798 # ... but there are two gotchas:
33799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33801 # In both cases, we have to default to `cp -p'.
33802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33803 as_ln_s='cp -p'
33804 elif ln conf$$.file conf$$ 2>/dev/null; then
33805 as_ln_s=ln
33806 else
33807 as_ln_s='cp -p'
33809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33810 rmdir conf$$.dir 2>/dev/null
33812 if mkdir -p . 2>/dev/null; then
33813 as_mkdir_p=:
33814 else
33815 test -d ./-p && rmdir ./-p
33816 as_mkdir_p=false
33819 if test -x / >/dev/null 2>&1; then
33820 as_test_x='test -x'
33821 else
33822 if ls -dL / >/dev/null 2>&1; then
33823 as_ls_L_option=L
33824 else
33825 as_ls_L_option=
33827 as_test_x='
33828 eval sh -c '\''
33829 if test -d "$1"; then
33830 test -d "$1/.";
33831 else
33832 case $1 in
33833 -*)set "./$1";;
33834 esac;
33835 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33836 ???[sx]*):;;*)false;;esac;fi
33837 '\'' sh
33840 as_executable_p=$as_test_x
33842 # Sed expression to map a string onto a valid CPP name.
33843 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33845 # Sed expression to map a string onto a valid variable name.
33846 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33849 exec 6>&1
33851 # Save the log message, to keep $[0] and so on meaningful, and to
33852 # report actual input values of CONFIG_FILES etc. instead of their
33853 # values after options handling.
33854 ac_log="
33855 This file was extended by asterisk $as_me 1.4, which was
33856 generated by GNU Autoconf 2.61. Invocation command line was
33858 CONFIG_FILES = $CONFIG_FILES
33859 CONFIG_HEADERS = $CONFIG_HEADERS
33860 CONFIG_LINKS = $CONFIG_LINKS
33861 CONFIG_COMMANDS = $CONFIG_COMMANDS
33862 $ $0 $@
33864 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33867 _ACEOF
33869 cat >>$CONFIG_STATUS <<_ACEOF
33870 # Files that config.status was made for.
33871 config_files="$ac_config_files"
33872 config_headers="$ac_config_headers"
33874 _ACEOF
33876 cat >>$CONFIG_STATUS <<\_ACEOF
33877 ac_cs_usage="\
33878 \`$as_me' instantiates files from templates according to the
33879 current configuration.
33881 Usage: $0 [OPTIONS] [FILE]...
33883 -h, --help print this help, then exit
33884 -V, --version print version number and configuration settings, then exit
33885 -q, --quiet do not print progress messages
33886 -d, --debug don't remove temporary files
33887 --recheck update $as_me by reconfiguring in the same conditions
33888 --file=FILE[:TEMPLATE]
33889 instantiate the configuration file FILE
33890 --header=FILE[:TEMPLATE]
33891 instantiate the configuration header FILE
33893 Configuration files:
33894 $config_files
33896 Configuration headers:
33897 $config_headers
33899 Report bugs to <bug-autoconf@gnu.org>."
33901 _ACEOF
33902 cat >>$CONFIG_STATUS <<_ACEOF
33903 ac_cs_version="\\
33904 asterisk config.status 1.4
33905 configured by $0, generated by GNU Autoconf 2.61,
33906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33908 Copyright (C) 2006 Free Software Foundation, Inc.
33909 This config.status script is free software; the Free Software Foundation
33910 gives unlimited permission to copy, distribute and modify it."
33912 ac_pwd='$ac_pwd'
33913 srcdir='$srcdir'
33914 INSTALL='$INSTALL'
33915 _ACEOF
33917 cat >>$CONFIG_STATUS <<\_ACEOF
33918 # If no file are specified by the user, then we need to provide default
33919 # value. By we need to know if files were specified by the user.
33920 ac_need_defaults=:
33921 while test $# != 0
33923 case $1 in
33924 --*=*)
33925 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33926 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33927 ac_shift=:
33930 ac_option=$1
33931 ac_optarg=$2
33932 ac_shift=shift
33934 esac
33936 case $ac_option in
33937 # Handling of the options.
33938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33939 ac_cs_recheck=: ;;
33940 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33941 echo "$ac_cs_version"; exit ;;
33942 --debug | --debu | --deb | --de | --d | -d )
33943 debug=: ;;
33944 --file | --fil | --fi | --f )
33945 $ac_shift
33946 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33947 ac_need_defaults=false;;
33948 --header | --heade | --head | --hea )
33949 $ac_shift
33950 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33951 ac_need_defaults=false;;
33952 --he | --h)
33953 # Conflict between --help and --header
33954 { echo "$as_me: error: ambiguous option: $1
33955 Try \`$0 --help' for more information." >&2
33956 { (exit 1); exit 1; }; };;
33957 --help | --hel | -h )
33958 echo "$ac_cs_usage"; exit ;;
33959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33961 ac_cs_silent=: ;;
33963 # This is an error.
33964 -*) { echo "$as_me: error: unrecognized option: $1
33965 Try \`$0 --help' for more information." >&2
33966 { (exit 1); exit 1; }; } ;;
33968 *) ac_config_targets="$ac_config_targets $1"
33969 ac_need_defaults=false ;;
33971 esac
33972 shift
33973 done
33975 ac_configure_extra_args=
33977 if $ac_cs_silent; then
33978 exec 6>/dev/null
33979 ac_configure_extra_args="$ac_configure_extra_args --silent"
33982 _ACEOF
33983 cat >>$CONFIG_STATUS <<_ACEOF
33984 if \$ac_cs_recheck; then
33985 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33986 CONFIG_SHELL=$SHELL
33987 export CONFIG_SHELL
33988 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33991 _ACEOF
33992 cat >>$CONFIG_STATUS <<\_ACEOF
33993 exec 5>>config.log
33995 echo
33996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33997 ## Running $as_me. ##
33998 _ASBOX
33999 echo "$ac_log"
34000 } >&5
34002 _ACEOF
34003 cat >>$CONFIG_STATUS <<_ACEOF
34004 _ACEOF
34006 cat >>$CONFIG_STATUS <<\_ACEOF
34008 # Handling of arguments.
34009 for ac_config_target in $ac_config_targets
34011 case $ac_config_target in
34012 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
34013 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
34014 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
34015 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
34017 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34019 { (exit 1); exit 1; }; };;
34020 esac
34021 done
34024 # If the user did not use the arguments to specify the items to instantiate,
34025 # then the envvar interface is used. Set only those that are not.
34026 # We use the long form for the default assignment because of an extremely
34027 # bizarre bug on SunOS 4.1.3.
34028 if $ac_need_defaults; then
34029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34033 # Have a temporary directory for convenience. Make it in the build tree
34034 # simply because there is no reason against having it here, and in addition,
34035 # creating and moving files from /tmp can sometimes cause problems.
34036 # Hook for its removal unless debugging.
34037 # Note that there is a small window in which the directory will not be cleaned:
34038 # after its creation but before its name has been assigned to `$tmp'.
34039 $debug ||
34041 tmp=
34042 trap 'exit_status=$?
34043 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34045 trap '{ (exit 1); exit 1; }' 1 2 13 15
34047 # Create a (secure) tmp directory for tmp files.
34050 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34051 test -n "$tmp" && test -d "$tmp"
34052 } ||
34054 tmp=./conf$$-$RANDOM
34055 (umask 077 && mkdir "$tmp")
34056 } ||
34058 echo "$me: cannot create a temporary directory in ." >&2
34059 { (exit 1); exit 1; }
34063 # Set up the sed scripts for CONFIG_FILES section.
34066 # No need to generate the scripts if there are no CONFIG_FILES.
34067 # This happens for instance when ./config.status config.h
34068 if test -n "$CONFIG_FILES"; then
34070 _ACEOF
34074 ac_delim='%!_!# '
34075 for ac_last_try in false false false false false :; do
34076 cat >conf$$subs.sed <<_ACEOF
34077 SHELL!$SHELL$ac_delim
34078 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34079 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34080 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34081 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34082 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34083 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34084 exec_prefix!$exec_prefix$ac_delim
34085 prefix!$prefix$ac_delim
34086 program_transform_name!$program_transform_name$ac_delim
34087 bindir!$bindir$ac_delim
34088 sbindir!$sbindir$ac_delim
34089 libexecdir!$libexecdir$ac_delim
34090 datarootdir!$datarootdir$ac_delim
34091 datadir!$datadir$ac_delim
34092 sysconfdir!$sysconfdir$ac_delim
34093 sharedstatedir!$sharedstatedir$ac_delim
34094 localstatedir!$localstatedir$ac_delim
34095 includedir!$includedir$ac_delim
34096 oldincludedir!$oldincludedir$ac_delim
34097 docdir!$docdir$ac_delim
34098 infodir!$infodir$ac_delim
34099 htmldir!$htmldir$ac_delim
34100 dvidir!$dvidir$ac_delim
34101 pdfdir!$pdfdir$ac_delim
34102 psdir!$psdir$ac_delim
34103 libdir!$libdir$ac_delim
34104 localedir!$localedir$ac_delim
34105 mandir!$mandir$ac_delim
34106 DEFS!$DEFS$ac_delim
34107 ECHO_C!$ECHO_C$ac_delim
34108 ECHO_N!$ECHO_N$ac_delim
34109 ECHO_T!$ECHO_T$ac_delim
34110 LIBS!$LIBS$ac_delim
34111 build_alias!$build_alias$ac_delim
34112 host_alias!$host_alias$ac_delim
34113 target_alias!$target_alias$ac_delim
34114 build!$build$ac_delim
34115 build_cpu!$build_cpu$ac_delim
34116 build_vendor!$build_vendor$ac_delim
34117 build_os!$build_os$ac_delim
34118 host!$host$ac_delim
34119 host_cpu!$host_cpu$ac_delim
34120 host_vendor!$host_vendor$ac_delim
34121 host_os!$host_os$ac_delim
34122 CC!$CC$ac_delim
34123 CFLAGS!$CFLAGS$ac_delim
34124 LDFLAGS!$LDFLAGS$ac_delim
34125 CPPFLAGS!$CPPFLAGS$ac_delim
34126 ac_ct_CC!$ac_ct_CC$ac_delim
34127 EXEEXT!$EXEEXT$ac_delim
34128 OBJEXT!$OBJEXT$ac_delim
34129 CPP!$CPP$ac_delim
34130 GREP!$GREP$ac_delim
34131 EGREP!$EGREP$ac_delim
34132 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
34133 BUILD_CPU!$BUILD_CPU$ac_delim
34134 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
34135 BUILD_OS!$BUILD_OS$ac_delim
34136 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
34137 HOST_CPU!$HOST_CPU$ac_delim
34138 HOST_VENDOR!$HOST_VENDOR$ac_delim
34139 HOST_OS!$HOST_OS$ac_delim
34140 OSARCH!$OSARCH$ac_delim
34141 UNAME!$UNAME$ac_delim
34142 PBX_OSREV!$PBX_OSREV$ac_delim
34143 CXX!$CXX$ac_delim
34144 LD!$LD$ac_delim
34145 RANLIB!$RANLIB$ac_delim
34146 CXXFLAGS!$CXXFLAGS$ac_delim
34147 ac_ct_CXX!$ac_ct_CXX$ac_delim
34148 CXXCPP!$CXXCPP$ac_delim
34149 SED!$SED$ac_delim
34150 AWK!$AWK$ac_delim
34151 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34152 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34153 INSTALL_DATA!$INSTALL_DATA$ac_delim
34154 LN_S!$LN_S$ac_delim
34155 GNU_MAKE!$GNU_MAKE$ac_delim
34156 STRIP!$STRIP$ac_delim
34157 AR!$AR$ac_delim
34158 GNU_LD!$GNU_LD$ac_delim
34159 FIND!$FIND$ac_delim
34160 COMPRESS!$COMPRESS$ac_delim
34161 BASENAME!$BASENAME$ac_delim
34162 ID!$ID$ac_delim
34163 DIRNAME!$DIRNAME$ac_delim
34164 LN!$LN$ac_delim
34165 DOT!$DOT$ac_delim
34166 WGET!$WGET$ac_delim
34167 FETCH!$FETCH$ac_delim
34168 DOWNLOAD!$DOWNLOAD$ac_delim
34169 acx_pthread_config!$acx_pthread_config$ac_delim
34170 PTHREAD_CC!$PTHREAD_CC$ac_delim
34171 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
34172 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
34173 AST_DEVMODE!$AST_DEVMODE$ac_delim
34174 _ACEOF
34176 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34177 break
34178 elif $ac_last_try; then
34179 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34180 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34181 { (exit 1); exit 1; }; }
34182 else
34183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34185 done
34187 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34188 if test -n "$ac_eof"; then
34189 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34190 ac_eof=`expr $ac_eof + 1`
34193 cat >>$CONFIG_STATUS <<_ACEOF
34194 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34196 _ACEOF
34197 sed '
34198 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34199 s/^/s,@/; s/!/@,|#_!!_#|/
34202 s/'"$ac_delim"'$/,g/; t
34203 s/$/\\/; p
34204 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34205 ' >>$CONFIG_STATUS <conf$$subs.sed
34206 rm -f conf$$subs.sed
34207 cat >>$CONFIG_STATUS <<_ACEOF
34208 CEOF$ac_eof
34209 _ACEOF
34212 ac_delim='%!_!# '
34213 for ac_last_try in false false false false false :; do
34214 cat >conf$$subs.sed <<_ACEOF
34215 ALSA_LIB!$ALSA_LIB$ac_delim
34216 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
34217 ALSA_DIR!$ALSA_DIR$ac_delim
34218 PBX_ALSA!$PBX_ALSA$ac_delim
34219 CURL_LIB!$CURL_LIB$ac_delim
34220 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
34221 CURL_DIR!$CURL_DIR$ac_delim
34222 PBX_CURL!$PBX_CURL$ac_delim
34223 CURSES_LIB!$CURSES_LIB$ac_delim
34224 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
34225 CURSES_DIR!$CURSES_DIR$ac_delim
34226 PBX_CURSES!$PBX_CURSES$ac_delim
34227 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
34228 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
34229 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
34230 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
34231 GSM_LIB!$GSM_LIB$ac_delim
34232 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
34233 GSM_DIR!$GSM_DIR$ac_delim
34234 PBX_GSM!$PBX_GSM$ac_delim
34235 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
34236 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
34237 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
34238 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
34239 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
34240 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
34241 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
34242 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
34243 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
34244 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
34245 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
34246 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
34247 KDE_LIB!$KDE_LIB$ac_delim
34248 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
34249 KDE_DIR!$KDE_DIR$ac_delim
34250 PBX_KDE!$PBX_KDE$ac_delim
34251 LTDL_LIB!$LTDL_LIB$ac_delim
34252 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
34253 LTDL_DIR!$LTDL_DIR$ac_delim
34254 PBX_LTDL!$PBX_LTDL$ac_delim
34255 MISDN_LIB!$MISDN_LIB$ac_delim
34256 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
34257 MISDN_DIR!$MISDN_DIR$ac_delim
34258 PBX_MISDN!$PBX_MISDN$ac_delim
34259 NBS_LIB!$NBS_LIB$ac_delim
34260 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
34261 NBS_DIR!$NBS_DIR$ac_delim
34262 PBX_NBS!$PBX_NBS$ac_delim
34263 NCURSES_LIB!$NCURSES_LIB$ac_delim
34264 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
34265 NCURSES_DIR!$NCURSES_DIR$ac_delim
34266 PBX_NCURSES!$PBX_NCURSES$ac_delim
34267 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
34268 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
34269 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
34270 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
34271 NEWT_LIB!$NEWT_LIB$ac_delim
34272 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
34273 NEWT_DIR!$NEWT_DIR$ac_delim
34274 PBX_NEWT!$PBX_NEWT$ac_delim
34275 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
34276 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
34277 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
34278 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
34279 OGG_LIB!$OGG_LIB$ac_delim
34280 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
34281 OGG_DIR!$OGG_DIR$ac_delim
34282 PBX_OGG!$PBX_OGG$ac_delim
34283 OSPTK_LIB!$OSPTK_LIB$ac_delim
34284 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
34285 OSPTK_DIR!$OSPTK_DIR$ac_delim
34286 PBX_OSPTK!$PBX_OSPTK$ac_delim
34287 OSS_LIB!$OSS_LIB$ac_delim
34288 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
34289 OSS_DIR!$OSS_DIR$ac_delim
34290 PBX_OSS!$PBX_OSS$ac_delim
34291 POPT_LIB!$POPT_LIB$ac_delim
34292 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
34293 POPT_DIR!$POPT_DIR$ac_delim
34294 PBX_POPT!$PBX_POPT$ac_delim
34295 PGSQL_LIB!$PGSQL_LIB$ac_delim
34296 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
34297 PGSQL_DIR!$PGSQL_DIR$ac_delim
34298 PBX_PGSQL!$PBX_PGSQL$ac_delim
34299 PRI_LIB!$PRI_LIB$ac_delim
34300 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
34301 PRI_DIR!$PRI_DIR$ac_delim
34302 PBX_PRI!$PBX_PRI$ac_delim
34303 PWLIB_LIB!$PWLIB_LIB$ac_delim
34304 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
34305 PWLIB_DIR!$PWLIB_DIR$ac_delim
34306 PBX_PWLIB!$PBX_PWLIB$ac_delim
34307 OPENH323_LIB!$OPENH323_LIB$ac_delim
34308 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
34309 OPENH323_DIR!$OPENH323_DIR$ac_delim
34310 PBX_OPENH323!$PBX_OPENH323$ac_delim
34311 QT_LIB!$QT_LIB$ac_delim
34312 _ACEOF
34314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34315 break
34316 elif $ac_last_try; then
34317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34319 { (exit 1); exit 1; }; }
34320 else
34321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34323 done
34325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34326 if test -n "$ac_eof"; then
34327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34328 ac_eof=`expr $ac_eof + 1`
34331 cat >>$CONFIG_STATUS <<_ACEOF
34332 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34334 _ACEOF
34335 sed '
34336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34337 s/^/s,@/; s/!/@,|#_!!_#|/
34340 s/'"$ac_delim"'$/,g/; t
34341 s/$/\\/; p
34342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34343 ' >>$CONFIG_STATUS <conf$$subs.sed
34344 rm -f conf$$subs.sed
34345 cat >>$CONFIG_STATUS <<_ACEOF
34346 CEOF$ac_eof
34347 _ACEOF
34350 ac_delim='%!_!# '
34351 for ac_last_try in false false false false false :; do
34352 cat >conf$$subs.sed <<_ACEOF
34353 QT_INCLUDE!$QT_INCLUDE$ac_delim
34354 QT_DIR!$QT_DIR$ac_delim
34355 PBX_QT!$PBX_QT$ac_delim
34356 RADIUS_LIB!$RADIUS_LIB$ac_delim
34357 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
34358 RADIUS_DIR!$RADIUS_DIR$ac_delim
34359 PBX_RADIUS!$PBX_RADIUS$ac_delim
34360 SPEEX_LIB!$SPEEX_LIB$ac_delim
34361 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
34362 SPEEX_DIR!$SPEEX_DIR$ac_delim
34363 PBX_SPEEX!$PBX_SPEEX$ac_delim
34364 SQLITE_LIB!$SQLITE_LIB$ac_delim
34365 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
34366 SQLITE_DIR!$SQLITE_DIR$ac_delim
34367 PBX_SQLITE!$PBX_SQLITE$ac_delim
34368 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
34369 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
34370 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
34371 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
34372 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
34373 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
34374 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
34375 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
34376 FREETDS_LIB!$FREETDS_LIB$ac_delim
34377 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
34378 FREETDS_DIR!$FREETDS_DIR$ac_delim
34379 PBX_FREETDS!$PBX_FREETDS$ac_delim
34380 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
34381 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
34382 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
34383 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
34384 TINFO_LIB!$TINFO_LIB$ac_delim
34385 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
34386 TINFO_DIR!$TINFO_DIR$ac_delim
34387 PBX_TINFO!$PBX_TINFO$ac_delim
34388 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
34389 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
34390 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
34391 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
34392 USB_LIB!$USB_LIB$ac_delim
34393 USB_INCLUDE!$USB_INCLUDE$ac_delim
34394 USB_DIR!$USB_DIR$ac_delim
34395 PBX_USB!$PBX_USB$ac_delim
34396 VORBIS_LIB!$VORBIS_LIB$ac_delim
34397 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
34398 VORBIS_DIR!$VORBIS_DIR$ac_delim
34399 PBX_VORBIS!$PBX_VORBIS$ac_delim
34400 VPB_LIB!$VPB_LIB$ac_delim
34401 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
34402 VPB_DIR!$VPB_DIR$ac_delim
34403 PBX_VPB!$PBX_VPB$ac_delim
34404 ZLIB_LIB!$ZLIB_LIB$ac_delim
34405 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
34406 ZLIB_DIR!$ZLIB_DIR$ac_delim
34407 PBX_ZLIB!$PBX_ZLIB$ac_delim
34408 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
34409 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
34410 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
34411 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
34412 ALLOCA!$ALLOCA$ac_delim
34413 LIBOBJS!$LIBOBJS$ac_delim
34414 POW_LIB!$POW_LIB$ac_delim
34415 GC_CFLAGS!$GC_CFLAGS$ac_delim
34416 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
34417 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
34418 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
34419 KDEINIT!$KDEINIT$ac_delim
34420 KDEDIR!$KDEDIR$ac_delim
34421 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
34422 PG_CONFIG!$PG_CONFIG$ac_delim
34423 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
34424 PWLIBDIR!$PWLIBDIR$ac_delim
34425 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
34426 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
34427 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
34428 OPENH323DIR!$OPENH323DIR$ac_delim
34429 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
34430 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
34431 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
34432 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
34433 QTMOC!$QTMOC$ac_delim
34434 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
34435 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
34436 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
34437 PBX_H323!$PBX_H323$ac_delim
34438 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
34439 GTKCONFIG!$GTKCONFIG$ac_delim
34440 PBX_GTK!$PBX_GTK$ac_delim
34441 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
34442 GTK_LIB!$GTK_LIB$ac_delim
34443 PKGCONFIG!$PKGCONFIG$ac_delim
34444 PBX_GTK2!$PBX_GTK2$ac_delim
34445 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
34446 GTK2_LIB!$GTK2_LIB$ac_delim
34447 CURL_CONFIG!$CURL_CONFIG$ac_delim
34448 LTLIBOBJS!$LTLIBOBJS$ac_delim
34449 _ACEOF
34451 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
34452 break
34453 elif $ac_last_try; then
34454 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34455 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34456 { (exit 1); exit 1; }; }
34457 else
34458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34460 done
34462 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34463 if test -n "$ac_eof"; then
34464 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34465 ac_eof=`expr $ac_eof + 1`
34468 cat >>$CONFIG_STATUS <<_ACEOF
34469 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34471 _ACEOF
34472 sed '
34473 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34474 s/^/s,@/; s/!/@,|#_!!_#|/
34477 s/'"$ac_delim"'$/,g/; t
34478 s/$/\\/; p
34479 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34480 ' >>$CONFIG_STATUS <conf$$subs.sed
34481 rm -f conf$$subs.sed
34482 cat >>$CONFIG_STATUS <<_ACEOF
34483 CEOF$ac_eof
34484 _ACEOF
34487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34489 # trailing colons and then remove the whole line if VPATH becomes empty
34490 # (actually we leave an empty line to preserve line numbers).
34491 if test "x$srcdir" = x.; then
34492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34493 s/:*\$(srcdir):*/:/
34494 s/:*\${srcdir}:*/:/
34495 s/:*@srcdir@:*/:/
34496 s/^\([^=]*=[ ]*\):*/\1/
34497 s/:*$//
34498 s/^[^=]*=[ ]*$//
34502 cat >>$CONFIG_STATUS <<\_ACEOF
34503 fi # test -n "$CONFIG_FILES"
34506 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
34508 case $ac_tag in
34509 :[FHLC]) ac_mode=$ac_tag; continue;;
34510 esac
34511 case $ac_mode$ac_tag in
34512 :[FHL]*:*);;
34513 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34514 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34515 { (exit 1); exit 1; }; };;
34516 :[FH]-) ac_tag=-:-;;
34517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34518 esac
34519 ac_save_IFS=$IFS
34520 IFS=:
34521 set x $ac_tag
34522 IFS=$ac_save_IFS
34523 shift
34524 ac_file=$1
34525 shift
34527 case $ac_mode in
34528 :L) ac_source=$1;;
34529 :[FH])
34530 ac_file_inputs=
34531 for ac_f
34533 case $ac_f in
34534 -) ac_f="$tmp/stdin";;
34535 *) # Look for the file first in the build tree, then in the source tree
34536 # (if the path is not absolute). The absolute path cannot be DOS-style,
34537 # because $ac_f cannot contain `:'.
34538 test -f "$ac_f" ||
34539 case $ac_f in
34540 [\\/$]*) false;;
34541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34542 esac ||
34543 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34544 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34545 { (exit 1); exit 1; }; };;
34546 esac
34547 ac_file_inputs="$ac_file_inputs $ac_f"
34548 done
34550 # Let's still pretend it is `configure' which instantiates (i.e., don't
34551 # use $as_me), people would be surprised to read:
34552 # /* config.h. Generated by config.status. */
34553 configure_input="Generated from "`IFS=:
34554 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34555 if test x"$ac_file" != x-; then
34556 configure_input="$ac_file. $configure_input"
34557 { echo "$as_me:$LINENO: creating $ac_file" >&5
34558 echo "$as_me: creating $ac_file" >&6;}
34561 case $ac_tag in
34562 *:-:* | *:-) cat >"$tmp/stdin";;
34563 esac
34565 esac
34567 ac_dir=`$as_dirname -- "$ac_file" ||
34568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34569 X"$ac_file" : 'X\(//\)[^/]' \| \
34570 X"$ac_file" : 'X\(//\)$' \| \
34571 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34572 echo X"$ac_file" |
34573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34574 s//\1/
34577 /^X\(\/\/\)[^/].*/{
34578 s//\1/
34581 /^X\(\/\/\)$/{
34582 s//\1/
34585 /^X\(\/\).*/{
34586 s//\1/
34589 s/.*/./; q'`
34590 { as_dir="$ac_dir"
34591 case $as_dir in #(
34592 -*) as_dir=./$as_dir;;
34593 esac
34594 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34595 as_dirs=
34596 while :; do
34597 case $as_dir in #(
34598 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34599 *) as_qdir=$as_dir;;
34600 esac
34601 as_dirs="'$as_qdir' $as_dirs"
34602 as_dir=`$as_dirname -- "$as_dir" ||
34603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34604 X"$as_dir" : 'X\(//\)[^/]' \| \
34605 X"$as_dir" : 'X\(//\)$' \| \
34606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34607 echo X"$as_dir" |
34608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34609 s//\1/
34612 /^X\(\/\/\)[^/].*/{
34613 s//\1/
34616 /^X\(\/\/\)$/{
34617 s//\1/
34620 /^X\(\/\).*/{
34621 s//\1/
34624 s/.*/./; q'`
34625 test -d "$as_dir" && break
34626 done
34627 test -z "$as_dirs" || eval "mkdir $as_dirs"
34628 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34629 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34630 { (exit 1); exit 1; }; }; }
34631 ac_builddir=.
34633 case "$ac_dir" in
34634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34636 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34637 # A ".." for each directory in $ac_dir_suffix.
34638 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34639 case $ac_top_builddir_sub in
34640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34642 esac ;;
34643 esac
34644 ac_abs_top_builddir=$ac_pwd
34645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34646 # for backward compatibility:
34647 ac_top_builddir=$ac_top_build_prefix
34649 case $srcdir in
34650 .) # We are building in place.
34651 ac_srcdir=.
34652 ac_top_srcdir=$ac_top_builddir_sub
34653 ac_abs_top_srcdir=$ac_pwd ;;
34654 [\\/]* | ?:[\\/]* ) # Absolute name.
34655 ac_srcdir=$srcdir$ac_dir_suffix;
34656 ac_top_srcdir=$srcdir
34657 ac_abs_top_srcdir=$srcdir ;;
34658 *) # Relative name.
34659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34660 ac_top_srcdir=$ac_top_build_prefix$srcdir
34661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34662 esac
34663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34666 case $ac_mode in
34669 # CONFIG_FILE
34672 case $INSTALL in
34673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34675 esac
34676 _ACEOF
34678 cat >>$CONFIG_STATUS <<\_ACEOF
34679 # If the template does not know about datarootdir, expand it.
34680 # FIXME: This hack should be removed a few years after 2.60.
34681 ac_datarootdir_hack=; ac_datarootdir_seen=
34683 case `sed -n '/datarootdir/ {
34687 /@datadir@/p
34688 /@docdir@/p
34689 /@infodir@/p
34690 /@localedir@/p
34691 /@mandir@/p
34692 ' $ac_file_inputs` in
34693 *datarootdir*) ac_datarootdir_seen=yes;;
34694 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34695 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34696 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34697 _ACEOF
34698 cat >>$CONFIG_STATUS <<_ACEOF
34699 ac_datarootdir_hack='
34700 s&@datadir@&$datadir&g
34701 s&@docdir@&$docdir&g
34702 s&@infodir@&$infodir&g
34703 s&@localedir@&$localedir&g
34704 s&@mandir@&$mandir&g
34705 s&\\\${datarootdir}&$datarootdir&g' ;;
34706 esac
34707 _ACEOF
34709 # Neutralize VPATH when `$srcdir' = `.'.
34710 # Shell code in configure.ac might set extrasub.
34711 # FIXME: do we really want to maintain this feature?
34712 cat >>$CONFIG_STATUS <<_ACEOF
34713 sed "$ac_vpsub
34714 $extrasub
34715 _ACEOF
34716 cat >>$CONFIG_STATUS <<\_ACEOF
34718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34719 s&@configure_input@&$configure_input&;t t
34720 s&@top_builddir@&$ac_top_builddir_sub&;t t
34721 s&@srcdir@&$ac_srcdir&;t t
34722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34723 s&@top_srcdir@&$ac_top_srcdir&;t t
34724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34725 s&@builddir@&$ac_builddir&;t t
34726 s&@abs_builddir@&$ac_abs_builddir&;t t
34727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34728 s&@INSTALL@&$ac_INSTALL&;t t
34729 $ac_datarootdir_hack
34730 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
34732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34733 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34735 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34736 which seems to be undefined. Please make sure it is defined." >&5
34737 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34738 which seems to be undefined. Please make sure it is defined." >&2;}
34740 rm -f "$tmp/stdin"
34741 case $ac_file in
34742 -) cat "$tmp/out"; rm -f "$tmp/out";;
34743 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34744 esac
34748 # CONFIG_HEADER
34750 _ACEOF
34752 # Transform confdefs.h into a sed script `conftest.defines', that
34753 # substitutes the proper values into config.h.in to produce config.h.
34754 rm -f conftest.defines conftest.tail
34755 # First, append a space to every undef/define line, to ease matching.
34756 echo 's/$/ /' >conftest.defines
34757 # Then, protect against being on the right side of a sed subst, or in
34758 # an unquoted here document, in config.status. If some macros were
34759 # called several times there might be several #defines for the same
34760 # symbol, which is useless. But do not sort them, since the last
34761 # AC_DEFINE must be honored.
34762 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34763 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34764 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34765 # PARAMS is the parameter list in the macro definition--in most cases, it's
34766 # just an empty string.
34767 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34768 ac_dB='\\)[ (].*,\\1define\\2'
34769 ac_dC=' '
34770 ac_dD=' ,'
34772 uniq confdefs.h |
34773 sed -n '
34774 t rset
34775 :rset
34776 s/^[ ]*#[ ]*define[ ][ ]*//
34777 t ok
34780 s/[\\&,]/\\&/g
34781 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34782 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34783 ' >>conftest.defines
34785 # Remove the space that was appended to ease matching.
34786 # Then replace #undef with comments. This is necessary, for
34787 # example, in the case of _POSIX_SOURCE, which is predefined and required
34788 # on some systems where configure will not decide to define it.
34789 # (The regexp can be short, since the line contains either #define or #undef.)
34790 echo 's/ $//
34791 s,^[ #]*u.*,/* & */,' >>conftest.defines
34793 # Break up conftest.defines:
34794 ac_max_sed_lines=50
34796 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34797 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34798 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34799 # et cetera.
34800 ac_in='$ac_file_inputs'
34801 ac_out='"$tmp/out1"'
34802 ac_nxt='"$tmp/out2"'
34804 while :
34806 # Write a here document:
34807 cat >>$CONFIG_STATUS <<_ACEOF
34808 # First, check the format of the line:
34809 cat >"\$tmp/defines.sed" <<\\CEOF
34810 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34811 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34813 :def
34814 _ACEOF
34815 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34816 echo 'CEOF
34817 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34818 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34819 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34820 grep . conftest.tail >/dev/null || break
34821 rm -f conftest.defines
34822 mv conftest.tail conftest.defines
34823 done
34824 rm -f conftest.defines conftest.tail
34826 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34827 cat >>$CONFIG_STATUS <<\_ACEOF
34828 if test x"$ac_file" != x-; then
34829 echo "/* $configure_input */" >"$tmp/config.h"
34830 cat "$ac_result" >>"$tmp/config.h"
34831 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34832 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34833 echo "$as_me: $ac_file is unchanged" >&6;}
34834 else
34835 rm -f $ac_file
34836 mv "$tmp/config.h" $ac_file
34838 else
34839 echo "/* $configure_input */"
34840 cat "$ac_result"
34842 rm -f "$tmp/out12"
34846 esac
34848 done # for ac_tag
34851 { (exit 0); exit 0; }
34852 _ACEOF
34853 chmod +x $CONFIG_STATUS
34854 ac_clean_files=$ac_clean_files_save
34857 # configure is writing to config.log, and then calls config.status.
34858 # config.status does its own redirection, appending to config.log.
34859 # Unfortunately, on DOS this fails, as config.log is still kept open
34860 # by configure, so config.status won't be able to write to it; its
34861 # output is simply discarded. So we exec the FD to /dev/null,
34862 # effectively closing config.log, so it can be properly (re)opened and
34863 # appended to by config.status. When coming back to configure, we
34864 # need to make the FD available again.
34865 if test "$no_create" != yes; then
34866 ac_cs_success=:
34867 ac_config_status_args=
34868 test "$silent" = yes &&
34869 ac_config_status_args="$ac_config_status_args --quiet"
34870 exec 5>/dev/null
34871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34872 exec 5>>config.log
34873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34874 # would make configure fail if this is the last instruction.
34875 $ac_cs_success || { (exit 1); exit 1; }
34879 if test "x${silent}" != "xyes" ; then
34880 echo
34881 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
34882 echo " .\$7\$7.. .7\$\$7:. "
34883 echo " .\$\$:. ,\$7.7 "
34884 echo " .\$7. 7\$\$\$\$ .\$\$77 "
34885 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
34886 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
34887 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
34888 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
34889 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
34890 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
34891 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
34892 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
34893 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
34894 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
34895 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
34896 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
34897 echo " \$\$\$\$\$ \$\$\$ "
34898 echo " \$\$\$\$7. \$\$ (TM) "
34899 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
34900 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
34901 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
34902 echo
34905 { echo "$as_me:$LINENO: Package configured for: " >&5
34906 echo "$as_me: Package configured for: " >&6;}
34907 { echo "$as_me:$LINENO: OS type : $host_os" >&5
34908 echo "$as_me: OS type : $host_os" >&6;}
34909 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
34910 echo "$as_me: Host CPU : $host_cpu" >&6;}
34911 if test "${cross_compiling}" = "yes"; then
34912 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
34913 echo "$as_me: Cross Compilation = YES" >&6;}