Correction to commmit 120863, make sure proper destructor function is called as well...
[asterisk-bristuff.git] / configure
blob27028fd9d2a327d962e0ad94756b9c717c0c0778
1 #! /bin/sh
2 # From configure.ac Revision: 115341 .
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_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 UNAME
687 PBX_OSREV
690 RANLIB
691 CXXFLAGS
692 ac_ct_CXX
693 CXXCPP
696 INSTALL_PROGRAM
697 INSTALL_SCRIPT
698 INSTALL_DATA
699 LN_S
700 GNU_MAKE
701 STRIP
703 GNU_LD
704 FIND
705 COMPRESS
706 BASENAME
708 DIRNAME
711 WGET
712 FETCH
713 DOWNLOAD
714 SOXMIX
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 CAP_LIB
729 CAP_INCLUDE
730 CAP_DIR
731 PBX_CAP
732 CURSES_LIB
733 CURSES_INCLUDE
734 CURSES_DIR
735 PBX_CURSES
736 GNUTLS_LIB
737 GNUTLS_INCLUDE
738 GNUTLS_DIR
739 PBX_GNUTLS
740 GSM_LIB
741 GSM_INCLUDE
742 GSM_DIR
743 PBX_GSM
744 IKSEMEL_LIB
745 IKSEMEL_INCLUDE
746 IKSEMEL_DIR
747 PBX_IKSEMEL
748 IMAP_TK_LIB
749 IMAP_TK_INCLUDE
750 IMAP_TK_DIR
751 PBX_IMAP_TK
752 ISDNNET_LIB
753 ISDNNET_INCLUDE
754 ISDNNET_DIR
755 PBX_ISDNNET
756 KDE_LIB
757 KDE_INCLUDE
758 KDE_DIR
759 PBX_KDE
760 LTDL_LIB
761 LTDL_INCLUDE
762 LTDL_DIR
763 PBX_LTDL
764 MISDN_LIB
765 MISDN_INCLUDE
766 MISDN_DIR
767 PBX_MISDN
768 NBS_LIB
769 NBS_INCLUDE
770 NBS_DIR
771 PBX_NBS
772 NCURSES_LIB
773 NCURSES_INCLUDE
774 NCURSES_DIR
775 PBX_NCURSES
776 NETSNMP_LIB
777 NETSNMP_INCLUDE
778 NETSNMP_DIR
779 PBX_NETSNMP
780 NEWT_LIB
781 NEWT_INCLUDE
782 NEWT_DIR
783 PBX_NEWT
784 UNIXODBC_LIB
785 UNIXODBC_INCLUDE
786 UNIXODBC_DIR
787 PBX_UNIXODBC
788 OGG_LIB
789 OGG_INCLUDE
790 OGG_DIR
791 PBX_OGG
792 OSPTK_LIB
793 OSPTK_INCLUDE
794 OSPTK_DIR
795 PBX_OSPTK
796 OSS_LIB
797 OSS_INCLUDE
798 OSS_DIR
799 PBX_OSS
800 POPT_LIB
801 POPT_INCLUDE
802 POPT_DIR
803 PBX_POPT
804 PGSQL_LIB
805 PGSQL_INCLUDE
806 PGSQL_DIR
807 PBX_PGSQL
808 PRI_LIB
809 PRI_INCLUDE
810 PRI_DIR
811 PBX_PRI
812 PWLIB_LIB
813 PWLIB_INCLUDE
814 PWLIB_DIR
815 PBX_PWLIB
816 OPENH323_LIB
817 OPENH323_INCLUDE
818 OPENH323_DIR
819 PBX_OPENH323
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 SPEEXDSP_LIB
829 SPEEXDSP_INCLUDE
830 SPEEXDSP_DIR
831 PBX_SPEEXDSP
832 SQLITE_LIB
833 SQLITE_INCLUDE
834 SQLITE_DIR
835 PBX_SQLITE
836 SUPPSERV_LIB
837 SUPPSERV_INCLUDE
838 SUPPSERV_DIR
839 PBX_SUPPSERV
840 OPENSSL_LIB
841 OPENSSL_INCLUDE
842 OPENSSL_DIR
843 PBX_OPENSSL
844 FREETDS_LIB
845 FREETDS_INCLUDE
846 FREETDS_DIR
847 PBX_FREETDS
848 TERMCAP_LIB
849 TERMCAP_INCLUDE
850 TERMCAP_DIR
851 PBX_TERMCAP
852 TINFO_LIB
853 TINFO_INCLUDE
854 TINFO_DIR
855 PBX_TINFO
856 TONEZONE_LIB
857 TONEZONE_INCLUDE
858 TONEZONE_DIR
859 PBX_TONEZONE
860 USB_LIB
861 USB_INCLUDE
862 USB_DIR
863 PBX_USB
864 VORBIS_LIB
865 VORBIS_INCLUDE
866 VORBIS_DIR
867 PBX_VORBIS
868 VPB_LIB
869 VPB_INCLUDE
870 VPB_DIR
871 PBX_VPB
872 ZLIB_LIB
873 ZLIB_INCLUDE
874 ZLIB_DIR
875 PBX_ZLIB
876 ZAPTEL_LIB
877 ZAPTEL_INCLUDE
878 ZAPTEL_DIR
879 PBX_ZAPTEL
880 ALLOCA
881 LIBOBJS
882 POW_LIB
883 GC_CFLAGS
884 GC_LDFLAGS
885 AST_DECLARATION_AFTER_STATEMENT
886 AST_NO_STRICT_OVERFLOW
887 GSM_INTERNAL
888 KDEINIT
889 KDEDIR
890 NETSNMP_CONFIG
891 PG_CONFIG
892 PTLIB_CONFIG
893 PWLIBDIR
894 PWLIB_INCDIR
895 PWLIB_LIBDIR
896 PWLIB_PLATFORM
897 OPENH323DIR
898 OPENH323_INCDIR
899 OPENH323_LIBDIR
900 OPENH323_SUFFIX
901 OPENH323_BUILD
902 PBX_SPEEX_PREPROCESS
903 PBX_ZAPTEL_VLDTMF
904 PBX_ZAPTEL_TRANSCODE
905 EDITLINE_LIB
906 PBX_H323
907 PBX_IXJUSER
908 GTKCONFIG
909 PBX_GTK
910 GTK_INCLUDE
911 GTK_LIB
912 PKGCONFIG
913 PBX_GTK2
914 GTK2_INCLUDE
915 GTK2_LIB
916 CURL_CONFIG
917 LTLIBOBJS'
918 ac_subst_files=''
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
929 CXXFLAGS
931 CXXCPP'
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
980 ac_prev=
981 ac_dashdash=
982 for ac_option
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
987 ac_prev=
988 continue
991 case $ac_option in
992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *) ac_optarg=yes ;;
994 esac
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1000 ac_dashdash=yes ;;
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1034 -disable-* | --disable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1140 no_create=yes ;;
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1250 -with-* | --with-*)
1251 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_$ac_package=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_$ac_package=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1317 # Be sure to have absolute directory names.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val=\$$ac_var
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1330 done
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 echo X"$0" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1384 /^X\(\/\/\)$/{
1385 s//\1/
1388 /^X\(\/\).*/{
1389 s//\1/
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1397 else
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of asterisk 1.4:";;
1500 esac
1501 cat <<\_ACEOF
1503 Optional Features:
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-dev-mode Turn on developer mode
1507 --disable-largefile omit support for large files
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1514 --with-curl=PATH use cURL files in PATH
1515 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1516 --with-curses=PATH use curses files in PATH
1517 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1518 PATH
1519 --with-gsm=PATH use GSM files in PATH , or 'internal'
1520 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1521 --with-imap=PATH use UW IMAP Toolkit files in PATH
1522 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1523 --with-kde=PATH use KDE files in PATH
1524 --with-ltdl=PATH use libtool files in PATH
1525 --with-misdn=PATH use mISDN User Library files in PATH
1526 --with-nbs=PATH use Network Broadcast Sound files in PATH
1527 --with-ncurses=PATH use ncurses files in PATH
1528 --with-netsnmp=PATH use Net-SNMP files in PATH
1529 --with-newt=PATH use newt files in PATH
1530 --with-odbc=PATH use unixODBC files in PATH
1531 --with-ogg=PATH use OGG files in PATH
1532 --with-osptk=PATH use OSP Toolkit files in PATH
1533 --with-oss=PATH use Open Sound System files in PATH
1534 --with-popt=PATH use popt files in PATH
1535 --with-postgres=PATH use PostgreSQL files in PATH
1536 --with-pri=PATH use ISDN PRI files in PATH
1537 --with-pwlib=PATH use PWlib files in PATH
1538 --with-h323=PATH use OpenH323 files in PATH
1539 --with-radius=PATH use Radius Client files in PATH
1540 --with-speex=PATH use Speex files in PATH
1541 --with-speexdsp=PATH use Speexdsp files in PATH
1542 --with-sqlite=PATH use SQLite files in PATH
1543 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1544 --with-ssl=PATH use OpenSSL files in PATH
1545 --with-tds=PATH use FreeTDS files in PATH
1546 --with-termcap=PATH use Termcap files in PATH
1547 --with-tinfo=PATH use Term Info files in PATH
1548 --with-tonezone=PATH use tonezone files in PATH
1549 --with-usb=PATH use usb files in PATH
1550 --with-vorbis=PATH use Vorbis files in PATH
1551 --with-vpb=PATH use Voicetronix API files in PATH
1552 --with-z=PATH use zlib files in PATH
1553 --with-zaptel=PATH use Zaptel files in PATH
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 CXXCPP C++ preprocessor
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to <www.asterisk.org>.
1572 _ACEOF
1573 ac_status=$?
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" || continue
1580 ac_builddir=.
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631 cat <<\_ACEOF
1632 asterisk configure 1.4
1633 generated by GNU Autoconf 2.61
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1640 "Asterisk"
1641 _ACEOF
1642 exit
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by asterisk $as_me 1.4, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1651 $ $0 $@
1653 _ACEOF
1654 exec 5>>config.log
1656 cat <<_ASUNAME
1657 ## --------- ##
1658 ## Platform. ##
1659 ## --------- ##
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 _ASUNAME
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1686 done
1687 IFS=$as_save_IFS
1689 } >&5
1691 cat >&5 <<_ACEOF
1694 ## ----------- ##
1695 ## Core tests. ##
1696 ## ----------- ##
1698 _ACEOF
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1706 ac_configure_args=
1707 ac_configure_args0=
1708 ac_configure_args1=
1709 ac_must_keep_next=false
1710 for ac_pass in 1 2
1712 for ac_arg
1714 case $ac_arg in
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1718 continue ;;
1719 *\'*)
1720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 esac
1722 case $ac_pass in
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1728 else
1729 case $ac_arg in
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 esac
1738 -* ) ac_must_keep_next=true ;;
1739 esac
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1743 esac
1744 done
1745 done
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1757 echo
1759 cat <<\_ASBOX
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1763 _ASBOX
1764 echo
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1769 case $ac_val in #(
1770 *${as_nl}*)
1771 case $ac_var in #(
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1774 esac
1775 case $ac_var in #(
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1778 esac ;;
1779 esac
1780 done
1781 (set) 2>&1 |
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1784 sed -n \
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787 ;; #(
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 esac |
1792 sort
1794 echo
1796 cat <<\_ASBOX
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1800 _ASBOX
1801 echo
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1812 if test -n "$ac_subst_files"; then
1813 cat <<\_ASBOX
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1817 _ASBOX
1818 echo
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 echo "$ac_var='\''$ac_val'\''"
1826 done | sort
1827 echo
1830 if test -s confdefs.h; then
1831 cat <<\_ASBOX
1832 ## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##
1835 _ASBOX
1836 echo
1837 cat confdefs.h
1838 echo
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1843 } >&5
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846 exit $exit_status
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 done
1851 ac_signal=0
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 _ACEOF
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 _ACEOF
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1889 else
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1893 shift
1894 for ac_site_file
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1900 . "$ac_site_file"
1902 done
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1910 case $cache_file in
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1913 esac
1915 else
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1918 >$cache_file
1921 ac_header_list="$ac_header_list utime.h"
1922 # Check that the precious variables saved in the cache have kept the same
1923 # value.
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in
1931 set,)
1932 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,set)
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1939 ,);;
1941 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1945 echo "$as_me: former value: $ac_old_val" >&2;}
1946 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1947 echo "$as_me: current value: $ac_new_val" >&2;}
1948 ac_cache_corrupted=:
1949 fi;;
1950 esac
1951 # Pass precious variables to config.status.
1952 if test "$ac_new_set" = set; then
1953 case $ac_new_val in
1954 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 *) ac_arg=$ac_var=$ac_new_val ;;
1956 esac
1957 case " $ac_configure_args " in
1958 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1959 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 esac
1962 done
1963 if $ac_cache_corrupted; then
1964 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 # cross-compile macros
2004 ac_aux_dir=
2005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006 if test -f "$ac_dir/install-sh"; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 break
2010 elif test -f "$ac_dir/install.sh"; then
2011 ac_aux_dir=$ac_dir
2012 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 break
2014 elif test -f "$ac_dir/shtool"; then
2015 ac_aux_dir=$ac_dir
2016 ac_install_sh="$ac_aux_dir/shtool install -c"
2017 break
2019 done
2020 if test -z "$ac_aux_dir"; then
2021 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023 { (exit 1); exit 1; }; }
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: checking build system type" >&5
2042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052 { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 echo "${ECHO_T}$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2062 *-*-*) ;;
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 echo "$as_me: error: invalid value of canonical build" >&2;}
2065 { (exit 1); exit 1; }; };;
2066 esac
2067 build=$ac_cv_build
2068 ac_save_IFS=$IFS; IFS='-'
2069 set x $ac_cv_build
2070 shift
2071 build_cpu=$1
2072 build_vendor=$2
2073 shift; shift
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2076 build_os=$*
2077 IFS=$ac_save_IFS
2078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2081 { echo "$as_me:$LINENO: checking host system type" >&5
2082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test "x$host_alias" = x; then
2087 ac_cv_host=$ac_cv_build
2088 else
2089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 echo "${ECHO_T}$ac_cv_host" >&6; }
2098 case $ac_cv_host in
2099 *-*-*) ;;
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 echo "$as_me: error: invalid value of canonical host" >&2;}
2102 { (exit 1); exit 1; }; };;
2103 esac
2104 host=$ac_cv_host
2105 ac_save_IFS=$IFS; IFS='-'
2106 set x $ac_cv_host
2107 shift
2108 host_cpu=$1
2109 host_vendor=$2
2110 shift; shift
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2113 host_os=$*
2114 IFS=$ac_save_IFS
2115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2119 # check existence of the package
2122 # specify output header file
2123 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2130 cat >>confdefs.h <<\_ACEOF
2131 #define _GNU_SOURCE 1
2132 _ACEOF
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2162 done
2163 done
2164 IFS=$as_save_IFS
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2179 if test -z "$ac_cv_prog_CC"; then
2180 ac_ct_CC=$CC
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2202 done
2203 done
2204 IFS=$as_save_IFS
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 else
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2217 if test "x$ac_ct_CC" = x; then
2218 CC=""
2219 else
2220 case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { echo "$as_me:$LINENO: 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." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2229 esac
2230 CC=$ac_ct_CC
2232 else
2233 CC="$ac_cv_prog_CC"
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="${ac_tool_prefix}cc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2265 CC=$ac_cv_prog_CC
2266 if test -n "$CC"; then
2267 { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2277 if test -z "$CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 ac_prog_rejected=no
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297 ac_prog_rejected=yes
2298 continue
2300 ac_cv_prog_CC="cc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2311 shift
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2316 shift
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324 { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2326 else
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$CC"; then
2334 if test -n "$ac_tool_prefix"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$CC" && break
2375 done
2377 if test -z "$CC"; then
2378 ac_ct_CC=$CC
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$ac_ct_CC" && break
2419 done
2421 if test "x$ac_ct_CC" = x; then
2422 CC=""
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: 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." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 CC=$ac_ct_CC
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO: checking for C compiler version" >&5
2449 ac_compiler=`set X $ac_compile; echo $2`
2450 { (ac_try="$ac_compiler --version >&5"
2451 case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compiler --version >&5") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2460 { (ac_try="$ac_compiler -v >&5"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compiler -v >&5") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470 { (ac_try="$ac_compiler -V >&5"
2471 case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compiler -V >&5") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 main ()
2493 return 0;
2495 _ACEOF
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2500 # of exeext.
2501 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505 # List of possible output files, starting from the most likely.
2506 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2507 # only as a last resort. b.out is created by i960 compilers.
2508 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2510 # The IRIX 6 linker writes into existing files which may not be
2511 # executable, retaining their permissions. Remove them first so a
2512 # subsequent execution test works.
2513 ac_rmfiles=
2514 for ac_file in $ac_files
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2519 esac
2520 done
2521 rm -f $ac_rmfiles
2523 if { (ac_try="$ac_link_default"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link_default") 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2537 # Autoconf.
2538 for ac_file in $ac_files ''
2540 test -f "$ac_file" || continue
2541 case $ac_file in
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2544 [ab].out )
2545 # We found the default executable, but exeext='' is most
2546 # certainly right.
2547 break;;
2548 *.* )
2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550 then :; else
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # We set ac_cv_exeext here because the later test for it is not
2554 # safe: cross compilers may not add the suffix if given an `-o'
2555 # argument, so we may need to know it at that point already.
2556 # Even if this section looks crufty: it has the advantage of
2557 # actually working.
2558 break;;
2560 break;;
2561 esac
2562 done
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2565 else
2566 ac_file=''
2569 { echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6; }
2571 if test -z "$ac_file"; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: C compiler cannot create executables
2578 See \`config.log' for more details." >&2;}
2579 { (exit 77); exit 77; }; }
2582 ac_exeext=$ac_cv_exeext
2584 # Check that the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591 if { ac_try='./$ac_file'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 cross_compiling=no
2602 else
2603 if test "$cross_compiling" = maybe; then
2604 cross_compiling=yes
2605 else
2606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2616 { echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2624 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2625 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2626 echo "${ECHO_T}$cross_compiling" >&6; }
2628 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2629 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2630 if { (ac_try="$ac_link"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_link") 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; then
2640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 # `rm'.
2644 for ac_file in conftest.exe conftest conftest.*; do
2645 test -f "$ac_file" || continue
2646 case $ac_file in
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2649 break;;
2650 * ) break;;
2651 esac
2652 done
2653 else
2654 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2661 rm -f conftest$ac_cv_exeext
2662 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2667 ac_exeext=$EXEEXT
2668 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2670 if test "${ac_cv_objext+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 main ()
2685 return 0;
2687 _ACEOF
2688 rm -f conftest.o conftest.obj
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2701 case $ac_file in
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2704 break;;
2705 esac
2706 done
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2720 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721 echo "${ECHO_T}$ac_cv_objext" >&6; }
2722 OBJEXT=$ac_cv_objext
2723 ac_objext=$OBJEXT
2724 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2725 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2726 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h. */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2737 main ()
2739 #ifndef __GNUC__
2740 choke me
2741 #endif
2744 return 0;
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
2764 ac_compiler_gnu=yes
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 ac_compiler_gnu=no
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2776 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2778 GCC=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS=${CFLAGS+set}
2780 ac_save_CFLAGS=$CFLAGS
2781 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_cc_g+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 ac_save_c_werror_flag=$ac_c_werror_flag
2787 ac_c_werror_flag=yes
2788 ac_cv_prog_cc_g=no
2789 CFLAGS="-g"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2798 main ()
2802 return 0;
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_cv_prog_cc_g=yes
2823 else
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 CFLAGS=""
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2836 main ()
2840 return 0;
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2845 case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compile") 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest.$ac_objext; then
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 ac_c_werror_flag=$ac_save_c_werror_flag
2866 CFLAGS="-g"
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2899 ac_cv_prog_cc_g=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2922 CFLAGS="-g -O2"
2923 else
2924 CFLAGS="-g"
2926 else
2927 if test "$GCC" = yes; then
2928 CFLAGS="-O2"
2929 else
2930 CFLAGS=
2933 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2934 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 ac_cv_prog_cc_c89=no
2939 ac_save_CC=$CC
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <stdarg.h>
2947 #include <stdio.h>
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2954 char **p;
2955 int i;
2957 return p[i];
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2961 char *s;
2962 va_list v;
2963 va_start (v,p);
2964 s = g (p, va_arg (v,int));
2965 va_end (v);
2966 return s;
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2970 function prototypes and stuff, but not '\xHH' hex character constants.
2971 These don't provoke an error unfortunately, instead are silently treated
2972 as 'x'. The following induces an error, until -std is added to get
2973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2974 array size at least. It's necessary to write '\x00'==0 to get something
2975 that's true only with -std. */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979 inside strings and character constants. */
2980 #define FOO(x) 'x'
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2987 int argc;
2988 char **argv;
2990 main ()
2992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2994 return 0;
2996 _ACEOF
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3000 CC="$ac_save_CC $ac_arg"
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3018 ac_cv_prog_cc_c89=$ac_arg
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f core conftest.err conftest.$ac_objext
3027 test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 done
3029 rm -f conftest.$ac_ext
3030 CC=$ac_save_CC
3033 # AC_CACHE_VAL
3034 case "x$ac_cv_prog_cc_c89" in
3036 { echo "$as_me:$LINENO: result: none needed" >&5
3037 echo "${ECHO_T}none needed" >&6; } ;;
3038 xno)
3039 { echo "$as_me:$LINENO: result: unsupported" >&5
3040 echo "${ECHO_T}unsupported" >&6; } ;;
3042 CC="$CC $ac_cv_prog_cc_c89"
3043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3045 esac
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3064 CPP=
3066 if test -z "$CPP"; then
3067 if test "${ac_cv_prog_CPP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 # Double quotes because CPP needs to be expanded
3071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3073 ac_preproc_ok=false
3074 for ac_c_preproc_warn_flag in '' yes
3076 # Use a header file that comes with gcc, so configuring glibc
3077 # with a fresh cross-compiler works.
3078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079 # <limits.h> exists even on freestanding compilers.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 #ifdef __STDC__
3089 # include <limits.h>
3090 #else
3091 # include <assert.h>
3092 #endif
3093 Syntax error
3094 _ACEOF
3095 if { (ac_try="$ac_cpp conftest.$ac_ext"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null && {
3108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 }; then
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Broken: fails on valid input.
3117 continue
3120 rm -f conftest.err conftest.$ac_ext
3122 # OK, works on sane cases. Now check whether nonexistent headers
3123 # can be detected and how.
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null && {
3145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 }; then
3148 # Broken: success on invalid input.
3149 continue
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3159 rm -f conftest.err conftest.$ac_ext
3161 done
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.$ac_ext
3164 if $ac_preproc_ok; then
3165 break
3168 done
3169 ac_cv_prog_CPP=$CPP
3172 CPP=$ac_cv_prog_CPP
3173 else
3174 ac_cv_prog_CPP=$CPP
3176 { echo "$as_me:$LINENO: result: $CPP" >&5
3177 echo "${ECHO_T}$CPP" >&6; }
3178 ac_preproc_ok=false
3179 for ac_c_preproc_warn_flag in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3184 # <limits.h> exists even on freestanding compilers.
3185 # On the NeXT, cc -E runs the code through the compiler's parser,
3186 # not just through cpp. "Syntax error" is here to catch this case.
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 #ifdef __STDC__
3194 # include <limits.h>
3195 #else
3196 # include <assert.h>
3197 #endif
3198 Syntax error
3199 _ACEOF
3200 if { (ac_try="$ac_cpp conftest.$ac_ext"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null && {
3213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 }; then
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3221 # Broken: fails on valid input.
3222 continue
3225 rm -f conftest.err conftest.$ac_ext
3227 # OK, works on sane cases. Now check whether nonexistent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3236 _ACEOF
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null && {
3250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 }; then
3253 # Broken: success on invalid input.
3254 continue
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Passes both tests.
3260 ac_preproc_ok=:
3261 break
3264 rm -f conftest.err conftest.$ac_ext
3266 done
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.$ac_ext
3269 if $ac_preproc_ok; then
3271 else
3272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_GREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 # Extract the first word of "grep ggrep" to use in msg output
3292 if test -z "$GREP"; then
3293 set dummy grep ggrep; ac_prog_name=$2
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_path_GREP_found=false
3298 # Loop through the user's path and test for each of PROGNAME-LIST
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_prog in grep ggrep; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3308 # Check for GNU ac_path_GREP and select it if it is found.
3309 # Check for GNU $ac_path_GREP
3310 case `"$ac_path_GREP" --version 2>&1` in
3311 *GNU*)
3312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3314 ac_count=0
3315 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3316 while :
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 echo 'GREP' >> "conftest.nl"
3322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3324 ac_count=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_GREP="$ac_path_GREP"
3328 ac_path_GREP_max=$ac_count
3330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3332 done
3333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3334 esac
3337 $ac_path_GREP_found && break 3
3338 done
3339 done
3341 done
3342 IFS=$as_save_IFS
3347 GREP="$ac_cv_path_GREP"
3348 if test -z "$GREP"; then
3349 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3350 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3351 { (exit 1); exit 1; }; }
3354 else
3355 ac_cv_path_GREP=$GREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3362 GREP="$ac_cv_path_GREP"
3365 { echo "$as_me:$LINENO: checking for egrep" >&5
3366 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3367 if test "${ac_cv_path_EGREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3371 then ac_cv_path_EGREP="$GREP -E"
3372 else
3373 # Extract the first word of "egrep" to use in msg output
3374 if test -z "$EGREP"; then
3375 set dummy egrep; ac_prog_name=$2
3376 if test "${ac_cv_path_EGREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 ac_path_EGREP_found=false
3380 # Loop through the user's path and test for each of PROGNAME-LIST
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_prog in egrep; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3390 # Check for GNU ac_path_EGREP and select it if it is found.
3391 # Check for GNU $ac_path_EGREP
3392 case `"$ac_path_EGREP" --version 2>&1` in
3393 *GNU*)
3394 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3396 ac_count=0
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3398 while :
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'EGREP' >> "conftest.nl"
3404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3406 ac_count=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_EGREP="$ac_path_EGREP"
3410 ac_path_EGREP_max=$ac_count
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3414 done
3415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3416 esac
3419 $ac_path_EGREP_found && break 3
3420 done
3421 done
3423 done
3424 IFS=$as_save_IFS
3429 EGREP="$ac_cv_path_EGREP"
3430 if test -z "$EGREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3436 else
3437 ac_cv_path_EGREP=$EGREP
3443 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3444 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3445 EGREP="$ac_cv_path_EGREP"
3449 { echo "$as_me:$LINENO: checking for AIX" >&5
3450 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #ifdef _AIX
3459 #endif
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "yes" >/dev/null 2>&1; then
3464 { echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6; }
3466 cat >>confdefs.h <<\_ACEOF
3467 #define _ALL_SOURCE 1
3468 _ACEOF
3470 else
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3474 rm -f conftest*
3477 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include <stdlib.h>
3489 #include <stdarg.h>
3490 #include <string.h>
3491 #include <float.h>
3494 main ()
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_header_stdc=yes
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_cv_header_stdc=no
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 if test $ac_cv_header_stdc = yes; then
3529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 #include <string.h>
3538 _ACEOF
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "memchr" >/dev/null 2>&1; then
3542 else
3543 ac_cv_header_stdc=no
3545 rm -f conftest*
3549 if test $ac_cv_header_stdc = yes; then
3550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #include <stdlib.h>
3559 _ACEOF
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "free" >/dev/null 2>&1; then
3563 else
3564 ac_cv_header_stdc=no
3566 rm -f conftest*
3570 if test $ac_cv_header_stdc = yes; then
3571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3572 if test "$cross_compiling" = yes; then
3574 else
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #include <ctype.h>
3582 #include <stdlib.h>
3583 #if ((' ' & 0x0FF) == 0x020)
3584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3586 #else
3587 # define ISLOWER(c) \
3588 (('a' <= (c) && (c) <= 'i') \
3589 || ('j' <= (c) && (c) <= 'r') \
3590 || ('s' <= (c) && (c) <= 'z'))
3591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3592 #endif
3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3596 main ()
3598 int i;
3599 for (i = 0; i < 256; i++)
3600 if (XOR (islower (i), ISLOWER (i))
3601 || toupper (i) != TOUPPER (i))
3602 return 2;
3603 return 0;
3605 _ACEOF
3606 rm -f conftest$ac_exeext
3607 if { (ac_try="$ac_link"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_link") 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3617 { (case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622 (eval "$ac_try") 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3627 else
3628 echo "$as_me: program exited with status $ac_status" >&5
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 ( exit $ac_status )
3633 ac_cv_header_stdc=no
3635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3641 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3642 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3643 if test $ac_cv_header_stdc = yes; then
3645 cat >>confdefs.h <<\_ACEOF
3646 #define STDC_HEADERS 1
3647 _ACEOF
3651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3662 inttypes.h stdint.h unistd.h
3664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 $ac_includes_default
3678 #include <$ac_header>
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest.$ac_objext; then
3697 eval "$as_ac_Header=yes"
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 eval "$as_ac_Header=no"
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_res=`eval echo '${'$as_ac_Header'}'`
3708 { echo "$as_me:$LINENO: result: $ac_res" >&5
3709 echo "${ECHO_T}$ac_res" >&6; }
3710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3713 _ACEOF
3717 done
3720 if test "${ac_cv_header_minix_config_h+set}" = set; then
3721 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3722 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_minix_config_h+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3728 else
3729 # Is the header compilable?
3730 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3731 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 $ac_includes_default
3739 #include <minix/config.h>
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3758 ac_header_compiler=yes
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_header_compiler=no
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3768 echo "${ECHO_T}$ac_header_compiler" >&6; }
3770 # Is the header present?
3771 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3772 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #include <minix/config.h>
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 }; then
3797 ac_header_preproc=yes
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_header_preproc=no
3805 rm -f conftest.err conftest.$ac_ext
3806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3807 echo "${ECHO_T}$ac_header_preproc" >&6; }
3809 # So? What about this header?
3810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3811 yes:no: )
3812 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3813 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3815 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3816 ac_header_preproc=yes
3818 no:yes:* )
3819 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3820 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3821 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3822 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3823 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3824 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3825 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3826 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3830 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3831 ( cat <<\_ASBOX
3832 ## ------------------------------- ##
3833 ## Report this to www.asterisk.org ##
3834 ## ------------------------------- ##
3835 _ASBOX
3836 ) | sed "s/^/$as_me: WARNING: /" >&2
3838 esac
3839 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3840 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3841 if test "${ac_cv_header_minix_config_h+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 ac_cv_header_minix_config_h=$ac_header_preproc
3846 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3847 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3850 if test $ac_cv_header_minix_config_h = yes; then
3851 MINIX=yes
3852 else
3853 MINIX=
3857 if test "$MINIX" = yes; then
3859 cat >>confdefs.h <<\_ACEOF
3860 #define _POSIX_SOURCE 1
3861 _ACEOF
3864 cat >>confdefs.h <<\_ACEOF
3865 #define _POSIX_1_SOURCE 2
3866 _ACEOF
3869 cat >>confdefs.h <<\_ACEOF
3870 #define _MINIX 1
3871 _ACEOF
3885 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3886 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3887 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # define __EXTENSIONS__ 1
3898 $ac_includes_default
3900 main ()
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_safe_to_define___extensions__=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3935 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 cat >>confdefs.h <<\_ACEOF
3938 #define __EXTENSIONS__ 1
3939 _ACEOF
3941 cat >>confdefs.h <<\_ACEOF
3942 #define _POSIX_PTHREAD_SEMANTICS 1
3943 _ACEOF
3945 cat >>confdefs.h <<\_ACEOF
3946 #define _TANDEM_SOURCE 1
3947 _ACEOF
3949 # note- does not work on FreeBSD
3951 case "${host_os}" in
3952 freebsd*)
3953 ac_default_prefix=/usr/local
3954 CPPFLAGS=-I/usr/local/include
3955 LDFLAGS=-L/usr/local/lib
3958 ac_default_prefix=/usr
3959 if test ${sysconfdir} = '${prefix}/etc'; then
3960 sysconfdir=/etc
3962 if test ${mandir} = '${prefix}/man'; then
3963 mandir=/usr/share/man
3966 esac
3968 if test ${localstatedir} = '${prefix}/var'; then
3969 localstatedir=/var
3972 BUILD_PLATFORM=${build}
3973 BUILD_CPU=${build_cpu}
3974 BUILD_VENDOR=${build_vendor}
3975 BUILD_OS=${build_os}
3982 HOST_PLATFORM=${host}
3983 HOST_CPU=${host_cpu}
3984 HOST_VENDOR=${host_vendor}
3985 HOST_OS=${host_os}
3992 case "${host_os}" in
3993 freebsd*)
3994 OSARCH=FreeBSD
3996 netbsd*)
3997 OSARCH=NetBSD
3999 openbsd*)
4000 OSARCH=OpenBSD
4002 solaris*)
4003 OSARCH=SunOS
4006 OSARCH=${HOST_OS}
4008 esac
4012 # check for uname
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}uname; ac_word=$2
4016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4018 if test "${ac_cv_path_UNAME+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 case $UNAME in
4022 [\\/]* | ?:[\\/]*)
4023 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4042 esac
4044 UNAME=$ac_cv_path_UNAME
4045 if test -n "$UNAME"; then
4046 { echo "$as_me:$LINENO: result: $UNAME" >&5
4047 echo "${ECHO_T}$UNAME" >&6; }
4048 else
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4055 if test -z "$ac_cv_path_UNAME"; then
4056 ac_pt_UNAME=$UNAME
4057 # Extract the first word of "uname", so it can be a program name with args.
4058 set dummy uname; ac_word=$2
4059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 case $ac_pt_UNAME in
4065 [\\/]* | ?:[\\/]*)
4066 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4085 esac
4087 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4088 if test -n "$ac_pt_UNAME"; then
4089 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4090 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4091 else
4092 { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4096 if test "x$ac_pt_UNAME" = x; then
4097 UNAME="No"
4098 else
4099 case $cross_compiling:$ac_tool_warned in
4100 yes:)
4101 { echo "$as_me:$LINENO: 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." >&5
4104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4105 whose name does not start with the host triplet. If you think this
4106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4107 ac_tool_warned=yes ;;
4108 esac
4109 UNAME=$ac_pt_UNAME
4111 else
4112 UNAME="$ac_cv_path_UNAME"
4115 if test ! x"${UNAME}" = xNo; then
4116 PBX_OSREV=$(${UNAME} -r)
4126 # cross-compile checks
4127 if test "${cross_compiling}" = "yes";
4128 then
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4134 if test "${ac_cv_prog_CC+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4151 done
4152 done
4153 IFS=$as_save_IFS
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159 { echo "$as_me:$LINENO: result: $CC" >&5
4160 echo "${ECHO_T}$CC" >&6; }
4161 else
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4168 if test -z "$ac_cv_prog_CC"; then
4169 ac_ct_CC=$CC
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171 set dummy gcc; ac_word=$2
4172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_ac_ct_CC="gcc"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6; }
4201 else
4202 { echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6; }
4206 if test "x$ac_ct_CC" = x; then
4207 CC=":"
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { echo "$as_me:$LINENO: 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." >&5
4214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4215 whose name does not start with the host triplet. If you think this
4216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219 CC=$ac_ct_CC
4221 else
4222 CC="$ac_cv_prog_CC"
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}g++; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_CXX+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 CXX=$ac_cv_prog_CXX
4254 if test -n "$CXX"; then
4255 { echo "$as_me:$LINENO: result: $CXX" >&5
4256 echo "${ECHO_T}$CXX" >&6; }
4257 else
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4264 if test -z "$ac_cv_prog_CXX"; then
4265 ac_ct_CXX=$CXX
4266 # Extract the first word of "g++", so it can be a program name with args.
4267 set dummy g++; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 if test -n "$ac_ct_CXX"; then
4274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_ac_ct_CXX="g++"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4294 if test -n "$ac_ct_CXX"; then
4295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4297 else
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4302 if test "x$ac_ct_CXX" = x; then
4303 CXX=":"
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { echo "$as_me:$LINENO: 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." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315 CXX=$ac_ct_CXX
4317 else
4318 CXX="$ac_cv_prog_CXX"
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}ld; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_prog_LD+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$LD"; then
4330 ac_cv_prog_LD="$LD" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_LD="${ac_tool_prefix}ld"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 LD=$ac_cv_prog_LD
4350 if test -n "$LD"; then
4351 { echo "$as_me:$LINENO: result: $LD" >&5
4352 echo "${ECHO_T}$LD" >&6; }
4353 else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4360 if test -z "$ac_cv_prog_LD"; then
4361 ac_ct_LD=$LD
4362 # Extract the first word of "ld", so it can be a program name with args.
4363 set dummy ld; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 if test -n "$ac_ct_LD"; then
4370 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_LD="ld"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4390 if test -n "$ac_ct_LD"; then
4391 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4392 echo "${ECHO_T}$ac_ct_LD" >&6; }
4393 else
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4398 if test "x$ac_ct_LD" = x; then
4399 LD=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { echo "$as_me:$LINENO: 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." >&5
4406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4407 whose name does not start with the host triplet. If you think this
4408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 LD=$ac_ct_LD
4413 else
4414 LD="$ac_cv_prog_LD"
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_RANLIB+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 if test -n "$RANLIB"; then
4426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 RANLIB=$ac_cv_prog_RANLIB
4446 if test -n "$RANLIB"; then
4447 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4448 echo "${ECHO_T}$RANLIB" >&6; }
4449 else
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_RANLIB"; then
4457 ac_ct_RANLIB=$RANLIB
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459 set dummy ranlib; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 if test -n "$ac_ct_RANLIB"; then
4466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_RANLIB="ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4486 if test -n "$ac_ct_RANLIB"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4488 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4489 else
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_RANLIB" = x; then
4495 RANLIB=":"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { echo "$as_me:$LINENO: 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." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 RANLIB=$ac_ct_RANLIB
4509 else
4510 RANLIB="$ac_cv_prog_RANLIB"
4515 # Checks for programs.
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4543 done
4544 done
4545 IFS=$as_save_IFS
4549 CC=$ac_cv_prog_CC
4550 if test -n "$CC"; then
4551 { echo "$as_me:$LINENO: result: $CC" >&5
4552 echo "${ECHO_T}$CC" >&6; }
4553 else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4560 if test -z "$ac_cv_prog_CC"; then
4561 ac_ct_CC=$CC
4562 # Extract the first word of "gcc", so it can be a program name with args.
4563 set dummy gcc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC="gcc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4592 echo "${ECHO_T}$ac_ct_CC" >&6; }
4593 else
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4598 if test "x$ac_ct_CC" = x; then
4599 CC=""
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { echo "$as_me:$LINENO: 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." >&5
4606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4607 whose name does not start with the host triplet. If you think this
4608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CC=$ac_ct_CC
4613 else
4614 CC="$ac_cv_prog_CC"
4617 if test -z "$CC"; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}cc; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC="${ac_tool_prefix}cc"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4658 if test -z "$CC"; then
4659 # Extract the first word of "cc", so it can be a program name with args.
4660 set dummy cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 ac_prog_rejected=no
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678 ac_prog_rejected=yes
4679 continue
4681 ac_cv_prog_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4687 IFS=$as_save_IFS
4689 if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_CC
4692 shift
4693 if test $# != 0; then
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set CC to just the basename; use the full file name.
4697 shift
4698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4703 CC=$ac_cv_prog_CC
4704 if test -n "$CC"; then
4705 { echo "$as_me:$LINENO: result: $CC" >&5
4706 echo "${ECHO_T}$CC" >&6; }
4707 else
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in cl.exe
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 CC=$ac_cv_prog_CC
4746 if test -n "$CC"; then
4747 { echo "$as_me:$LINENO: result: $CC" >&5
4748 echo "${ECHO_T}$CC" >&6; }
4749 else
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4755 test -n "$CC" && break
4756 done
4758 if test -z "$CC"; then
4759 ac_ct_CC=$CC
4760 for ac_prog in cl.exe
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 if test -n "$ac_ct_CC"; then
4770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_CC="$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4790 if test -n "$ac_ct_CC"; then
4791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4792 echo "${ECHO_T}$ac_ct_CC" >&6; }
4793 else
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 test -n "$ac_ct_CC" && break
4800 done
4802 if test "x$ac_ct_CC" = x; then
4803 CC=""
4804 else
4805 case $cross_compiling:$ac_tool_warned in
4806 yes:)
4807 { echo "$as_me:$LINENO: 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." >&5
4810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4811 whose name does not start with the host triplet. If you think this
4812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4813 ac_tool_warned=yes ;;
4814 esac
4815 CC=$ac_ct_CC
4822 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4823 See \`config.log' for more details." >&5
4824 echo "$as_me: error: no acceptable C compiler found in \$PATH
4825 See \`config.log' for more details." >&2;}
4826 { (exit 1); exit 1; }; }
4828 # Provide some information about the compiler.
4829 echo "$as_me:$LINENO: checking for C compiler version" >&5
4830 ac_compiler=`set X $ac_compile; echo $2`
4831 { (ac_try="$ac_compiler --version >&5"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compiler --version >&5") 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }
4841 { (ac_try="$ac_compiler -v >&5"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_compiler -v >&5") 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }
4851 { (ac_try="$ac_compiler -V >&5"
4852 case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855 esac
4856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857 (eval "$ac_compiler -V >&5") 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4862 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4863 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4877 #ifndef __GNUC__
4878 choke me
4879 #endif
4882 return 0;
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 ac_compiler_gnu=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_compiler_gnu=no
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4914 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4916 GCC=`test $ac_compiler_gnu = yes && echo yes`
4917 ac_test_CFLAGS=${CFLAGS+set}
4918 ac_save_CFLAGS=$CFLAGS
4919 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_cc_g+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 ac_save_c_werror_flag=$ac_c_werror_flag
4925 ac_c_werror_flag=yes
4926 ac_cv_prog_cc_g=no
4927 CFLAGS="-g"
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4936 main ()
4940 return 0;
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_compile") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } && {
4957 test -z "$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 } && test -s conftest.$ac_objext; then
4960 ac_cv_prog_cc_g=yes
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 CFLAGS=""
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4974 main ()
4978 return 0;
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_c_werror_flag=$ac_save_c_werror_flag
5004 CFLAGS="-g"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5013 main ()
5017 return 0;
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5022 case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025 esac
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5037 ac_cv_prog_cc_g=yes
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_c_werror_flag=$ac_save_c_werror_flag
5054 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5056 if test "$ac_test_CFLAGS" = set; then
5057 CFLAGS=$ac_save_CFLAGS
5058 elif test $ac_cv_prog_cc_g = yes; then
5059 if test "$GCC" = yes; then
5060 CFLAGS="-g -O2"
5061 else
5062 CFLAGS="-g"
5064 else
5065 if test "$GCC" = yes; then
5066 CFLAGS="-O2"
5067 else
5068 CFLAGS=
5071 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5072 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_cc_c89+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 ac_cv_prog_cc_c89=no
5077 ac_save_CC=$CC
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #include <stdarg.h>
5085 #include <stdio.h>
5086 #include <sys/types.h>
5087 #include <sys/stat.h>
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5092 char **p;
5093 int i;
5095 return p[i];
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5099 char *s;
5100 va_list v;
5101 va_start (v,p);
5102 s = g (p, va_arg (v,int));
5103 va_end (v);
5104 return s;
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5118 #define FOO(x) 'x'
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5125 int argc;
5126 char **argv;
5128 main ()
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5132 return 0;
5134 _ACEOF
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 rm -f conftest.$ac_objext
5140 if { (ac_try="$ac_compile"
5141 case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cc_c89=$ac_arg
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core conftest.err conftest.$ac_objext
5165 test "x$ac_cv_prog_cc_c89" != "xno" && break
5166 done
5167 rm -f conftest.$ac_ext
5168 CC=$ac_save_CC
5171 # AC_CACHE_VAL
5172 case "x$ac_cv_prog_cc_c89" in
5174 { echo "$as_me:$LINENO: result: none needed" >&5
5175 echo "${ECHO_T}none needed" >&6; } ;;
5176 xno)
5177 { echo "$as_me:$LINENO: result: unsupported" >&5
5178 echo "${ECHO_T}unsupported" >&6; } ;;
5180 CC="$CC $ac_cv_prog_cc_c89"
5181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5183 esac
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_ext=cpp
5193 ac_cpp='$CXXCPP $CPPFLAGS'
5194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197 if test -z "$CXX"; then
5198 if test -n "$CCC"; then
5199 CXX=$CCC
5200 else
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_prog_CXX+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$CXX"; then
5212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 CXX=$ac_cv_prog_CXX
5232 if test -n "$CXX"; then
5233 { echo "$as_me:$LINENO: result: $CXX" >&5
5234 echo "${ECHO_T}$CXX" >&6; }
5235 else
5236 { echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6; }
5241 test -n "$CXX" && break
5242 done
5244 if test -z "$CXX"; then
5245 ac_ct_CXX=$CXX
5246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5248 # Extract the first word of "$ac_prog", so it can be a program name with args.
5249 set dummy $ac_prog; ac_word=$2
5250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 if test -n "$ac_ct_CXX"; then
5256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_CXX="$ac_prog"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276 if test -n "$ac_ct_CXX"; then
5277 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5278 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279 else
5280 { echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6; }
5285 test -n "$ac_ct_CXX" && break
5286 done
5288 if test "x$ac_ct_CXX" = x; then
5289 CXX="g++"
5290 else
5291 case $cross_compiling:$ac_tool_warned in
5292 yes:)
5293 { echo "$as_me:$LINENO: 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." >&5
5296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5297 whose name does not start with the host triplet. If you think this
5298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301 CXX=$ac_ct_CXX
5307 # Provide some information about the compiler.
5308 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5309 ac_compiler=`set X $ac_compile; echo $2`
5310 { (ac_try="$ac_compiler --version >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler --version >&5") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5320 { (ac_try="$ac_compiler -v >&5"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -v >&5") 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
5330 { (ac_try="$ac_compiler -V >&5"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compiler -V >&5") 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5341 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5342 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5354 main ()
5356 #ifndef __GNUC__
5357 choke me
5358 #endif
5361 return 0;
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_cxx_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
5381 ac_compiler_gnu=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_compiler_gnu=no
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5395 GXX=`test $ac_compiler_gnu = yes && echo yes`
5396 ac_test_CXXFLAGS=${CXXFLAGS+set}
5397 ac_save_CXXFLAGS=$CXXFLAGS
5398 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5400 if test "${ac_cv_prog_cxx_g+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404 ac_cxx_werror_flag=yes
5405 ac_cv_prog_cxx_g=no
5406 CXXFLAGS="-g"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5415 main ()
5419 return 0;
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5424 case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_cxx_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_prog_cxx_g=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 CXXFLAGS=""
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5453 main ()
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483 CXXFLAGS="-g"
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5492 main ()
5496 return 0;
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_cxx_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_cv_prog_cxx_g=yes
5517 else
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5533 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5534 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535 if test "$ac_test_CXXFLAGS" = set; then
5536 CXXFLAGS=$ac_save_CXXFLAGS
5537 elif test $ac_cv_prog_cxx_g = yes; then
5538 if test "$GXX" = yes; then
5539 CXXFLAGS="-g -O2"
5540 else
5541 CXXFLAGS="-g"
5543 else
5544 if test "$GXX" = yes; then
5545 CXXFLAGS="-O2"
5546 else
5547 CXXFLAGS=
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5563 # On Suns, sometimes $CPP names a directory.
5564 if test -n "$CPP" && test -d "$CPP"; then
5565 CPP=
5567 if test -z "$CPP"; then
5568 if test "${ac_cv_prog_CPP+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 # Double quotes because CPP needs to be expanded
5572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5574 ac_preproc_ok=false
5575 for ac_c_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594 Syntax error
5595 _ACEOF
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null && {
5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 }; then
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Broken: fails on valid input.
5618 continue
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5632 _ACEOF
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 }; then
5649 # Broken: success on invalid input.
5650 continue
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 # Passes both tests.
5656 ac_preproc_ok=:
5657 break
5660 rm -f conftest.err conftest.$ac_ext
5662 done
5663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664 rm -f conftest.err conftest.$ac_ext
5665 if $ac_preproc_ok; then
5666 break
5669 done
5670 ac_cv_prog_CPP=$CPP
5673 CPP=$ac_cv_prog_CPP
5674 else
5675 ac_cv_prog_CPP=$CPP
5677 { echo "$as_me:$LINENO: result: $CPP" >&5
5678 echo "${ECHO_T}$CPP" >&6; }
5679 ac_preproc_ok=false
5680 for ac_c_preproc_warn_flag in '' yes
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #ifdef __STDC__
5695 # include <limits.h>
5696 #else
5697 # include <assert.h>
5698 #endif
5699 Syntax error
5700 _ACEOF
5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
5702 case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 }; then
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 # Broken: fails on valid input.
5723 continue
5726 rm -f conftest.err conftest.$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <ac_nonexistent.h>
5737 _ACEOF
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 }; then
5754 # Broken: success on invalid input.
5755 continue
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Passes both tests.
5761 ac_preproc_ok=:
5762 break
5765 rm -f conftest.err conftest.$ac_ext
5767 done
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5772 else
5773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5774 See \`config.log' for more details." >&5
5775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5776 See \`config.log' for more details." >&2;}
5777 { (exit 1); exit 1; }; }
5780 ac_ext=c
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 ac_ext=cpp
5787 ac_cpp='$CXXCPP $CPPFLAGS'
5788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5791 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5792 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5793 if test -z "$CXXCPP"; then
5794 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 # Double quotes because CXXCPP needs to be expanded
5798 for CXXCPP in "$CXX -E" "/lib/cpp"
5800 ac_preproc_ok=false
5801 for ac_cxx_preproc_warn_flag in '' yes
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser,
5808 # not just through cpp. "Syntax error" is here to catch this case.
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #ifdef __STDC__
5816 # include <limits.h>
5817 #else
5818 # include <assert.h>
5819 #endif
5820 Syntax error
5821 _ACEOF
5822 if { (ac_try="$ac_cpp conftest.$ac_ext"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 # Broken: fails on valid input.
5844 continue
5847 rm -f conftest.err conftest.$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <ac_nonexistent.h>
5858 _ACEOF
5859 if { (ac_try="$ac_cpp conftest.$ac_ext"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null && {
5872 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5873 test ! -s conftest.err
5874 }; then
5875 # Broken: success on invalid input.
5876 continue
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 # Passes both tests.
5882 ac_preproc_ok=:
5883 break
5886 rm -f conftest.err conftest.$ac_ext
5888 done
5889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890 rm -f conftest.err conftest.$ac_ext
5891 if $ac_preproc_ok; then
5892 break
5895 done
5896 ac_cv_prog_CXXCPP=$CXXCPP
5899 CXXCPP=$ac_cv_prog_CXXCPP
5900 else
5901 ac_cv_prog_CXXCPP=$CXXCPP
5903 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5904 echo "${ECHO_T}$CXXCPP" >&6; }
5905 ac_preproc_ok=false
5906 for ac_cxx_preproc_warn_flag in '' yes
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #ifdef __STDC__
5921 # include <limits.h>
5922 #else
5923 # include <assert.h>
5924 #endif
5925 Syntax error
5926 _ACEOF
5927 if { (ac_try="$ac_cpp conftest.$ac_ext"
5928 case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 # Broken: fails on valid input.
5949 continue
5952 rm -f conftest.err conftest.$ac_ext
5954 # OK, works on sane cases. Now check whether nonexistent headers
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <ac_nonexistent.h>
5963 _ACEOF
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev/null && {
5977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978 test ! -s conftest.err
5979 }; then
5980 # Broken: success on invalid input.
5981 continue
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 # Passes both tests.
5987 ac_preproc_ok=:
5988 break
5991 rm -f conftest.err conftest.$ac_ext
5993 done
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then
5998 else
5999 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&5
6001 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6002 See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6013 # the developers regenerating the configure script don't have to install libtool.
6014 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6015 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_SED+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6020 for ac_i in 1 2 3 4 5 6 7; do
6021 ac_script="$ac_script$as_nl$ac_script"
6022 done
6023 echo "$ac_script" | sed 99q >conftest.sed
6024 $as_unset ac_script || ac_script=
6025 # Extract the first word of "sed gsed" to use in msg output
6026 if test -z "$SED"; then
6027 set dummy sed gsed; ac_prog_name=$2
6028 if test "${ac_cv_path_SED+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 ac_path_SED_found=false
6032 # Loop through the user's path and test for each of PROGNAME-LIST
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_prog in sed gsed; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6041 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6042 # Check for GNU ac_path_SED and select it if it is found.
6043 # Check for GNU $ac_path_SED
6044 case `"$ac_path_SED" --version 2>&1` in
6045 *GNU*)
6046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6048 ac_count=0
6049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6050 while :
6052 cat "conftest.in" "conftest.in" >"conftest.tmp"
6053 mv "conftest.tmp" "conftest.in"
6054 cp "conftest.in" "conftest.nl"
6055 echo '' >> "conftest.nl"
6056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6058 ac_count=`expr $ac_count + 1`
6059 if test $ac_count -gt ${ac_path_SED_max-0}; then
6060 # Best one so far, save it but keep looking for a better one
6061 ac_cv_path_SED="$ac_path_SED"
6062 ac_path_SED_max=$ac_count
6064 # 10*(2^10) chars as input seems more than enough
6065 test $ac_count -gt 10 && break
6066 done
6067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068 esac
6071 $ac_path_SED_found && break 3
6072 done
6073 done
6075 done
6076 IFS=$as_save_IFS
6081 SED="$ac_cv_path_SED"
6082 if test -z "$SED"; then
6083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6084 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6085 { (exit 1); exit 1; }; }
6088 else
6089 ac_cv_path_SED=$SED
6093 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6094 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6095 SED="$ac_cv_path_SED"
6096 rm -f conftest.sed
6098 { echo "$as_me:$LINENO: checking for egrep" >&5
6099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_egrep+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6104 then ac_cv_prog_egrep='grep -E'
6105 else ac_cv_prog_egrep='egrep'
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6110 EGREP=$ac_cv_prog_egrep
6114 # Check whether --with-gnu-ld was given.
6115 if test "${with_gnu_ld+set}" = set; then
6116 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6117 else
6118 with_gnu_ld=no
6121 ac_prog=ld
6122 if test "$GCC" = yes; then
6123 # Check if gcc -print-prog-name=ld gives a path.
6124 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6126 case $host in
6127 *-*-mingw*)
6128 # gcc leaves a trailing carriage return which upsets mingw
6129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6132 esac
6133 case $ac_prog in
6134 # Accept absolute paths.
6135 [\\/]* | ?:[\\/]*)
6136 re_direlt='/[^/][^/]*/\.\./'
6137 # Canonicalize the pathname of ld
6138 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6140 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6141 done
6142 test -z "$LD" && LD="$ac_prog"
6145 # If it fails, then pretend we aren't using GCC.
6146 ac_prog=ld
6149 # If it is relative, then search for the first ld in PATH.
6150 with_gnu_ld=unknown
6152 esac
6153 elif test "$with_gnu_ld" = yes; then
6154 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6156 else
6157 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6160 if test "${lt_cv_path_LD+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 if test -z "$LD"; then
6164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6165 for ac_dir in $PATH; do
6166 IFS="$lt_save_ifs"
6167 test -z "$ac_dir" && ac_dir=.
6168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6169 lt_cv_path_LD="$ac_dir/$ac_prog"
6170 # Check to see if the program is GNU ld. I'd rather use --version,
6171 # but apparently some variants of GNU ld only accept -v.
6172 # Break only if it was the GNU/non-GNU ld that we prefer.
6173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6174 *GNU* | *'with BFD'*)
6175 test "$with_gnu_ld" != no && break
6178 test "$with_gnu_ld" != yes && break
6180 esac
6182 done
6183 IFS="$lt_save_ifs"
6184 else
6185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6189 LD="$lt_cv_path_LD"
6190 if test -n "$LD"; then
6191 { echo "$as_me:$LINENO: result: $LD" >&5
6192 echo "${ECHO_T}$LD" >&6; }
6193 else
6194 { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6199 { (exit 1); exit 1; }; }
6200 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6206 case `$LD -v 2>&1 </dev/null` in
6207 *GNU* | *'with BFD'*)
6208 lt_cv_prog_gnu_ld=yes
6211 lt_cv_prog_gnu_ld=no
6213 esac
6215 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6217 with_gnu_ld=$lt_cv_prog_gnu_ld
6219 # note - does not work on freebsd
6220 for ac_prog in gawk mawk nawk awk
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy $ac_prog; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_AWK+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 if test -n "$AWK"; then
6230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_AWK="$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6243 done
6244 done
6245 IFS=$as_save_IFS
6249 AWK=$ac_cv_prog_AWK
6250 if test -n "$AWK"; then
6251 { echo "$as_me:$LINENO: result: $AWK" >&5
6252 echo "${ECHO_T}$AWK" >&6; }
6253 else
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$AWK" && break
6260 done
6262 # Find a good install program. We prefer a C program (faster),
6263 # so one script is as good as another. But avoid the broken or
6264 # incompatible versions:
6265 # SysV /etc/install, /usr/sbin/install
6266 # SunOS /usr/etc/install
6267 # IRIX /sbin/install
6268 # AIX /bin/install
6269 # AmigaOS /C/install, which installs bootblocks on floppy discs
6270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6273 # OS/2's system install, which has a completely different semantic
6274 # ./install, which can be erroneously created by make from ./install.sh.
6275 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6276 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6277 if test -z "$INSTALL"; then
6278 if test "${ac_cv_path_install+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 # Account for people who put trailing slashes in PATH elements.
6287 case $as_dir/ in
6288 ./ | .// | /cC/* | \
6289 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6290 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6291 /usr/ucb/* ) ;;
6293 # OSF1 and SCO ODT 3.0 have their own names for install.
6294 # Don't use installbsd from OSF since it installs stuff as root
6295 # by default.
6296 for ac_prog in ginstall scoinst install; do
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6299 if test $ac_prog = install &&
6300 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6301 # AIX install. It has an incompatible calling convention.
6303 elif test $ac_prog = install &&
6304 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6305 # program-specific install script used by HP pwplus--don't use.
6307 else
6308 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6309 break 3
6312 done
6313 done
6315 esac
6316 done
6317 IFS=$as_save_IFS
6321 if test "${ac_cv_path_install+set}" = set; then
6322 INSTALL=$ac_cv_path_install
6323 else
6324 # As a last resort, use the slow shell script. Don't cache a
6325 # value for INSTALL within a source directory, because that will
6326 # break other packages using the cache if that directory is
6327 # removed, or if the value is a relative name.
6328 INSTALL=$ac_install_sh
6331 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6332 echo "${ECHO_T}$INSTALL" >&6; }
6334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6335 # It thinks the first close brace ends the variable substitution.
6336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6342 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6343 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6344 LN_S=$as_ln_s
6345 if test "$LN_S" = "ln -s"; then
6346 { echo "$as_me:$LINENO: result: yes" >&5
6347 echo "${ECHO_T}yes" >&6; }
6348 else
6349 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6350 echo "${ECHO_T}no, using $LN_S" >&6; }
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_RANLIB+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6375 done
6376 done
6377 IFS=$as_save_IFS
6381 RANLIB=$ac_cv_prog_RANLIB
6382 if test -n "$RANLIB"; then
6383 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6384 echo "${ECHO_T}$RANLIB" >&6; }
6385 else
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6392 if test -z "$ac_cv_prog_RANLIB"; then
6393 ac_ct_RANLIB=$RANLIB
6394 # Extract the first word of "ranlib", so it can be a program name with args.
6395 set dummy ranlib; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 if test -n "$ac_ct_RANLIB"; then
6402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_RANLIB="ranlib"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6415 done
6416 done
6417 IFS=$as_save_IFS
6421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6422 if test -n "$ac_ct_RANLIB"; then
6423 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6424 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6425 else
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6430 if test "x$ac_ct_RANLIB" = x; then
6431 RANLIB=":"
6432 else
6433 case $cross_compiling:$ac_tool_warned in
6434 yes:)
6435 { echo "$as_me:$LINENO: 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." >&5
6438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6439 whose name does not start with the host triplet. If you think this
6440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6441 ac_tool_warned=yes ;;
6442 esac
6443 RANLIB=$ac_ct_RANLIB
6445 else
6446 RANLIB="$ac_cv_prog_RANLIB"
6449 { echo "$as_me:$LINENO: checking for GNU make" >&5
6450 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6451 if test "${GNU_MAKE+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 GNU_MAKE='Not Found' ;
6455 GNU_MAKE_VERSION_MAJOR=0 ;
6456 GNU_MAKE_VERSION_MINOR=0 ;
6457 for a in make gmake gnumake ; do
6458 if test -z "$a" ; then continue ; fi ;
6459 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6460 GNU_MAKE=$a ;
6461 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6462 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6463 break;
6465 done ;
6468 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6469 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6470 if test "x$GNU_MAKE" = "xNot Found" ; then
6471 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6472 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6473 { (exit 1); exit 1; }; }
6474 exit 1
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}strip; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_STRIP+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 case $STRIP in
6488 [\\/]* | ?:[\\/]*)
6489 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6505 IFS=$as_save_IFS
6508 esac
6510 STRIP=$ac_cv_path_STRIP
6511 if test -n "$STRIP"; then
6512 { echo "$as_me:$LINENO: result: $STRIP" >&5
6513 echo "${ECHO_T}$STRIP" >&6; }
6514 else
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6521 if test -z "$ac_cv_path_STRIP"; then
6522 ac_pt_STRIP=$STRIP
6523 # Extract the first word of "strip", so it can be a program name with args.
6524 set dummy strip; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 case $ac_pt_STRIP in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6546 done
6547 done
6548 IFS=$as_save_IFS
6551 esac
6553 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6554 if test -n "$ac_pt_STRIP"; then
6555 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6556 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6557 else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6562 if test "x$ac_pt_STRIP" = x; then
6563 STRIP=":"
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { echo "$as_me:$LINENO: 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." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet. If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 STRIP=$ac_pt_STRIP
6577 else
6578 STRIP="$ac_cv_path_STRIP"
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}ar; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_AR+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 case $AR in
6590 [\\/]* | ?:[\\/]*)
6591 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6605 done
6606 done
6607 IFS=$as_save_IFS
6610 esac
6612 AR=$ac_cv_path_AR
6613 if test -n "$AR"; then
6614 { echo "$as_me:$LINENO: result: $AR" >&5
6615 echo "${ECHO_T}$AR" >&6; }
6616 else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6623 if test -z "$ac_cv_path_AR"; then
6624 ac_pt_AR=$AR
6625 # Extract the first word of "ar", so it can be a program name with args.
6626 set dummy ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 case $ac_pt_AR in
6633 [\\/]* | ?:[\\/]*)
6634 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6653 esac
6655 ac_pt_AR=$ac_cv_path_ac_pt_AR
6656 if test -n "$ac_pt_AR"; then
6657 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6658 echo "${ECHO_T}$ac_pt_AR" >&6; }
6659 else
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6664 if test "x$ac_pt_AR" = x; then
6665 AR=":"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { echo "$as_me:$LINENO: 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." >&5
6672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6673 whose name does not start with the host triplet. If you think this
6674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6675 ac_tool_warned=yes ;;
6676 esac
6677 AR=$ac_pt_AR
6679 else
6680 AR="$ac_cv_path_AR"
6684 GNU_LD=0
6685 if test "x$with_gnu_ld" = "xyes" ; then
6686 GNU_LD=1
6690 # Extract the first word of "awk", so it can be a program name with args.
6691 set dummy awk; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_AWK+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 case $AWK in
6698 [\\/]* | ?:[\\/]*)
6699 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6713 done
6714 done
6715 IFS=$as_save_IFS
6717 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
6719 esac
6721 AWK=$ac_cv_path_AWK
6722 if test -n "$AWK"; then
6723 { echo "$as_me:$LINENO: result: $AWK" >&5
6724 echo "${ECHO_T}$AWK" >&6; }
6725 else
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 # Extract the first word of "grep", so it can be a program name with args.
6732 set dummy grep; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_GREP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 case $GREP in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6758 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6760 esac
6762 GREP=$ac_cv_path_GREP
6763 if test -n "$GREP"; then
6764 { echo "$as_me:$LINENO: result: $GREP" >&5
6765 echo "${ECHO_T}$GREP" >&6; }
6766 else
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "find", so it can be a program name with args.
6773 set dummy find; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_FIND+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779 case $FIND in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6795 done
6796 done
6797 IFS=$as_save_IFS
6799 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6801 esac
6803 FIND=$ac_cv_path_FIND
6804 if test -n "$FIND"; then
6805 { echo "$as_me:$LINENO: result: $FIND" >&5
6806 echo "${ECHO_T}$FIND" >&6; }
6807 else
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 # Extract the first word of "compress", so it can be a program name with args.
6814 set dummy compress; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_COMPRESS+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 case $COMPRESS in
6821 [\\/]* | ?:[\\/]*)
6822 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6840 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6842 esac
6844 COMPRESS=$ac_cv_path_COMPRESS
6845 if test -n "$COMPRESS"; then
6846 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6847 echo "${ECHO_T}$COMPRESS" >&6; }
6848 else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "basename", so it can be a program name with args.
6855 set dummy basename; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_BASENAME+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 case $BASENAME in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6881 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6883 esac
6885 BASENAME=$ac_cv_path_BASENAME
6886 if test -n "$BASENAME"; then
6887 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6888 echo "${ECHO_T}$BASENAME" >&6; }
6889 else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "id", so it can be a program name with args.
6896 set dummy id; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_ID+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 case $ID in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6922 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6924 esac
6926 ID=$ac_cv_path_ID
6927 if test -n "$ID"; then
6928 { echo "$as_me:$LINENO: result: $ID" >&5
6929 echo "${ECHO_T}$ID" >&6; }
6930 else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "dirname", so it can be a program name with args.
6937 set dummy dirname; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_DIRNAME+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 case $DIRNAME in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6959 done
6960 done
6961 IFS=$as_save_IFS
6963 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6965 esac
6967 DIRNAME=$ac_cv_path_DIRNAME
6968 if test -n "$DIRNAME"; then
6969 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6970 echo "${ECHO_T}$DIRNAME" >&6; }
6971 else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 # Extract the first word of "sh", so it can be a program name with args.
6978 set dummy sh; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_SHELL+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 case $SHELL in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7004 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7006 esac
7008 SHELL=$ac_cv_path_SHELL
7009 if test -n "$SHELL"; then
7010 { echo "$as_me:$LINENO: result: $SHELL" >&5
7011 echo "${ECHO_T}$SHELL" >&6; }
7012 else
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 # Extract the first word of "ln", so it can be a program name with args.
7019 set dummy ln; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_path_LN+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 case $LN in
7026 [\\/]* | ?:[\\/]*)
7027 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7041 done
7042 done
7043 IFS=$as_save_IFS
7045 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7047 esac
7049 LN=$ac_cv_path_LN
7050 if test -n "$LN"; then
7051 { echo "$as_me:$LINENO: result: $LN" >&5
7052 echo "${ECHO_T}$LN" >&6; }
7053 else
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7059 # Extract the first word of "dot", so it can be a program name with args.
7060 set dummy dot; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_DOT+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 case $DOT in
7067 [\\/]* | ?:[\\/]*)
7068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7082 done
7083 done
7084 IFS=$as_save_IFS
7086 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7088 esac
7090 DOT=$ac_cv_path_DOT
7091 if test -n "$DOT"; then
7092 { echo "$as_me:$LINENO: result: $DOT" >&5
7093 echo "${ECHO_T}$DOT" >&6; }
7094 else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 # Extract the first word of "wget", so it can be a program name with args.
7101 set dummy wget; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_WGET+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 case $WGET in
7108 [\\/]* | ?:[\\/]*)
7109 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7123 done
7124 done
7125 IFS=$as_save_IFS
7127 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7129 esac
7131 WGET=$ac_cv_path_WGET
7132 if test -n "$WGET"; then
7133 { echo "$as_me:$LINENO: result: $WGET" >&5
7134 echo "${ECHO_T}$WGET" >&6; }
7135 else
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7141 if test "${WGET}" != ":" ; then
7142 DOWNLOAD=${WGET}
7143 else
7144 # Extract the first word of "fetch", so it can be a program name with args.
7145 set dummy fetch; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_FETCH+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 case $FETCH in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7171 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7173 esac
7175 FETCH=$ac_cv_path_FETCH
7176 if test -n "$FETCH"; then
7177 { echo "$as_me:$LINENO: result: $FETCH" >&5
7178 echo "${ECHO_T}$FETCH" >&6; }
7179 else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 DOWNLOAD=${FETCH}
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$SOXMIX"; then
7198 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 SOXMIX=$ac_cv_prog_SOXMIX
7218 if test -n "$SOXMIX"; then
7219 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7220 echo "${ECHO_T}$SOXMIX" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_SOXMIX"; then
7229 ac_ct_SOXMIX=$SOXMIX
7230 # Extract the first word of "soxmix", so it can be a program name with args.
7231 set dummy soxmix; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$ac_ct_SOXMIX"; then
7238 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7258 if test -n "$ac_ct_SOXMIX"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7260 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_SOXMIX" = x; then
7267 SOXMIX=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 SOXMIX=$ac_ct_SOXMIX
7281 else
7282 SOXMIX="$ac_cv_prog_SOXMIX"
7285 if test "${SOXMIX}" != ":" ; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_SOXMIX 1
7289 _ACEOF
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302 acx_pthread_ok=no
7304 # We used to check for pthread.h first, but this fails if pthread.h
7305 # requires special compiler flags (e.g. on True64 or Sequent).
7306 # It gets checked for in the link test anyway.
7308 # First of all, check if the user has set any of the PTHREAD_LIBS,
7309 # etcetera environment variables, and if threads linking works using
7310 # them:
7311 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7312 save_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7314 save_LIBS="$LIBS"
7315 LIBS="$PTHREAD_LIBS $LIBS"
7316 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7317 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7325 /* Override any GCC internal prototype to avoid an error.
7326 Use char because int might match the return type of a GCC
7327 builtin and then its argument prototype would still apply. */
7328 #ifdef __cplusplus
7329 extern "C"
7330 #endif
7331 char pthread_join ();
7333 main ()
7335 return pthread_join ();
7337 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7342 case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7358 acx_pthread_ok=yes
7359 else
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7368 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7369 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7370 if test x"$acx_pthread_ok" = xno; then
7371 PTHREAD_LIBS=""
7372 PTHREAD_CFLAGS=""
7374 LIBS="$save_LIBS"
7375 CFLAGS="$save_CFLAGS"
7378 # We must check for the threads library under a number of different
7379 # names; the ordering is very important because some systems
7380 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7381 # libraries is broken (non-POSIX).
7383 # Create a list of thread flags to try. Items starting with a "-" are
7384 # C compiler flags, and other items are library names, except for "none"
7385 # which indicates that we try without any flags at all, and "pthread-config"
7386 # which is a program returning the flags for the Pth emulation library.
7388 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7390 # The ordering *is* (sometimes) important. Some notes on the
7391 # individual items follow:
7393 # pthreads: AIX (must check this before -lpthread)
7394 # none: in case threads are in libc; should be tried before -Kthread and
7395 # other compiler flags to prevent continual compiler warnings
7396 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7397 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7398 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7399 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7400 # -pthreads: Solaris/gcc
7401 # -mthreads: Mingw32/gcc, Lynx/gcc
7402 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7403 # doesn't hurt to check since this sometimes defines pthreads too;
7404 # also defines -D_REENTRANT)
7405 # ... -mt is also the pthreads flag for HP/aCC
7406 # pthread: Linux, etcetera
7407 # --thread-safe: KAI C++
7408 # pthread-config: use pthread-config program (for GNU Pth library)
7410 case "${host_cpu}-${host_os}" in
7411 *solaris*)
7413 # On Solaris (at least, for some versions), libc contains stubbed
7414 # (non-functional) versions of the pthreads routines, so link-based
7415 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7416 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7417 # a function called by this macro, so we could check for that, but
7418 # who knows whether they'll stub that too in a future libc.) So,
7419 # we'll just look for -pthreads and -lpthread first:
7421 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7423 esac
7425 if test x"$acx_pthread_ok" = xno; then
7426 for flag in $acx_pthread_flags; do
7428 case $flag in
7429 none)
7430 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7431 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7435 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7436 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7437 PTHREAD_CFLAGS="$flag"
7440 pthread-config)
7441 # Extract the first word of "pthread-config", so it can be a program name with args.
7442 set dummy pthread-config; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 if test -n "$acx_pthread_config"; then
7449 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_acx_pthread_config="yes"
7459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7462 done
7463 done
7464 IFS=$as_save_IFS
7466 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7469 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7470 if test -n "$acx_pthread_config"; then
7471 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7472 echo "${ECHO_T}$acx_pthread_config" >&6; }
7473 else
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7479 if test x"$acx_pthread_config" = xno; then continue; fi
7480 PTHREAD_CFLAGS="`pthread-config --cflags`"
7481 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7485 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7486 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7487 PTHREAD_LIBS="-l$flag"
7489 esac
7491 save_LIBS="$LIBS"
7492 save_CFLAGS="$CFLAGS"
7493 LIBS="$PTHREAD_LIBS $LIBS"
7494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7496 # Check for various functions. We must include pthread.h,
7497 # since some functions may be macros. (On the Sequent, we
7498 # need a special flag -Kthread to make this header compile.)
7499 # We check for pthread_join because it is in -lpthread on IRIX
7500 # while pthread_create is in libc. We check for pthread_attr_init
7501 # due to DEC craziness with -lpthreads. We check for
7502 # pthread_cleanup_push because it is one of the few pthread
7503 # functions on Solaris that doesn't have a non-functional libc stub.
7504 # We try pthread_create on general principles.
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <pthread.h>
7513 main ()
7515 pthread_t th; pthread_join(th, 0);
7516 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7517 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (ac_try="$ac_link"
7524 case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_link") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest$ac_exeext &&
7539 $as_test_x conftest$ac_exeext; then
7540 acx_pthread_ok=yes
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7549 conftest$ac_exeext conftest.$ac_ext
7551 LIBS="$save_LIBS"
7552 CFLAGS="$save_CFLAGS"
7554 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7555 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7556 if test "x$acx_pthread_ok" = xyes; then
7557 break;
7560 PTHREAD_LIBS=""
7561 PTHREAD_CFLAGS=""
7562 done
7565 # Various other checks:
7566 if test "x$acx_pthread_ok" = xyes; then
7567 save_LIBS="$LIBS"
7568 LIBS="$PTHREAD_LIBS $LIBS"
7569 save_CFLAGS="$CFLAGS"
7570 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7572 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7573 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7574 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7575 attr_name=unknown
7576 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h. */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <pthread.h>
7585 main ()
7587 int attr=$attr; return attr;
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (ac_try="$ac_link"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest$ac_exeext &&
7609 $as_test_x conftest$ac_exeext; then
7610 attr_name=$attr; break
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 conftest$ac_exeext conftest.$ac_ext
7620 done
7621 { echo "$as_me:$LINENO: result: $attr_name" >&5
7622 echo "${ECHO_T}$attr_name" >&6; }
7623 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7625 cat >>confdefs.h <<_ACEOF
7626 #define PTHREAD_CREATE_JOINABLE $attr_name
7627 _ACEOF
7631 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7632 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7633 flag=no
7634 case "${host_cpu}-${host_os}" in
7635 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7636 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7637 esac
7638 { echo "$as_me:$LINENO: result: ${flag}" >&5
7639 echo "${ECHO_T}${flag}" >&6; }
7640 if test "x$flag" != xno; then
7641 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7644 LIBS="$save_LIBS"
7645 CFLAGS="$save_CFLAGS"
7647 # More AIX lossage: must compile with xlc_r or cc_r
7648 if test x"$GCC" != xyes; then
7649 for ac_prog in xlc_r cc_r
7651 # Extract the first word of "$ac_prog", so it can be a program name with args.
7652 set dummy $ac_prog; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 if test -n "$PTHREAD_CC"; then
7659 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_PTHREAD_CC="$ac_prog"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7678 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7679 if test -n "$PTHREAD_CC"; then
7680 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7681 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7682 else
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7688 test -n "$PTHREAD_CC" && break
7689 done
7690 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7692 else
7693 PTHREAD_CC=$CC
7695 else
7696 PTHREAD_CC="$CC"
7703 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7704 if test x"$acx_pthread_ok" = xyes; then
7706 cat >>confdefs.h <<\_ACEOF
7707 #define HAVE_PTHREAD 1
7708 _ACEOF
7711 else
7712 acx_pthread_ok=no
7715 ac_ext=c
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 ac_ext=c
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 # Check whether --enable-dev-mode was given.
7731 if test "${enable_dev_mode+set}" = set; then
7732 enableval=$enable_dev_mode; case "${enableval}" in
7733 y|ye|yes) AST_DEVMODE=yes ;;
7734 n|no) AST_DEVMODE=no ;;
7735 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7736 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7737 { (exit 1); exit 1; }; } ;;
7738 esac
7743 # package option names should be in alphabetical order
7744 # by the --with option name, to make things easier for the users :-)
7747 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7748 ALSA_OPTION="asound"
7750 # Check whether --with-asound was given.
7751 if test "${with_asound+set}" = set; then
7752 withval=$with_asound;
7753 case ${withval} in
7754 n|no)
7755 USE_ALSA=no
7757 y|ye|yes)
7758 ALSA_MANDATORY="yes"
7761 ALSA_DIR="${withval}"
7762 ALSA_MANDATORY="yes"
7764 esac
7768 PBX_ALSA=0
7775 CURL_DESCRIP="cURL"
7776 CURL_OPTION="curl"
7778 # Check whether --with-curl was given.
7779 if test "${with_curl+set}" = set; then
7780 withval=$with_curl;
7781 case ${withval} in
7782 n|no)
7783 USE_CURL=no
7785 y|ye|yes)
7786 CURL_MANDATORY="yes"
7789 CURL_DIR="${withval}"
7790 CURL_MANDATORY="yes"
7792 esac
7796 PBX_CURL=0
7803 CAP_DESCRIP="POSIX 1.e capabilities"
7804 CAP_OPTION="cap"
7806 # Check whether --with-cap was given.
7807 if test "${with_cap+set}" = set; then
7808 withval=$with_cap;
7809 case ${withval} in
7810 n|no)
7811 USE_CAP=no
7813 y|ye|yes)
7814 CAP_MANDATORY="yes"
7817 CAP_DIR="${withval}"
7818 CAP_MANDATORY="yes"
7820 esac
7824 PBX_CAP=0
7831 CURSES_DESCRIP="curses"
7832 CURSES_OPTION="curses"
7834 # Check whether --with-curses was given.
7835 if test "${with_curses+set}" = set; then
7836 withval=$with_curses;
7837 case ${withval} in
7838 n|no)
7839 USE_CURSES=no
7841 y|ye|yes)
7842 CURSES_MANDATORY="yes"
7845 CURSES_DIR="${withval}"
7846 CURSES_MANDATORY="yes"
7848 esac
7852 PBX_CURSES=0
7859 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7860 GNUTLS_OPTION="gnutls"
7862 # Check whether --with-gnutls was given.
7863 if test "${with_gnutls+set}" = set; then
7864 withval=$with_gnutls;
7865 case ${withval} in
7866 n|no)
7867 USE_GNUTLS=no
7869 y|ye|yes)
7870 GNUTLS_MANDATORY="yes"
7873 GNUTLS_DIR="${withval}"
7874 GNUTLS_MANDATORY="yes"
7876 esac
7880 PBX_GNUTLS=0
7887 GSM_DESCRIP="GSM"
7888 GSM_OPTION="gsm"
7890 # Check whether --with-gsm was given.
7891 if test "${with_gsm+set}" = set; then
7892 withval=$with_gsm;
7893 case ${withval} in
7894 n|no)
7895 USE_GSM=no
7897 y|ye|yes)
7898 GSM_MANDATORY="yes"
7901 GSM_DIR="${withval}"
7902 GSM_MANDATORY="yes"
7904 esac
7908 PBX_GSM=0
7915 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7916 IKSEMEL_OPTION="iksemel"
7918 # Check whether --with-iksemel was given.
7919 if test "${with_iksemel+set}" = set; then
7920 withval=$with_iksemel;
7921 case ${withval} in
7922 n|no)
7923 USE_IKSEMEL=no
7925 y|ye|yes)
7926 IKSEMEL_MANDATORY="yes"
7929 IKSEMEL_DIR="${withval}"
7930 IKSEMEL_MANDATORY="yes"
7932 esac
7936 PBX_IKSEMEL=0
7943 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7944 IMAP_TK_OPTION="imap"
7946 # Check whether --with-imap was given.
7947 if test "${with_imap+set}" = set; then
7948 withval=$with_imap;
7949 case ${withval} in
7950 n|no)
7951 USE_IMAP_TK=no
7953 y|ye|yes)
7954 IMAP_TK_MANDATORY="yes"
7957 IMAP_TK_DIR="${withval}"
7958 IMAP_TK_MANDATORY="yes"
7960 esac
7964 PBX_IMAP_TK=0
7971 ISDNNET_DESCRIP="ISDN4Linux Library"
7972 ISDNNET_OPTION="isdnnet"
7974 # Check whether --with-isdnnet was given.
7975 if test "${with_isdnnet+set}" = set; then
7976 withval=$with_isdnnet;
7977 case ${withval} in
7978 n|no)
7979 USE_ISDNNET=no
7981 y|ye|yes)
7982 ISDNNET_MANDATORY="yes"
7985 ISDNNET_DIR="${withval}"
7986 ISDNNET_MANDATORY="yes"
7988 esac
7992 PBX_ISDNNET=0
7999 KDE_DESCRIP="KDE"
8000 KDE_OPTION="kde"
8002 # Check whether --with-kde was given.
8003 if test "${with_kde+set}" = set; then
8004 withval=$with_kde;
8005 case ${withval} in
8006 n|no)
8007 USE_KDE=no
8009 y|ye|yes)
8010 KDE_MANDATORY="yes"
8013 KDE_DIR="${withval}"
8014 KDE_MANDATORY="yes"
8016 esac
8020 PBX_KDE=0
8027 LTDL_DESCRIP="libtool"
8028 LTDL_OPTION="ltdl"
8030 # Check whether --with-ltdl was given.
8031 if test "${with_ltdl+set}" = set; then
8032 withval=$with_ltdl;
8033 case ${withval} in
8034 n|no)
8035 USE_LTDL=no
8037 y|ye|yes)
8038 LTDL_MANDATORY="yes"
8041 LTDL_DIR="${withval}"
8042 LTDL_MANDATORY="yes"
8044 esac
8048 PBX_LTDL=0
8055 MISDN_DESCRIP="mISDN User Library"
8056 MISDN_OPTION="misdn"
8058 # Check whether --with-misdn was given.
8059 if test "${with_misdn+set}" = set; then
8060 withval=$with_misdn;
8061 case ${withval} in
8062 n|no)
8063 USE_MISDN=no
8065 y|ye|yes)
8066 MISDN_MANDATORY="yes"
8069 MISDN_DIR="${withval}"
8070 MISDN_MANDATORY="yes"
8072 esac
8076 PBX_MISDN=0
8083 NBS_DESCRIP="Network Broadcast Sound"
8084 NBS_OPTION="nbs"
8086 # Check whether --with-nbs was given.
8087 if test "${with_nbs+set}" = set; then
8088 withval=$with_nbs;
8089 case ${withval} in
8090 n|no)
8091 USE_NBS=no
8093 y|ye|yes)
8094 NBS_MANDATORY="yes"
8097 NBS_DIR="${withval}"
8098 NBS_MANDATORY="yes"
8100 esac
8104 PBX_NBS=0
8111 NCURSES_DESCRIP="ncurses"
8112 NCURSES_OPTION="ncurses"
8114 # Check whether --with-ncurses was given.
8115 if test "${with_ncurses+set}" = set; then
8116 withval=$with_ncurses;
8117 case ${withval} in
8118 n|no)
8119 USE_NCURSES=no
8121 y|ye|yes)
8122 NCURSES_MANDATORY="yes"
8125 NCURSES_DIR="${withval}"
8126 NCURSES_MANDATORY="yes"
8128 esac
8132 PBX_NCURSES=0
8139 NETSNMP_DESCRIP="Net-SNMP"
8140 NETSNMP_OPTION="netsnmp"
8142 # Check whether --with-netsnmp was given.
8143 if test "${with_netsnmp+set}" = set; then
8144 withval=$with_netsnmp;
8145 case ${withval} in
8146 n|no)
8147 USE_NETSNMP=no
8149 y|ye|yes)
8150 NETSNMP_MANDATORY="yes"
8153 NETSNMP_DIR="${withval}"
8154 NETSNMP_MANDATORY="yes"
8156 esac
8160 PBX_NETSNMP=0
8167 NEWT_DESCRIP="newt"
8168 NEWT_OPTION="newt"
8170 # Check whether --with-newt was given.
8171 if test "${with_newt+set}" = set; then
8172 withval=$with_newt;
8173 case ${withval} in
8174 n|no)
8175 USE_NEWT=no
8177 y|ye|yes)
8178 NEWT_MANDATORY="yes"
8181 NEWT_DIR="${withval}"
8182 NEWT_MANDATORY="yes"
8184 esac
8188 PBX_NEWT=0
8195 UNIXODBC_DESCRIP="unixODBC"
8196 UNIXODBC_OPTION="odbc"
8198 # Check whether --with-odbc was given.
8199 if test "${with_odbc+set}" = set; then
8200 withval=$with_odbc;
8201 case ${withval} in
8202 n|no)
8203 USE_UNIXODBC=no
8205 y|ye|yes)
8206 UNIXODBC_MANDATORY="yes"
8209 UNIXODBC_DIR="${withval}"
8210 UNIXODBC_MANDATORY="yes"
8212 esac
8216 PBX_UNIXODBC=0
8223 OGG_DESCRIP="OGG"
8224 OGG_OPTION="ogg"
8226 # Check whether --with-ogg was given.
8227 if test "${with_ogg+set}" = set; then
8228 withval=$with_ogg;
8229 case ${withval} in
8230 n|no)
8231 USE_OGG=no
8233 y|ye|yes)
8234 OGG_MANDATORY="yes"
8237 OGG_DIR="${withval}"
8238 OGG_MANDATORY="yes"
8240 esac
8244 PBX_OGG=0
8251 OSPTK_DESCRIP="OSP Toolkit"
8252 OSPTK_OPTION="osptk"
8254 # Check whether --with-osptk was given.
8255 if test "${with_osptk+set}" = set; then
8256 withval=$with_osptk;
8257 case ${withval} in
8258 n|no)
8259 USE_OSPTK=no
8261 y|ye|yes)
8262 OSPTK_MANDATORY="yes"
8265 OSPTK_DIR="${withval}"
8266 OSPTK_MANDATORY="yes"
8268 esac
8272 PBX_OSPTK=0
8279 OSS_DESCRIP="Open Sound System"
8280 OSS_OPTION="oss"
8282 # Check whether --with-oss was given.
8283 if test "${with_oss+set}" = set; then
8284 withval=$with_oss;
8285 case ${withval} in
8286 n|no)
8287 USE_OSS=no
8289 y|ye|yes)
8290 OSS_MANDATORY="yes"
8293 OSS_DIR="${withval}"
8294 OSS_MANDATORY="yes"
8296 esac
8300 PBX_OSS=0
8307 POPT_DESCRIP="popt"
8308 POPT_OPTION="popt"
8310 # Check whether --with-popt was given.
8311 if test "${with_popt+set}" = set; then
8312 withval=$with_popt;
8313 case ${withval} in
8314 n|no)
8315 USE_POPT=no
8317 y|ye|yes)
8318 POPT_MANDATORY="yes"
8321 POPT_DIR="${withval}"
8322 POPT_MANDATORY="yes"
8324 esac
8328 PBX_POPT=0
8335 PGSQL_DESCRIP="PostgreSQL"
8336 PGSQL_OPTION="postgres"
8338 # Check whether --with-postgres was given.
8339 if test "${with_postgres+set}" = set; then
8340 withval=$with_postgres;
8341 case ${withval} in
8342 n|no)
8343 USE_PGSQL=no
8345 y|ye|yes)
8346 PGSQL_MANDATORY="yes"
8349 PGSQL_DIR="${withval}"
8350 PGSQL_MANDATORY="yes"
8352 esac
8356 PBX_PGSQL=0
8363 PRI_DESCRIP="ISDN PRI"
8364 PRI_OPTION="pri"
8366 # Check whether --with-pri was given.
8367 if test "${with_pri+set}" = set; then
8368 withval=$with_pri;
8369 case ${withval} in
8370 n|no)
8371 USE_PRI=no
8373 y|ye|yes)
8374 PRI_MANDATORY="yes"
8377 PRI_DIR="${withval}"
8378 PRI_MANDATORY="yes"
8380 esac
8384 PBX_PRI=0
8391 PWLIB_DESCRIP="PWlib"
8392 PWLIB_OPTION="pwlib"
8394 # Check whether --with-pwlib was given.
8395 if test "${with_pwlib+set}" = set; then
8396 withval=$with_pwlib;
8397 case ${withval} in
8398 n|no)
8399 USE_PWLIB=no
8401 y|ye|yes)
8402 PWLIB_MANDATORY="yes"
8405 PWLIB_DIR="${withval}"
8406 PWLIB_MANDATORY="yes"
8408 esac
8412 PBX_PWLIB=0
8419 OPENH323_DESCRIP="OpenH323"
8420 OPENH323_OPTION="h323"
8422 # Check whether --with-h323 was given.
8423 if test "${with_h323+set}" = set; then
8424 withval=$with_h323;
8425 case ${withval} in
8426 n|no)
8427 USE_OPENH323=no
8429 y|ye|yes)
8430 OPENH323_MANDATORY="yes"
8433 OPENH323_DIR="${withval}"
8434 OPENH323_MANDATORY="yes"
8436 esac
8440 PBX_OPENH323=0
8447 RADIUS_DESCRIP="Radius Client"
8448 RADIUS_OPTION="radius"
8450 # Check whether --with-radius was given.
8451 if test "${with_radius+set}" = set; then
8452 withval=$with_radius;
8453 case ${withval} in
8454 n|no)
8455 USE_RADIUS=no
8457 y|ye|yes)
8458 RADIUS_MANDATORY="yes"
8461 RADIUS_DIR="${withval}"
8462 RADIUS_MANDATORY="yes"
8464 esac
8468 PBX_RADIUS=0
8475 SPEEX_DESCRIP="Speex"
8476 SPEEX_OPTION="speex"
8478 # Check whether --with-speex was given.
8479 if test "${with_speex+set}" = set; then
8480 withval=$with_speex;
8481 case ${withval} in
8482 n|no)
8483 USE_SPEEX=no
8485 y|ye|yes)
8486 SPEEX_MANDATORY="yes"
8489 SPEEX_DIR="${withval}"
8490 SPEEX_MANDATORY="yes"
8492 esac
8496 PBX_SPEEX=0
8503 SPEEXDSP_DESCRIP="Speexdsp"
8504 SPEEXDSP_OPTION="speexdsp"
8506 # Check whether --with-speexdsp was given.
8507 if test "${with_speexdsp+set}" = set; then
8508 withval=$with_speexdsp;
8509 case ${withval} in
8510 n|no)
8511 USE_SPEEXDSP=no
8513 y|ye|yes)
8514 SPEEXDSP_MANDATORY="yes"
8517 SPEEXDSP_DIR="${withval}"
8518 SPEEXDSP_MANDATORY="yes"
8520 esac
8524 PBX_SPEEXDSP=0
8531 SQLITE_DESCRIP="SQLite"
8532 SQLITE_OPTION="sqlite"
8534 # Check whether --with-sqlite was given.
8535 if test "${with_sqlite+set}" = set; then
8536 withval=$with_sqlite;
8537 case ${withval} in
8538 n|no)
8539 USE_SQLITE=no
8541 y|ye|yes)
8542 SQLITE_MANDATORY="yes"
8545 SQLITE_DIR="${withval}"
8546 SQLITE_MANDATORY="yes"
8548 esac
8552 PBX_SQLITE=0
8559 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8560 SUPPSERV_OPTION="suppserv"
8562 # Check whether --with-suppserv was given.
8563 if test "${with_suppserv+set}" = set; then
8564 withval=$with_suppserv;
8565 case ${withval} in
8566 n|no)
8567 USE_SUPPSERV=no
8569 y|ye|yes)
8570 SUPPSERV_MANDATORY="yes"
8573 SUPPSERV_DIR="${withval}"
8574 SUPPSERV_MANDATORY="yes"
8576 esac
8580 PBX_SUPPSERV=0
8587 OPENSSL_DESCRIP="OpenSSL"
8588 OPENSSL_OPTION="ssl"
8590 # Check whether --with-ssl was given.
8591 if test "${with_ssl+set}" = set; then
8592 withval=$with_ssl;
8593 case ${withval} in
8594 n|no)
8595 USE_OPENSSL=no
8597 y|ye|yes)
8598 OPENSSL_MANDATORY="yes"
8601 OPENSSL_DIR="${withval}"
8602 OPENSSL_MANDATORY="yes"
8604 esac
8608 PBX_OPENSSL=0
8615 FREETDS_DESCRIP="FreeTDS"
8616 FREETDS_OPTION="tds"
8618 # Check whether --with-tds was given.
8619 if test "${with_tds+set}" = set; then
8620 withval=$with_tds;
8621 case ${withval} in
8622 n|no)
8623 USE_FREETDS=no
8625 y|ye|yes)
8626 FREETDS_MANDATORY="yes"
8629 FREETDS_DIR="${withval}"
8630 FREETDS_MANDATORY="yes"
8632 esac
8636 PBX_FREETDS=0
8643 TERMCAP_DESCRIP="Termcap"
8644 TERMCAP_OPTION="termcap"
8646 # Check whether --with-termcap was given.
8647 if test "${with_termcap+set}" = set; then
8648 withval=$with_termcap;
8649 case ${withval} in
8650 n|no)
8651 USE_TERMCAP=no
8653 y|ye|yes)
8654 TERMCAP_MANDATORY="yes"
8657 TERMCAP_DIR="${withval}"
8658 TERMCAP_MANDATORY="yes"
8660 esac
8664 PBX_TERMCAP=0
8671 TINFO_DESCRIP="Term Info"
8672 TINFO_OPTION="tinfo"
8674 # Check whether --with-tinfo was given.
8675 if test "${with_tinfo+set}" = set; then
8676 withval=$with_tinfo;
8677 case ${withval} in
8678 n|no)
8679 USE_TINFO=no
8681 y|ye|yes)
8682 TINFO_MANDATORY="yes"
8685 TINFO_DIR="${withval}"
8686 TINFO_MANDATORY="yes"
8688 esac
8692 PBX_TINFO=0
8699 TONEZONE_DESCRIP="tonezone"
8700 TONEZONE_OPTION="tonezone"
8702 # Check whether --with-tonezone was given.
8703 if test "${with_tonezone+set}" = set; then
8704 withval=$with_tonezone;
8705 case ${withval} in
8706 n|no)
8707 USE_TONEZONE=no
8709 y|ye|yes)
8710 TONEZONE_MANDATORY="yes"
8713 TONEZONE_DIR="${withval}"
8714 TONEZONE_MANDATORY="yes"
8716 esac
8720 PBX_TONEZONE=0
8727 USB_DESCRIP="usb"
8728 USB_OPTION="usb"
8730 # Check whether --with-usb was given.
8731 if test "${with_usb+set}" = set; then
8732 withval=$with_usb;
8733 case ${withval} in
8734 n|no)
8735 USE_USB=no
8737 y|ye|yes)
8738 USB_MANDATORY="yes"
8741 USB_DIR="${withval}"
8742 USB_MANDATORY="yes"
8744 esac
8748 PBX_USB=0
8755 VORBIS_DESCRIP="Vorbis"
8756 VORBIS_OPTION="vorbis"
8758 # Check whether --with-vorbis was given.
8759 if test "${with_vorbis+set}" = set; then
8760 withval=$with_vorbis;
8761 case ${withval} in
8762 n|no)
8763 USE_VORBIS=no
8765 y|ye|yes)
8766 VORBIS_MANDATORY="yes"
8769 VORBIS_DIR="${withval}"
8770 VORBIS_MANDATORY="yes"
8772 esac
8776 PBX_VORBIS=0
8783 VPB_DESCRIP="Voicetronix API"
8784 VPB_OPTION="vpb"
8786 # Check whether --with-vpb was given.
8787 if test "${with_vpb+set}" = set; then
8788 withval=$with_vpb;
8789 case ${withval} in
8790 n|no)
8791 USE_VPB=no
8793 y|ye|yes)
8794 VPB_MANDATORY="yes"
8797 VPB_DIR="${withval}"
8798 VPB_MANDATORY="yes"
8800 esac
8804 PBX_VPB=0
8811 ZLIB_DESCRIP="zlib"
8812 ZLIB_OPTION="z"
8814 # Check whether --with-z was given.
8815 if test "${with_z+set}" = set; then
8816 withval=$with_z;
8817 case ${withval} in
8818 n|no)
8819 USE_ZLIB=no
8821 y|ye|yes)
8822 ZLIB_MANDATORY="yes"
8825 ZLIB_DIR="${withval}"
8826 ZLIB_MANDATORY="yes"
8828 esac
8832 PBX_ZLIB=0
8839 ZAPTEL_DESCRIP="Zaptel"
8840 ZAPTEL_OPTION="zaptel"
8842 # Check whether --with-zaptel was given.
8843 if test "${with_zaptel+set}" = set; then
8844 withval=$with_zaptel;
8845 case ${withval} in
8846 n|no)
8847 USE_ZAPTEL=no
8849 y|ye|yes)
8850 ZAPTEL_MANDATORY="yes"
8853 ZAPTEL_DIR="${withval}"
8854 ZAPTEL_MANDATORY="yes"
8856 esac
8860 PBX_ZAPTEL=0
8867 # check for basic system features and functionality before
8868 # checking for package libraries
8870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8871 # for constant arguments. Useless!
8872 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8873 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8874 if test "${ac_cv_working_alloca_h+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <alloca.h>
8885 main ()
8887 char *p = (char *) alloca (2 * sizeof (int));
8888 if (p) return 0;
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (ac_try="$ac_link"
8895 case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_link") 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest$ac_exeext &&
8910 $as_test_x conftest$ac_exeext; then
8911 ac_cv_working_alloca_h=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_working_alloca_h=no
8919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8920 conftest$ac_exeext conftest.$ac_ext
8922 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8923 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8924 if test $ac_cv_working_alloca_h = yes; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_ALLOCA_H 1
8928 _ACEOF
8932 { echo "$as_me:$LINENO: checking for alloca" >&5
8933 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8934 if test "${ac_cv_func_alloca_works+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h. */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 #ifdef __GNUC__
8944 # define alloca __builtin_alloca
8945 #else
8946 # ifdef _MSC_VER
8947 # include <malloc.h>
8948 # define alloca _alloca
8949 # else
8950 # ifdef HAVE_ALLOCA_H
8951 # include <alloca.h>
8952 # else
8953 # ifdef _AIX
8954 #pragma alloca
8955 # else
8956 # ifndef alloca /* predefined by HP cc +Olibcalls */
8957 char *alloca ();
8958 # endif
8959 # endif
8960 # endif
8961 # endif
8962 #endif
8965 main ()
8967 char *p = (char *) alloca (1);
8968 if (p) return 0;
8970 return 0;
8972 _ACEOF
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (ac_try="$ac_link"
8975 case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978 esac
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_link") 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } && {
8987 test -z "$ac_c_werror_flag" ||
8988 test ! -s conftest.err
8989 } && test -s conftest$ac_exeext &&
8990 $as_test_x conftest$ac_exeext; then
8991 ac_cv_func_alloca_works=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_cv_func_alloca_works=no
8999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9000 conftest$ac_exeext conftest.$ac_ext
9002 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9003 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9005 if test $ac_cv_func_alloca_works = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_ALLOCA 1
9009 _ACEOF
9011 else
9012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9013 # that cause trouble. Some versions do not even contain alloca or
9014 # contain a buggy version. If you still want to use their alloca,
9015 # use ar to extract alloca.o from them instead of compiling alloca.c.
9017 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9019 cat >>confdefs.h <<\_ACEOF
9020 #define C_ALLOCA 1
9021 _ACEOF
9024 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9025 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9026 if test "${ac_cv_os_cray+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #if defined CRAY && ! defined CRAY2
9036 webecray
9037 #else
9038 wenotbecray
9039 #endif
9041 _ACEOF
9042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9043 $EGREP "webecray" >/dev/null 2>&1; then
9044 ac_cv_os_cray=yes
9045 else
9046 ac_cv_os_cray=no
9048 rm -f conftest*
9051 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9052 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9053 if test $ac_cv_os_cray = yes; then
9054 for ac_func in _getb67 GETB67 getb67; do
9055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define $ac_func innocuous_$ac_func
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9082 #undef $ac_func
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 char $ac_func ();
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined __stub_$ac_func || defined __stub___$ac_func
9095 choke me
9096 #endif
9099 main ()
9101 return $ac_func ();
9103 return 0;
9105 _ACEOF
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (ac_try="$ac_link"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_link") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext &&
9123 $as_test_x conftest$ac_exeext; then
9124 eval "$as_ac_var=yes"
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 eval "$as_ac_var=no"
9132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9133 conftest$ac_exeext conftest.$ac_ext
9135 ac_res=`eval echo '${'$as_ac_var'}'`
9136 { echo "$as_me:$LINENO: result: $ac_res" >&5
9137 echo "${ECHO_T}$ac_res" >&6; }
9138 if test `eval echo '${'$as_ac_var'}'` = yes; then
9140 cat >>confdefs.h <<_ACEOF
9141 #define CRAY_STACKSEG_END $ac_func
9142 _ACEOF
9144 break
9147 done
9150 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9151 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9152 if test "${ac_cv_c_stack_direction+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155 if test "$cross_compiling" = yes; then
9156 ac_cv_c_stack_direction=0
9157 else
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9166 find_stack_direction ()
9168 static char *addr = 0;
9169 auto char dummy;
9170 if (addr == 0)
9172 addr = &dummy;
9173 return find_stack_direction ();
9175 else
9176 return (&dummy > addr) ? 1 : -1;
9180 main ()
9182 return find_stack_direction () < 0;
9184 _ACEOF
9185 rm -f conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_c_stack_direction=1
9206 else
9207 echo "$as_me: program exited with status $ac_status" >&5
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 ( exit $ac_status )
9212 ac_cv_c_stack_direction=-1
9214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9220 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9222 cat >>confdefs.h <<_ACEOF
9223 #define STACK_DIRECTION $ac_cv_c_stack_direction
9224 _ACEOF
9234 ac_header_dirent=no
9235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9236 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9237 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <sys/types.h>
9249 #include <$ac_hdr>
9252 main ()
9254 if ((DIR *) 0)
9255 return 0;
9257 return 0;
9259 _ACEOF
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 eval "$as_ac_Header=yes"
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 eval "$as_ac_Header=no"
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result: $ac_res" >&5
9289 echo "${ECHO_T}$ac_res" >&6; }
9290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291 cat >>confdefs.h <<_ACEOF
9292 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9293 _ACEOF
9295 ac_header_dirent=$ac_hdr; break
9298 done
9299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9300 if test $ac_header_dirent = dirent.h; then
9301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9303 if test "${ac_cv_search_opendir+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 ac_func_search_save_LIBS=$LIBS
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char opendir ();
9322 main ()
9324 return opendir ();
9326 return 0;
9328 _ACEOF
9329 for ac_lib in '' dir; do
9330 if test -z "$ac_lib"; then
9331 ac_res="none required"
9332 else
9333 ac_res=-l$ac_lib
9334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_link") 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest$ac_exeext &&
9353 $as_test_x conftest$ac_exeext; then
9354 ac_cv_search_opendir=$ac_res
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 conftest$ac_exeext
9364 if test "${ac_cv_search_opendir+set}" = set; then
9365 break
9367 done
9368 if test "${ac_cv_search_opendir+set}" = set; then
9370 else
9371 ac_cv_search_opendir=no
9373 rm conftest.$ac_ext
9374 LIBS=$ac_func_search_save_LIBS
9376 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9377 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9378 ac_res=$ac_cv_search_opendir
9379 if test "$ac_res" != no; then
9380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9384 else
9385 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9386 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9387 if test "${ac_cv_search_opendir+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 ac_func_search_save_LIBS=$LIBS
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 char opendir ();
9406 main ()
9408 return opendir ();
9410 return 0;
9412 _ACEOF
9413 for ac_lib in '' x; do
9414 if test -z "$ac_lib"; then
9415 ac_res="none required"
9416 else
9417 ac_res=-l$ac_lib
9418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_link") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest$ac_exeext &&
9437 $as_test_x conftest$ac_exeext; then
9438 ac_cv_search_opendir=$ac_res
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 conftest$ac_exeext
9448 if test "${ac_cv_search_opendir+set}" = set; then
9449 break
9451 done
9452 if test "${ac_cv_search_opendir+set}" = set; then
9454 else
9455 ac_cv_search_opendir=no
9457 rm conftest.$ac_ext
9458 LIBS=$ac_func_search_save_LIBS
9460 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9461 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9462 ac_res=$ac_cv_search_opendir
9463 if test "$ac_res" != no; then
9464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9470 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9472 if test "${ac_cv_header_stdc+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 #include <stdlib.h>
9482 #include <stdarg.h>
9483 #include <string.h>
9484 #include <float.h>
9487 main ()
9491 return 0;
9493 _ACEOF
9494 rm -f conftest.$ac_objext
9495 if { (ac_try="$ac_compile"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_compile") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest.$ac_objext; then
9511 ac_cv_header_stdc=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_header_stdc=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 if test $ac_cv_header_stdc = yes; then
9522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h. */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 #include <string.h>
9531 _ACEOF
9532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9533 $EGREP "memchr" >/dev/null 2>&1; then
9535 else
9536 ac_cv_header_stdc=no
9538 rm -f conftest*
9542 if test $ac_cv_header_stdc = yes; then
9543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 #include <stdlib.h>
9552 _ACEOF
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554 $EGREP "free" >/dev/null 2>&1; then
9556 else
9557 ac_cv_header_stdc=no
9559 rm -f conftest*
9563 if test $ac_cv_header_stdc = yes; then
9564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9565 if test "$cross_compiling" = yes; then
9567 else
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 #include <ctype.h>
9575 #include <stdlib.h>
9576 #if ((' ' & 0x0FF) == 0x020)
9577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9579 #else
9580 # define ISLOWER(c) \
9581 (('a' <= (c) && (c) <= 'i') \
9582 || ('j' <= (c) && (c) <= 'r') \
9583 || ('s' <= (c) && (c) <= 'z'))
9584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9585 #endif
9587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9589 main ()
9591 int i;
9592 for (i = 0; i < 256; i++)
9593 if (XOR (islower (i), ISLOWER (i))
9594 || toupper (i) != TOUPPER (i))
9595 return 2;
9596 return 0;
9598 _ACEOF
9599 rm -f conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9601 case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9620 else
9621 echo "$as_me: program exited with status $ac_status" >&5
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9625 ( exit $ac_status )
9626 ac_cv_header_stdc=no
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9636 if test $ac_cv_header_stdc = yes; then
9638 cat >>confdefs.h <<\_ACEOF
9639 #define STDC_HEADERS 1
9640 _ACEOF
9644 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9645 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9646 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/wait.h>
9657 #ifndef WEXITSTATUS
9658 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9659 #endif
9660 #ifndef WIFEXITED
9661 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9662 #endif
9665 main ()
9667 int s;
9668 wait (&s);
9669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (ac_try="$ac_compile"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_compile") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest.$ac_objext; then
9691 ac_cv_header_sys_wait_h=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_header_sys_wait_h=no
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9703 if test $ac_cv_header_sys_wait_h = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_SYS_WAIT_H 1
9707 _ACEOF
9735 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 arpa/nameser.h
9737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_res=`eval echo '${'$as_ac_Header'}'`
9745 { echo "$as_me:$LINENO: result: $ac_res" >&5
9746 echo "${ECHO_T}$ac_res" >&6; }
9747 else
9748 # Is the header compilable?
9749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 $ac_includes_default
9758 #include <$ac_header>
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_compile") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest.$ac_objext; then
9777 ac_header_compiler=yes
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_header_compiler=no
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9787 echo "${ECHO_T}$ac_header_compiler" >&6; }
9789 # Is the header present?
9790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 #include <$ac_header>
9799 _ACEOF
9800 if { (ac_try="$ac_cpp conftest.$ac_ext"
9801 case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } >/dev/null && {
9813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 }; then
9816 ac_header_preproc=yes
9817 else
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_header_preproc=no
9824 rm -f conftest.err conftest.$ac_ext
9825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9826 echo "${ECHO_T}$ac_header_preproc" >&6; }
9828 # So? What about this header?
9829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9830 yes:no: )
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9835 ac_header_preproc=yes
9837 no:yes:* )
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9850 ( cat <<\_ASBOX
9851 ## ------------------------------- ##
9852 ## Report this to www.asterisk.org ##
9853 ## ------------------------------- ##
9854 _ASBOX
9855 ) | sed "s/^/$as_me: WARNING: /" >&2
9857 esac
9858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 eval "$as_ac_Header=\$ac_header_preproc"
9865 ac_res=`eval echo '${'$as_ac_Header'}'`
9866 { echo "$as_me:$LINENO: result: $ac_res" >&5
9867 echo "${ECHO_T}$ac_res" >&6; }
9870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9873 _ACEOF
9877 done
9880 # Check whether --enable-largefile was given.
9881 if test "${enable_largefile+set}" = set; then
9882 enableval=$enable_largefile;
9885 if test "$enable_largefile" != no; then
9887 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9888 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9889 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 ac_cv_sys_largefile_CC=no
9893 if test "$GCC" != yes; then
9894 ac_save_CC=$CC
9895 while :; do
9896 # IRIX 6.2 and later do not support large files by default,
9897 # so use the C compiler's -n32 option if that helps.
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 /* Check that off_t can represent 2**63 - 1 correctly.
9906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9907 since some C++ compilers masquerading as C compilers
9908 incorrectly reject 9223372036854775807. */
9909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9911 && LARGE_OFF_T % 2147483647 == 1)
9912 ? 1 : -1];
9914 main ()
9918 return 0;
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 break
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9946 rm -f core conftest.err conftest.$ac_objext
9947 CC="$CC -n32"
9948 rm -f conftest.$ac_objext
9949 if { (ac_try="$ac_compile"
9950 case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_compile") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest.$ac_objext; then
9965 ac_cv_sys_largefile_CC=' -n32'; break
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f core conftest.err conftest.$ac_objext
9974 break
9975 done
9976 CC=$ac_save_CC
9977 rm -f conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9981 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9982 if test "$ac_cv_sys_largefile_CC" != no; then
9983 CC=$CC$ac_cv_sys_largefile_CC
9986 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9987 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9988 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 while :; do
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 #include <sys/types.h>
9999 /* Check that off_t can represent 2**63 - 1 correctly.
10000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10001 since some C++ compilers masquerading as C compilers
10002 incorrectly reject 9223372036854775807. */
10003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10005 && LARGE_OFF_T % 2147483647 == 1)
10006 ? 1 : -1];
10008 main ()
10012 return 0;
10014 _ACEOF
10015 rm -f conftest.$ac_objext
10016 if { (ac_try="$ac_compile"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.$ac_objext; then
10032 ac_cv_sys_file_offset_bits=no; break
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 #define _FILE_OFFSET_BITS 64
10048 #include <sys/types.h>
10049 /* Check that off_t can represent 2**63 - 1 correctly.
10050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10051 since some C++ compilers masquerading as C compilers
10052 incorrectly reject 9223372036854775807. */
10053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10055 && LARGE_OFF_T % 2147483647 == 1)
10056 ? 1 : -1];
10058 main ()
10062 return 0;
10064 _ACEOF
10065 rm -f conftest.$ac_objext
10066 if { (ac_try="$ac_compile"
10067 case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_compile") 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && {
10079 test -z "$ac_c_werror_flag" ||
10080 test ! -s conftest.err
10081 } && test -s conftest.$ac_objext; then
10082 ac_cv_sys_file_offset_bits=64; break
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 ac_cv_sys_file_offset_bits=unknown
10092 break
10093 done
10095 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10096 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10097 case $ac_cv_sys_file_offset_bits in #(
10098 no | unknown) ;;
10100 cat >>confdefs.h <<_ACEOF
10101 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10102 _ACEOF
10104 esac
10105 rm -f conftest*
10106 if test $ac_cv_sys_file_offset_bits = unknown; then
10107 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10108 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10109 if test "${ac_cv_sys_large_files+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 while :; do
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <sys/types.h>
10120 /* Check that off_t can represent 2**63 - 1 correctly.
10121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10122 since some C++ compilers masquerading as C compilers
10123 incorrectly reject 9223372036854775807. */
10124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10127 ? 1 : -1];
10129 main ()
10133 return 0;
10135 _ACEOF
10136 rm -f conftest.$ac_objext
10137 if { (ac_try="$ac_compile"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_compile") 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest.$ac_objext; then
10153 ac_cv_sys_large_files=no; break
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #define _LARGE_FILES 1
10169 #include <sys/types.h>
10170 /* Check that off_t can represent 2**63 - 1 correctly.
10171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10172 since some C++ compilers masquerading as C compilers
10173 incorrectly reject 9223372036854775807. */
10174 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10176 && LARGE_OFF_T % 2147483647 == 1)
10177 ? 1 : -1];
10179 main ()
10183 return 0;
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (ac_try="$ac_compile"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_compile") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest.$ac_objext; then
10203 ac_cv_sys_large_files=1; break
10204 else
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 ac_cv_sys_large_files=unknown
10213 break
10214 done
10216 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10217 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10218 case $ac_cv_sys_large_files in #(
10219 no | unknown) ;;
10221 cat >>confdefs.h <<_ACEOF
10222 #define _LARGE_FILES $ac_cv_sys_large_files
10223 _ACEOF
10225 esac
10226 rm -f conftest*
10231 # Checks for typedefs, structures, and compiler characteristics.
10232 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10233 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10234 if test "${ac_cv_header_stdbool_h+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10244 #include <stdbool.h>
10245 #ifndef bool
10246 "error: bool is not defined"
10247 #endif
10248 #ifndef false
10249 "error: false is not defined"
10250 #endif
10251 #if false
10252 "error: false is not 0"
10253 #endif
10254 #ifndef true
10255 "error: true is not defined"
10256 #endif
10257 #if true != 1
10258 "error: true is not 1"
10259 #endif
10260 #ifndef __bool_true_false_are_defined
10261 "error: __bool_true_false_are_defined is not defined"
10262 #endif
10264 struct s { _Bool s: 1; _Bool t; } s;
10266 char a[true == 1 ? 1 : -1];
10267 char b[false == 0 ? 1 : -1];
10268 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10269 char d[(bool) 0.5 == true ? 1 : -1];
10270 bool e = &s;
10271 char f[(_Bool) 0.0 == false ? 1 : -1];
10272 char g[true];
10273 char h[sizeof (_Bool)];
10274 char i[sizeof s.t];
10275 enum { j = false, k = true, l = false * true, m = true * 256 };
10276 _Bool n[m];
10277 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10278 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10279 # if defined __xlc__ || defined __GNUC__
10280 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10281 reported by James Lemley on 2005-10-05; see
10282 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10283 This test is not quite right, since xlc is allowed to
10284 reject this program, as the initializer for xlcbug is
10285 not one of the forms that C requires support for.
10286 However, doing the test right would require a runtime
10287 test, and that would make cross-compilation harder.
10288 Let us hope that IBM fixes the xlc bug, and also adds
10289 support for this kind of constant expression. In the
10290 meantime, this test will reject xlc, which is OK, since
10291 our stdbool.h substitute should suffice. We also test
10292 this with GCC, where it should work, to detect more
10293 quickly whether someone messes up the test in the
10294 future. */
10295 char digs[] = "0123456789";
10296 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10297 # endif
10298 /* Catch a bug in an HP-UX C compiler. See
10299 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10300 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10302 _Bool q = true;
10303 _Bool *pq = &q;
10306 main ()
10309 *pq |= q;
10310 *pq |= ! q;
10311 /* Refer to every declared value, to avoid compiler optimizations. */
10312 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10313 + !m + !n + !o + !p + !q + !pq);
10316 return 0;
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_compile") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.$ac_objext; then
10336 ac_cv_header_stdbool_h=yes
10337 else
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_cv_header_stdbool_h=no
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10347 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10348 { echo "$as_me:$LINENO: checking for _Bool" >&5
10349 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10350 if test "${ac_cv_type__Bool+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 typedef _Bool ac__type_new_;
10362 main ()
10364 if ((ac__type_new_ *) 0)
10365 return 0;
10366 if (sizeof (ac__type_new_))
10367 return 0;
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10389 ac_cv_type__Bool=yes
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_cv_type__Bool=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10400 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10401 if test $ac_cv_type__Bool = yes; then
10403 cat >>confdefs.h <<_ACEOF
10404 #define HAVE__BOOL 1
10405 _ACEOF
10410 if test $ac_cv_header_stdbool_h = yes; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_STDBOOL_H 1
10414 _ACEOF
10418 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10419 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10420 if test "${ac_cv_c_const+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10431 main ()
10433 /* FIXME: Include the comments suggested by Paul. */
10434 #ifndef __cplusplus
10435 /* Ultrix mips cc rejects this. */
10436 typedef int charset[2];
10437 const charset cs;
10438 /* SunOS 4.1.1 cc rejects this. */
10439 char const *const *pcpcc;
10440 char **ppc;
10441 /* NEC SVR4.0.2 mips cc rejects this. */
10442 struct point {int x, y;};
10443 static struct point const zero = {0,0};
10444 /* AIX XL C 1.02.0.0 rejects this.
10445 It does not let you subtract one const X* pointer from another in
10446 an arm of an if-expression whose if-part is not a constant
10447 expression */
10448 const char *g = "string";
10449 pcpcc = &g + (g ? g-g : 0);
10450 /* HPUX 7.0 cc rejects these. */
10451 ++pcpcc;
10452 ppc = (char**) pcpcc;
10453 pcpcc = (char const *const *) ppc;
10454 { /* SCO 3.2v4 cc rejects this. */
10455 char *t;
10456 char const *s = 0 ? (char *) 0 : (char const *) 0;
10458 *t++ = 0;
10459 if (s) return 0;
10461 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10462 int x[] = {25, 17};
10463 const int *foo = &x[0];
10464 ++foo;
10466 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10467 typedef const int *iptr;
10468 iptr p = 0;
10469 ++p;
10471 { /* AIX XL C 1.02.0.0 rejects this saying
10472 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10473 struct s { int j; const int *ap[3]; };
10474 struct s *b; b->j = 5;
10476 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10477 const int foo = 10;
10478 if (!foo) return 0;
10480 return !cs[0] && !zero.x;
10481 #endif
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10504 ac_cv_c_const=yes
10505 else
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_cv_c_const=no
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10515 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10516 if test $ac_cv_c_const = no; then
10518 cat >>confdefs.h <<\_ACEOF
10519 #define const
10520 _ACEOF
10524 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10525 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10526 if test "${ac_cv_type_uid_t+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 #include <sys/types.h>
10537 _ACEOF
10538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10539 $EGREP "uid_t" >/dev/null 2>&1; then
10540 ac_cv_type_uid_t=yes
10541 else
10542 ac_cv_type_uid_t=no
10544 rm -f conftest*
10547 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10548 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10549 if test $ac_cv_type_uid_t = no; then
10551 cat >>confdefs.h <<\_ACEOF
10552 #define uid_t int
10553 _ACEOF
10556 cat >>confdefs.h <<\_ACEOF
10557 #define gid_t int
10558 _ACEOF
10562 { echo "$as_me:$LINENO: checking for inline" >&5
10563 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10564 if test "${ac_cv_c_inline+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567 ac_cv_c_inline=no
10568 for ac_kw in inline __inline__ __inline; do
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #ifndef __cplusplus
10576 typedef int foo_t;
10577 static $ac_kw foo_t static_foo () {return 0; }
10578 $ac_kw foo_t foo () {return 0; }
10579 #endif
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_c_inline=$ac_kw
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 test "$ac_cv_c_inline" != no && break
10609 done
10612 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10613 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10616 case $ac_cv_c_inline in
10617 inline | yes) ;;
10619 case $ac_cv_c_inline in
10620 no) ac_val=;;
10621 *) ac_val=$ac_cv_c_inline;;
10622 esac
10623 cat >>confdefs.h <<_ACEOF
10624 #ifndef __cplusplus
10625 #define inline $ac_val
10626 #endif
10627 _ACEOF
10629 esac
10631 { echo "$as_me:$LINENO: checking for mode_t" >&5
10632 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10633 if test "${ac_cv_type_mode_t+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 typedef mode_t ac__type_new_;
10645 main ()
10647 if ((ac__type_new_ *) 0)
10648 return 0;
10649 if (sizeof (ac__type_new_))
10650 return 0;
10652 return 0;
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_compile") 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && {
10669 test -z "$ac_c_werror_flag" ||
10670 test ! -s conftest.err
10671 } && test -s conftest.$ac_objext; then
10672 ac_cv_type_mode_t=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_cv_type_mode_t=no
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10683 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10684 if test $ac_cv_type_mode_t = yes; then
10686 else
10688 cat >>confdefs.h <<_ACEOF
10689 #define mode_t int
10690 _ACEOF
10694 { echo "$as_me:$LINENO: checking for off_t" >&5
10695 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10696 if test "${ac_cv_type_off_t+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 $ac_includes_default
10706 typedef off_t ac__type_new_;
10708 main ()
10710 if ((ac__type_new_ *) 0)
10711 return 0;
10712 if (sizeof (ac__type_new_))
10713 return 0;
10715 return 0;
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_compile") 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest.$ac_objext; then
10735 ac_cv_type_off_t=yes
10736 else
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_cv_type_off_t=no
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10746 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10747 if test $ac_cv_type_off_t = yes; then
10749 else
10751 cat >>confdefs.h <<_ACEOF
10752 #define off_t long int
10753 _ACEOF
10757 { echo "$as_me:$LINENO: checking for pid_t" >&5
10758 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10759 if test "${ac_cv_type_pid_t+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h. */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10769 typedef pid_t ac__type_new_;
10771 main ()
10773 if ((ac__type_new_ *) 0)
10774 return 0;
10775 if (sizeof (ac__type_new_))
10776 return 0;
10778 return 0;
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
10798 ac_cv_type_pid_t=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_type_pid_t=no
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10809 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10810 if test $ac_cv_type_pid_t = yes; then
10812 else
10814 cat >>confdefs.h <<_ACEOF
10815 #define pid_t int
10816 _ACEOF
10820 { echo "$as_me:$LINENO: checking for size_t" >&5
10821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10822 if test "${ac_cv_type_size_t+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $ac_includes_default
10832 typedef size_t ac__type_new_;
10834 main ()
10836 if ((ac__type_new_ *) 0)
10837 return 0;
10838 if (sizeof (ac__type_new_))
10839 return 0;
10841 return 0;
10843 _ACEOF
10844 rm -f conftest.$ac_objext
10845 if { (ac_try="$ac_compile"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_compile") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest.$ac_objext; then
10861 ac_cv_type_size_t=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_cv_type_size_t=no
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10872 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10873 if test $ac_cv_type_size_t = yes; then
10875 else
10877 cat >>confdefs.h <<_ACEOF
10878 #define size_t unsigned int
10879 _ACEOF
10883 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10884 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10885 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10896 main ()
10898 static struct stat ac_aggr;
10899 if (ac_aggr.st_blksize)
10900 return 0;
10902 return 0;
10904 _ACEOF
10905 rm -f conftest.$ac_objext
10906 if { (ac_try="$ac_compile"
10907 case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_compile") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest.$ac_objext; then
10922 ac_cv_member_struct_stat_st_blksize=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 $ac_includes_default
10935 main ()
10937 static struct stat ac_aggr;
10938 if (sizeof ac_aggr.st_blksize)
10939 return 0;
10941 return 0;
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (ac_try="$ac_compile"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_compile") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest.$ac_objext; then
10961 ac_cv_member_struct_stat_st_blksize=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_cv_member_struct_stat_st_blksize=no
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10975 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10976 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10978 cat >>confdefs.h <<_ACEOF
10979 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10980 _ACEOF
10985 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10986 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10987 if test "${ac_cv_header_time+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <sys/types.h>
10997 #include <sys/time.h>
10998 #include <time.h>
11001 main ()
11003 if ((struct tm *) 0)
11004 return 0;
11006 return 0;
11008 _ACEOF
11009 rm -f conftest.$ac_objext
11010 if { (ac_try="$ac_compile"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_compile") 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest.$ac_objext; then
11026 ac_cv_header_time=yes
11027 else
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_cv_header_time=no
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11037 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11038 if test $ac_cv_header_time = yes; then
11040 cat >>confdefs.h <<\_ACEOF
11041 #define TIME_WITH_SYS_TIME 1
11042 _ACEOF
11046 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11047 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11048 if test "${ac_cv_struct_tm+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <sys/types.h>
11058 #include <time.h>
11061 main ()
11063 struct tm tm;
11064 int *p = &tm.tm_sec;
11065 return !p;
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (ac_try="$ac_compile"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_compile") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest.$ac_objext; then
11087 ac_cv_struct_tm=time.h
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_struct_tm=sys/time.h
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11098 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11099 if test $ac_cv_struct_tm = sys/time.h; then
11101 cat >>confdefs.h <<\_ACEOF
11102 #define TM_IN_SYS_TIME 1
11103 _ACEOF
11107 { echo "$as_me:$LINENO: checking for working volatile" >&5
11108 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11109 if test "${ac_cv_c_volatile+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
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. */
11120 main ()
11123 volatile int x;
11124 int * volatile y = (int *) 0;
11125 return !x && !y;
11127 return 0;
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_compile") 2>conftest.er1
11138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_c_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest.$ac_objext; then
11147 ac_cv_c_volatile=yes
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 ac_cv_c_volatile=no
11155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11158 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11159 if test $ac_cv_c_volatile = no; then
11161 cat >>confdefs.h <<\_ACEOF
11162 #define volatile
11163 _ACEOF
11167 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11168 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11169 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 typedef ptrdiff_t ac__type_new_;
11181 main ()
11183 if ((ac__type_new_ *) 0)
11184 return 0;
11185 if (sizeof (ac__type_new_))
11186 return 0;
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 ac_cv_type_ptrdiff_t=yes
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_cv_type_ptrdiff_t=no
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11219 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11220 if test $ac_cv_type_ptrdiff_t = yes; then
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_PTRDIFF_T 1
11224 _ACEOF
11230 # Checks for library functions.
11232 for ac_header in unistd.h
11234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 ac_res=`eval echo '${'$as_ac_Header'}'`
11242 { echo "$as_me:$LINENO: result: $ac_res" >&5
11243 echo "${ECHO_T}$ac_res" >&6; }
11244 else
11245 # Is the header compilable?
11246 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 <$ac_header>
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11274 ac_header_compiler=yes
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_header_compiler=no
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <$ac_header>
11296 _ACEOF
11297 if { (ac_try="$ac_cpp conftest.$ac_ext"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null && {
11310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 }; then
11313 ac_header_preproc=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_header_preproc=no
11321 rm -f conftest.err conftest.$ac_ext
11322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11323 echo "${ECHO_T}$ac_header_preproc" >&6; }
11325 # So? What about this header?
11326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11327 yes:no: )
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11332 ac_header_preproc=yes
11334 no:yes:* )
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11347 ( cat <<\_ASBOX
11348 ## ------------------------------- ##
11349 ## Report this to www.asterisk.org ##
11350 ## ------------------------------- ##
11351 _ASBOX
11352 ) | sed "s/^/$as_me: WARNING: /" >&2
11354 esac
11355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 eval "$as_ac_Header=\$ac_header_preproc"
11362 ac_res=`eval echo '${'$as_ac_Header'}'`
11363 { echo "$as_me:$LINENO: result: $ac_res" >&5
11364 echo "${ECHO_T}$ac_res" >&6; }
11367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11370 _ACEOF
11374 done
11376 { echo "$as_me:$LINENO: checking for working chown" >&5
11377 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11378 if test "${ac_cv_func_chown_works+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381 if test "$cross_compiling" = yes; then
11382 ac_cv_func_chown_works=no
11383 else
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 #include <fcntl.h>
11394 main ()
11396 char *f = "conftest.chown";
11397 struct stat before, after;
11399 if (creat (f, 0600) < 0)
11400 return 1;
11401 if (stat (f, &before) < 0)
11402 return 1;
11403 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11404 return 1;
11405 if (stat (f, &after) < 0)
11406 return 1;
11407 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11410 return 0;
11412 _ACEOF
11413 rm -f conftest$ac_exeext
11414 if { (ac_try="$ac_link"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_link") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11424 { (case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_try") 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 ac_cv_func_chown_works=yes
11434 else
11435 echo "$as_me: program exited with status $ac_status" >&5
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ( exit $ac_status )
11440 ac_cv_func_chown_works=no
11442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11446 rm -f conftest.chown
11449 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11450 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11451 if test $ac_cv_func_chown_works = yes; then
11453 cat >>confdefs.h <<\_ACEOF
11454 #define HAVE_CHOWN 1
11455 _ACEOF
11459 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11460 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11461 if test "${ac_cv_func_closedir_void+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 if test "$cross_compiling" = yes; then
11465 ac_cv_func_closedir_void=yes
11466 else
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <$ac_header_dirent>
11475 #ifndef __cplusplus
11476 int closedir ();
11477 #endif
11480 main ()
11482 return closedir (opendir (".")) != 0;
11484 return 0;
11486 _ACEOF
11487 rm -f conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_link") 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_func_closedir_void=no
11508 else
11509 echo "$as_me: program exited with status $ac_status" >&5
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ( exit $ac_status )
11514 ac_cv_func_closedir_void=yes
11516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11522 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11523 if test $ac_cv_func_closedir_void = yes; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define CLOSEDIR_VOID 1
11527 _ACEOF
11531 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11532 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_error_at_line+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <error.h>
11544 main ()
11546 error_at_line (0, 0, "", 0, "an error occurred");
11548 return 0;
11550 _ACEOF
11551 rm -f conftest.$ac_objext conftest$ac_exeext
11552 if { (ac_try="$ac_link"
11553 case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556 esac
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558 (eval "$ac_link") 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } && {
11565 test -z "$ac_c_werror_flag" ||
11566 test ! -s conftest.err
11567 } && test -s conftest$ac_exeext &&
11568 $as_test_x conftest$ac_exeext; then
11569 ac_cv_lib_error_at_line=yes
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_cv_lib_error_at_line=no
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578 conftest$ac_exeext conftest.$ac_ext
11580 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11581 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11582 if test $ac_cv_lib_error_at_line = no; then
11583 case " $LIBOBJS " in
11584 *" error.$ac_objext "* ) ;;
11585 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11587 esac
11592 for ac_header in vfork.h
11594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11604 else
11605 # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h. */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_compile") 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest.$ac_objext; then
11634 ac_header_compiler=yes
11635 else
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h. */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <$ac_header>
11656 _ACEOF
11657 if { (ac_try="$ac_cpp conftest.$ac_ext"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null && {
11670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11672 }; then
11673 ac_header_preproc=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_header_preproc=no
11681 rm -f conftest.err conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 yes:no: )
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692 ac_header_preproc=yes
11694 no:yes:* )
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 ( cat <<\_ASBOX
11708 ## ------------------------------- ##
11709 ## Report this to www.asterisk.org ##
11710 ## ------------------------------- ##
11711 _ASBOX
11712 ) | sed "s/^/$as_me: WARNING: /" >&2
11714 esac
11715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 eval "$as_ac_Header=\$ac_header_preproc"
11722 ac_res=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730 _ACEOF
11734 done
11738 for ac_func in fork vfork
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11767 #undef $ac_func
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char $ac_func ();
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 choke me
11781 #endif
11784 main ()
11786 return $ac_func ();
11788 return 0;
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext &&
11808 $as_test_x conftest$ac_exeext; then
11809 eval "$as_ac_var=yes"
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 eval "$as_ac_var=no"
11817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11818 conftest$ac_exeext conftest.$ac_ext
11820 ac_res=`eval echo '${'$as_ac_var'}'`
11821 { echo "$as_me:$LINENO: result: $ac_res" >&5
11822 echo "${ECHO_T}$ac_res" >&6; }
11823 if test `eval echo '${'$as_ac_var'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826 _ACEOF
11829 done
11831 if test "x$ac_cv_func_fork" = xyes; then
11832 { echo "$as_me:$LINENO: checking for working fork" >&5
11833 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11834 if test "${ac_cv_func_fork_works+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837 if test "$cross_compiling" = yes; then
11838 ac_cv_func_fork_works=cross
11839 else
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h. */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 $ac_includes_default
11848 main ()
11851 /* By Ruediger Kuhlmann. */
11852 return fork () < 0;
11855 return 0;
11857 _ACEOF
11858 rm -f conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11869 { (case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_try") 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_func_fork_works=yes
11879 else
11880 echo "$as_me: program exited with status $ac_status" >&5
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ( exit $ac_status )
11885 ac_cv_func_fork_works=no
11887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11892 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11893 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11895 else
11896 ac_cv_func_fork_works=$ac_cv_func_fork
11898 if test "x$ac_cv_func_fork_works" = xcross; then
11899 case $host in
11900 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11901 # Override, as these systems have only a dummy fork() stub
11902 ac_cv_func_fork_works=no
11905 ac_cv_func_fork_works=yes
11907 esac
11908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11909 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11911 ac_cv_func_vfork_works=$ac_cv_func_vfork
11912 if test "x$ac_cv_func_vfork" = xyes; then
11913 { echo "$as_me:$LINENO: checking for working vfork" >&5
11914 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11915 if test "${ac_cv_func_vfork_works+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918 if test "$cross_compiling" = yes; then
11919 ac_cv_func_vfork_works=cross
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Thanks to Paul Eggert for this test. */
11928 $ac_includes_default
11929 #include <sys/wait.h>
11930 #ifdef HAVE_VFORK_H
11931 # include <vfork.h>
11932 #endif
11933 /* On some sparc systems, changes by the child to local and incoming
11934 argument registers are propagated back to the parent. The compiler
11935 is told about this with #include <vfork.h>, but some compilers
11936 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11937 static variable whose address is put into a register that is
11938 clobbered by the vfork. */
11939 static void
11940 #ifdef __cplusplus
11941 sparc_address_test (int arg)
11942 # else
11943 sparc_address_test (arg) int arg;
11944 #endif
11946 static pid_t child;
11947 if (!child) {
11948 child = vfork ();
11949 if (child < 0) {
11950 perror ("vfork");
11951 _exit(2);
11953 if (!child) {
11954 arg = getpid();
11955 write(-1, "", 0);
11956 _exit (arg);
11962 main ()
11964 pid_t parent = getpid ();
11965 pid_t child;
11967 sparc_address_test (0);
11969 child = vfork ();
11971 if (child == 0) {
11972 /* Here is another test for sparc vfork register problems. This
11973 test uses lots of local variables, at least as many local
11974 variables as main has allocated so far including compiler
11975 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11976 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11977 reuse the register of parent for one of the local variables,
11978 since it will think that parent can't possibly be used any more
11979 in this routine. Assigning to the local variable will thus
11980 munge parent in the parent process. */
11981 pid_t
11982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11984 /* Convince the compiler that p..p7 are live; otherwise, it might
11985 use the same hardware register for all 8 local variables. */
11986 if (p != p1 || p != p2 || p != p3 || p != p4
11987 || p != p5 || p != p6 || p != p7)
11988 _exit(1);
11990 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11991 from child file descriptors. If the child closes a descriptor
11992 before it execs or exits, this munges the parent's descriptor
11993 as well. Test for this by closing stdout in the child. */
11994 _exit(close(fileno(stdout)) != 0);
11995 } else {
11996 int status;
11997 struct stat st;
11999 while (wait(&status) != child)
12001 return (
12002 /* Was there some problem with vforking? */
12003 child < 0
12005 /* Did the child fail? (This shouldn't happen.) */
12006 || status
12008 /* Did the vfork/compiler bug occur? */
12009 || parent != getpid()
12011 /* Did the file descriptor bug occur? */
12012 || fstat(fileno(stdout), &st) != 0
12016 _ACEOF
12017 rm -f conftest$ac_exeext
12018 if { (ac_try="$ac_link"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_link") 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_cv_func_vfork_works=yes
12038 else
12039 echo "$as_me: program exited with status $ac_status" >&5
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ( exit $ac_status )
12044 ac_cv_func_vfork_works=no
12046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12051 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12052 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12055 if test "x$ac_cv_func_fork_works" = xcross; then
12056 ac_cv_func_vfork_works=$ac_cv_func_vfork
12057 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12058 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12061 if test "x$ac_cv_func_vfork_works" = xyes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_WORKING_VFORK 1
12065 _ACEOF
12067 else
12069 cat >>confdefs.h <<\_ACEOF
12070 #define vfork fork
12071 _ACEOF
12074 if test "x$ac_cv_func_fork_works" = xyes; then
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_WORKING_FORK 1
12078 _ACEOF
12082 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12083 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12084 if test "${ac_cv_sys_largefile_source+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087 while :; do
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <sys/types.h> /* for off_t */
12095 #include <stdio.h>
12097 main ()
12099 int (*fp) (FILE *, off_t, int) = fseeko;
12100 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12102 return 0;
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest$ac_exeext &&
12122 $as_test_x conftest$ac_exeext; then
12123 ac_cv_sys_largefile_source=no; break
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12132 conftest$ac_exeext conftest.$ac_ext
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #define _LARGEFILE_SOURCE 1
12140 #include <sys/types.h> /* for off_t */
12141 #include <stdio.h>
12143 main ()
12145 int (*fp) (FILE *, off_t, int) = fseeko;
12146 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12148 return 0;
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest$ac_exeext &&
12168 $as_test_x conftest$ac_exeext; then
12169 ac_cv_sys_largefile_source=1; break
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 ac_cv_sys_largefile_source=unknown
12180 break
12181 done
12183 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12184 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12185 case $ac_cv_sys_largefile_source in #(
12186 no | unknown) ;;
12188 cat >>confdefs.h <<_ACEOF
12189 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12190 _ACEOF
12192 esac
12193 rm -f conftest*
12195 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12196 # in glibc 2.1.3, but that breaks too many other things.
12197 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12198 if test $ac_cv_sys_largefile_source != unknown; then
12200 cat >>confdefs.h <<\_ACEOF
12201 #define HAVE_FSEEKO 1
12202 _ACEOF
12206 if test $ac_cv_c_compiler_gnu = yes; then
12207 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12208 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12209 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 ac_pattern="Autoconf.*'x'"
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 #include <sgtty.h>
12220 Autoconf TIOCGETP
12221 _ACEOF
12222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12223 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12224 ac_cv_prog_gcc_traditional=yes
12225 else
12226 ac_cv_prog_gcc_traditional=no
12228 rm -f conftest*
12231 if test $ac_cv_prog_gcc_traditional = no; then
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 #include <termio.h>
12239 Autoconf TCGETA
12240 _ACEOF
12241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12242 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12243 ac_cv_prog_gcc_traditional=yes
12245 rm -f conftest*
12249 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12250 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12251 if test $ac_cv_prog_gcc_traditional = yes; then
12252 CC="$CC -traditional"
12256 # XXX: these are commented out until we determine whether it matters if our malloc()
12257 # acts exactly like glibc's or not
12258 # AC_FUNC_MALLOC
12259 # AC_FUNC_REALLOC
12260 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12261 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12262 if test "${ac_cv_func_memcmp_working+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 if test "$cross_compiling" = yes; then
12266 ac_cv_func_memcmp_working=no
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12276 main ()
12279 /* Some versions of memcmp are not 8-bit clean. */
12280 char c0 = '\100', c1 = '\200', c2 = '\201';
12281 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12282 return 1;
12284 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12285 or more and with at least one buffer not starting on a 4-byte boundary.
12286 William Lewis provided this test program. */
12288 char foo[21];
12289 char bar[21];
12290 int i;
12291 for (i = 0; i < 4; i++)
12293 char *a = foo + i;
12294 char *b = bar + i;
12295 strcpy (a, "--------01111111");
12296 strcpy (b, "--------10000000");
12297 if (memcmp (a, b, 16) >= 0)
12298 return 1;
12300 return 0;
12304 return 0;
12306 _ACEOF
12307 rm -f conftest$ac_exeext
12308 if { (ac_try="$ac_link"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_link") 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_func_memcmp_working=yes
12328 else
12329 echo "$as_me: program exited with status $ac_status" >&5
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ( exit $ac_status )
12334 ac_cv_func_memcmp_working=no
12336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12341 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12342 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12343 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12344 *" memcmp.$ac_objext "* ) ;;
12345 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12347 esac
12352 for ac_header in stdlib.h unistd.h
12354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 ac_res=`eval echo '${'$as_ac_Header'}'`
12362 { echo "$as_me:$LINENO: result: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12364 else
12365 # Is the header compilable?
12366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 #include <$ac_header>
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (ac_try="$ac_compile"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_compile") 2>conftest.er1
12385 ac_status=$?
12386 grep -v '^ *+' conftest.er1 >conftest.err
12387 rm -f conftest.er1
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest.$ac_objext; then
12394 ac_header_compiler=yes
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_header_compiler=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12404 echo "${ECHO_T}$ac_header_compiler" >&6; }
12406 # Is the header present?
12407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 #include <$ac_header>
12416 _ACEOF
12417 if { (ac_try="$ac_cpp conftest.$ac_ext"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } >/dev/null && {
12430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 }; then
12433 ac_header_preproc=yes
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_header_preproc=no
12441 rm -f conftest.err conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12443 echo "${ECHO_T}$ac_header_preproc" >&6; }
12445 # So? What about this header?
12446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12447 yes:no: )
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12452 ac_header_preproc=yes
12454 no:yes:* )
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12467 ( cat <<\_ASBOX
12468 ## ------------------------------- ##
12469 ## Report this to www.asterisk.org ##
12470 ## ------------------------------- ##
12471 _ASBOX
12472 ) | sed "s/^/$as_me: WARNING: /" >&2
12474 esac
12475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480 eval "$as_ac_Header=\$ac_header_preproc"
12482 ac_res=`eval echo '${'$as_ac_Header'}'`
12483 { echo "$as_me:$LINENO: result: $ac_res" >&5
12484 echo "${ECHO_T}$ac_res" >&6; }
12487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12488 cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12490 _ACEOF
12494 done
12497 for ac_func in getpagesize
12499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12513 #define $ac_func innocuous_$ac_func
12515 /* System header to define __stub macros and hopefully few prototypes,
12516 which can conflict with char $ac_func (); below.
12517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518 <limits.h> exists even on freestanding compilers. */
12520 #ifdef __STDC__
12521 # include <limits.h>
12522 #else
12523 # include <assert.h>
12524 #endif
12526 #undef $ac_func
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char $ac_func ();
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined __stub_$ac_func || defined __stub___$ac_func
12539 choke me
12540 #endif
12543 main ()
12545 return $ac_func ();
12547 return 0;
12549 _ACEOF
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_link") 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } && {
12564 test -z "$ac_c_werror_flag" ||
12565 test ! -s conftest.err
12566 } && test -s conftest$ac_exeext &&
12567 $as_test_x conftest$ac_exeext; then
12568 eval "$as_ac_var=yes"
12569 else
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 eval "$as_ac_var=no"
12576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12577 conftest$ac_exeext conftest.$ac_ext
12579 ac_res=`eval echo '${'$as_ac_var'}'`
12580 { echo "$as_me:$LINENO: result: $ac_res" >&5
12581 echo "${ECHO_T}$ac_res" >&6; }
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12585 _ACEOF
12588 done
12590 { echo "$as_me:$LINENO: checking for working mmap" >&5
12591 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12592 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 if test "$cross_compiling" = yes; then
12596 ac_cv_func_mmap_fixed_mapped=no
12597 else
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 /* malloc might have been renamed as rpl_malloc. */
12606 #undef malloc
12608 /* Thanks to Mike Haertel and Jim Avera for this test.
12609 Here is a matrix of mmap possibilities:
12610 mmap private not fixed
12611 mmap private fixed at somewhere currently unmapped
12612 mmap private fixed at somewhere already mapped
12613 mmap shared not fixed
12614 mmap shared fixed at somewhere currently unmapped
12615 mmap shared fixed at somewhere already mapped
12616 For private mappings, we should verify that changes cannot be read()
12617 back from the file, nor mmap's back from the file at a different
12618 address. (There have been systems where private was not correctly
12619 implemented like the infamous i386 svr4.0, and systems where the
12620 VM page cache was not coherent with the file system buffer cache
12621 like early versions of FreeBSD and possibly contemporary NetBSD.)
12622 For shared mappings, we should conversely verify that changes get
12623 propagated back to all the places they're supposed to be.
12625 Grep wants private fixed already mapped.
12626 The main things grep needs to know about mmap are:
12627 * does it exist and is it safe to write into the mmap'd area
12628 * how to use it (BSD variants) */
12630 #include <fcntl.h>
12631 #include <sys/mman.h>
12633 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12634 char *malloc ();
12635 #endif
12637 /* This mess was copied from the GNU getpagesize.h. */
12638 #ifndef HAVE_GETPAGESIZE
12639 /* Assume that all systems that can run configure have sys/param.h. */
12640 # ifndef HAVE_SYS_PARAM_H
12641 # define HAVE_SYS_PARAM_H 1
12642 # endif
12644 # ifdef _SC_PAGESIZE
12645 # define getpagesize() sysconf(_SC_PAGESIZE)
12646 # else /* no _SC_PAGESIZE */
12647 # ifdef HAVE_SYS_PARAM_H
12648 # include <sys/param.h>
12649 # ifdef EXEC_PAGESIZE
12650 # define getpagesize() EXEC_PAGESIZE
12651 # else /* no EXEC_PAGESIZE */
12652 # ifdef NBPG
12653 # define getpagesize() NBPG * CLSIZE
12654 # ifndef CLSIZE
12655 # define CLSIZE 1
12656 # endif /* no CLSIZE */
12657 # else /* no NBPG */
12658 # ifdef NBPC
12659 # define getpagesize() NBPC
12660 # else /* no NBPC */
12661 # ifdef PAGESIZE
12662 # define getpagesize() PAGESIZE
12663 # endif /* PAGESIZE */
12664 # endif /* no NBPC */
12665 # endif /* no NBPG */
12666 # endif /* no EXEC_PAGESIZE */
12667 # else /* no HAVE_SYS_PARAM_H */
12668 # define getpagesize() 8192 /* punt totally */
12669 # endif /* no HAVE_SYS_PARAM_H */
12670 # endif /* no _SC_PAGESIZE */
12672 #endif /* no HAVE_GETPAGESIZE */
12675 main ()
12677 char *data, *data2, *data3;
12678 int i, pagesize;
12679 int fd;
12681 pagesize = getpagesize ();
12683 /* First, make a file with some known garbage in it. */
12684 data = (char *) malloc (pagesize);
12685 if (!data)
12686 return 1;
12687 for (i = 0; i < pagesize; ++i)
12688 *(data + i) = rand ();
12689 umask (0);
12690 fd = creat ("conftest.mmap", 0600);
12691 if (fd < 0)
12692 return 1;
12693 if (write (fd, data, pagesize) != pagesize)
12694 return 1;
12695 close (fd);
12697 /* Next, try to mmap the file at a fixed address which already has
12698 something else allocated at it. If we can, also make sure that
12699 we see the same garbage. */
12700 fd = open ("conftest.mmap", O_RDWR);
12701 if (fd < 0)
12702 return 1;
12703 data2 = (char *) malloc (2 * pagesize);
12704 if (!data2)
12705 return 1;
12706 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12707 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12708 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12709 return 1;
12710 for (i = 0; i < pagesize; ++i)
12711 if (*(data + i) != *(data2 + i))
12712 return 1;
12714 /* Finally, make sure that changes to the mapped area do not
12715 percolate back to the file as seen by read(). (This is a bug on
12716 some variants of i386 svr4.0.) */
12717 for (i = 0; i < pagesize; ++i)
12718 *(data2 + i) = *(data2 + i) + 1;
12719 data3 = (char *) malloc (pagesize);
12720 if (!data3)
12721 return 1;
12722 if (read (fd, data3, pagesize) != pagesize)
12723 return 1;
12724 for (i = 0; i < pagesize; ++i)
12725 if (*(data + i) != *(data3 + i))
12726 return 1;
12727 close (fd);
12728 return 0;
12730 _ACEOF
12731 rm -f conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_func_mmap_fixed_mapped=yes
12752 else
12753 echo "$as_me: program exited with status $ac_status" >&5
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ( exit $ac_status )
12758 ac_cv_func_mmap_fixed_mapped=no
12760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12766 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12767 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12769 cat >>confdefs.h <<\_ACEOF
12770 #define HAVE_MMAP 1
12771 _ACEOF
12774 rm -f conftest.mmap
12778 for ac_header in sys/select.h sys/socket.h
12780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 ac_res=`eval echo '${'$as_ac_Header'}'`
12788 { echo "$as_me:$LINENO: result: $ac_res" >&5
12789 echo "${ECHO_T}$ac_res" >&6; }
12790 else
12791 # Is the header compilable?
12792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12801 #include <$ac_header>
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (ac_try="$ac_compile"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_compile") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest.$ac_objext; then
12820 ac_header_compiler=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_header_compiler=no
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6; }
12832 # Is the header present?
12833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <$ac_header>
12842 _ACEOF
12843 if { (ac_try="$ac_cpp conftest.$ac_ext"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } >/dev/null && {
12856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 }; then
12859 ac_header_preproc=yes
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_preproc=no
12867 rm -f conftest.err conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6; }
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12873 yes:no: )
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12878 ac_header_preproc=yes
12880 no:yes:* )
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12893 ( cat <<\_ASBOX
12894 ## ------------------------------- ##
12895 ## Report this to www.asterisk.org ##
12896 ## ------------------------------- ##
12897 _ASBOX
12898 ) | sed "s/^/$as_me: WARNING: /" >&2
12900 esac
12901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 eval "$as_ac_Header=\$ac_header_preproc"
12908 ac_res=`eval echo '${'$as_ac_Header'}'`
12909 { echo "$as_me:$LINENO: result: $ac_res" >&5
12910 echo "${ECHO_T}$ac_res" >&6; }
12913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12914 cat >>confdefs.h <<_ACEOF
12915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12916 _ACEOF
12920 done
12922 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12923 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12924 if test "${ac_cv_func_select_args+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12928 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12929 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12937 #ifdef HAVE_SYS_SELECT_H
12938 # include <sys/select.h>
12939 #endif
12940 #ifdef HAVE_SYS_SOCKET_H
12941 # include <sys/socket.h>
12942 #endif
12945 main ()
12947 extern int select ($ac_arg1,
12948 $ac_arg234, $ac_arg234, $ac_arg234,
12949 $ac_arg5);
12951 return 0;
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_compile") 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && {
12968 test -z "$ac_c_werror_flag" ||
12969 test ! -s conftest.err
12970 } && test -s conftest.$ac_objext; then
12971 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12972 else
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 done
12981 done
12982 done
12983 # Provide a safe default value.
12984 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12987 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12988 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12989 ac_save_IFS=$IFS; IFS=','
12990 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12991 IFS=$ac_save_IFS
12992 shift
12994 cat >>confdefs.h <<_ACEOF
12995 #define SELECT_TYPE_ARG1 $1
12996 _ACEOF
12999 cat >>confdefs.h <<_ACEOF
13000 #define SELECT_TYPE_ARG234 ($2)
13001 _ACEOF
13004 cat >>confdefs.h <<_ACEOF
13005 #define SELECT_TYPE_ARG5 ($3)
13006 _ACEOF
13008 rm -f conftest*
13010 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13011 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13012 if test "$ac_cv_prog_cc_c89" != no; then
13013 { echo "$as_me:$LINENO: result: yes" >&5
13014 echo "${ECHO_T}yes" >&6; }
13016 cat >>confdefs.h <<\_ACEOF
13017 #define PROTOTYPES 1
13018 _ACEOF
13021 cat >>confdefs.h <<\_ACEOF
13022 #define __PROTOTYPES 1
13023 _ACEOF
13025 else
13026 { echo "$as_me:$LINENO: result: no" >&5
13027 echo "${ECHO_T}no" >&6; }
13030 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13031 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13032 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 ac_cv_func_setvbuf_reversed=no
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <stdio.h>
13043 # ifdef PROTOTYPES
13044 int (setvbuf) (FILE *, int, char *, size_t);
13045 # endif
13047 main ()
13049 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest$ac_exeext &&
13071 $as_test_x conftest$ac_exeext; then
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h. */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 #include <stdio.h>
13079 # ifdef PROTOTYPES
13080 int (setvbuf) (FILE *, int, char *, size_t);
13081 # endif
13083 main ()
13085 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13087 return 0;
13089 _ACEOF
13090 rm -f conftest.$ac_objext conftest$ac_exeext
13091 if { (ac_try="$ac_link"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_link") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest$ac_exeext &&
13107 $as_test_x conftest$ac_exeext; then
13108 # It compiles and links either way, so it must not be declared
13109 # with a prototype and most likely this is a K&R C compiler.
13110 # Try running it.
13111 if test "$cross_compiling" = yes; then
13112 : # Assume setvbuf is not reversed when cross-compiling.
13113 else
13114 cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h. */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 $ac_includes_default
13122 main ()
13124 /* This call has the arguments reversed.
13125 A reversed system may check and see that the address of buf
13126 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13127 char buf;
13128 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13129 return 1;
13130 putchar ('\r');
13131 return 0; /* Non-reversed systems SEGV here. */
13133 return 0;
13135 _ACEOF
13136 rm -f conftest$ac_exeext
13137 if { (ac_try="$ac_link"
13138 case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_link") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_func_setvbuf_reversed=yes
13157 else
13158 echo "$as_me: program exited with status $ac_status" >&5
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13167 ac_cv_func_setvbuf_reversed=yes
13168 else
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13176 conftest$ac_exeext conftest.$ac_ext
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13185 conftest$ac_exeext conftest.$ac_ext
13187 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13188 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13189 if test $ac_cv_func_setvbuf_reversed = yes; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define SETVBUF_REVERSED 1
13193 _ACEOF
13197 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13198 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13199 if test "${ac_cv_type_signal+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <sys/types.h>
13209 #include <signal.h>
13212 main ()
13214 return *(signal (0, 0)) (0) == 1;
13216 return 0;
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (ac_try="$ac_compile"
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_compile") 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); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_cv_type_signal=int
13237 else
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_cv_type_signal=void
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13247 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13249 cat >>confdefs.h <<_ACEOF
13250 #define RETSIGTYPE $ac_cv_type_signal
13251 _ACEOF
13254 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13255 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13256 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259 rm -f conftest.sym conftest.file
13260 echo >conftest.file
13261 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13262 if test "$cross_compiling" = yes; then
13263 ac_cv_func_lstat_dereferences_slashed_symlink=no
13264 else
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 $ac_includes_default
13273 main ()
13275 struct stat sbuf;
13276 /* Linux will dereference the symlink and fail.
13277 That is better in the sense that it means we will not
13278 have to compile and use the lstat wrapper. */
13279 return lstat ("conftest.sym/", &sbuf) == 0;
13281 return 0;
13283 _ACEOF
13284 rm -f conftest$ac_exeext
13285 if { (ac_try="$ac_link"
13286 case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13289 esac
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_link") 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13305 else
13306 echo "$as_me: program exited with status $ac_status" >&5
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ( exit $ac_status )
13311 ac_cv_func_lstat_dereferences_slashed_symlink=no
13313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13317 else
13318 # If the `ln -s' command failed, then we probably don't even
13319 # have an lstat function.
13320 ac_cv_func_lstat_dereferences_slashed_symlink=no
13322 rm -f conftest.sym conftest.file
13325 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13326 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13328 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13330 cat >>confdefs.h <<_ACEOF
13331 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13332 _ACEOF
13335 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13336 case " $LIBOBJS " in
13337 *" lstat.$ac_objext "* ) ;;
13338 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13340 esac
13344 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13345 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13346 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349 if test "$cross_compiling" = yes; then
13350 ac_cv_func_stat_empty_string_bug=yes
13351 else
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 $ac_includes_default
13360 main ()
13362 struct stat sbuf;
13363 return stat ("", &sbuf) == 0;
13365 return 0;
13367 _ACEOF
13368 rm -f conftest$ac_exeext
13369 if { (ac_try="$ac_link"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_link") 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_func_stat_empty_string_bug=no
13389 else
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 ac_cv_func_stat_empty_string_bug=yes
13397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13402 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13403 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13404 if test $ac_cv_func_stat_empty_string_bug = yes; then
13405 case " $LIBOBJS " in
13406 *" stat.$ac_objext "* ) ;;
13407 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13409 esac
13412 cat >>confdefs.h <<_ACEOF
13413 #define HAVE_STAT_EMPTY_STRING_BUG 1
13414 _ACEOF
13418 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13419 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13420 if test "${ac_cv_func_strcoll_works+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423 if test "$cross_compiling" = yes; then
13424 ac_cv_func_strcoll_works=no
13425 else
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13434 main ()
13436 return (strcoll ("abc", "def") >= 0 ||
13437 strcoll ("ABC", "DEF") >= 0 ||
13438 strcoll ("123", "456") >= 0)
13440 return 0;
13442 _ACEOF
13443 rm -f conftest$ac_exeext
13444 if { (ac_try="$ac_link"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_link") 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_func_strcoll_works=yes
13464 else
13465 echo "$as_me: program exited with status $ac_status" >&5
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ( exit $ac_status )
13470 ac_cv_func_strcoll_works=no
13472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13477 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13478 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13479 if test $ac_cv_func_strcoll_works = yes; then
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_STRCOLL 1
13483 _ACEOF
13488 for ac_func in strftime
13490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h. */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13504 #define $ac_func innocuous_$ac_func
13506 /* System header to define __stub macros and hopefully few prototypes,
13507 which can conflict with char $ac_func (); below.
13508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13509 <limits.h> exists even on freestanding compilers. */
13511 #ifdef __STDC__
13512 # include <limits.h>
13513 #else
13514 # include <assert.h>
13515 #endif
13517 #undef $ac_func
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char $ac_func ();
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined __stub_$ac_func || defined __stub___$ac_func
13530 choke me
13531 #endif
13534 main ()
13536 return $ac_func ();
13538 return 0;
13540 _ACEOF
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } && {
13555 test -z "$ac_c_werror_flag" ||
13556 test ! -s conftest.err
13557 } && test -s conftest$ac_exeext &&
13558 $as_test_x conftest$ac_exeext; then
13559 eval "$as_ac_var=yes"
13560 else
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 eval "$as_ac_var=no"
13567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13568 conftest$ac_exeext conftest.$ac_ext
13570 ac_res=`eval echo '${'$as_ac_var'}'`
13571 { echo "$as_me:$LINENO: result: $ac_res" >&5
13572 echo "${ECHO_T}$ac_res" >&6; }
13573 if test `eval echo '${'$as_ac_var'}'` = yes; then
13574 cat >>confdefs.h <<_ACEOF
13575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13576 _ACEOF
13578 else
13579 # strftime is in -lintl on SCO UNIX.
13580 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13581 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13582 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 ac_check_lib_save_LIBS=$LIBS
13586 LIBS="-lintl $LIBS"
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char strftime ();
13602 main ()
13604 return strftime ();
13606 return 0;
13608 _ACEOF
13609 rm -f conftest.$ac_objext conftest$ac_exeext
13610 if { (ac_try="$ac_link"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_link") 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest$ac_exeext &&
13626 $as_test_x conftest$ac_exeext; then
13627 ac_cv_lib_intl_strftime=yes
13628 else
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ac_cv_lib_intl_strftime=no
13635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13639 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13640 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13641 if test $ac_cv_lib_intl_strftime = yes; then
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_STRFTIME 1
13644 _ACEOF
13646 LIBS="-lintl $LIBS"
13650 done
13652 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13653 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13654 if test "${ac_cv_func_strnlen_working+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657 if test "$cross_compiling" = yes; then
13658 ac_cv_func_strnlen_working=no
13659 else
13660 cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h. */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13668 main ()
13671 #define S "foobar"
13672 #define S_LEN (sizeof S - 1)
13674 /* At least one implementation is buggy: that of AIX 4.3 would
13675 give strnlen (S, 1) == 3. */
13677 int i;
13678 for (i = 0; i < S_LEN + 1; ++i)
13680 int expected = i <= S_LEN ? i : S_LEN;
13681 if (strnlen (S, i) != expected)
13682 return 1;
13684 return 0;
13687 return 0;
13689 _ACEOF
13690 rm -f conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13701 { (case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_try") 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 ac_cv_func_strnlen_working=yes
13711 else
13712 echo "$as_me: program exited with status $ac_status" >&5
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ( exit $ac_status )
13717 ac_cv_func_strnlen_working=no
13719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13725 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13726 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13727 *" strnlen.$ac_objext "* ) ;;
13728 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13730 esac
13733 { echo "$as_me:$LINENO: checking for working strtod" >&5
13734 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13735 if test "${ac_cv_func_strtod+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 if test "$cross_compiling" = yes; then
13739 ac_cv_func_strtod=no
13740 else
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h. */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13748 $ac_includes_default
13749 #ifndef strtod
13750 double strtod ();
13751 #endif
13753 main()
13756 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13757 char *string = " +69";
13758 char *term;
13759 double value;
13760 value = strtod (string, &term);
13761 if (value != 69 || term != (string + 4))
13762 return 1;
13766 /* Under Solaris 2.4, strtod returns the wrong value for the
13767 terminating character under some conditions. */
13768 char *string = "NaN";
13769 char *term;
13770 strtod (string, &term);
13771 if (term != string && *(term - 1) == 0)
13772 return 1;
13774 return 0;
13777 _ACEOF
13778 rm -f conftest$ac_exeext
13779 if { (ac_try="$ac_link"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_func_strtod=yes
13799 else
13800 echo "$as_me: program exited with status $ac_status" >&5
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ( exit $ac_status )
13805 ac_cv_func_strtod=no
13807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13813 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13814 if test $ac_cv_func_strtod = no; then
13815 case " $LIBOBJS " in
13816 *" strtod.$ac_objext "* ) ;;
13817 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13819 esac
13821 { echo "$as_me:$LINENO: checking for pow" >&5
13822 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13823 if test "${ac_cv_func_pow+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h. */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13834 #define pow innocuous_pow
13836 /* System header to define __stub macros and hopefully few prototypes,
13837 which can conflict with char pow (); below.
13838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13839 <limits.h> exists even on freestanding compilers. */
13841 #ifdef __STDC__
13842 # include <limits.h>
13843 #else
13844 # include <assert.h>
13845 #endif
13847 #undef pow
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char pow ();
13856 /* The GNU C library defines this for functions which it implements
13857 to always fail with ENOSYS. Some functions are actually named
13858 something starting with __ and the normal name is an alias. */
13859 #if defined __stub_pow || defined __stub___pow
13860 choke me
13861 #endif
13864 main ()
13866 return pow ();
13868 return 0;
13870 _ACEOF
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (ac_try="$ac_link"
13873 case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_link") 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } && {
13885 test -z "$ac_c_werror_flag" ||
13886 test ! -s conftest.err
13887 } && test -s conftest$ac_exeext &&
13888 $as_test_x conftest$ac_exeext; then
13889 ac_cv_func_pow=yes
13890 else
13891 echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 ac_cv_func_pow=no
13897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13898 conftest$ac_exeext conftest.$ac_ext
13900 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13901 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13903 if test $ac_cv_func_pow = no; then
13904 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13905 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13906 if test "${ac_cv_lib_m_pow+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909 ac_check_lib_save_LIBS=$LIBS
13910 LIBS="-lm $LIBS"
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13918 /* Override any GCC internal prototype to avoid an error.
13919 Use char because int might match the return type of a GCC
13920 builtin and then its argument prototype would still apply. */
13921 #ifdef __cplusplus
13922 extern "C"
13923 #endif
13924 char pow ();
13926 main ()
13928 return pow ();
13930 return 0;
13932 _ACEOF
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (ac_try="$ac_link"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_link") 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest$ac_exeext &&
13950 $as_test_x conftest$ac_exeext; then
13951 ac_cv_lib_m_pow=yes
13952 else
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 ac_cv_lib_m_pow=no
13959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13963 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13964 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13965 if test $ac_cv_lib_m_pow = yes; then
13966 POW_LIB=-lm
13967 else
13968 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13969 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13980 for ac_header in $ac_header_list
13982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 ac_res=`eval echo '${'$as_ac_Header'}'`
13990 { echo "$as_me:$LINENO: result: $ac_res" >&5
13991 echo "${ECHO_T}$ac_res" >&6; }
13992 else
13993 # Is the header compilable?
13994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13996 cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h. */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 $ac_includes_default
14003 #include <$ac_header>
14004 _ACEOF
14005 rm -f conftest.$ac_objext
14006 if { (ac_try="$ac_compile"
14007 case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010 esac
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_compile") 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } && {
14019 test -z "$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14021 } && test -s conftest.$ac_objext; then
14022 ac_header_compiler=yes
14023 else
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 ac_header_compiler=no
14030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14032 echo "${ECHO_T}$ac_header_compiler" >&6; }
14034 # Is the header present?
14035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
14044 _ACEOF
14045 if { (ac_try="$ac_cpp conftest.$ac_ext"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14049 esac
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } >/dev/null && {
14058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14059 test ! -s conftest.err
14060 }; then
14061 ac_header_preproc=yes
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_header_preproc=no
14069 rm -f conftest.err conftest.$ac_ext
14070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14071 echo "${ECHO_T}$ac_header_preproc" >&6; }
14073 # So? What about this header?
14074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14075 yes:no: )
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14080 ac_header_preproc=yes
14082 no:yes:* )
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14095 ( cat <<\_ASBOX
14096 ## ------------------------------- ##
14097 ## Report this to www.asterisk.org ##
14098 ## ------------------------------- ##
14099 _ASBOX
14100 ) | sed "s/^/$as_me: WARNING: /" >&2
14102 esac
14103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108 eval "$as_ac_Header=\$ac_header_preproc"
14110 ac_res=`eval echo '${'$as_ac_Header'}'`
14111 { echo "$as_me:$LINENO: result: $ac_res" >&5
14112 echo "${ECHO_T}$ac_res" >&6; }
14115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14116 cat >>confdefs.h <<_ACEOF
14117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14118 _ACEOF
14122 done
14132 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14133 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14134 if test "${ac_cv_func_utime_null+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 rm -f conftest.data; >conftest.data
14138 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14139 if test "$cross_compiling" = yes; then
14140 ac_cv_func_utime_null=no
14141 else
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h. */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 $ac_includes_default
14149 #ifdef HAVE_UTIME_H
14150 # include <utime.h>
14151 #endif
14153 main ()
14155 struct stat s, t;
14156 return ! (stat ("conftest.data", &s) == 0
14157 && utime ("conftest.data", 0) == 0
14158 && stat ("conftest.data", &t) == 0
14159 && t.st_mtime >= s.st_mtime
14160 && t.st_mtime - s.st_mtime < 120);
14162 return 0;
14164 _ACEOF
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_func_utime_null=yes
14186 else
14187 echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ( exit $ac_status )
14192 ac_cv_func_utime_null=no
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14199 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14200 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14201 if test $ac_cv_func_utime_null = yes; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_UTIME_NULL 1
14205 _ACEOF
14208 rm -f conftest.data
14211 for ac_func in vprintf
14213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14227 #define $ac_func innocuous_$ac_func
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char $ac_func (); below.
14231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232 <limits.h> exists even on freestanding compilers. */
14234 #ifdef __STDC__
14235 # include <limits.h>
14236 #else
14237 # include <assert.h>
14238 #endif
14240 #undef $ac_func
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 char $ac_func ();
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined __stub_$ac_func || defined __stub___$ac_func
14253 choke me
14254 #endif
14257 main ()
14259 return $ac_func ();
14261 return 0;
14263 _ACEOF
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14269 esac
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_link") 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest$ac_exeext &&
14281 $as_test_x conftest$ac_exeext; then
14282 eval "$as_ac_var=yes"
14283 else
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 eval "$as_ac_var=no"
14290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14291 conftest$ac_exeext conftest.$ac_ext
14293 ac_res=`eval echo '${'$as_ac_var'}'`
14294 { echo "$as_me:$LINENO: result: $ac_res" >&5
14295 echo "${ECHO_T}$ac_res" >&6; }
14296 if test `eval echo '${'$as_ac_var'}'` = yes; then
14297 cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14299 _ACEOF
14301 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14302 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14303 if test "${ac_cv_func__doprnt+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314 #define _doprnt innocuous__doprnt
14316 /* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char _doprnt (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14321 #ifdef __STDC__
14322 # include <limits.h>
14323 #else
14324 # include <assert.h>
14325 #endif
14327 #undef _doprnt
14329 /* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14332 #ifdef __cplusplus
14333 extern "C"
14334 #endif
14335 char _doprnt ();
14336 /* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339 #if defined __stub__doprnt || defined __stub____doprnt
14340 choke me
14341 #endif
14344 main ()
14346 return _doprnt ();
14348 return 0;
14350 _ACEOF
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest$ac_exeext &&
14368 $as_test_x conftest$ac_exeext; then
14369 ac_cv_func__doprnt=yes
14370 else
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ac_cv_func__doprnt=no
14377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378 conftest$ac_exeext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14381 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14382 if test $ac_cv_func__doprnt = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_DOPRNT 1
14386 _ACEOF
14391 done
14443 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
14445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451 cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h. */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14459 #define $ac_func innocuous_$ac_func
14461 /* System header to define __stub macros and hopefully few prototypes,
14462 which can conflict with char $ac_func (); below.
14463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14464 <limits.h> exists even on freestanding compilers. */
14466 #ifdef __STDC__
14467 # include <limits.h>
14468 #else
14469 # include <assert.h>
14470 #endif
14472 #undef $ac_func
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14477 #ifdef __cplusplus
14478 extern "C"
14479 #endif
14480 char $ac_func ();
14481 /* The GNU C library defines this for functions which it implements
14482 to always fail with ENOSYS. Some functions are actually named
14483 something starting with __ and the normal name is an alias. */
14484 #if defined __stub_$ac_func || defined __stub___$ac_func
14485 choke me
14486 #endif
14489 main ()
14491 return $ac_func ();
14493 return 0;
14495 _ACEOF
14496 rm -f conftest.$ac_objext conftest$ac_exeext
14497 if { (ac_try="$ac_link"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_link") 2>conftest.er1
14504 ac_status=$?
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_c_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest$ac_exeext &&
14513 $as_test_x conftest$ac_exeext; then
14514 eval "$as_ac_var=yes"
14515 else
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14519 eval "$as_ac_var=no"
14522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14523 conftest$ac_exeext conftest.$ac_ext
14525 ac_res=`eval echo '${'$as_ac_var'}'`
14526 { echo "$as_me:$LINENO: result: $ac_res" >&5
14527 echo "${ECHO_T}$ac_res" >&6; }
14528 if test `eval echo '${'$as_ac_var'}'` = yes; then
14529 cat >>confdefs.h <<_ACEOF
14530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14531 _ACEOF
14534 done
14537 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14538 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14539 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14540 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 ac_func_search_save_LIBS=$LIBS
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char gethostbyname_r ();
14559 main ()
14561 return gethostbyname_r ();
14563 return 0;
14565 _ACEOF
14566 for ac_lib in '' socket nsl; do
14567 if test -z "$ac_lib"; then
14568 ac_res="none required"
14569 else
14570 ac_res=-l$ac_lib
14571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (ac_try="$ac_link"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_link") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_c_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest$ac_exeext &&
14590 $as_test_x conftest$ac_exeext; then
14591 ac_cv_search_gethostbyname_r=$ac_res
14592 else
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext
14601 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14602 break
14604 done
14605 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14607 else
14608 ac_cv_search_gethostbyname_r=no
14610 rm conftest.$ac_ext
14611 LIBS=$ac_func_search_save_LIBS
14613 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14614 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14615 ac_res=$ac_cv_search_gethostbyname_r
14616 if test "$ac_res" != no; then
14617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14622 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14623 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h. */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <stdlib.h>
14631 #include <netdb.h>
14633 main ()
14635 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14637 return 0;
14639 _ACEOF
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (ac_try="$ac_link"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest$ac_exeext &&
14657 $as_test_x conftest$ac_exeext; then
14658 { echo "$as_me:$LINENO: result: yes" >&5
14659 echo "${ECHO_T}yes" >&6; }
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_GETHOSTBYNAME_R_6 1
14663 _ACEOF
14665 else
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 { echo "$as_me:$LINENO: result: no" >&5
14670 echo "${ECHO_T}no" >&6; }
14674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14675 conftest$ac_exeext conftest.$ac_ext
14677 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14678 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <stdlib.h>
14686 #include <netdb.h>
14688 main ()
14690 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14692 return 0;
14694 _ACEOF
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest$ac_exeext &&
14712 $as_test_x conftest$ac_exeext; then
14713 { echo "$as_me:$LINENO: result: yes" >&5
14714 echo "${ECHO_T}yes" >&6; }
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_GETHOSTBYNAME_R_5 1
14718 _ACEOF
14720 else
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 { echo "$as_me:$LINENO: result: no" >&5
14725 echo "${ECHO_T}no" >&6; }
14729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14730 conftest$ac_exeext conftest.$ac_ext
14732 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14733 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14734 cat >conftest.$ac_ext <<_ACEOF
14735 /* confdefs.h. */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740 #include <pthread.h>
14742 main ()
14744 int foo = PTHREAD_RWLOCK_INITIALIZER;
14746 return 0;
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14767 { echo "$as_me:$LINENO: result: yes" >&5
14768 echo "${ECHO_T}yes" >&6; }
14770 cat >>confdefs.h <<\_ACEOF
14771 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14772 _ACEOF
14774 else
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 { echo "$as_me:$LINENO: result: no" >&5
14779 echo "${ECHO_T}no" >&6; }
14783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14784 conftest$ac_exeext conftest.$ac_ext
14786 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14787 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <pthread.h>
14796 main ()
14798 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14800 return 0;
14802 _ACEOF
14803 rm -f conftest.$ac_objext conftest$ac_exeext
14804 if { (ac_try="$ac_link"
14805 case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_link") 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } && {
14817 test -z "$ac_c_werror_flag" ||
14818 test ! -s conftest.err
14819 } && test -s conftest$ac_exeext &&
14820 $as_test_x conftest$ac_exeext; then
14821 { echo "$as_me:$LINENO: result: yes" >&5
14822 echo "${ECHO_T}yes" >&6; }
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14826 _ACEOF
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 { echo "$as_me:$LINENO: result: no" >&5
14833 echo "${ECHO_T}no" >&6; }
14837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14838 conftest$ac_exeext conftest.$ac_ext
14840 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14841 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14850 main ()
14852 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14854 return 0;
14856 _ACEOF
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (ac_try="$ac_link"
14859 case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862 esac
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_link") 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } && {
14871 test -z "$ac_c_werror_flag" ||
14872 test ! -s conftest.err
14873 } && test -s conftest$ac_exeext &&
14874 $as_test_x conftest$ac_exeext; then
14875 { echo "$as_me:$LINENO: result: yes" >&5
14876 echo "${ECHO_T}yes" >&6; }
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_GCC_ATOMICS 1
14880 _ACEOF
14882 else
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14886 { echo "$as_me:$LINENO: result: no" >&5
14887 echo "${ECHO_T}no" >&6; }
14891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14892 conftest$ac_exeext conftest.$ac_ext
14895 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14896 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14897 saved_CFLAGS="$CFLAGS"
14898 CFLAGS="$CFLAGS -Werror"
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 static void __attribute__((pure)) *test(void *muffin, ...) {}
14907 main ()
14911 return 0;
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (ac_try="$ac_compile"
14916 case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_compile") 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.$ac_objext; then
14931 { echo "$as_me:$LINENO: result: yes" >&5
14932 echo "${ECHO_T}yes" >&6; }
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_ATTRIBUTE_pure 1
14936 _ACEOF
14938 else
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 { echo "$as_me:$LINENO: result: no" >&5
14943 echo "${ECHO_T}no" >&6; }
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 CFLAGS="$saved_CFLAGS"
14951 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14952 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14953 saved_CFLAGS="$CFLAGS"
14954 CFLAGS="$CFLAGS -Werror"
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 static void __attribute__((malloc)) *test(void *muffin, ...) {}
14963 main ()
14967 return 0;
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (ac_try="$ac_compile"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_compile") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest.$ac_objext; then
14987 { echo "$as_me:$LINENO: result: yes" >&5
14988 echo "${ECHO_T}yes" >&6; }
14990 cat >>confdefs.h <<_ACEOF
14991 #define HAVE_ATTRIBUTE_malloc 1
14992 _ACEOF
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 { echo "$as_me:$LINENO: result: no" >&5
14999 echo "${ECHO_T}no" >&6; }
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 CFLAGS="$saved_CFLAGS"
15007 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
15008 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
15009 saved_CFLAGS="$CFLAGS"
15010 CFLAGS="$CFLAGS -Werror"
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 static void __attribute__((const)) *test(void *muffin, ...) {}
15019 main ()
15023 return 0;
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 { echo "$as_me:$LINENO: result: yes" >&5
15044 echo "${ECHO_T}yes" >&6; }
15046 cat >>confdefs.h <<_ACEOF
15047 #define HAVE_ATTRIBUTE_const 1
15048 _ACEOF
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 { echo "$as_me:$LINENO: result: no" >&5
15055 echo "${ECHO_T}no" >&6; }
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 CFLAGS="$saved_CFLAGS"
15063 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15064 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15065 saved_CFLAGS="$CFLAGS"
15066 CFLAGS="$CFLAGS -Werror"
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 static void __attribute__((unused)) *test(void *muffin, ...) {}
15075 main ()
15079 return 0;
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (ac_try="$ac_compile"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_compile") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest.$ac_objext; then
15099 { echo "$as_me:$LINENO: result: yes" >&5
15100 echo "${ECHO_T}yes" >&6; }
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_ATTRIBUTE_unused 1
15104 _ACEOF
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 { echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6; }
15114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 CFLAGS="$saved_CFLAGS"
15119 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15120 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15121 saved_CFLAGS="$CFLAGS"
15122 CFLAGS="$CFLAGS -Werror"
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
15131 main ()
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_compile") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest.$ac_objext; then
15155 { echo "$as_me:$LINENO: result: yes" >&5
15156 echo "${ECHO_T}yes" >&6; }
15158 cat >>confdefs.h <<_ACEOF
15159 #define HAVE_ATTRIBUTE_always_inline 1
15160 _ACEOF
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 { echo "$as_me:$LINENO: result: no" >&5
15167 echo "${ECHO_T}no" >&6; }
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 CFLAGS="$saved_CFLAGS"
15175 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15176 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15177 saved_CFLAGS="$CFLAGS"
15178 CFLAGS="$CFLAGS -Werror"
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
15187 main ()
15191 return 0;
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_compile") 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest.$ac_objext; then
15211 { echo "$as_me:$LINENO: result: yes" >&5
15212 echo "${ECHO_T}yes" >&6; }
15214 cat >>confdefs.h <<_ACEOF
15215 #define HAVE_ATTRIBUTE_deprecated 1
15216 _ACEOF
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 { echo "$as_me:$LINENO: result: no" >&5
15223 echo "${ECHO_T}no" >&6; }
15226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 CFLAGS="$saved_CFLAGS"
15231 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15232 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15233 saved_CFLAGS="${CFLAGS}"
15234 CFLAGS="${CFLAGS} -ffunction-sections"
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h. */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15243 main ()
15245 int x = 1;
15247 return 0;
15249 _ACEOF
15250 rm -f conftest.$ac_objext
15251 if { (ac_try="$ac_compile"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255 esac
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_compile") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest.$ac_objext; then
15267 { echo "$as_me:$LINENO: result: yes" >&5
15268 echo "${ECHO_T}yes" >&6; }
15269 saved_LDFLAGS="${LDFLAGS}"
15270 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15271 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15272 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15281 main ()
15283 int x = 1;
15285 return 0;
15287 _ACEOF
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293 esac
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>conftest.er1
15296 ac_status=$?
15297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext &&
15305 $as_test_x conftest$ac_exeext; then
15306 { echo "$as_me:$LINENO: result: yes" >&5
15307 echo "${ECHO_T}yes" >&6; }
15308 GC_CFLAGS="-ffunction-sections"
15309 GC_LDFLAGS="-Wl,--gc-sections"
15310 else
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 { echo "$as_me:$LINENO: result: no" >&5
15315 echo "${ECHO_T}no" >&6; }
15319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15320 conftest$ac_exeext conftest.$ac_ext
15321 LDFLAGS="${saved_LDFLAGS}"
15322 else
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332 CFLAGS="${saved_CFLAGS}"
15336 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15337 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15338 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15339 { echo "$as_me:$LINENO: result: yes" >&5
15340 echo "${ECHO_T}yes" >&6; }
15341 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15342 else
15343 { echo "$as_me:$LINENO: result: no" >&5
15344 echo "${ECHO_T}no" >&6; }
15345 AST_DECLARATION_AFTER_STATEMENT=
15349 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
15350 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
15351 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15352 { echo "$as_me:$LINENO: result: yes" >&5
15353 echo "${ECHO_T}yes" >&6; }
15354 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15355 else
15356 { echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6; }
15358 AST_NO_STRICT_OVERFLOW=
15362 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
15363 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
15364 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367 ac_func_search_save_LIBS=$LIBS
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h. */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15375 /* Override any GCC internal prototype to avoid an error.
15376 Use char because int might match the return type of a GCC
15377 builtin and then its argument prototype would still apply. */
15378 #ifdef __cplusplus
15379 extern "C"
15380 #endif
15381 char res_9_ninit ();
15383 main ()
15385 return res_9_ninit ();
15387 return 0;
15389 _ACEOF
15390 for ac_lib in '' resolv; do
15391 if test -z "$ac_lib"; then
15392 ac_res="none required"
15393 else
15394 ac_res=-l$ac_lib
15395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 ac_cv_search_res_9_ninit=$ac_res
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext
15425 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15426 break
15428 done
15429 if test "${ac_cv_search_res_9_ninit+set}" = set; then
15431 else
15432 ac_cv_search_res_9_ninit=no
15434 rm conftest.$ac_ext
15435 LIBS=$ac_func_search_save_LIBS
15437 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
15438 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
15439 ac_res=$ac_cv_search_res_9_ninit
15440 if test "$ac_res" != no; then
15441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15445 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15446 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15454 #ifdef HAVE_SYS_SOCKET_H
15455 #include <sys/socket.h>
15456 #endif
15457 #ifdef HAVE_NETINET_IN_H
15458 #include <netinet/in.h>
15459 #endif
15460 #ifdef HAVE_ARPA_NAMESER_H
15461 #include <arpa/nameser.h>
15462 #endif
15463 #include <resolv.h>
15465 main ()
15467 int foo = res_ninit(NULL);
15469 return 0;
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_c_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest$ac_exeext &&
15489 $as_test_x conftest$ac_exeext; then
15490 { echo "$as_me:$LINENO: result: yes" >&5
15491 echo "${ECHO_T}yes" >&6; }
15493 cat >>confdefs.h <<\_ACEOF
15494 #define HAVE_RES_NINIT 1
15495 _ACEOF
15497 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
15498 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
15499 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 ac_func_search_save_LIBS=$LIBS
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 /* Override any GCC internal prototype to avoid an error.
15511 Use char because int might match the return type of a GCC
15512 builtin and then its argument prototype would still apply. */
15513 #ifdef __cplusplus
15514 extern "C"
15515 #endif
15516 char res_9_ndestroy ();
15518 main ()
15520 return res_9_ndestroy ();
15522 return 0;
15524 _ACEOF
15525 for ac_lib in '' resolv; do
15526 if test -z "$ac_lib"; then
15527 ac_res="none required"
15528 else
15529 ac_res=-l$ac_lib
15530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (ac_try="$ac_link"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_link") 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_c_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest$ac_exeext &&
15549 $as_test_x conftest$ac_exeext; then
15550 ac_cv_search_res_9_ndestroy=$ac_res
15551 else
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15559 conftest$ac_exeext
15560 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15561 break
15563 done
15564 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
15566 else
15567 ac_cv_search_res_9_ndestroy=no
15569 rm conftest.$ac_ext
15570 LIBS=$ac_func_search_save_LIBS
15572 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
15573 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
15574 ac_res=$ac_cv_search_res_9_ndestroy
15575 if test "$ac_res" != no; then
15576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15580 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15581 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h. */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15589 #ifdef HAVE_SYS_SOCKET_H
15590 #include <sys/socket.h>
15591 #endif
15592 #ifdef HAVE_NETINET_IN_H
15593 #include <netinet/in.h>
15594 #endif
15595 #ifdef HAVE_ARPA_NAMESER_H
15596 #include <arpa/nameser.h>
15597 #endif
15598 #include <resolv.h>
15600 main ()
15602 res_ndestroy(NULL);
15604 return 0;
15606 _ACEOF
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (ac_try="$ac_link"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_link") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && {
15621 test -z "$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 } && test -s conftest$ac_exeext &&
15624 $as_test_x conftest$ac_exeext; then
15625 { echo "$as_me:$LINENO: result: yes" >&5
15626 echo "${ECHO_T}yes" >&6; }
15628 cat >>confdefs.h <<\_ACEOF
15629 #define HAVE_RES_NDESTROY 1
15630 _ACEOF
15632 else
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 { echo "$as_me:$LINENO: result: no" >&5
15637 echo "${ECHO_T}no" >&6; }
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext conftest.$ac_ext
15643 else
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 { echo "$as_me:$LINENO: result: no" >&5
15648 echo "${ECHO_T}no" >&6; }
15652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15653 conftest$ac_exeext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15656 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h. */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 #include <dlfcn.h>
15665 main ()
15667 int foo = RTLD_NOLOAD;
15669 return 0;
15671 _ACEOF
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (ac_try="$ac_link"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15677 esac
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_link") 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } && {
15686 test -z "$ac_c_werror_flag" ||
15687 test ! -s conftest.err
15688 } && test -s conftest$ac_exeext &&
15689 $as_test_x conftest$ac_exeext; then
15690 { echo "$as_me:$LINENO: result: yes" >&5
15691 echo "${ECHO_T}yes" >&6; }
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_RTLD_NOLOAD 1
15695 _ACEOF
15697 else
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 { echo "$as_me:$LINENO: result: no" >&5
15702 echo "${ECHO_T}no" >&6; }
15706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707 conftest$ac_exeext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15710 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 #include <netinet/in.h>
15719 main ()
15721 int foo = IP_MTU_DISCOVER;
15723 return 0;
15725 _ACEOF
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest$ac_exeext &&
15743 $as_test_x conftest$ac_exeext; then
15744 { echo "$as_me:$LINENO: result: yes" >&5
15745 echo "${ECHO_T}yes" >&6; }
15747 cat >>confdefs.h <<\_ACEOF
15748 #define HAVE_IP_MTU_DISCOVER 1
15749 _ACEOF
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 { echo "$as_me:$LINENO: result: no" >&5
15756 echo "${ECHO_T}no" >&6; }
15760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15761 conftest$ac_exeext conftest.$ac_ext
15763 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15764 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15765 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15766 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15770 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15771 else
15772 # Is the header compilable?
15773 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15774 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 $ac_includes_default
15782 #include <libkern/OSAtomic.h>
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (ac_try="$ac_compile"
15786 case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_compile") 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } && {
15798 test -z "$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15800 } && test -s conftest.$ac_objext; then
15801 ac_header_compiler=yes
15802 else
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 ac_header_compiler=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15811 echo "${ECHO_T}$ac_header_compiler" >&6; }
15813 # Is the header present?
15814 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15815 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <libkern/OSAtomic.h>
15823 _ACEOF
15824 if { (ac_try="$ac_cpp conftest.$ac_ext"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15831 ac_status=$?
15832 grep -v '^ *+' conftest.er1 >conftest.err
15833 rm -f conftest.er1
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } >/dev/null && {
15837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15839 }; then
15840 ac_header_preproc=yes
15841 else
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_header_preproc=no
15848 rm -f conftest.err conftest.$ac_ext
15849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15850 echo "${ECHO_T}$ac_header_preproc" >&6; }
15852 # So? What about this header?
15853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15854 yes:no: )
15855 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15856 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15858 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15859 ac_header_preproc=yes
15861 no:yes:* )
15862 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15863 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15865 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15867 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15869 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15871 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15873 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15874 ( cat <<\_ASBOX
15875 ## ------------------------------- ##
15876 ## Report this to www.asterisk.org ##
15877 ## ------------------------------- ##
15878 _ASBOX
15879 ) | sed "s/^/$as_me: WARNING: /" >&2
15881 esac
15882 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15883 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15884 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15889 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15890 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15893 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_OSX_ATOMICS 1
15897 _ACEOF
15903 { echo "$as_me:$LINENO: checking for int" >&5
15904 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15905 if test "${ac_cv_type_int+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 $ac_includes_default
15915 typedef int ac__type_new_;
15917 main ()
15919 if ((ac__type_new_ *) 0)
15920 return 0;
15921 if (sizeof (ac__type_new_))
15922 return 0;
15924 return 0;
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_cv_type_int=yes
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_type_int=no
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15955 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15957 # The cast to long int works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 { echo "$as_me:$LINENO: checking size of int" >&5
15962 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15963 if test "${ac_cv_sizeof_int+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966 if test "$cross_compiling" = yes; then
15967 # Depending upon the size, compute the lo and hi bounds.
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h. */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15975 typedef int ac__type_sizeof_;
15977 main ()
15979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15980 test_array [0] = 0
15983 return 0;
15985 _ACEOF
15986 rm -f conftest.$ac_objext
15987 if { (ac_try="$ac_compile"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_compile") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } && {
16000 test -z "$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 } && test -s conftest.$ac_objext; then
16003 ac_lo=0 ac_mid=0
16004 while :; do
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 $ac_includes_default
16012 typedef int ac__type_sizeof_;
16014 main ()
16016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16017 test_array [0] = 0
16020 return 0;
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.$ac_objext; then
16040 ac_hi=$ac_mid; break
16041 else
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_lo=`expr $ac_mid + 1`
16046 if test $ac_lo -le $ac_mid; then
16047 ac_lo= ac_hi=
16048 break
16050 ac_mid=`expr 2 '*' $ac_mid + 1`
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 done
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 $ac_includes_default
16066 typedef int ac__type_sizeof_;
16068 main ()
16070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16071 test_array [0] = 0
16074 return 0;
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (ac_try="$ac_compile"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_compile") 2>conftest.er1
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && {
16091 test -z "$ac_c_werror_flag" ||
16092 test ! -s conftest.err
16093 } && test -s conftest.$ac_objext; then
16094 ac_hi=-1 ac_mid=-1
16095 while :; do
16096 cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h. */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 $ac_includes_default
16103 typedef int ac__type_sizeof_;
16105 main ()
16107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16108 test_array [0] = 0
16111 return 0;
16113 _ACEOF
16114 rm -f conftest.$ac_objext
16115 if { (ac_try="$ac_compile"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_compile") 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } && {
16128 test -z "$ac_c_werror_flag" ||
16129 test ! -s conftest.err
16130 } && test -s conftest.$ac_objext; then
16131 ac_lo=$ac_mid; break
16132 else
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_hi=`expr '(' $ac_mid ')' - 1`
16137 if test $ac_mid -le $ac_hi; then
16138 ac_lo= ac_hi=
16139 break
16141 ac_mid=`expr 2 '*' $ac_mid`
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 done
16146 else
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ac_lo= ac_hi=
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 # Binary search between lo and hi bounds.
16158 while test "x$ac_lo" != "x$ac_hi"; do
16159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 typedef int ac__type_sizeof_;
16169 main ()
16171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16172 test_array [0] = 0
16175 return 0;
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (ac_try="$ac_compile"
16180 case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16183 esac
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_compile") 2>conftest.er1
16186 ac_status=$?
16187 grep -v '^ *+' conftest.er1 >conftest.err
16188 rm -f conftest.er1
16189 cat conftest.err >&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } && {
16192 test -z "$ac_c_werror_flag" ||
16193 test ! -s conftest.err
16194 } && test -s conftest.$ac_objext; then
16195 ac_hi=$ac_mid
16196 else
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_lo=`expr '(' $ac_mid ')' + 1`
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 done
16205 case $ac_lo in
16206 ?*) ac_cv_sizeof_int=$ac_lo;;
16207 '') if test "$ac_cv_type_int" = yes; then
16208 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16209 See \`config.log' for more details." >&5
16210 echo "$as_me: error: cannot compute sizeof (int)
16211 See \`config.log' for more details." >&2;}
16212 { (exit 77); exit 77; }; }
16213 else
16214 ac_cv_sizeof_int=0
16215 fi ;;
16216 esac
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 $ac_includes_default
16225 typedef int ac__type_sizeof_;
16226 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16227 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16228 #include <stdio.h>
16229 #include <stdlib.h>
16231 main ()
16234 FILE *f = fopen ("conftest.val", "w");
16235 if (! f)
16236 return 1;
16237 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16239 long int i = longval ();
16240 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16241 return 1;
16242 fprintf (f, "%ld\n", i);
16244 else
16246 unsigned long int i = ulongval ();
16247 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16248 return 1;
16249 fprintf (f, "%lu\n", i);
16251 return ferror (f) || fclose (f) != 0;
16254 return 0;
16256 _ACEOF
16257 rm -f conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16262 esac
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_link") 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16268 { (case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_try") 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_sizeof_int=`cat conftest.val`
16278 else
16279 echo "$as_me: program exited with status $ac_status" >&5
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ( exit $ac_status )
16284 if test "$ac_cv_type_int" = yes; then
16285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16286 See \`config.log' for more details." >&5
16287 echo "$as_me: error: cannot compute sizeof (int)
16288 See \`config.log' for more details." >&2;}
16289 { (exit 77); exit 77; }; }
16290 else
16291 ac_cv_sizeof_int=0
16294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16296 rm -f conftest.val
16298 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16299 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16303 cat >>confdefs.h <<_ACEOF
16304 #define SIZEOF_INT $ac_cv_sizeof_int
16305 _ACEOF
16309 # do the package library checks now
16312 if test "${USE_ALSA}" != "no"; then
16313 pbxlibdir=""
16314 if test "x${ALSA_DIR}" != "x"; then
16315 if test -d ${ALSA_DIR}/lib; then
16316 pbxlibdir="-L${ALSA_DIR}/lib"
16317 else
16318 pbxlibdir="-L${ALSA_DIR}"
16321 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16322 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16323 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326 ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h. */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 char snd_spcm_init ();
16343 main ()
16345 return snd_spcm_init ();
16347 return 0;
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16358 ac_status=$?
16359 grep -v '^ *+' conftest.er1 >conftest.err
16360 rm -f conftest.er1
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest$ac_exeext &&
16367 $as_test_x conftest$ac_exeext; then
16368 ac_cv_lib_asound_snd_spcm_init=yes
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_lib_asound_snd_spcm_init=no
16376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378 LIBS=$ac_check_lib_save_LIBS
16380 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16381 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16382 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16383 AST_ALSA_FOUND=yes
16384 else
16385 AST_ALSA_FOUND=no
16389 if test "${AST_ALSA_FOUND}" = "yes"; then
16390 ALSA_LIB="-lasound -lm -ldl"
16391 ALSA_HEADER_FOUND="1"
16392 if test "x${ALSA_DIR}" != "x"; then
16393 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16394 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16395 saved_cppflags="${CPPFLAGS}"
16396 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16397 if test "xalsa/asoundlib.h" != "x" ; then
16398 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16400 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16401 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 ac_res=`eval echo '${'$as_ac_Header'}'`
16406 { echo "$as_me:$LINENO: result: $ac_res" >&5
16407 echo "${ECHO_T}$ac_res" >&6; }
16408 else
16409 # Is the header compilable?
16410 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16411 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 $ac_includes_default
16419 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_compile") 2>conftest.er1
16429 ac_status=$?
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } && {
16435 test -z "$ac_c_werror_flag" ||
16436 test ! -s conftest.err
16437 } && test -s conftest.$ac_objext; then
16438 ac_header_compiler=yes
16439 else
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_header_compiler=no
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16448 echo "${ECHO_T}$ac_header_compiler" >&6; }
16450 # Is the header present?
16451 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16452 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16453 cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16460 _ACEOF
16461 if { (ac_try="$ac_cpp conftest.$ac_ext"
16462 case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16465 esac
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16468 ac_status=$?
16469 grep -v '^ *+' conftest.er1 >conftest.err
16470 rm -f conftest.er1
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } >/dev/null && {
16474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16475 test ! -s conftest.err
16476 }; then
16477 ac_header_preproc=yes
16478 else
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 ac_header_preproc=no
16485 rm -f conftest.err conftest.$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16487 echo "${ECHO_T}$ac_header_preproc" >&6; }
16489 # So? What about this header?
16490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16491 yes:no: )
16492 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16493 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16495 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16496 ac_header_preproc=yes
16498 no:yes:* )
16499 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16500 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16502 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16504 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16506 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16508 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16510 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16511 ( cat <<\_ASBOX
16512 ## ------------------------------- ##
16513 ## Report this to www.asterisk.org ##
16514 ## ------------------------------- ##
16515 _ASBOX
16516 ) | sed "s/^/$as_me: WARNING: /" >&2
16518 esac
16519 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16520 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524 eval "$as_ac_Header=\$ac_header_preproc"
16526 ac_res=`eval echo '${'$as_ac_Header'}'`
16527 { echo "$as_me:$LINENO: result: $ac_res" >&5
16528 echo "${ECHO_T}$ac_res" >&6; }
16531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16532 ALSA_HEADER_FOUND=1
16533 else
16534 ALSA_HEADER_FOUND=0
16539 CPPFLAGS="${saved_cppflags}"
16540 else
16541 if test "xalsa/asoundlib.h" != "x" ; then
16542 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16543 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16544 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16545 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16549 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16550 else
16551 # Is the header compilable?
16552 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16553 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16554 cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h. */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16561 #include <alsa/asoundlib.h>
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && {
16577 test -z "$ac_c_werror_flag" ||
16578 test ! -s conftest.err
16579 } && test -s conftest.$ac_objext; then
16580 ac_header_compiler=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_header_compiler=no
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16590 echo "${ECHO_T}$ac_header_compiler" >&6; }
16592 # Is the header present?
16593 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16594 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <alsa/asoundlib.h>
16602 _ACEOF
16603 if { (ac_try="$ac_cpp conftest.$ac_ext"
16604 case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } >/dev/null && {
16616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16617 test ! -s conftest.err
16618 }; then
16619 ac_header_preproc=yes
16620 else
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 ac_header_preproc=no
16627 rm -f conftest.err conftest.$ac_ext
16628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16629 echo "${ECHO_T}$ac_header_preproc" >&6; }
16631 # So? What about this header?
16632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16633 yes:no: )
16634 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16635 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16637 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16638 ac_header_preproc=yes
16640 no:yes:* )
16641 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16646 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16648 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16650 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16652 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16653 ( cat <<\_ASBOX
16654 ## ------------------------------- ##
16655 ## Report this to www.asterisk.org ##
16656 ## ------------------------------- ##
16657 _ASBOX
16658 ) | sed "s/^/$as_me: WARNING: /" >&2
16660 esac
16661 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16662 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16663 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16668 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16669 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16672 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16673 ALSA_HEADER_FOUND=1
16674 else
16675 ALSA_HEADER_FOUND=0
16681 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16682 if test -n "${ALSA_MANDATORY}" ;
16683 then
16684 { echo "$as_me:$LINENO: ***" >&5
16685 echo "$as_me: ***" >&6;}
16686 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16687 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16688 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16689 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16690 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16691 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16692 exit 1
16694 ALSA_LIB=""
16695 ALSA_INCLUDE=""
16696 PBX_ALSA=0
16697 else
16698 PBX_ALSA=1
16700 cat >>confdefs.h <<_ACEOF
16701 #define HAVE_ALSA 1
16702 _ACEOF
16705 elif test -n "${ALSA_MANDATORY}";
16706 then
16707 { echo "$as_me:$LINENO: ***" >&5
16708 echo "$as_me: ***" >&6;}
16709 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16710 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16711 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16712 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16713 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16714 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16715 exit 1
16721 if test "${USE_CURSES}" != "no"; then
16722 pbxlibdir=""
16723 if test "x${CURSES_DIR}" != "x"; then
16724 if test -d ${CURSES_DIR}/lib; then
16725 pbxlibdir="-L${CURSES_DIR}/lib"
16726 else
16727 pbxlibdir="-L${CURSES_DIR}"
16730 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16731 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16732 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735 ac_check_lib_save_LIBS=$LIBS
16736 LIBS="-lcurses ${pbxlibdir} $LIBS"
16737 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h. */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16744 /* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16747 #ifdef __cplusplus
16748 extern "C"
16749 #endif
16750 char initscr ();
16752 main ()
16754 return initscr ();
16756 return 0;
16758 _ACEOF
16759 rm -f conftest.$ac_objext conftest$ac_exeext
16760 if { (ac_try="$ac_link"
16761 case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764 esac
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_link") 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext &&
16776 $as_test_x conftest$ac_exeext; then
16777 ac_cv_lib_curses_initscr=yes
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_lib_curses_initscr=no
16785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16786 conftest$ac_exeext conftest.$ac_ext
16787 LIBS=$ac_check_lib_save_LIBS
16789 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16790 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16791 if test $ac_cv_lib_curses_initscr = yes; then
16792 AST_CURSES_FOUND=yes
16793 else
16794 AST_CURSES_FOUND=no
16798 if test "${AST_CURSES_FOUND}" = "yes"; then
16799 CURSES_LIB="-lcurses "
16800 CURSES_HEADER_FOUND="1"
16801 if test "x${CURSES_DIR}" != "x"; then
16802 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16803 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16804 saved_cppflags="${CPPFLAGS}"
16805 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16806 if test "xcurses.h" != "x" ; then
16807 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16809 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16810 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_res=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16817 else
16818 # Is the header compilable?
16819 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16820 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 #include <${CURSES_DIR}/include/curses.h>
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (ac_try="$ac_compile"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_compile") 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && {
16844 test -z "$ac_c_werror_flag" ||
16845 test ! -s conftest.err
16846 } && test -s conftest.$ac_objext; then
16847 ac_header_compiler=yes
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_header_compiler=no
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16857 echo "${ECHO_T}$ac_header_compiler" >&6; }
16859 # Is the header present?
16860 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16861 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16862 cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h. */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 #include <${CURSES_DIR}/include/curses.h>
16869 _ACEOF
16870 if { (ac_try="$ac_cpp conftest.$ac_ext"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } >/dev/null && {
16883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16885 }; then
16886 ac_header_preproc=yes
16887 else
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_header_preproc=no
16894 rm -f conftest.err conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16896 echo "${ECHO_T}$ac_header_preproc" >&6; }
16898 # So? What about this header?
16899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16900 yes:no: )
16901 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16902 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16904 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16905 ac_header_preproc=yes
16907 no:yes:* )
16908 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16909 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16911 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16913 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16915 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16917 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16919 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16920 ( cat <<\_ASBOX
16921 ## ------------------------------- ##
16922 ## Report this to www.asterisk.org ##
16923 ## ------------------------------- ##
16924 _ASBOX
16925 ) | sed "s/^/$as_me: WARNING: /" >&2
16927 esac
16928 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16929 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 eval "$as_ac_Header=\$ac_header_preproc"
16935 ac_res=`eval echo '${'$as_ac_Header'}'`
16936 { echo "$as_me:$LINENO: result: $ac_res" >&5
16937 echo "${ECHO_T}$ac_res" >&6; }
16940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16941 CURSES_HEADER_FOUND=1
16942 else
16943 CURSES_HEADER_FOUND=0
16948 CPPFLAGS="${saved_cppflags}"
16949 else
16950 if test "xcurses.h" != "x" ; then
16951 if test "${ac_cv_header_curses_h+set}" = set; then
16952 { echo "$as_me:$LINENO: checking for curses.h" >&5
16953 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16954 if test "${ac_cv_header_curses_h+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16958 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16959 else
16960 # Is the header compilable?
16961 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16962 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16963 cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h. */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 $ac_includes_default
16970 #include <curses.h>
16971 _ACEOF
16972 rm -f conftest.$ac_objext
16973 if { (ac_try="$ac_compile"
16974 case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16977 esac
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_compile") 2>conftest.er1
16980 ac_status=$?
16981 grep -v '^ *+' conftest.er1 >conftest.err
16982 rm -f conftest.er1
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest.$ac_objext; then
16989 ac_header_compiler=yes
16990 else
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 ac_header_compiler=no
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16999 echo "${ECHO_T}$ac_header_compiler" >&6; }
17001 # Is the header present?
17002 { echo "$as_me:$LINENO: checking curses.h presence" >&5
17003 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
17004 cat >conftest.$ac_ext <<_ACEOF
17005 /* confdefs.h. */
17006 _ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 #include <curses.h>
17011 _ACEOF
17012 if { (ac_try="$ac_cpp conftest.$ac_ext"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } >/dev/null && {
17025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 }; then
17028 ac_header_preproc=yes
17029 else
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_header_preproc=no
17036 rm -f conftest.err conftest.$ac_ext
17037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038 echo "${ECHO_T}$ac_header_preproc" >&6; }
17040 # So? What about this header?
17041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17042 yes:no: )
17043 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17044 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
17046 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
17047 ac_header_preproc=yes
17049 no:yes:* )
17050 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
17051 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
17053 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
17055 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
17057 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
17059 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
17061 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
17062 ( cat <<\_ASBOX
17063 ## ------------------------------- ##
17064 ## Report this to www.asterisk.org ##
17065 ## ------------------------------- ##
17066 _ASBOX
17067 ) | sed "s/^/$as_me: WARNING: /" >&2
17069 esac
17070 { echo "$as_me:$LINENO: checking for curses.h" >&5
17071 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17072 if test "${ac_cv_header_curses_h+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075 ac_cv_header_curses_h=$ac_header_preproc
17077 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17078 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17081 if test $ac_cv_header_curses_h = yes; then
17082 CURSES_HEADER_FOUND=1
17083 else
17084 CURSES_HEADER_FOUND=0
17090 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
17091 if test -n "${CURSES_MANDATORY}" ;
17092 then
17093 { echo "$as_me:$LINENO: ***" >&5
17094 echo "$as_me: ***" >&6;}
17095 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
17096 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
17097 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
17098 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
17099 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17100 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17101 exit 1
17103 CURSES_LIB=""
17104 CURSES_INCLUDE=""
17105 PBX_CURSES=0
17106 else
17107 PBX_CURSES=1
17109 cat >>confdefs.h <<_ACEOF
17110 #define HAVE_CURSES 1
17111 _ACEOF
17114 elif test -n "${CURSES_MANDATORY}";
17115 then
17116 { echo "$as_me:$LINENO: ***" >&5
17117 echo "$as_me: ***" >&6;}
17118 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
17119 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
17120 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17121 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17122 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
17123 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
17124 exit 1
17129 if test "x${host_os}" = "xlinux-gnu" ; then
17131 if test "${USE_CAP}" != "no"; then
17132 pbxlibdir=""
17133 if test "x${CAP_DIR}" != "x"; then
17134 if test -d ${CAP_DIR}/lib; then
17135 pbxlibdir="-L${CAP_DIR}/lib"
17136 else
17137 pbxlibdir="-L${CAP_DIR}"
17140 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
17141 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
17142 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
17143 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145 ac_check_lib_save_LIBS=$LIBS
17146 LIBS="-lcap ${pbxlibdir} $LIBS"
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17154 /* Override any GCC internal prototype to avoid an error.
17155 Use char because int might match the return type of a GCC
17156 builtin and then its argument prototype would still apply. */
17157 #ifdef __cplusplus
17158 extern "C"
17159 #endif
17160 char cap_from_text ();
17162 main ()
17164 return cap_from_text ();
17166 return 0;
17168 _ACEOF
17169 rm -f conftest.$ac_objext conftest$ac_exeext
17170 if { (ac_try="$ac_link"
17171 case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_link") 2>conftest.er1
17177 ac_status=$?
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && {
17183 test -z "$ac_c_werror_flag" ||
17184 test ! -s conftest.err
17185 } && test -s conftest$ac_exeext &&
17186 $as_test_x conftest$ac_exeext; then
17187 ac_cv_lib_cap_cap_from_text=yes
17188 else
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_cv_lib_cap_cap_from_text=no
17195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17196 conftest$ac_exeext conftest.$ac_ext
17197 LIBS=$ac_check_lib_save_LIBS
17199 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
17200 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
17201 if test $ac_cv_lib_cap_cap_from_text = yes; then
17202 AST_CAP_FOUND=yes
17203 else
17204 AST_CAP_FOUND=no
17208 if test "${AST_CAP_FOUND}" = "yes"; then
17209 CAP_LIB="-lcap "
17210 CAP_HEADER_FOUND="1"
17211 if test "x${CAP_DIR}" != "x"; then
17212 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
17213 CAP_INCLUDE="-I${CAP_DIR}/include"
17214 saved_cppflags="${CPPFLAGS}"
17215 CPPFLAGS="${CPPFLAGS} -I${CAP_DIR}/include"
17216 if test "xsys/capability.h" != "x" ; then
17217 as_ac_Header=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17219 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17220 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 ac_res=`eval echo '${'$as_ac_Header'}'`
17225 { echo "$as_me:$LINENO: result: $ac_res" >&5
17226 echo "${ECHO_T}$ac_res" >&6; }
17227 else
17228 # Is the header compilable?
17229 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17230 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17238 #include <${CAP_DIR}/include/sys/capability.h>
17239 _ACEOF
17240 rm -f conftest.$ac_objext
17241 if { (ac_try="$ac_compile"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_compile") 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } && {
17254 test -z "$ac_c_werror_flag" ||
17255 test ! -s conftest.err
17256 } && test -s conftest.$ac_objext; then
17257 ac_header_compiler=yes
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_header_compiler=no
17265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17267 echo "${ECHO_T}$ac_header_compiler" >&6; }
17269 # Is the header present?
17270 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17271 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 #include <${CAP_DIR}/include/sys/capability.h>
17279 _ACEOF
17280 if { (ac_try="$ac_cpp conftest.$ac_ext"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } >/dev/null && {
17293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17295 }; then
17296 ac_header_preproc=yes
17297 else
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_header_preproc=no
17304 rm -f conftest.err conftest.$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6; }
17308 # So? What about this header?
17309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17310 yes:no: )
17311 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17312 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17314 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17315 ac_header_preproc=yes
17317 no:yes:* )
17318 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17319 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17321 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17323 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17325 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17327 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17329 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17330 ( cat <<\_ASBOX
17331 ## ------------------------------- ##
17332 ## Report this to www.asterisk.org ##
17333 ## ------------------------------- ##
17334 _ASBOX
17335 ) | sed "s/^/$as_me: WARNING: /" >&2
17337 esac
17338 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17339 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 eval "$as_ac_Header=\$ac_header_preproc"
17345 ac_res=`eval echo '${'$as_ac_Header'}'`
17346 { echo "$as_me:$LINENO: result: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 CAP_HEADER_FOUND=1
17352 else
17353 CAP_HEADER_FOUND=0
17358 CPPFLAGS="${saved_cppflags}"
17359 else
17360 if test "xsys/capability.h" != "x" ; then
17361 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17362 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17363 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17364 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17368 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17369 else
17370 # Is the header compilable?
17371 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17372 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 $ac_includes_default
17380 #include <sys/capability.h>
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (ac_try="$ac_compile"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_compile") 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && {
17396 test -z "$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17398 } && test -s conftest.$ac_objext; then
17399 ac_header_compiler=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_header_compiler=no
17407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17409 echo "${ECHO_T}$ac_header_compiler" >&6; }
17411 # Is the header present?
17412 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17413 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 #include <sys/capability.h>
17421 _ACEOF
17422 if { (ac_try="$ac_cpp conftest.$ac_ext"
17423 case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17429 ac_status=$?
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } >/dev/null && {
17435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 }; then
17438 ac_header_preproc=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_header_preproc=no
17446 rm -f conftest.err conftest.$ac_ext
17447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17448 echo "${ECHO_T}$ac_header_preproc" >&6; }
17450 # So? What about this header?
17451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17452 yes:no: )
17453 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17454 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17456 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17457 ac_header_preproc=yes
17459 no:yes:* )
17460 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17461 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17462 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17463 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17464 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17465 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17466 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17467 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17468 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17469 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17471 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17472 ( cat <<\_ASBOX
17473 ## ------------------------------- ##
17474 ## Report this to www.asterisk.org ##
17475 ## ------------------------------- ##
17476 _ASBOX
17477 ) | sed "s/^/$as_me: WARNING: /" >&2
17479 esac
17480 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17481 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17482 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485 ac_cv_header_sys_capability_h=$ac_header_preproc
17487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17488 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17491 if test $ac_cv_header_sys_capability_h = yes; then
17492 CAP_HEADER_FOUND=1
17493 else
17494 CAP_HEADER_FOUND=0
17500 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17501 if test -n "${CAP_MANDATORY}" ;
17502 then
17503 { echo "$as_me:$LINENO: ***" >&5
17504 echo "$as_me: ***" >&6;}
17505 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17506 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17507 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17508 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17509 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17510 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17511 exit 1
17513 CAP_LIB=""
17514 CAP_INCLUDE=""
17515 PBX_CAP=0
17516 else
17517 PBX_CAP=1
17519 cat >>confdefs.h <<_ACEOF
17520 #define HAVE_CAP 1
17521 _ACEOF
17524 elif test -n "${CAP_MANDATORY}";
17525 then
17526 { echo "$as_me:$LINENO: ***" >&5
17527 echo "$as_me: ***" >&6;}
17528 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17529 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17530 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17531 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17532 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17533 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17534 exit 1
17541 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17542 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17543 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17544 saved_cppflags="${CPPFLAGS}"
17545 if test "x${GETIFADDRS_DIR}" != "x"; then
17546 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17548 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 #include <ifaddrs.h>
17558 main ()
17560 struct ifaddrs *p; getifaddrs(&p);
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext
17567 if { (ac_try="$ac_compile"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_compile") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest.$ac_objext; then
17583 { echo "$as_me:$LINENO: result: yes" >&5
17584 echo "${ECHO_T}yes" >&6; }
17585 PBX_GETIFADDRS=1
17587 cat >>confdefs.h <<\_ACEOF
17588 #define HAVE_GETIFADDRS 1
17589 _ACEOF
17592 cat >>confdefs.h <<\_ACEOF
17593 #define HAVE_GETIFADDRS_VERSION
17594 _ACEOF
17597 else
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 { echo "$as_me:$LINENO: result: no" >&5
17602 echo "${ECHO_T}no" >&6; }
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 CPPFLAGS="${saved_cppflags}"
17611 GSM_INTERNAL="yes"
17613 GSM_SYSTEM="yes"
17614 if test "${USE_GSM}" != "no"; then
17615 if test "${GSM_DIR}" = "internal"; then
17616 GSM_SYSTEM="no"
17617 elif test "${GSM_DIR}" != ""; then
17618 GSM_INTERNAL="no"
17620 if test "${GSM_SYSTEM}" = "yes"; then
17621 gsmlibdir=""
17622 if test "x${GSM_DIR}" != "x"; then
17623 if test -d ${GSM_DIR}/lib; then
17624 gsmlibdir="-L${GSM_DIR}/lib"
17625 else
17626 gsmlibdir="-L${GSM_DIR}"
17629 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17630 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17631 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634 ac_check_lib_save_LIBS=$LIBS
17635 LIBS="-lgsm ${gsmlibdir} $LIBS"
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17646 #ifdef __cplusplus
17647 extern "C"
17648 #endif
17649 char gsm_create ();
17651 main ()
17653 return gsm_create ();
17655 return 0;
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 ac_cv_lib_gsm_gsm_create=yes
17677 else
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 ac_cv_lib_gsm_gsm_create=no
17684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17685 conftest$ac_exeext conftest.$ac_ext
17686 LIBS=$ac_check_lib_save_LIBS
17688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17689 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17690 if test $ac_cv_lib_gsm_gsm_create = yes; then
17692 cat >>confdefs.h <<_ACEOF
17693 #define HAVE_GSM 1
17694 _ACEOF
17698 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17699 if test "x${GSM_DIR}" != "x" ; then
17700 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17702 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17703 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 ac_res=`eval echo '${'$as_ac_Header'}'`
17708 { echo "$as_me:$LINENO: result: $ac_res" >&5
17709 echo "${ECHO_T}$ac_res" >&6; }
17710 else
17711 # Is the header compilable?
17712 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17713 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 $ac_includes_default
17721 #include <${GSM_DIR}/include/gsm.h>
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest.$ac_objext; then
17740 ac_header_compiler=yes
17741 else
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ac_header_compiler=no
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17750 echo "${ECHO_T}$ac_header_compiler" >&6; }
17752 # Is the header present?
17753 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17754 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17755 cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h. */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include <${GSM_DIR}/include/gsm.h>
17762 _ACEOF
17763 if { (ac_try="$ac_cpp conftest.$ac_ext"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767 esac
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } >/dev/null && {
17776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17778 }; then
17779 ac_header_preproc=yes
17780 else
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_header_preproc=no
17787 rm -f conftest.err conftest.$ac_ext
17788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17789 echo "${ECHO_T}$ac_header_preproc" >&6; }
17791 # So? What about this header?
17792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17793 yes:no: )
17794 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17795 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17796 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17797 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17798 ac_header_preproc=yes
17800 no:yes:* )
17801 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17802 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17804 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17806 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17808 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17809 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17810 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17811 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17812 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17813 ( cat <<\_ASBOX
17814 ## ------------------------------- ##
17815 ## Report this to www.asterisk.org ##
17816 ## ------------------------------- ##
17817 _ASBOX
17818 ) | sed "s/^/$as_me: WARNING: /" >&2
17820 esac
17821 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17822 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826 eval "$as_ac_Header=\$ac_header_preproc"
17828 ac_res=`eval echo '${'$as_ac_Header'}'`
17829 { echo "$as_me:$LINENO: result: $ac_res" >&5
17830 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17834 GSM_HEADER_FOUND=1
17835 else
17836 GSM_HEADER_FOUND=0
17840 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17842 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17843 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_res=`eval echo '${'$as_ac_Header'}'`
17848 { echo "$as_me:$LINENO: result: $ac_res" >&5
17849 echo "${ECHO_T}$ac_res" >&6; }
17850 else
17851 # Is the header compilable?
17852 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17853 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 $ac_includes_default
17861 #include <${GSM_DIR}/include/gsm/gsm.h>
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest.$ac_objext; then
17880 ac_header_compiler=yes
17881 else
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 ac_header_compiler=no
17888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17890 echo "${ECHO_T}$ac_header_compiler" >&6; }
17892 # Is the header present?
17893 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17894 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 #include <${GSM_DIR}/include/gsm/gsm.h>
17902 _ACEOF
17903 if { (ac_try="$ac_cpp conftest.$ac_ext"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17910 ac_status=$?
17911 grep -v '^ *+' conftest.er1 >conftest.err
17912 rm -f conftest.er1
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } >/dev/null && {
17916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17918 }; then
17919 ac_header_preproc=yes
17920 else
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924 ac_header_preproc=no
17927 rm -f conftest.err conftest.$ac_ext
17928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17929 echo "${ECHO_T}$ac_header_preproc" >&6; }
17931 # So? What about this header?
17932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17933 yes:no: )
17934 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17935 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17937 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17938 ac_header_preproc=yes
17940 no:yes:* )
17941 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17942 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17944 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17946 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17947 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17948 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17950 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17952 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17953 ( cat <<\_ASBOX
17954 ## ------------------------------- ##
17955 ## Report this to www.asterisk.org ##
17956 ## ------------------------------- ##
17957 _ASBOX
17958 ) | sed "s/^/$as_me: WARNING: /" >&2
17960 esac
17961 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17962 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 eval "$as_ac_Header=\$ac_header_preproc"
17968 ac_res=`eval echo '${'$as_ac_Header'}'`
17969 { echo "$as_me:$LINENO: result: $ac_res" >&5
17970 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17974 GSM_GSM_HEADER_FOUND=1
17975 else
17976 GSM_GSM_HEADER_FOUND=0
17980 else
17981 if test "${ac_cv_header_gsm_h+set}" = set; then
17982 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17983 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17984 if test "${ac_cv_header_gsm_h+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17988 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17989 else
17990 # Is the header compilable?
17991 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17992 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18000 #include <gsm.h>
18001 _ACEOF
18002 rm -f conftest.$ac_objext
18003 if { (ac_try="$ac_compile"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_compile") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest.$ac_objext; then
18019 ac_header_compiler=yes
18020 else
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 ac_header_compiler=no
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18029 echo "${ECHO_T}$ac_header_compiler" >&6; }
18031 # Is the header present?
18032 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
18033 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h. */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <gsm.h>
18041 _ACEOF
18042 if { (ac_try="$ac_cpp conftest.$ac_ext"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18046 esac
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18049 ac_status=$?
18050 grep -v '^ *+' conftest.er1 >conftest.err
18051 rm -f conftest.er1
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } >/dev/null && {
18055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18057 }; then
18058 ac_header_preproc=yes
18059 else
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18063 ac_header_preproc=no
18066 rm -f conftest.err conftest.$ac_ext
18067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6; }
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 yes:no: )
18073 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18074 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
18076 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
18077 ac_header_preproc=yes
18079 no:yes:* )
18080 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
18081 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
18083 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
18085 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18087 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
18089 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
18091 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
18092 ( cat <<\_ASBOX
18093 ## ------------------------------- ##
18094 ## Report this to www.asterisk.org ##
18095 ## ------------------------------- ##
18096 _ASBOX
18097 ) | sed "s/^/$as_me: WARNING: /" >&2
18099 esac
18100 { echo "$as_me:$LINENO: checking for gsm.h" >&5
18101 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
18102 if test "${ac_cv_header_gsm_h+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105 ac_cv_header_gsm_h=$ac_header_preproc
18107 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
18108 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
18111 if test $ac_cv_header_gsm_h = yes; then
18112 GSM_HEADER_FOUND=1
18113 else
18114 GSM_HEADER_FOUND=0
18118 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18119 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18120 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18121 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18125 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18126 else
18127 # Is the header compilable?
18128 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
18129 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h. */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 $ac_includes_default
18137 #include <gsm/gsm.h>
18138 _ACEOF
18139 rm -f conftest.$ac_objext
18140 if { (ac_try="$ac_compile"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_compile") 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } && {
18153 test -z "$ac_c_werror_flag" ||
18154 test ! -s conftest.err
18155 } && test -s conftest.$ac_objext; then
18156 ac_header_compiler=yes
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_header_compiler=no
18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18166 echo "${ECHO_T}$ac_header_compiler" >&6; }
18168 # Is the header present?
18169 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
18170 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h. */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 #include <gsm/gsm.h>
18178 _ACEOF
18179 if { (ac_try="$ac_cpp conftest.$ac_ext"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18186 ac_status=$?
18187 grep -v '^ *+' conftest.er1 >conftest.err
18188 rm -f conftest.er1
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } >/dev/null && {
18192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18193 test ! -s conftest.err
18194 }; then
18195 ac_header_preproc=yes
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 ac_header_preproc=no
18203 rm -f conftest.err conftest.$ac_ext
18204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18205 echo "${ECHO_T}$ac_header_preproc" >&6; }
18207 # So? What about this header?
18208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18209 yes:no: )
18210 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18211 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18213 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18214 ac_header_preproc=yes
18216 no:yes:* )
18217 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18218 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18220 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18222 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18224 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18226 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18228 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18229 ( cat <<\_ASBOX
18230 ## ------------------------------- ##
18231 ## Report this to www.asterisk.org ##
18232 ## ------------------------------- ##
18233 _ASBOX
18234 ) | sed "s/^/$as_me: WARNING: /" >&2
18236 esac
18237 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18238 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18239 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242 ac_cv_header_gsm_gsm_h=$ac_header_preproc
18244 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18245 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18248 if test $ac_cv_header_gsm_gsm_h = yes; then
18249 GSM_GSM_HEADER_FOUND=1
18250 else
18251 GSM_GSM_HEADER_FOUND=0
18256 if test "${GSM_HEADER_FOUND}" = "0" ; then
18257 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18258 if test "x${GSM_MANDATORY}" = "xyes" ; then
18259 { echo "$as_me:$LINENO: ***" >&5
18260 echo "$as_me: ***" >&6;}
18261 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18262 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18263 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18264 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18265 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18266 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18267 exit 1
18271 GSM_OK=0
18272 if test "${GSM_HEADER_FOUND}" = "1" ; then
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_GSM_HEADER 1
18276 _ACEOF
18278 GSM_OK=1
18279 else
18280 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18282 cat >>confdefs.h <<_ACEOF
18283 #define HAVE_GSM_GSM_HEADER 1
18284 _ACEOF
18286 GSM_OK=1
18289 if test "${GSM_OK}" = "1" ; then
18290 GSM_LIB="-lgsm"
18291 if test "x${GSM_DIR}" != "x"; then
18292 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
18293 GSM_INCLUDE="-I${GSM_DIR}/include"
18295 PBX_GSM=1
18296 GSM_INTERNAL="no"
18300 if test "${GSM_INTERNAL}" = "yes"; then
18301 PBX_GSM=1
18303 cat >>confdefs.h <<_ACEOF
18304 #define HAVE_GSM_HEADER 1
18305 _ACEOF
18311 if test "${USE_IKSEMEL}" != "no"; then
18312 pbxlibdir=""
18313 if test "x${IKSEMEL_DIR}" != "x"; then
18314 if test -d ${IKSEMEL_DIR}/lib; then
18315 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18316 else
18317 pbxlibdir="-L${IKSEMEL_DIR}"
18320 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18321 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18322 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325 ac_check_lib_save_LIBS=$LIBS
18326 LIBS="-liksemel ${pbxlibdir} $LIBS"
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h. */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 char iks_start_sasl ();
18342 main ()
18344 return iks_start_sasl ();
18346 return 0;
18348 _ACEOF
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (ac_try="$ac_link"
18351 case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18354 esac
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_link") 2>conftest.er1
18357 ac_status=$?
18358 grep -v '^ *+' conftest.er1 >conftest.err
18359 rm -f conftest.er1
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } && {
18363 test -z "$ac_c_werror_flag" ||
18364 test ! -s conftest.err
18365 } && test -s conftest$ac_exeext &&
18366 $as_test_x conftest$ac_exeext; then
18367 ac_cv_lib_iksemel_iks_start_sasl=yes
18368 else
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ac_cv_lib_iksemel_iks_start_sasl=no
18375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18376 conftest$ac_exeext conftest.$ac_ext
18377 LIBS=$ac_check_lib_save_LIBS
18379 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18380 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18381 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18382 AST_IKSEMEL_FOUND=yes
18383 else
18384 AST_IKSEMEL_FOUND=no
18388 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18389 IKSEMEL_LIB="-liksemel "
18390 IKSEMEL_HEADER_FOUND="1"
18391 if test "x${IKSEMEL_DIR}" != "x"; then
18392 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18393 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18394 saved_cppflags="${CPPFLAGS}"
18395 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18396 if test "xiksemel.h" != "x" ; then
18397 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
18398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18399 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18400 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_res=`eval echo '${'$as_ac_Header'}'`
18405 { echo "$as_me:$LINENO: result: $ac_res" >&5
18406 echo "${ECHO_T}$ac_res" >&6; }
18407 else
18408 # Is the header compilable?
18409 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18410 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h. */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 $ac_includes_default
18418 #include <${IKSEMEL_DIR}/include/iksemel.h>
18419 _ACEOF
18420 rm -f conftest.$ac_objext
18421 if { (ac_try="$ac_compile"
18422 case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18425 esac
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_compile") 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } && {
18434 test -z "$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18436 } && test -s conftest.$ac_objext; then
18437 ac_header_compiler=yes
18438 else
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_header_compiler=no
18445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18447 echo "${ECHO_T}$ac_header_compiler" >&6; }
18449 # Is the header present?
18450 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18451 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <${IKSEMEL_DIR}/include/iksemel.h>
18459 _ACEOF
18460 if { (ac_try="$ac_cpp conftest.$ac_ext"
18461 case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } >/dev/null && {
18473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18474 test ! -s conftest.err
18475 }; then
18476 ac_header_preproc=yes
18477 else
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ac_header_preproc=no
18484 rm -f conftest.err conftest.$ac_ext
18485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18486 echo "${ECHO_T}$ac_header_preproc" >&6; }
18488 # So? What about this header?
18489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18490 yes:no: )
18491 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18492 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18494 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18495 ac_header_preproc=yes
18497 no:yes:* )
18498 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18499 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18501 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18503 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18505 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18507 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18509 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18510 ( cat <<\_ASBOX
18511 ## ------------------------------- ##
18512 ## Report this to www.asterisk.org ##
18513 ## ------------------------------- ##
18514 _ASBOX
18515 ) | sed "s/^/$as_me: WARNING: /" >&2
18517 esac
18518 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18519 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 eval "$as_ac_Header=\$ac_header_preproc"
18525 ac_res=`eval echo '${'$as_ac_Header'}'`
18526 { echo "$as_me:$LINENO: result: $ac_res" >&5
18527 echo "${ECHO_T}$ac_res" >&6; }
18530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18531 IKSEMEL_HEADER_FOUND=1
18532 else
18533 IKSEMEL_HEADER_FOUND=0
18538 CPPFLAGS="${saved_cppflags}"
18539 else
18540 if test "xiksemel.h" != "x" ; then
18541 if test "${ac_cv_header_iksemel_h+set}" = set; then
18542 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18543 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18544 if test "${ac_cv_header_iksemel_h+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18548 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18549 else
18550 # Is the header compilable?
18551 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18552 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18553 cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h. */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18559 $ac_includes_default
18560 #include <iksemel.h>
18561 _ACEOF
18562 rm -f conftest.$ac_objext
18563 if { (ac_try="$ac_compile"
18564 case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_compile") 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } && {
18576 test -z "$ac_c_werror_flag" ||
18577 test ! -s conftest.err
18578 } && test -s conftest.$ac_objext; then
18579 ac_header_compiler=yes
18580 else
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 ac_header_compiler=no
18587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18589 echo "${ECHO_T}$ac_header_compiler" >&6; }
18591 # Is the header present?
18592 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18593 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h. */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 #include <iksemel.h>
18601 _ACEOF
18602 if { (ac_try="$ac_cpp conftest.$ac_ext"
18603 case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606 esac
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18609 ac_status=$?
18610 grep -v '^ *+' conftest.er1 >conftest.err
18611 rm -f conftest.er1
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } >/dev/null && {
18615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18616 test ! -s conftest.err
18617 }; then
18618 ac_header_preproc=yes
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_header_preproc=no
18626 rm -f conftest.err conftest.$ac_ext
18627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18628 echo "${ECHO_T}$ac_header_preproc" >&6; }
18630 # So? What about this header?
18631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18632 yes:no: )
18633 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18634 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18636 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18637 ac_header_preproc=yes
18639 no:yes:* )
18640 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18641 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18642 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18643 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18645 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18646 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18647 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18649 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18651 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18652 ( cat <<\_ASBOX
18653 ## ------------------------------- ##
18654 ## Report this to www.asterisk.org ##
18655 ## ------------------------------- ##
18656 _ASBOX
18657 ) | sed "s/^/$as_me: WARNING: /" >&2
18659 esac
18660 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18661 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18662 if test "${ac_cv_header_iksemel_h+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665 ac_cv_header_iksemel_h=$ac_header_preproc
18667 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18668 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18671 if test $ac_cv_header_iksemel_h = yes; then
18672 IKSEMEL_HEADER_FOUND=1
18673 else
18674 IKSEMEL_HEADER_FOUND=0
18680 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18681 if test -n "${IKSEMEL_MANDATORY}" ;
18682 then
18683 { echo "$as_me:$LINENO: ***" >&5
18684 echo "$as_me: ***" >&6;}
18685 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18686 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18687 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18688 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18689 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18690 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18691 exit 1
18693 IKSEMEL_LIB=""
18694 IKSEMEL_INCLUDE=""
18695 PBX_IKSEMEL=0
18696 else
18697 PBX_IKSEMEL=1
18699 cat >>confdefs.h <<_ACEOF
18700 #define HAVE_IKSEMEL 1
18701 _ACEOF
18704 elif test -n "${IKSEMEL_MANDATORY}";
18705 then
18706 { echo "$as_me:$LINENO: ***" >&5
18707 echo "$as_me: ***" >&6;}
18708 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18709 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18710 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18711 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18712 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18713 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18714 exit 1
18719 if test "${PBX_IKSEMEL}" = 1; then
18721 if test "${USE_GNUTLS}" != "no"; then
18722 pbxlibdir=""
18723 if test "x${GNUTLS_DIR}" != "x"; then
18724 if test -d ${GNUTLS_DIR}/lib; then
18725 pbxlibdir="-L${GNUTLS_DIR}/lib"
18726 else
18727 pbxlibdir="-L${GNUTLS_DIR}"
18730 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18731 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18732 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735 ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char gnutls_bye ();
18752 main ()
18754 return gnutls_bye ();
18756 return 0;
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext &&
18776 $as_test_x conftest$ac_exeext; then
18777 ac_cv_lib_gnutls_gnutls_bye=yes
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_cv_lib_gnutls_gnutls_bye=no
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18789 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18790 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18791 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18792 AST_GNUTLS_FOUND=yes
18793 else
18794 AST_GNUTLS_FOUND=no
18798 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18799 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18800 GNUTLS_HEADER_FOUND="1"
18801 if test "x${GNUTLS_DIR}" != "x"; then
18802 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18803 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18804 saved_cppflags="${CPPFLAGS}"
18805 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18806 if test "xgnutls/gnutls.h" != "x" ; then
18807 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18809 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18810 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_res=`eval echo '${'$as_ac_Header'}'`
18815 { echo "$as_me:$LINENO: result: $ac_res" >&5
18816 echo "${ECHO_T}$ac_res" >&6; }
18817 else
18818 # Is the header compilable?
18819 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18820 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h. */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 $ac_includes_default
18828 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (ac_try="$ac_compile"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_compile") 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest.$ac_objext; then
18847 ac_header_compiler=yes
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_header_compiler=no
18855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18857 echo "${ECHO_T}$ac_header_compiler" >&6; }
18859 # Is the header present?
18860 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18861 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h. */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18869 _ACEOF
18870 if { (ac_try="$ac_cpp conftest.$ac_ext"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18877 ac_status=$?
18878 grep -v '^ *+' conftest.er1 >conftest.err
18879 rm -f conftest.er1
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } >/dev/null && {
18883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 }; then
18886 ac_header_preproc=yes
18887 else
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 ac_header_preproc=no
18894 rm -f conftest.err conftest.$ac_ext
18895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18896 echo "${ECHO_T}$ac_header_preproc" >&6; }
18898 # So? What about this header?
18899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18900 yes:no: )
18901 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18902 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18904 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18905 ac_header_preproc=yes
18907 no:yes:* )
18908 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18909 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18911 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18913 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18915 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18917 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18919 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18920 ( cat <<\_ASBOX
18921 ## ------------------------------- ##
18922 ## Report this to www.asterisk.org ##
18923 ## ------------------------------- ##
18924 _ASBOX
18925 ) | sed "s/^/$as_me: WARNING: /" >&2
18927 esac
18928 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18929 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933 eval "$as_ac_Header=\$ac_header_preproc"
18935 ac_res=`eval echo '${'$as_ac_Header'}'`
18936 { echo "$as_me:$LINENO: result: $ac_res" >&5
18937 echo "${ECHO_T}$ac_res" >&6; }
18940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18941 GNUTLS_HEADER_FOUND=1
18942 else
18943 GNUTLS_HEADER_FOUND=0
18948 CPPFLAGS="${saved_cppflags}"
18949 else
18950 if test "xgnutls/gnutls.h" != "x" ; then
18951 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18952 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18953 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18954 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18958 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18959 else
18960 # Is the header compilable?
18961 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18962 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h. */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 $ac_includes_default
18970 #include <gnutls/gnutls.h>
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest.$ac_objext; then
18989 ac_header_compiler=yes
18990 else
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_header_compiler=no
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18999 echo "${ECHO_T}$ac_header_compiler" >&6; }
19001 # Is the header present?
19002 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
19003 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 #include <gnutls/gnutls.h>
19011 _ACEOF
19012 if { (ac_try="$ac_cpp conftest.$ac_ext"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19019 ac_status=$?
19020 grep -v '^ *+' conftest.er1 >conftest.err
19021 rm -f conftest.er1
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } >/dev/null && {
19025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 }; then
19028 ac_header_preproc=yes
19029 else
19030 echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ac_header_preproc=no
19036 rm -f conftest.err conftest.$ac_ext
19037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19038 echo "${ECHO_T}$ac_header_preproc" >&6; }
19040 # So? What about this header?
19041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19042 yes:no: )
19043 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
19044 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19045 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
19046 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
19047 ac_header_preproc=yes
19049 no:yes:* )
19050 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
19051 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
19053 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
19055 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
19056 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
19057 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
19059 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
19060 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
19061 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
19062 ( cat <<\_ASBOX
19063 ## ------------------------------- ##
19064 ## Report this to www.asterisk.org ##
19065 ## ------------------------------- ##
19066 _ASBOX
19067 ) | sed "s/^/$as_me: WARNING: /" >&2
19069 esac
19070 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
19071 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
19072 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
19077 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
19078 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
19081 if test $ac_cv_header_gnutls_gnutls_h = yes; then
19082 GNUTLS_HEADER_FOUND=1
19083 else
19084 GNUTLS_HEADER_FOUND=0
19090 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
19091 if test -n "${GNUTLS_MANDATORY}" ;
19092 then
19093 { echo "$as_me:$LINENO: ***" >&5
19094 echo "$as_me: ***" >&6;}
19095 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
19096 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
19097 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
19098 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
19099 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
19100 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
19101 exit 1
19103 GNUTLS_LIB=""
19104 GNUTLS_INCLUDE=""
19105 PBX_GNUTLS=0
19106 else
19107 PBX_GNUTLS=1
19109 cat >>confdefs.h <<_ACEOF
19110 #define HAVE_GNUTLS 1
19111 _ACEOF
19114 elif test -n "${GNUTLS_MANDATORY}";
19115 then
19116 { echo "$as_me:$LINENO: ***" >&5
19117 echo "$as_me: ***" >&6;}
19118 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
19119 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
19120 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19121 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19122 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
19123 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
19124 exit 1
19130 if test "${USE_IMAP_TK}" != "no"; then
19131 saved_cppflags="${CPPFLAGS}"
19132 saved_libs="${LIBS}"
19133 switch_to_system_on_failure="no"
19134 if test "${IMAP_TK_DIR}" = ""; then
19135 IMAP_TK_DIR=`pwd`"/../imap-2004g"
19136 switch_to_system_on_failure="yes"
19138 if test "${IMAP_TK_DIR}" != "system"; then
19139 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
19140 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
19141 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
19142 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
19144 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
19145 imap_include="-I${IMAP_TK_DIR}/c-client"
19146 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19147 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include "c-client.h"
19155 void mm_searched (MAILSTREAM *stream,unsigned long number)
19158 void mm_exists (MAILSTREAM *stream,unsigned long number)
19161 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19164 void mm_flags (MAILSTREAM *stream,unsigned long number)
19167 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19170 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19173 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19176 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19179 void mm_log (char *string,long errflg)
19182 void mm_dlog (char *string)
19185 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19188 void mm_critical (MAILSTREAM *stream)
19191 void mm_nocritical (MAILSTREAM *stream)
19194 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19197 void mm_fatal (char *string)
19201 main ()
19204 MAILSTREAM *foo = mail_open(NULL, "", 0);
19208 return 0;
19210 _ACEOF
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } && {
19225 test -z "$ac_c_werror_flag" ||
19226 test ! -s conftest.err
19227 } && test -s conftest$ac_exeext &&
19228 $as_test_x conftest$ac_exeext; then
19229 ac_cv_imap_tk="yes"
19230 else
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_imap_tk="no"
19238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19239 conftest$ac_exeext conftest.$ac_ext
19240 if test "${ac_cv_imap_tk}" = "yes"; then
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h. */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include "c-client.h"
19248 void mm_searched (MAILSTREAM *stream,unsigned long number)
19251 void mm_exists (MAILSTREAM *stream,unsigned long number)
19254 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19257 void mm_flags (MAILSTREAM *stream,unsigned long number)
19260 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19263 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19266 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19269 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19272 void mm_log (char *string,long errflg)
19275 void mm_dlog (char *string)
19278 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19281 void mm_critical (MAILSTREAM *stream)
19284 void mm_nocritical (MAILSTREAM *stream)
19287 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19290 void mm_fatal (char *string)
19294 main ()
19297 long check = mail_expunge_full(NULL, "", 0);
19301 return 0;
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (ac_try="$ac_link"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
19322 ac_cv_imap_tk2006="yes"
19323 else
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_imap_tk2006="no"
19331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19332 conftest$ac_exeext conftest.$ac_ext
19334 CPPFLAGS="${saved_cppflags}"
19335 LIBS="${saved_libs}"
19336 if test "${ac_cv_imap_tk}" = "no"; then
19337 { echo "$as_me:$LINENO: result: no" >&5
19338 echo "${ECHO_T}no" >&6; }
19339 if test "${switch_to_system_on_failure}" = "yes"; then
19340 IMAP_TK_DIR="system"
19341 else #This means they specified a directory. Search for a package installation there too
19342 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19343 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19344 CPPFLAGS="${saved_cppflags}"
19345 LIBS="${saved_libs}"
19346 imap_include="-I${IMAP_TK_DIR}/include"
19347 imap_ldflags="-L${IMAP_TK_DIR}/lib"
19348 imap_libs="-lc-client"
19349 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19350 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19351 cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h. */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 #include "c-client.h"
19358 void mm_searched (MAILSTREAM *stream,unsigned long number)
19361 void mm_exists (MAILSTREAM *stream,unsigned long number)
19364 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19367 void mm_flags (MAILSTREAM *stream,unsigned long number)
19370 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19373 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19376 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19379 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19382 void mm_log (char *string,long errflg)
19385 void mm_dlog (char *string)
19388 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19391 void mm_critical (MAILSTREAM *stream)
19394 void mm_nocritical (MAILSTREAM *stream)
19397 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19400 void mm_fatal (char *string)
19404 main ()
19407 MAILSTREAM *foo = mail_open(NULL, "", 0);
19411 return 0;
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext &&
19431 $as_test_x conftest$ac_exeext; then
19432 ac_cv_imap_tk="yes"
19433 else
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_imap_tk="no"
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19443 if test "${ac_cv_imap_tk}" = "yes"; then
19444 cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h. */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450 #include "c-client.h"
19451 void mm_searched (MAILSTREAM *stream,unsigned long number)
19454 void mm_exists (MAILSTREAM *stream,unsigned long number)
19457 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19460 void mm_flags (MAILSTREAM *stream,unsigned long number)
19463 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19466 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19469 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19472 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19475 void mm_log (char *string,long errflg)
19478 void mm_dlog (char *string)
19481 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19484 void mm_critical (MAILSTREAM *stream)
19487 void mm_nocritical (MAILSTREAM *stream)
19490 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19493 void mm_fatal (char *string)
19497 main ()
19500 long check = mail_expunge_full(NULL, "", 0);
19504 return 0;
19506 _ACEOF
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19525 ac_cv_imap_tk2006="yes"
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_imap_tk2006="no"
19534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19535 conftest$ac_exeext conftest.$ac_ext
19540 if test "${IMAP_TK_DIR}" = "system"; then
19541 #We will enter here if user specified "system" or if any of above checks failed
19542 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19543 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19544 CPPFLAGS="${saved_cppflags}"
19545 LIBS="${saved_libs}"
19546 imap_ldflags=""
19547 imap_libs="-lc-client"
19548 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19549 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19550 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 #include <stdio.h>
19558 #include <imap/c-client.h>
19559 void mm_searched (MAILSTREAM *stream,unsigned long number)
19562 void mm_exists (MAILSTREAM *stream,unsigned long number)
19565 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19568 void mm_flags (MAILSTREAM *stream,unsigned long number)
19571 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19574 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19577 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19580 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19583 void mm_log (char *string,long errflg)
19586 void mm_dlog (char *string)
19589 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19592 void mm_critical (MAILSTREAM *stream)
19595 void mm_nocritical (MAILSTREAM *stream)
19598 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19601 void mm_fatal (char *string)
19605 main ()
19608 MAILSTREAM *foo = mail_open(NULL, "", 0);
19612 return 0;
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest$ac_exeext &&
19632 $as_test_x conftest$ac_exeext; then
19633 ac_cv_imap_tk="yes"
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_imap_tk="no"
19642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19643 conftest$ac_exeext conftest.$ac_ext
19644 if test "${ac_cv_imap_tk}" = "yes"; then
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <stdio.h>
19652 #include <imap/c-client.h>
19653 void mm_searched (MAILSTREAM *stream,unsigned long number)
19656 void mm_exists (MAILSTREAM *stream,unsigned long number)
19659 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19662 void mm_flags (MAILSTREAM *stream,unsigned long number)
19665 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19668 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19671 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19674 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19677 void mm_log (char *string,long errflg)
19680 void mm_dlog (char *string)
19683 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19686 void mm_critical (MAILSTREAM *stream)
19689 void mm_nocritical (MAILSTREAM *stream)
19692 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19695 void mm_fatal (char *string)
19699 main ()
19702 long check = mail_expunge_full(NULL, "", 0);
19706 return 0;
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (ac_try="$ac_link"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_link") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest$ac_exeext &&
19726 $as_test_x conftest$ac_exeext; then
19727 ac_cv_imap_tk2006="yes"
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_imap_tk2006="no"
19736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19737 conftest$ac_exeext conftest.$ac_ext
19738 else #looking in imap directory didn't work, try c-client
19739 imap_ldflags=""
19740 imap_libs="-lc-client"
19741 imap_include="-DUSE_SYSTEM_CCLIENT"
19742 CPPFLAGS="${saved_cppflags}"
19743 LIBS="${saved_libs}"
19744 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19745 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h. */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 #include <stdio.h>
19753 #include <c-client/c-client.h>
19754 void mm_searched (MAILSTREAM *stream,unsigned long number)
19757 void mm_exists (MAILSTREAM *stream,unsigned long number)
19760 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19763 void mm_flags (MAILSTREAM *stream,unsigned long number)
19766 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19769 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19772 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19775 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19778 void mm_log (char *string,long errflg)
19781 void mm_dlog (char *string)
19784 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19787 void mm_critical (MAILSTREAM *stream)
19790 void mm_nocritical (MAILSTREAM *stream)
19793 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19796 void mm_fatal (char *string)
19800 main ()
19803 MAILSTREAM *foo = mail_open(NULL, "", 0);
19807 return 0;
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest$ac_exeext &&
19827 $as_test_x conftest$ac_exeext; then
19828 ac_cv_imap_tk="yes"
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_imap_tk="no"
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 if test "${ac_cv_imap_tk}" = "yes"; then
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <stdio.h>
19847 #include <c-client/c-client.h>
19848 void mm_searched (MAILSTREAM *stream,unsigned long number)
19851 void mm_exists (MAILSTREAM *stream,unsigned long number)
19854 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19857 void mm_flags (MAILSTREAM *stream,unsigned long number)
19860 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19863 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19866 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19869 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19872 void mm_log (char *string,long errflg)
19875 void mm_dlog (char *string)
19878 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19881 void mm_critical (MAILSTREAM *stream)
19884 void mm_nocritical (MAILSTREAM *stream)
19887 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19890 void mm_fatal (char *string)
19894 main ()
19897 long check = mail_expunge_full(NULL, "", 0);
19901 return 0;
19903 _ACEOF
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_link") 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest$ac_exeext &&
19921 $as_test_x conftest$ac_exeext; then
19922 ac_cv_imap_tk2006="yes"
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_imap_tk2006="no"
19931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932 conftest$ac_exeext conftest.$ac_ext
19936 if test "${ac_cv_imap_tk}" = "yes"; then
19937 { echo "$as_me:$LINENO: result: yes" >&5
19938 echo "${ECHO_T}yes" >&6; }
19939 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19940 IMAP_TK_INCLUDE="${imap_include}"
19941 PBX_IMAP_TK=1
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_IMAP_TK 1
19945 _ACEOF
19947 if test "${ac_cv_imap_tk2006}" = "yes"; then
19949 cat >>confdefs.h <<\_ACEOF
19950 #define HAVE_IMAP_TK2006 1
19951 _ACEOF
19954 elif test -n "${IMAP_TK_MANDATORY}"; then
19955 { echo "$as_me:$LINENO: result: no" >&5
19956 echo "${ECHO_T}no" >&6; }
19957 { echo "$as_me:$LINENO: ***" >&5
19958 echo "$as_me: ***" >&6;}
19959 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19960 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19961 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19962 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19963 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19964 echo "$as_me: *** including --without-imap." >&6;}
19965 exit 1
19966 else
19967 { echo "$as_me:$LINENO: result: no" >&5
19968 echo "${ECHO_T}no" >&6; }
19970 CPPFLAGS="${saved_cppflags}"
19971 LIBS="${saved_libs}"
19974 # Needed by unixodbc
19976 if test "${USE_LTDL}" != "no"; then
19977 pbxlibdir=""
19978 if test "x${LTDL_DIR}" != "x"; then
19979 if test -d ${LTDL_DIR}/lib; then
19980 pbxlibdir="-L${LTDL_DIR}/lib"
19981 else
19982 pbxlibdir="-L${LTDL_DIR}"
19985 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19986 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19987 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990 ac_check_lib_save_LIBS=$LIBS
19991 LIBS="-lltdl ${pbxlibdir} $LIBS"
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 /* Override any GCC internal prototype to avoid an error.
20000 Use char because int might match the return type of a GCC
20001 builtin and then its argument prototype would still apply. */
20002 #ifdef __cplusplus
20003 extern "C"
20004 #endif
20005 char lt_dlinit ();
20007 main ()
20009 return lt_dlinit ();
20011 return 0;
20013 _ACEOF
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (ac_try="$ac_link"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20019 esac
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_link") 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest$ac_exeext &&
20031 $as_test_x conftest$ac_exeext; then
20032 ac_cv_lib_ltdl_lt_dlinit=yes
20033 else
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_lib_ltdl_lt_dlinit=no
20040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20041 conftest$ac_exeext conftest.$ac_ext
20042 LIBS=$ac_check_lib_save_LIBS
20044 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
20045 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
20046 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
20047 AST_LTDL_FOUND=yes
20048 else
20049 AST_LTDL_FOUND=no
20053 if test "${AST_LTDL_FOUND}" = "yes"; then
20054 LTDL_LIB="-lltdl "
20055 LTDL_HEADER_FOUND="1"
20056 if test "x${LTDL_DIR}" != "x"; then
20057 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
20058 LTDL_INCLUDE="-I${LTDL_DIR}/include"
20059 saved_cppflags="${CPPFLAGS}"
20060 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
20061 if test "xltdl.h" != "x" ; then
20062 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
20063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20064 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
20065 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 ac_res=`eval echo '${'$as_ac_Header'}'`
20070 { echo "$as_me:$LINENO: result: $ac_res" >&5
20071 echo "${ECHO_T}$ac_res" >&6; }
20072 else
20073 # Is the header compilable?
20074 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
20075 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 $ac_includes_default
20083 #include <${LTDL_DIR}/include/ltdl.h>
20084 _ACEOF
20085 rm -f conftest.$ac_objext
20086 if { (ac_try="$ac_compile"
20087 case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20093 ac_status=$?
20094 grep -v '^ *+' conftest.er1 >conftest.err
20095 rm -f conftest.er1
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } && {
20099 test -z "$ac_c_werror_flag" ||
20100 test ! -s conftest.err
20101 } && test -s conftest.$ac_objext; then
20102 ac_header_compiler=yes
20103 else
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_header_compiler=no
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20112 echo "${ECHO_T}$ac_header_compiler" >&6; }
20114 # Is the header present?
20115 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
20116 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 #include <${LTDL_DIR}/include/ltdl.h>
20124 _ACEOF
20125 if { (ac_try="$ac_cpp conftest.$ac_ext"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } >/dev/null && {
20138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 }; then
20141 ac_header_preproc=yes
20142 else
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146 ac_header_preproc=no
20149 rm -f conftest.err conftest.$ac_ext
20150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20151 echo "${ECHO_T}$ac_header_preproc" >&6; }
20153 # So? What about this header?
20154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20155 yes:no: )
20156 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20157 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
20159 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
20160 ac_header_preproc=yes
20162 no:yes:* )
20163 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
20164 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
20166 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
20168 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20170 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
20172 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
20173 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
20174 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
20175 ( cat <<\_ASBOX
20176 ## ------------------------------- ##
20177 ## Report this to www.asterisk.org ##
20178 ## ------------------------------- ##
20179 _ASBOX
20180 ) | sed "s/^/$as_me: WARNING: /" >&2
20182 esac
20183 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
20184 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
20185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188 eval "$as_ac_Header=\$ac_header_preproc"
20190 ac_res=`eval echo '${'$as_ac_Header'}'`
20191 { echo "$as_me:$LINENO: result: $ac_res" >&5
20192 echo "${ECHO_T}$ac_res" >&6; }
20195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20196 LTDL_HEADER_FOUND=1
20197 else
20198 LTDL_HEADER_FOUND=0
20203 CPPFLAGS="${saved_cppflags}"
20204 else
20205 if test "xltdl.h" != "x" ; then
20206 if test "${ac_cv_header_ltdl_h+set}" = set; then
20207 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20208 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20209 if test "${ac_cv_header_ltdl_h+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20213 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20214 else
20215 # Is the header compilable?
20216 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20217 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 $ac_includes_default
20225 #include <ltdl.h>
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (ac_try="$ac_compile"
20229 case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_compile") 2>conftest.er1
20235 ac_status=$?
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest.$ac_objext; then
20244 ac_header_compiler=yes
20245 else
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_header_compiler=no
20252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20254 echo "${ECHO_T}$ac_header_compiler" >&6; }
20256 # Is the header present?
20257 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20258 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h. */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #include <ltdl.h>
20266 _ACEOF
20267 if { (ac_try="$ac_cpp conftest.$ac_ext"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } >/dev/null && {
20280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 }; then
20283 ac_header_preproc=yes
20284 else
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_header_preproc=no
20291 rm -f conftest.err conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20293 echo "${ECHO_T}$ac_header_preproc" >&6; }
20295 # So? What about this header?
20296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20297 yes:no: )
20298 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20299 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20301 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20302 ac_header_preproc=yes
20304 no:yes:* )
20305 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20306 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20308 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20310 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20312 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20314 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20316 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20317 ( cat <<\_ASBOX
20318 ## ------------------------------- ##
20319 ## Report this to www.asterisk.org ##
20320 ## ------------------------------- ##
20321 _ASBOX
20322 ) | sed "s/^/$as_me: WARNING: /" >&2
20324 esac
20325 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20326 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20327 if test "${ac_cv_header_ltdl_h+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330 ac_cv_header_ltdl_h=$ac_header_preproc
20332 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20333 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20336 if test $ac_cv_header_ltdl_h = yes; then
20337 LTDL_HEADER_FOUND=1
20338 else
20339 LTDL_HEADER_FOUND=0
20345 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20346 if test -n "${LTDL_MANDATORY}" ;
20347 then
20348 { echo "$as_me:$LINENO: ***" >&5
20349 echo "$as_me: ***" >&6;}
20350 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20351 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20352 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20353 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20354 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20355 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20356 exit 1
20358 LTDL_LIB=""
20359 LTDL_INCLUDE=""
20360 PBX_LTDL=0
20361 else
20362 PBX_LTDL=1
20364 cat >>confdefs.h <<_ACEOF
20365 #define HAVE_LTDL 1
20366 _ACEOF
20369 elif test -n "${LTDL_MANDATORY}";
20370 then
20371 { echo "$as_me:$LINENO: ***" >&5
20372 echo "$as_me: ***" >&6;}
20373 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20374 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20375 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20376 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20377 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20378 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20379 exit 1
20384 ac_ext=cpp
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20391 if test "${USE_KDE}" != "no"; then
20392 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20393 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20394 saved_libs="${LIBS}"
20395 saved_cppflags="${CPPFLAGS}"
20396 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20397 if test -d ${KDE_DIR}/lib; then
20398 kdelibdir="${KDE_DIR}/lib"
20399 else
20400 kdelibdir="${KDE_DIR}"
20402 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h. */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411 #include "kcrash.h"
20413 main ()
20415 KCrash::defaultCrashHandler(1);
20417 return 0;
20420 _ACEOF
20421 rm -f conftest.$ac_objext conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_link") 2>conftest.er1
20429 ac_status=$?
20430 grep -v '^ *+' conftest.er1 >conftest.err
20431 rm -f conftest.er1
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && {
20435 test -z "$ac_cxx_werror_flag" ||
20436 test ! -s conftest.err
20437 } && test -s conftest$ac_exeext &&
20438 $as_test_x conftest$ac_exeext; then
20439 ac_cv_lib_kde_crash="yes"
20440 else
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ac_cv_lib_kde_crash="no"
20447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20448 conftest$ac_exeext conftest.$ac_ext
20450 LIBS="${saved_libs}"
20451 CPPFLAGS="${saved_cppflags}"
20453 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20454 { echo "$as_me:$LINENO: result: yes" >&5
20455 echo "${ECHO_T}yes" >&6; }
20456 KDE_LIB="-lkdecore -lkdeui"
20457 if test "${KDE_DIR}" != ""; then
20458 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
20459 KDE_INCLUDE="-I${KDE_DIR}/include"
20461 PBX_KDE=1
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_LIBKDE 1
20465 _ACEOF
20467 elif test -n "${KDE_MANDATORY}"; then
20468 { echo "$as_me:$LINENO: result: no" >&5
20469 echo "${ECHO_T}no" >&6; }
20470 { echo "$as_me:$LINENO: ***" >&5
20471 echo "$as_me: ***" >&6;}
20472 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20473 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20474 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20475 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20476 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20477 echo "$as_me: *** including --without-kde." >&6;}
20478 exit 1
20479 else
20480 { echo "$as_me:$LINENO: result: no" >&5
20481 echo "${ECHO_T}no" >&6; }
20484 if test "${PBX_KDE}" = 1; then
20485 if test -n "$ac_tool_prefix"; then
20486 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20487 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
20488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20490 if test "${ac_cv_path_KDEINIT+set}" = set; then
20491 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 else
20493 case $KDEINIT in
20494 [\\/]* | ?:[\\/]*)
20495 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
20498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20499 for as_dir in $PATH
20501 IFS=$as_save_IFS
20502 test -z "$as_dir" && as_dir=.
20503 for ac_exec_ext in '' $ac_executable_extensions; do
20504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20505 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20507 break 2
20509 done
20510 done
20511 IFS=$as_save_IFS
20514 esac
20516 KDEINIT=$ac_cv_path_KDEINIT
20517 if test -n "$KDEINIT"; then
20518 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20519 echo "${ECHO_T}$KDEINIT" >&6; }
20520 else
20521 { echo "$as_me:$LINENO: result: no" >&5
20522 echo "${ECHO_T}no" >&6; }
20527 if test -z "$ac_cv_path_KDEINIT"; then
20528 ac_pt_KDEINIT=$KDEINIT
20529 # Extract the first word of "kdeinit", so it can be a program name with args.
20530 set dummy kdeinit; ac_word=$2
20531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20533 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536 case $ac_pt_KDEINIT in
20537 [\\/]* | ?:[\\/]*)
20538 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
20541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20542 for as_dir in $PATH
20544 IFS=$as_save_IFS
20545 test -z "$as_dir" && as_dir=.
20546 for ac_exec_ext in '' $ac_executable_extensions; do
20547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20548 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20550 break 2
20552 done
20553 done
20554 IFS=$as_save_IFS
20557 esac
20559 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
20560 if test -n "$ac_pt_KDEINIT"; then
20561 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20562 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20563 else
20564 { echo "$as_me:$LINENO: result: no" >&5
20565 echo "${ECHO_T}no" >&6; }
20568 if test "x$ac_pt_KDEINIT" = x; then
20569 KDEINIT="No"
20570 else
20571 case $cross_compiling:$ac_tool_warned in
20572 yes:)
20573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20574 whose name does not start with the host triplet. If you think this
20575 configuration is useful to you, please write to autoconf@gnu.org." >&5
20576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20577 whose name does not start with the host triplet. If you think this
20578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20579 ac_tool_warned=yes ;;
20580 esac
20581 KDEINIT=$ac_pt_KDEINIT
20583 else
20584 KDEINIT="$ac_cv_path_KDEINIT"
20587 if test ! x"${KDEINIT}" = xNo; then
20588 KDEDIR=$(${DIRNAME} ${KDEINIT})
20589 KDEDIR=$(${DIRNAME} ${KDEDIR})
20594 ac_ext=c
20595 ac_cpp='$CPP $CPPFLAGS'
20596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602 if test "${USE_MISDN}" != "no"; then
20603 pbxlibdir=""
20604 if test "x${MISDN_DIR}" != "x"; then
20605 if test -d ${MISDN_DIR}/lib; then
20606 pbxlibdir="-L${MISDN_DIR}/lib"
20607 else
20608 pbxlibdir="-L${MISDN_DIR}"
20611 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20612 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20613 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616 ac_check_lib_save_LIBS=$LIBS
20617 LIBS="-lmISDN ${pbxlibdir} $LIBS"
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* Override any GCC internal prototype to avoid an error.
20626 Use char because int might match the return type of a GCC
20627 builtin and then its argument prototype would still apply. */
20628 #ifdef __cplusplus
20629 extern "C"
20630 #endif
20631 char mISDN_open ();
20633 main ()
20635 return mISDN_open ();
20637 return 0;
20639 _ACEOF
20640 rm -f conftest.$ac_objext conftest$ac_exeext
20641 if { (ac_try="$ac_link"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_link") 2>conftest.er1
20648 ac_status=$?
20649 grep -v '^ *+' conftest.er1 >conftest.err
20650 rm -f conftest.er1
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest$ac_exeext &&
20657 $as_test_x conftest$ac_exeext; then
20658 ac_cv_lib_mISDN_mISDN_open=yes
20659 else
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_mISDN_mISDN_open=no
20666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20667 conftest$ac_exeext conftest.$ac_ext
20668 LIBS=$ac_check_lib_save_LIBS
20670 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20671 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20672 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20673 AST_MISDN_FOUND=yes
20674 else
20675 AST_MISDN_FOUND=no
20679 if test "${AST_MISDN_FOUND}" = "yes"; then
20680 MISDN_LIB="-lmISDN "
20681 MISDN_HEADER_FOUND="1"
20682 if test "x${MISDN_DIR}" != "x"; then
20683 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20684 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20685 saved_cppflags="${CPPFLAGS}"
20686 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20687 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20688 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20691 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 ac_res=`eval echo '${'$as_ac_Header'}'`
20696 { echo "$as_me:$LINENO: result: $ac_res" >&5
20697 echo "${ECHO_T}$ac_res" >&6; }
20698 else
20699 # Is the header compilable?
20700 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20701 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h. */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 $ac_includes_default
20709 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20710 _ACEOF
20711 rm -f conftest.$ac_objext
20712 if { (ac_try="$ac_compile"
20713 case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_compile") 2>conftest.er1
20719 ac_status=$?
20720 grep -v '^ *+' conftest.er1 >conftest.err
20721 rm -f conftest.er1
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } && {
20725 test -z "$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20727 } && test -s conftest.$ac_objext; then
20728 ac_header_compiler=yes
20729 else
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_header_compiler=no
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20738 echo "${ECHO_T}$ac_header_compiler" >&6; }
20740 # Is the header present?
20741 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20742 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20743 cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h. */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20750 _ACEOF
20751 if { (ac_try="$ac_cpp conftest.$ac_ext"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } >/dev/null && {
20764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 }; then
20767 ac_header_preproc=yes
20768 else
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 ac_header_preproc=no
20775 rm -f conftest.err conftest.$ac_ext
20776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20777 echo "${ECHO_T}$ac_header_preproc" >&6; }
20779 # So? What about this header?
20780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20781 yes:no: )
20782 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20783 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20785 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20786 ac_header_preproc=yes
20788 no:yes:* )
20789 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20790 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20792 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20794 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20796 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20798 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20800 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20801 ( cat <<\_ASBOX
20802 ## ------------------------------- ##
20803 ## Report this to www.asterisk.org ##
20804 ## ------------------------------- ##
20805 _ASBOX
20806 ) | sed "s/^/$as_me: WARNING: /" >&2
20808 esac
20809 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20810 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814 eval "$as_ac_Header=\$ac_header_preproc"
20816 ac_res=`eval echo '${'$as_ac_Header'}'`
20817 { echo "$as_me:$LINENO: result: $ac_res" >&5
20818 echo "${ECHO_T}$ac_res" >&6; }
20821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20822 MISDN_HEADER_FOUND=1
20823 else
20824 MISDN_HEADER_FOUND=0
20829 CPPFLAGS="${saved_cppflags}"
20830 else
20831 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20832 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20833 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20834 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20835 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20839 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20840 else
20841 # Is the header compilable?
20842 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20843 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 $ac_includes_default
20851 #include <mISDNuser/mISDNlib.h>
20852 _ACEOF
20853 rm -f conftest.$ac_objext
20854 if { (ac_try="$ac_compile"
20855 case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858 esac
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_compile") 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest.$ac_objext; then
20870 ac_header_compiler=yes
20871 else
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_header_compiler=no
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20880 echo "${ECHO_T}$ac_header_compiler" >&6; }
20882 # Is the header present?
20883 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20884 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h. */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 #include <mISDNuser/mISDNlib.h>
20892 _ACEOF
20893 if { (ac_try="$ac_cpp conftest.$ac_ext"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } >/dev/null && {
20906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 }; then
20909 ac_header_preproc=yes
20910 else
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_header_preproc=no
20917 rm -f conftest.err conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20919 echo "${ECHO_T}$ac_header_preproc" >&6; }
20921 # So? What about this header?
20922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20923 yes:no: )
20924 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20925 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20927 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20928 ac_header_preproc=yes
20930 no:yes:* )
20931 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20932 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20934 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20936 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20938 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20940 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20942 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20943 ( cat <<\_ASBOX
20944 ## ------------------------------- ##
20945 ## Report this to www.asterisk.org ##
20946 ## ------------------------------- ##
20947 _ASBOX
20948 ) | sed "s/^/$as_me: WARNING: /" >&2
20950 esac
20951 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20952 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20953 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20958 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20959 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20962 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20963 MISDN_HEADER_FOUND=1
20964 else
20965 MISDN_HEADER_FOUND=0
20971 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20972 if test -n "${MISDN_MANDATORY}" ;
20973 then
20974 { echo "$as_me:$LINENO: ***" >&5
20975 echo "$as_me: ***" >&6;}
20976 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20977 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20978 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20979 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20980 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20981 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20982 exit 1
20984 MISDN_LIB=""
20985 MISDN_INCLUDE=""
20986 PBX_MISDN=0
20987 else
20988 PBX_MISDN=1
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_MISDN 1
20992 _ACEOF
20995 elif test -n "${MISDN_MANDATORY}";
20996 then
20997 { echo "$as_me:$LINENO: ***" >&5
20998 echo "$as_me: ***" >&6;}
20999 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
21000 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
21001 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21002 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21003 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
21004 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
21005 exit 1
21010 if test "${PBX_MISDN}" = 1; then
21012 if test "${USE_ISDNNET}" != "no"; then
21013 pbxlibdir=""
21014 if test "x${ISDNNET_DIR}" != "x"; then
21015 if test -d ${ISDNNET_DIR}/lib; then
21016 pbxlibdir="-L${ISDNNET_DIR}/lib"
21017 else
21018 pbxlibdir="-L${ISDNNET_DIR}"
21021 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
21022 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
21023 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 else
21026 ac_check_lib_save_LIBS=$LIBS
21027 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21035 /* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21038 #ifdef __cplusplus
21039 extern "C"
21040 #endif
21041 char init_manager ();
21043 main ()
21045 return init_manager ();
21047 return 0;
21049 _ACEOF
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (ac_try="$ac_link"
21052 case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_link") 2>conftest.er1
21058 ac_status=$?
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest$ac_exeext &&
21067 $as_test_x conftest$ac_exeext; then
21068 ac_cv_lib_isdnnet_init_manager=yes
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_cv_lib_isdnnet_init_manager=no
21076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21077 conftest$ac_exeext conftest.$ac_ext
21078 LIBS=$ac_check_lib_save_LIBS
21080 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
21081 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
21082 if test $ac_cv_lib_isdnnet_init_manager = yes; then
21083 AST_ISDNNET_FOUND=yes
21084 else
21085 AST_ISDNNET_FOUND=no
21089 if test "${AST_ISDNNET_FOUND}" = "yes"; then
21090 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
21091 ISDNNET_HEADER_FOUND="1"
21092 if test "x${ISDNNET_DIR}" != "x"; then
21093 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
21094 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
21095 saved_cppflags="${CPPFLAGS}"
21096 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
21097 if test "xmISDNuser/isdn_net.h" != "x" ; then
21098 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
21099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21100 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21101 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 ac_res=`eval echo '${'$as_ac_Header'}'`
21106 { echo "$as_me:$LINENO: result: $ac_res" >&5
21107 echo "${ECHO_T}$ac_res" >&6; }
21108 else
21109 # Is the header compilable?
21110 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
21111 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 $ac_includes_default
21119 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
21120 _ACEOF
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
21138 ac_header_compiler=yes
21139 else
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_compiler=no
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148 echo "${ECHO_T}$ac_header_compiler" >&6; }
21150 # Is the header present?
21151 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
21152 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h. */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
21160 _ACEOF
21161 if { (ac_try="$ac_cpp conftest.$ac_ext"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21168 ac_status=$?
21169 grep -v '^ *+' conftest.er1 >conftest.err
21170 rm -f conftest.er1
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } >/dev/null && {
21174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 }; then
21177 ac_header_preproc=yes
21178 else
21179 echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 ac_header_preproc=no
21185 rm -f conftest.err conftest.$ac_ext
21186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21187 echo "${ECHO_T}$ac_header_preproc" >&6; }
21189 # So? What about this header?
21190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21191 yes:no: )
21192 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21193 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21195 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21196 ac_header_preproc=yes
21198 no:yes:* )
21199 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21200 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21201 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21202 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21203 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21204 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21206 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21208 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21210 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21211 ( cat <<\_ASBOX
21212 ## ------------------------------- ##
21213 ## Report this to www.asterisk.org ##
21214 ## ------------------------------- ##
21215 _ASBOX
21216 ) | sed "s/^/$as_me: WARNING: /" >&2
21218 esac
21219 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21220 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224 eval "$as_ac_Header=\$ac_header_preproc"
21226 ac_res=`eval echo '${'$as_ac_Header'}'`
21227 { echo "$as_me:$LINENO: result: $ac_res" >&5
21228 echo "${ECHO_T}$ac_res" >&6; }
21231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21232 ISDNNET_HEADER_FOUND=1
21233 else
21234 ISDNNET_HEADER_FOUND=0
21239 CPPFLAGS="${saved_cppflags}"
21240 else
21241 if test "xmISDNuser/isdn_net.h" != "x" ; then
21242 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21243 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21244 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21245 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21249 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21250 else
21251 # Is the header compilable?
21252 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21253 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h. */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 $ac_includes_default
21261 #include <mISDNuser/isdn_net.h>
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_header_compiler=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_compiler=no
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6; }
21292 # Is the header present?
21293 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21294 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <mISDNuser/isdn_net.h>
21302 _ACEOF
21303 if { (ac_try="$ac_cpp conftest.$ac_ext"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } >/dev/null && {
21316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 }; then
21319 ac_header_preproc=yes
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_preproc=no
21327 rm -f conftest.err conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329 echo "${ECHO_T}$ac_header_preproc" >&6; }
21331 # So? What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21333 yes:no: )
21334 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21335 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21337 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21338 ac_header_preproc=yes
21340 no:yes:* )
21341 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21342 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21344 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21346 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21348 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21350 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21352 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21353 ( cat <<\_ASBOX
21354 ## ------------------------------- ##
21355 ## Report this to www.asterisk.org ##
21356 ## ------------------------------- ##
21357 _ASBOX
21358 ) | sed "s/^/$as_me: WARNING: /" >&2
21360 esac
21361 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21362 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21363 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
21368 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21369 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21372 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21373 ISDNNET_HEADER_FOUND=1
21374 else
21375 ISDNNET_HEADER_FOUND=0
21381 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21382 if test -n "${ISDNNET_MANDATORY}" ;
21383 then
21384 { echo "$as_me:$LINENO: ***" >&5
21385 echo "$as_me: ***" >&6;}
21386 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21387 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21388 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21389 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21390 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21391 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21392 exit 1
21394 ISDNNET_LIB=""
21395 ISDNNET_INCLUDE=""
21396 PBX_ISDNNET=0
21397 else
21398 PBX_ISDNNET=1
21400 cat >>confdefs.h <<_ACEOF
21401 #define HAVE_ISDNNET 1
21402 _ACEOF
21405 elif test -n "${ISDNNET_MANDATORY}";
21406 then
21407 { echo "$as_me:$LINENO: ***" >&5
21408 echo "$as_me: ***" >&6;}
21409 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21410 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21411 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21412 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21413 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21414 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21415 exit 1
21420 if test "${USE_SUPPSERV}" != "no"; then
21421 pbxlibdir=""
21422 if test "x${SUPPSERV_DIR}" != "x"; then
21423 if test -d ${SUPPSERV_DIR}/lib; then
21424 pbxlibdir="-L${SUPPSERV_DIR}/lib"
21425 else
21426 pbxlibdir="-L${SUPPSERV_DIR}"
21429 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21430 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21431 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434 ac_check_lib_save_LIBS=$LIBS
21435 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446 #ifdef __cplusplus
21447 extern "C"
21448 #endif
21449 char encodeFac ();
21451 main ()
21453 return encodeFac ();
21455 return 0;
21457 _ACEOF
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (ac_try="$ac_link"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_link") 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest$ac_exeext &&
21475 $as_test_x conftest$ac_exeext; then
21476 ac_cv_lib_suppserv_encodeFac=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_cv_lib_suppserv_encodeFac=no
21484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21485 conftest$ac_exeext conftest.$ac_ext
21486 LIBS=$ac_check_lib_save_LIBS
21488 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21489 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21490 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21491 AST_SUPPSERV_FOUND=yes
21492 else
21493 AST_SUPPSERV_FOUND=no
21497 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21498 SUPPSERV_LIB="-lsuppserv "
21499 SUPPSERV_HEADER_FOUND="1"
21500 if test "x${SUPPSERV_DIR}" != "x"; then
21501 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21502 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21503 saved_cppflags="${CPPFLAGS}"
21504 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21505 if test "xmISDNuser/suppserv.h" != "x" ; then
21506 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
21507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21508 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21509 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 ac_res=`eval echo '${'$as_ac_Header'}'`
21514 { echo "$as_me:$LINENO: result: $ac_res" >&5
21515 echo "${ECHO_T}$ac_res" >&6; }
21516 else
21517 # Is the header compilable?
21518 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21519 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21520 cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h. */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 $ac_includes_default
21527 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21528 _ACEOF
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_compile") 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && {
21543 test -z "$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 } && test -s conftest.$ac_objext; then
21546 ac_header_compiler=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_header_compiler=no
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21556 echo "${ECHO_T}$ac_header_compiler" >&6; }
21558 # Is the header present?
21559 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21560 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21561 cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h. */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21568 _ACEOF
21569 if { (ac_try="$ac_cpp conftest.$ac_ext"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } >/dev/null && {
21582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 }; then
21585 ac_header_preproc=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_header_preproc=no
21593 rm -f conftest.err conftest.$ac_ext
21594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21595 echo "${ECHO_T}$ac_header_preproc" >&6; }
21597 # So? What about this header?
21598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21599 yes:no: )
21600 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21601 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21603 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21604 ac_header_preproc=yes
21606 no:yes:* )
21607 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21608 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21610 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21612 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21614 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21616 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21618 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21619 ( cat <<\_ASBOX
21620 ## ------------------------------- ##
21621 ## Report this to www.asterisk.org ##
21622 ## ------------------------------- ##
21623 _ASBOX
21624 ) | sed "s/^/$as_me: WARNING: /" >&2
21626 esac
21627 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21628 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632 eval "$as_ac_Header=\$ac_header_preproc"
21634 ac_res=`eval echo '${'$as_ac_Header'}'`
21635 { echo "$as_me:$LINENO: result: $ac_res" >&5
21636 echo "${ECHO_T}$ac_res" >&6; }
21639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21640 SUPPSERV_HEADER_FOUND=1
21641 else
21642 SUPPSERV_HEADER_FOUND=0
21647 CPPFLAGS="${saved_cppflags}"
21648 else
21649 if test "xmISDNuser/suppserv.h" != "x" ; then
21650 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21651 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21652 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21653 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21657 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21658 else
21659 # Is the header compilable?
21660 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21661 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21662 cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h. */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 $ac_includes_default
21669 #include <mISDNuser/suppserv.h>
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.$ac_objext; then
21688 ac_header_compiler=yes
21689 else
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_header_compiler=no
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21698 echo "${ECHO_T}$ac_header_compiler" >&6; }
21700 # Is the header present?
21701 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21702 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21703 cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h. */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 #include <mISDNuser/suppserv.h>
21710 _ACEOF
21711 if { (ac_try="$ac_cpp conftest.$ac_ext"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } >/dev/null && {
21724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 }; then
21727 ac_header_preproc=yes
21728 else
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_header_preproc=no
21735 rm -f conftest.err conftest.$ac_ext
21736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21737 echo "${ECHO_T}$ac_header_preproc" >&6; }
21739 # So? What about this header?
21740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21741 yes:no: )
21742 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21743 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21745 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21746 ac_header_preproc=yes
21748 no:yes:* )
21749 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21750 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21752 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21754 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21756 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21758 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21760 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21761 ( cat <<\_ASBOX
21762 ## ------------------------------- ##
21763 ## Report this to www.asterisk.org ##
21764 ## ------------------------------- ##
21765 _ASBOX
21766 ) | sed "s/^/$as_me: WARNING: /" >&2
21768 esac
21769 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21770 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21771 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21776 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21777 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21780 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21781 SUPPSERV_HEADER_FOUND=1
21782 else
21783 SUPPSERV_HEADER_FOUND=0
21789 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21790 if test -n "${SUPPSERV_MANDATORY}" ;
21791 then
21792 { echo "$as_me:$LINENO: ***" >&5
21793 echo "$as_me: ***" >&6;}
21794 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21795 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21796 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21797 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21798 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21799 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21800 exit 1
21802 SUPPSERV_LIB=""
21803 SUPPSERV_INCLUDE=""
21804 PBX_SUPPSERV=0
21805 else
21806 PBX_SUPPSERV=1
21808 cat >>confdefs.h <<_ACEOF
21809 #define HAVE_SUPPSERV 1
21810 _ACEOF
21813 elif test -n "${SUPPSERV_MANDATORY}";
21814 then
21815 { echo "$as_me:$LINENO: ***" >&5
21816 echo "$as_me: ***" >&6;}
21817 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21818 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21819 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21820 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21821 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21822 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21823 exit 1
21827 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21828 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21829 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21830 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21834 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21835 else
21836 # Is the header compilable?
21837 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21838 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 $ac_includes_default
21846 #include <linux/mISDNdsp.h>
21847 _ACEOF
21848 rm -f conftest.$ac_objext
21849 if { (ac_try="$ac_compile"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_compile") 2>conftest.er1
21856 ac_status=$?
21857 grep -v '^ *+' conftest.er1 >conftest.err
21858 rm -f conftest.er1
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } && {
21862 test -z "$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 } && test -s conftest.$ac_objext; then
21865 ac_header_compiler=yes
21866 else
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_header_compiler=no
21873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21875 echo "${ECHO_T}$ac_header_compiler" >&6; }
21877 # Is the header present?
21878 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21879 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h. */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <linux/mISDNdsp.h>
21887 _ACEOF
21888 if { (ac_try="$ac_cpp conftest.$ac_ext"
21889 case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21892 esac
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21895 ac_status=$?
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } >/dev/null && {
21901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21903 }; then
21904 ac_header_preproc=yes
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_header_preproc=no
21912 rm -f conftest.err conftest.$ac_ext
21913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21914 echo "${ECHO_T}$ac_header_preproc" >&6; }
21916 # So? What about this header?
21917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21918 yes:no: )
21919 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21920 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21922 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21923 ac_header_preproc=yes
21925 no:yes:* )
21926 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21927 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21929 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21931 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21933 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21935 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21937 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21938 ( cat <<\_ASBOX
21939 ## ------------------------------- ##
21940 ## Report this to www.asterisk.org ##
21941 ## ------------------------------- ##
21942 _ASBOX
21943 ) | sed "s/^/$as_me: WARNING: /" >&2
21945 esac
21946 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21947 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21948 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21953 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21954 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21957 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21959 cat >>confdefs.h <<_ACEOF
21960 #define MISDN_1_2 1
21961 _ACEOF
21969 if test "${USE_NBS}" != "no"; then
21970 pbxlibdir=""
21971 if test "x${NBS_DIR}" != "x"; then
21972 if test -d ${NBS_DIR}/lib; then
21973 pbxlibdir="-L${NBS_DIR}/lib"
21974 else
21975 pbxlibdir="-L${NBS_DIR}"
21978 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21979 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21980 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 ac_check_lib_save_LIBS=$LIBS
21984 LIBS="-lnbs ${pbxlibdir} $LIBS"
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21992 /* Override any GCC internal prototype to avoid an error.
21993 Use char because int might match the return type of a GCC
21994 builtin and then its argument prototype would still apply. */
21995 #ifdef __cplusplus
21996 extern "C"
21997 #endif
21998 char nbs_connect ();
22000 main ()
22002 return nbs_connect ();
22004 return 0;
22006 _ACEOF
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_link") 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest$ac_exeext &&
22024 $as_test_x conftest$ac_exeext; then
22025 ac_cv_lib_nbs_nbs_connect=yes
22026 else
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_cv_lib_nbs_nbs_connect=no
22033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22034 conftest$ac_exeext conftest.$ac_ext
22035 LIBS=$ac_check_lib_save_LIBS
22037 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
22038 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
22039 if test $ac_cv_lib_nbs_nbs_connect = yes; then
22040 AST_NBS_FOUND=yes
22041 else
22042 AST_NBS_FOUND=no
22046 if test "${AST_NBS_FOUND}" = "yes"; then
22047 NBS_LIB="-lnbs "
22048 NBS_HEADER_FOUND="1"
22049 if test "x${NBS_DIR}" != "x"; then
22050 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
22051 NBS_INCLUDE="-I${NBS_DIR}/include"
22052 saved_cppflags="${CPPFLAGS}"
22053 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
22054 if test "xnbs.h" != "x" ; then
22055 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
22058 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
22059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 ac_res=`eval echo '${'$as_ac_Header'}'`
22063 { echo "$as_me:$LINENO: result: $ac_res" >&5
22064 echo "${ECHO_T}$ac_res" >&6; }
22065 else
22066 # Is the header compilable?
22067 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
22068 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h. */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22076 #include <${NBS_DIR}/include/nbs.h>
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22086 ac_status=$?
22087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.$ac_objext; then
22095 ac_header_compiler=yes
22096 else
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_header_compiler=no
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22105 echo "${ECHO_T}$ac_header_compiler" >&6; }
22107 # Is the header present?
22108 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
22109 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h. */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 #include <${NBS_DIR}/include/nbs.h>
22117 _ACEOF
22118 if { (ac_try="$ac_cpp conftest.$ac_ext"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22125 ac_status=$?
22126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } >/dev/null && {
22131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 }; then
22134 ac_header_preproc=yes
22135 else
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 ac_header_preproc=no
22142 rm -f conftest.err conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22144 echo "${ECHO_T}$ac_header_preproc" >&6; }
22146 # So? What about this header?
22147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148 yes:no: )
22149 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22150 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
22152 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
22153 ac_header_preproc=yes
22155 no:yes:* )
22156 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
22157 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
22158 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
22159 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
22160 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
22161 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
22162 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22163 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22164 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
22165 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
22167 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
22168 ( cat <<\_ASBOX
22169 ## ------------------------------- ##
22170 ## Report this to www.asterisk.org ##
22171 ## ------------------------------- ##
22172 _ASBOX
22173 ) | sed "s/^/$as_me: WARNING: /" >&2
22175 esac
22176 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
22177 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
22178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181 eval "$as_ac_Header=\$ac_header_preproc"
22183 ac_res=`eval echo '${'$as_ac_Header'}'`
22184 { echo "$as_me:$LINENO: result: $ac_res" >&5
22185 echo "${ECHO_T}$ac_res" >&6; }
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189 NBS_HEADER_FOUND=1
22190 else
22191 NBS_HEADER_FOUND=0
22196 CPPFLAGS="${saved_cppflags}"
22197 else
22198 if test "xnbs.h" != "x" ; then
22199 if test "${ac_cv_header_nbs_h+set}" = set; then
22200 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22201 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22202 if test "${ac_cv_header_nbs_h+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22206 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22207 else
22208 # Is the header compilable?
22209 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
22210 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h. */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 $ac_includes_default
22218 #include <nbs.h>
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22228 ac_status=$?
22229 grep -v '^ *+' conftest.er1 >conftest.err
22230 rm -f conftest.er1
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_header_compiler=yes
22238 else
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_header_compiler=no
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22247 echo "${ECHO_T}$ac_header_compiler" >&6; }
22249 # Is the header present?
22250 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22251 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <nbs.h>
22259 _ACEOF
22260 if { (ac_try="$ac_cpp conftest.$ac_ext"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } >/dev/null && {
22273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22275 }; then
22276 ac_header_preproc=yes
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ac_header_preproc=no
22284 rm -f conftest.err conftest.$ac_ext
22285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22286 echo "${ECHO_T}$ac_header_preproc" >&6; }
22288 # So? What about this header?
22289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22290 yes:no: )
22291 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22292 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22294 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22295 ac_header_preproc=yes
22297 no:yes:* )
22298 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22299 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22301 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22303 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22305 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22307 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22309 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22310 ( cat <<\_ASBOX
22311 ## ------------------------------- ##
22312 ## Report this to www.asterisk.org ##
22313 ## ------------------------------- ##
22314 _ASBOX
22315 ) | sed "s/^/$as_me: WARNING: /" >&2
22317 esac
22318 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22319 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22320 if test "${ac_cv_header_nbs_h+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323 ac_cv_header_nbs_h=$ac_header_preproc
22325 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22326 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22329 if test $ac_cv_header_nbs_h = yes; then
22330 NBS_HEADER_FOUND=1
22331 else
22332 NBS_HEADER_FOUND=0
22338 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22339 if test -n "${NBS_MANDATORY}" ;
22340 then
22341 { echo "$as_me:$LINENO: ***" >&5
22342 echo "$as_me: ***" >&6;}
22343 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22344 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22345 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22346 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22347 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22348 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22349 exit 1
22351 NBS_LIB=""
22352 NBS_INCLUDE=""
22353 PBX_NBS=0
22354 else
22355 PBX_NBS=1
22357 cat >>confdefs.h <<_ACEOF
22358 #define HAVE_NBS 1
22359 _ACEOF
22362 elif test -n "${NBS_MANDATORY}";
22363 then
22364 { echo "$as_me:$LINENO: ***" >&5
22365 echo "$as_me: ***" >&6;}
22366 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22367 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22368 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22369 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22370 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22371 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22372 exit 1
22378 if test "${USE_NCURSES}" != "no"; then
22379 pbxlibdir=""
22380 if test "x${NCURSES_DIR}" != "x"; then
22381 if test -d ${NCURSES_DIR}/lib; then
22382 pbxlibdir="-L${NCURSES_DIR}/lib"
22383 else
22384 pbxlibdir="-L${NCURSES_DIR}"
22387 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22388 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22389 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392 ac_check_lib_save_LIBS=$LIBS
22393 LIBS="-lncurses ${pbxlibdir} $LIBS"
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22401 /* Override any GCC internal prototype to avoid an error.
22402 Use char because int might match the return type of a GCC
22403 builtin and then its argument prototype would still apply. */
22404 #ifdef __cplusplus
22405 extern "C"
22406 #endif
22407 char initscr ();
22409 main ()
22411 return initscr ();
22413 return 0;
22415 _ACEOF
22416 rm -f conftest.$ac_objext conftest$ac_exeext
22417 if { (ac_try="$ac_link"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_link") 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest$ac_exeext &&
22433 $as_test_x conftest$ac_exeext; then
22434 ac_cv_lib_ncurses_initscr=yes
22435 else
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_cv_lib_ncurses_initscr=no
22442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22443 conftest$ac_exeext conftest.$ac_ext
22444 LIBS=$ac_check_lib_save_LIBS
22446 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22447 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22448 if test $ac_cv_lib_ncurses_initscr = yes; then
22449 AST_NCURSES_FOUND=yes
22450 else
22451 AST_NCURSES_FOUND=no
22455 if test "${AST_NCURSES_FOUND}" = "yes"; then
22456 NCURSES_LIB="-lncurses "
22457 NCURSES_HEADER_FOUND="1"
22458 if test "x${NCURSES_DIR}" != "x"; then
22459 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22460 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22461 saved_cppflags="${CPPFLAGS}"
22462 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22463 if test "xcurses.h" != "x" ; then
22464 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
22465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22466 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22467 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 ac_res=`eval echo '${'$as_ac_Header'}'`
22472 { echo "$as_me:$LINENO: result: $ac_res" >&5
22473 echo "${ECHO_T}$ac_res" >&6; }
22474 else
22475 # Is the header compilable?
22476 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22477 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22478 cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h. */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22485 #include <${NCURSES_DIR}/include/curses.h>
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 ac_header_compiler=yes
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ac_header_compiler=no
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22514 echo "${ECHO_T}$ac_header_compiler" >&6; }
22516 # Is the header present?
22517 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22518 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22519 cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h. */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 #include <${NCURSES_DIR}/include/curses.h>
22526 _ACEOF
22527 if { (ac_try="$ac_cpp conftest.$ac_ext"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22534 ac_status=$?
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } >/dev/null && {
22540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 }; then
22543 ac_header_preproc=yes
22544 else
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_header_preproc=no
22551 rm -f conftest.err conftest.$ac_ext
22552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22553 echo "${ECHO_T}$ac_header_preproc" >&6; }
22555 # So? What about this header?
22556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22557 yes:no: )
22558 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22559 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22560 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22561 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22562 ac_header_preproc=yes
22564 no:yes:* )
22565 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22566 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22567 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22568 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22569 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22570 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22571 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22572 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22573 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22574 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22576 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22577 ( cat <<\_ASBOX
22578 ## ------------------------------- ##
22579 ## Report this to www.asterisk.org ##
22580 ## ------------------------------- ##
22581 _ASBOX
22582 ) | sed "s/^/$as_me: WARNING: /" >&2
22584 esac
22585 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22586 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 else
22590 eval "$as_ac_Header=\$ac_header_preproc"
22592 ac_res=`eval echo '${'$as_ac_Header'}'`
22593 { echo "$as_me:$LINENO: result: $ac_res" >&5
22594 echo "${ECHO_T}$ac_res" >&6; }
22597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22598 NCURSES_HEADER_FOUND=1
22599 else
22600 NCURSES_HEADER_FOUND=0
22605 CPPFLAGS="${saved_cppflags}"
22606 else
22607 if test "xcurses.h" != "x" ; then
22608 if test "${ac_cv_header_curses_h+set}" = set; then
22609 { echo "$as_me:$LINENO: checking for curses.h" >&5
22610 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22611 if test "${ac_cv_header_curses_h+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22615 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22616 else
22617 # Is the header compilable?
22618 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22619 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22620 cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h. */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 $ac_includes_default
22627 #include <curses.h>
22628 _ACEOF
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634 esac
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22637 ac_status=$?
22638 grep -v '^ *+' conftest.er1 >conftest.err
22639 rm -f conftest.er1
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22646 ac_header_compiler=yes
22647 else
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ac_header_compiler=no
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22656 echo "${ECHO_T}$ac_header_compiler" >&6; }
22658 # Is the header present?
22659 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22660 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22661 cat >conftest.$ac_ext <<_ACEOF
22662 /* confdefs.h. */
22663 _ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 #include <curses.h>
22668 _ACEOF
22669 if { (ac_try="$ac_cpp conftest.$ac_ext"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } >/dev/null && {
22682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 }; then
22685 ac_header_preproc=yes
22686 else
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_header_preproc=no
22693 rm -f conftest.err conftest.$ac_ext
22694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22695 echo "${ECHO_T}$ac_header_preproc" >&6; }
22697 # So? What about this header?
22698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22699 yes:no: )
22700 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22701 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22702 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22703 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22704 ac_header_preproc=yes
22706 no:yes:* )
22707 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22708 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22710 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22711 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22712 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22713 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22714 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22716 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22718 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22719 ( cat <<\_ASBOX
22720 ## ------------------------------- ##
22721 ## Report this to www.asterisk.org ##
22722 ## ------------------------------- ##
22723 _ASBOX
22724 ) | sed "s/^/$as_me: WARNING: /" >&2
22726 esac
22727 { echo "$as_me:$LINENO: checking for curses.h" >&5
22728 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22729 if test "${ac_cv_header_curses_h+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732 ac_cv_header_curses_h=$ac_header_preproc
22734 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22735 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22738 if test $ac_cv_header_curses_h = yes; then
22739 NCURSES_HEADER_FOUND=1
22740 else
22741 NCURSES_HEADER_FOUND=0
22747 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22748 if test -n "${NCURSES_MANDATORY}" ;
22749 then
22750 { echo "$as_me:$LINENO: ***" >&5
22751 echo "$as_me: ***" >&6;}
22752 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22753 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22754 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22755 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22756 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22757 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22758 exit 1
22760 NCURSES_LIB=""
22761 NCURSES_INCLUDE=""
22762 PBX_NCURSES=0
22763 else
22764 PBX_NCURSES=1
22766 cat >>confdefs.h <<_ACEOF
22767 #define HAVE_NCURSES 1
22768 _ACEOF
22771 elif test -n "${NCURSES_MANDATORY}";
22772 then
22773 { echo "$as_me:$LINENO: ***" >&5
22774 echo "$as_me: ***" >&6;}
22775 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22776 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22777 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22778 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22779 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22780 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22781 exit 1
22786 NETSNMP_CONFIG=No
22787 if test "${USE_NETSNMP}" != "no"; then
22788 if test "x${NETSNMP_DIR}" != "x"; then
22789 if test -n "$ac_tool_prefix"; then
22790 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22791 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22794 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 else
22797 case $NETSNMP_CONFIG in
22798 [\\/]* | ?:[\\/]*)
22799 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22803 for as_dir in ${NETSNMP_DIR}/bin
22805 IFS=$as_save_IFS
22806 test -z "$as_dir" && as_dir=.
22807 for ac_exec_ext in '' $ac_executable_extensions; do
22808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22809 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22811 break 2
22813 done
22814 done
22815 IFS=$as_save_IFS
22818 esac
22820 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22821 if test -n "$NETSNMP_CONFIG"; then
22822 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22823 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22824 else
22825 { echo "$as_me:$LINENO: result: no" >&5
22826 echo "${ECHO_T}no" >&6; }
22831 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22832 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22833 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22834 set dummy net-snmp-config; ac_word=$2
22835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22837 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840 case $ac_pt_NETSNMP_CONFIG in
22841 [\\/]* | ?:[\\/]*)
22842 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22846 for as_dir in ${NETSNMP_DIR}/bin
22848 IFS=$as_save_IFS
22849 test -z "$as_dir" && as_dir=.
22850 for ac_exec_ext in '' $ac_executable_extensions; do
22851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22852 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22854 break 2
22856 done
22857 done
22858 IFS=$as_save_IFS
22861 esac
22863 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22864 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22865 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22866 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22867 else
22868 { echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6; }
22872 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22873 NETSNMP_CONFIG="No"
22874 else
22875 case $cross_compiling:$ac_tool_warned in
22876 yes:)
22877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22878 whose name does not start with the host triplet. If you think this
22879 configuration is useful to you, please write to autoconf@gnu.org." >&5
22880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22881 whose name does not start with the host triplet. If you think this
22882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22883 ac_tool_warned=yes ;;
22884 esac
22885 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22887 else
22888 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22891 if test x"${NETSNMP_CONFIG}" = xNo; then
22892 { echo "$as_me:$LINENO: ***" >&5
22893 echo "$as_me: ***" >&6;}
22894 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22895 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22896 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22897 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22898 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22899 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22900 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22901 echo "$as_me: *** including --without-netsnmp" >&6;}
22902 exit 1
22904 else
22905 if test -n "$ac_tool_prefix"; then
22906 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22907 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22910 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913 case $NETSNMP_CONFIG in
22914 [\\/]* | ?:[\\/]*)
22915 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22919 for as_dir in $PATH
22921 IFS=$as_save_IFS
22922 test -z "$as_dir" && as_dir=.
22923 for ac_exec_ext in '' $ac_executable_extensions; do
22924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22925 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22927 break 2
22929 done
22930 done
22931 IFS=$as_save_IFS
22934 esac
22936 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22937 if test -n "$NETSNMP_CONFIG"; then
22938 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22939 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22940 else
22941 { echo "$as_me:$LINENO: result: no" >&5
22942 echo "${ECHO_T}no" >&6; }
22947 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22948 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22949 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22950 set dummy net-snmp-config; ac_word=$2
22951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22953 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956 case $ac_pt_NETSNMP_CONFIG in
22957 [\\/]* | ?:[\\/]*)
22958 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962 for as_dir in $PATH
22964 IFS=$as_save_IFS
22965 test -z "$as_dir" && as_dir=.
22966 for ac_exec_ext in '' $ac_executable_extensions; do
22967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22968 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22970 break 2
22972 done
22973 done
22974 IFS=$as_save_IFS
22977 esac
22979 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22980 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22981 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22982 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22983 else
22984 { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22988 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22989 NETSNMP_CONFIG="No"
22990 else
22991 case $cross_compiling:$ac_tool_warned in
22992 yes:)
22993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22994 whose name does not start with the host triplet. If you think this
22995 configuration is useful to you, please write to autoconf@gnu.org." >&5
22996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22997 whose name does not start with the host triplet. If you think this
22998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22999 ac_tool_warned=yes ;;
23000 esac
23001 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
23003 else
23004 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
23009 if test x"${NETSNMP_CONFIG}" != xNo; then
23010 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
23012 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
23013 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
23014 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017 ac_check_lib_save_LIBS=$LIBS
23018 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
23019 cat >conftest.$ac_ext <<_ACEOF
23020 /* confdefs.h. */
23021 _ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h. */
23026 /* Override any GCC internal prototype to avoid an error.
23027 Use char because int might match the return type of a GCC
23028 builtin and then its argument prototype would still apply. */
23029 #ifdef __cplusplus
23030 extern "C"
23031 #endif
23032 char snmp_register_callback ();
23034 main ()
23036 return snmp_register_callback ();
23038 return 0;
23040 _ACEOF
23041 rm -f conftest.$ac_objext conftest$ac_exeext
23042 if { (ac_try="$ac_link"
23043 case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_link") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest$ac_exeext &&
23058 $as_test_x conftest$ac_exeext; then
23059 ac_cv_lib_netsnmp_snmp_register_callback=yes
23060 else
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 ac_cv_lib_netsnmp_snmp_register_callback=no
23067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23068 conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS
23071 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
23072 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
23073 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
23075 cat >>confdefs.h <<_ACEOF
23076 #define HAVE_NETSNMP 1
23077 _ACEOF
23082 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
23083 NETSNMP_LIB="${NETSNMP_libs}"
23084 PBX_NETSNMP=1
23085 elif test -n "${NETSNMP_MANDATORY}";
23086 then
23087 { echo "$as_me:$LINENO: ***" >&5
23088 echo "$as_me: ***" >&6;}
23089 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
23090 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
23091 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23092 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23093 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
23094 echo "$as_me: *** including --without-netsnmp" >&6;}
23095 exit 1
23097 elif test -n "${NETSNMP_MANDATORY}";
23098 then
23099 { echo "$as_me:$LINENO: ***" >&5
23100 echo "$as_me: ***" >&6;}
23101 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
23102 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
23103 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23104 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23105 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
23106 echo "$as_me: *** including --without-netsnmp" >&6;}
23107 exit 1
23111 if test "${USE_NEWT}" != "no"; then
23112 pbxlibdir=""
23113 if test "x${NEWT_DIR}" != "x"; then
23114 if test -d ${NEWT_DIR}/lib; then
23115 pbxlibdir="-L${NEWT_DIR}/lib"
23116 else
23117 pbxlibdir="-L${NEWT_DIR}"
23120 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
23121 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
23122 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125 ac_check_lib_save_LIBS=$LIBS
23126 LIBS="-lnewt ${pbxlibdir} $LIBS"
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h. */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23134 /* Override any GCC internal prototype to avoid an error.
23135 Use char because int might match the return type of a GCC
23136 builtin and then its argument prototype would still apply. */
23137 #ifdef __cplusplus
23138 extern "C"
23139 #endif
23140 char newtBell ();
23142 main ()
23144 return newtBell ();
23146 return 0;
23148 _ACEOF
23149 rm -f conftest.$ac_objext conftest$ac_exeext
23150 if { (ac_try="$ac_link"
23151 case "(($ac_try" in
23152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23153 *) ac_try_echo=$ac_try;;
23154 esac
23155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156 (eval "$ac_link") 2>conftest.er1
23157 ac_status=$?
23158 grep -v '^ *+' conftest.er1 >conftest.err
23159 rm -f conftest.er1
23160 cat conftest.err >&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && {
23163 test -z "$ac_c_werror_flag" ||
23164 test ! -s conftest.err
23165 } && test -s conftest$ac_exeext &&
23166 $as_test_x conftest$ac_exeext; then
23167 ac_cv_lib_newt_newtBell=yes
23168 else
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ac_cv_lib_newt_newtBell=no
23175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23176 conftest$ac_exeext conftest.$ac_ext
23177 LIBS=$ac_check_lib_save_LIBS
23179 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
23180 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
23181 if test $ac_cv_lib_newt_newtBell = yes; then
23182 AST_NEWT_FOUND=yes
23183 else
23184 AST_NEWT_FOUND=no
23188 if test "${AST_NEWT_FOUND}" = "yes"; then
23189 NEWT_LIB="-lnewt "
23190 NEWT_HEADER_FOUND="1"
23191 if test "x${NEWT_DIR}" != "x"; then
23192 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
23193 NEWT_INCLUDE="-I${NEWT_DIR}/include"
23194 saved_cppflags="${CPPFLAGS}"
23195 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
23196 if test "xnewt.h" != "x" ; then
23197 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
23198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23200 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 ac_res=`eval echo '${'$as_ac_Header'}'`
23205 { echo "$as_me:$LINENO: result: $ac_res" >&5
23206 echo "${ECHO_T}$ac_res" >&6; }
23207 else
23208 # Is the header compilable?
23209 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
23210 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h. */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 $ac_includes_default
23218 #include <${NEWT_DIR}/include/newt.h>
23219 _ACEOF
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23225 esac
23226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_compile") 2>conftest.er1
23228 ac_status=$?
23229 grep -v '^ *+' conftest.er1 >conftest.err
23230 rm -f conftest.er1
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } && {
23234 test -z "$ac_c_werror_flag" ||
23235 test ! -s conftest.err
23236 } && test -s conftest.$ac_objext; then
23237 ac_header_compiler=yes
23238 else
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 ac_header_compiler=no
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23247 echo "${ECHO_T}$ac_header_compiler" >&6; }
23249 # Is the header present?
23250 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23251 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h. */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 #include <${NEWT_DIR}/include/newt.h>
23259 _ACEOF
23260 if { (ac_try="$ac_cpp conftest.$ac_ext"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23267 ac_status=$?
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } >/dev/null && {
23273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 }; then
23276 ac_header_preproc=yes
23277 else
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_header_preproc=no
23284 rm -f conftest.err conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286 echo "${ECHO_T}$ac_header_preproc" >&6; }
23288 # So? What about this header?
23289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23290 yes:no: )
23291 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23292 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23293 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23294 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc=yes
23297 no:yes:* )
23298 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23299 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23300 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23301 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23302 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23303 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23304 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23305 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23306 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23307 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23309 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23310 ( cat <<\_ASBOX
23311 ## ------------------------------- ##
23312 ## Report this to www.asterisk.org ##
23313 ## ------------------------------- ##
23314 _ASBOX
23315 ) | sed "s/^/$as_me: WARNING: /" >&2
23317 esac
23318 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23319 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 else
23323 eval "$as_ac_Header=\$ac_header_preproc"
23325 ac_res=`eval echo '${'$as_ac_Header'}'`
23326 { echo "$as_me:$LINENO: result: $ac_res" >&5
23327 echo "${ECHO_T}$ac_res" >&6; }
23330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23331 NEWT_HEADER_FOUND=1
23332 else
23333 NEWT_HEADER_FOUND=0
23338 CPPFLAGS="${saved_cppflags}"
23339 else
23340 if test "xnewt.h" != "x" ; then
23341 if test "${ac_cv_header_newt_h+set}" = set; then
23342 { echo "$as_me:$LINENO: checking for newt.h" >&5
23343 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23344 if test "${ac_cv_header_newt_h+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23348 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23349 else
23350 # Is the header compilable?
23351 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23352 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h. */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 $ac_includes_default
23360 #include <newt.h>
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23370 ac_status=$?
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23379 ac_header_compiler=yes
23380 else
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_header_compiler=no
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23389 echo "${ECHO_T}$ac_header_compiler" >&6; }
23391 # Is the header present?
23392 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23393 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h. */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 #include <newt.h>
23401 _ACEOF
23402 if { (ac_try="$ac_cpp conftest.$ac_ext"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } >/dev/null && {
23415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 }; then
23418 ac_header_preproc=yes
23419 else
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_preproc=no
23426 rm -f conftest.err conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23428 echo "${ECHO_T}$ac_header_preproc" >&6; }
23430 # So? What about this header?
23431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23432 yes:no: )
23433 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23434 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23436 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23437 ac_header_preproc=yes
23439 no:yes:* )
23440 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23441 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23442 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23443 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23445 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23447 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23449 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23451 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23452 ( cat <<\_ASBOX
23453 ## ------------------------------- ##
23454 ## Report this to www.asterisk.org ##
23455 ## ------------------------------- ##
23456 _ASBOX
23457 ) | sed "s/^/$as_me: WARNING: /" >&2
23459 esac
23460 { echo "$as_me:$LINENO: checking for newt.h" >&5
23461 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23462 if test "${ac_cv_header_newt_h+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23464 else
23465 ac_cv_header_newt_h=$ac_header_preproc
23467 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23468 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23471 if test $ac_cv_header_newt_h = yes; then
23472 NEWT_HEADER_FOUND=1
23473 else
23474 NEWT_HEADER_FOUND=0
23480 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23481 if test -n "${NEWT_MANDATORY}" ;
23482 then
23483 { echo "$as_me:$LINENO: ***" >&5
23484 echo "$as_me: ***" >&6;}
23485 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23486 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23487 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23488 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23489 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23490 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23491 exit 1
23493 NEWT_LIB=""
23494 NEWT_INCLUDE=""
23495 PBX_NEWT=0
23496 else
23497 PBX_NEWT=1
23499 cat >>confdefs.h <<_ACEOF
23500 #define HAVE_NEWT 1
23501 _ACEOF
23504 elif test -n "${NEWT_MANDATORY}";
23505 then
23506 { echo "$as_me:$LINENO: ***" >&5
23507 echo "$as_me: ***" >&6;}
23508 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23509 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23510 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23511 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23512 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23513 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23514 exit 1
23520 if test "${USE_UNIXODBC}" != "no"; then
23521 pbxlibdir=""
23522 if test "x${UNIXODBC_DIR}" != "x"; then
23523 if test -d ${UNIXODBC_DIR}/lib; then
23524 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23525 else
23526 pbxlibdir="-L${UNIXODBC_DIR}"
23529 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23530 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23531 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534 ac_check_lib_save_LIBS=$LIBS
23535 LIBS="-lodbc ${pbxlibdir} $LIBS"
23536 cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h. */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23543 /* Override any GCC internal prototype to avoid an error.
23544 Use char because int might match the return type of a GCC
23545 builtin and then its argument prototype would still apply. */
23546 #ifdef __cplusplus
23547 extern "C"
23548 #endif
23549 char SQLConnect ();
23551 main ()
23553 return SQLConnect ();
23555 return 0;
23557 _ACEOF
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_link") 2>conftest.er1
23566 ac_status=$?
23567 grep -v '^ *+' conftest.er1 >conftest.err
23568 rm -f conftest.er1
23569 cat conftest.err >&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest$ac_exeext &&
23575 $as_test_x conftest$ac_exeext; then
23576 ac_cv_lib_odbc_SQLConnect=yes
23577 else
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_cv_lib_odbc_SQLConnect=no
23584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23585 conftest$ac_exeext conftest.$ac_ext
23586 LIBS=$ac_check_lib_save_LIBS
23588 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23589 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23590 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23591 AST_UNIXODBC_FOUND=yes
23592 else
23593 AST_UNIXODBC_FOUND=no
23597 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23598 UNIXODBC_LIB="-lodbc "
23599 UNIXODBC_HEADER_FOUND="1"
23600 if test "x${UNIXODBC_DIR}" != "x"; then
23601 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
23602 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
23603 saved_cppflags="${CPPFLAGS}"
23604 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23605 if test "xsql.h" != "x" ; then
23606 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23608 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23609 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 ac_res=`eval echo '${'$as_ac_Header'}'`
23614 { echo "$as_me:$LINENO: result: $ac_res" >&5
23615 echo "${ECHO_T}$ac_res" >&6; }
23616 else
23617 # Is the header compilable?
23618 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23619 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23620 cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h. */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 $ac_includes_default
23627 #include <${UNIXODBC_DIR}/include/sql.h>
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 ac_header_compiler=yes
23647 else
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ac_header_compiler=no
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23656 echo "${ECHO_T}$ac_header_compiler" >&6; }
23658 # Is the header present?
23659 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23660 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23661 cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h. */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23667 #include <${UNIXODBC_DIR}/include/sql.h>
23668 _ACEOF
23669 if { (ac_try="$ac_cpp conftest.$ac_ext"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23676 ac_status=$?
23677 grep -v '^ *+' conftest.er1 >conftest.err
23678 rm -f conftest.er1
23679 cat conftest.err >&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } >/dev/null && {
23682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 }; then
23685 ac_header_preproc=yes
23686 else
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 ac_header_preproc=no
23693 rm -f conftest.err conftest.$ac_ext
23694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23695 echo "${ECHO_T}$ac_header_preproc" >&6; }
23697 # So? What about this header?
23698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23699 yes:no: )
23700 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23701 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23702 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23703 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23704 ac_header_preproc=yes
23706 no:yes:* )
23707 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23708 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23709 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23710 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23711 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23712 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23713 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23714 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23715 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23716 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23717 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23718 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23719 ( cat <<\_ASBOX
23720 ## ------------------------------- ##
23721 ## Report this to www.asterisk.org ##
23722 ## ------------------------------- ##
23723 _ASBOX
23724 ) | sed "s/^/$as_me: WARNING: /" >&2
23726 esac
23727 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23728 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732 eval "$as_ac_Header=\$ac_header_preproc"
23734 ac_res=`eval echo '${'$as_ac_Header'}'`
23735 { echo "$as_me:$LINENO: result: $ac_res" >&5
23736 echo "${ECHO_T}$ac_res" >&6; }
23739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23740 UNIXODBC_HEADER_FOUND=1
23741 else
23742 UNIXODBC_HEADER_FOUND=0
23747 CPPFLAGS="${saved_cppflags}"
23748 else
23749 if test "xsql.h" != "x" ; then
23750 if test "${ac_cv_header_sql_h+set}" = set; then
23751 { echo "$as_me:$LINENO: checking for sql.h" >&5
23752 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23753 if test "${ac_cv_header_sql_h+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23757 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23758 else
23759 # Is the header compilable?
23760 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23761 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h. */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 $ac_includes_default
23769 #include <sql.h>
23770 _ACEOF
23771 rm -f conftest.$ac_objext
23772 if { (ac_try="$ac_compile"
23773 case "(($ac_try" in
23774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775 *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778 (eval "$ac_compile") 2>conftest.er1
23779 ac_status=$?
23780 grep -v '^ *+' conftest.er1 >conftest.err
23781 rm -f conftest.er1
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } && {
23785 test -z "$ac_c_werror_flag" ||
23786 test ! -s conftest.err
23787 } && test -s conftest.$ac_objext; then
23788 ac_header_compiler=yes
23789 else
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ac_header_compiler=no
23796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23798 echo "${ECHO_T}$ac_header_compiler" >&6; }
23800 # Is the header present?
23801 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23802 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23803 cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h. */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23809 #include <sql.h>
23810 _ACEOF
23811 if { (ac_try="$ac_cpp conftest.$ac_ext"
23812 case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23815 esac
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23818 ac_status=$?
23819 grep -v '^ *+' conftest.er1 >conftest.err
23820 rm -f conftest.er1
23821 cat conftest.err >&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } >/dev/null && {
23824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23825 test ! -s conftest.err
23826 }; then
23827 ac_header_preproc=yes
23828 else
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23832 ac_header_preproc=no
23835 rm -f conftest.err conftest.$ac_ext
23836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23837 echo "${ECHO_T}$ac_header_preproc" >&6; }
23839 # So? What about this header?
23840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23841 yes:no: )
23842 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23843 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23845 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23846 ac_header_preproc=yes
23848 no:yes:* )
23849 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23850 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23851 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23852 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23853 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23854 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23855 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23856 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23857 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23858 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23859 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23860 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23861 ( cat <<\_ASBOX
23862 ## ------------------------------- ##
23863 ## Report this to www.asterisk.org ##
23864 ## ------------------------------- ##
23865 _ASBOX
23866 ) | sed "s/^/$as_me: WARNING: /" >&2
23868 esac
23869 { echo "$as_me:$LINENO: checking for sql.h" >&5
23870 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23871 if test "${ac_cv_header_sql_h+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23874 ac_cv_header_sql_h=$ac_header_preproc
23876 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23877 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23880 if test $ac_cv_header_sql_h = yes; then
23881 UNIXODBC_HEADER_FOUND=1
23882 else
23883 UNIXODBC_HEADER_FOUND=0
23889 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23890 if test -n "${UNIXODBC_MANDATORY}" ;
23891 then
23892 { echo "$as_me:$LINENO: ***" >&5
23893 echo "$as_me: ***" >&6;}
23894 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23895 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23896 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23897 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23898 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23899 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23900 exit 1
23902 UNIXODBC_LIB=""
23903 UNIXODBC_INCLUDE=""
23904 PBX_UNIXODBC=0
23905 else
23906 PBX_UNIXODBC=1
23908 cat >>confdefs.h <<_ACEOF
23909 #define HAVE_UNIXODBC 1
23910 _ACEOF
23913 elif test -n "${UNIXODBC_MANDATORY}";
23914 then
23915 { echo "$as_me:$LINENO: ***" >&5
23916 echo "$as_me: ***" >&6;}
23917 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23918 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23919 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23920 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23921 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23922 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23923 exit 1
23929 if test "${USE_OGG}" != "no"; then
23930 pbxlibdir=""
23931 if test "x${OGG_DIR}" != "x"; then
23932 if test -d ${OGG_DIR}/lib; then
23933 pbxlibdir="-L${OGG_DIR}/lib"
23934 else
23935 pbxlibdir="-L${OGG_DIR}"
23938 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23939 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23940 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23942 else
23943 ac_check_lib_save_LIBS=$LIBS
23944 LIBS="-logg ${pbxlibdir} $LIBS"
23945 cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h. */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23952 /* Override any GCC internal prototype to avoid an error.
23953 Use char because int might match the return type of a GCC
23954 builtin and then its argument prototype would still apply. */
23955 #ifdef __cplusplus
23956 extern "C"
23957 #endif
23958 char ogg_sync_init ();
23960 main ()
23962 return ogg_sync_init ();
23964 return 0;
23966 _ACEOF
23967 rm -f conftest.$ac_objext conftest$ac_exeext
23968 if { (ac_try="$ac_link"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_link") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest$ac_exeext &&
23984 $as_test_x conftest$ac_exeext; then
23985 ac_cv_lib_ogg_ogg_sync_init=yes
23986 else
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_cv_lib_ogg_ogg_sync_init=no
23993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23994 conftest$ac_exeext conftest.$ac_ext
23995 LIBS=$ac_check_lib_save_LIBS
23997 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23998 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23999 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
24000 AST_OGG_FOUND=yes
24001 else
24002 AST_OGG_FOUND=no
24006 if test "${AST_OGG_FOUND}" = "yes"; then
24007 OGG_LIB="-logg "
24008 OGG_HEADER_FOUND="1"
24009 if test "x${OGG_DIR}" != "x"; then
24010 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
24011 OGG_INCLUDE="-I${OGG_DIR}/include"
24012 saved_cppflags="${CPPFLAGS}"
24013 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
24014 if test "x" != "x" ; then
24015 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
24016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24017 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
24018 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
24019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 ac_res=`eval echo '${'$as_ac_Header'}'`
24023 { echo "$as_me:$LINENO: result: $ac_res" >&5
24024 echo "${ECHO_T}$ac_res" >&6; }
24025 else
24026 # Is the header compilable?
24027 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
24028 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
24029 cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h. */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 $ac_includes_default
24036 #include <${OGG_DIR}/include/>
24037 _ACEOF
24038 rm -f conftest.$ac_objext
24039 if { (ac_try="$ac_compile"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_compile") 2>conftest.er1
24046 ac_status=$?
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } && {
24052 test -z "$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 } && test -s conftest.$ac_objext; then
24055 ac_header_compiler=yes
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 ac_header_compiler=no
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24065 echo "${ECHO_T}$ac_header_compiler" >&6; }
24067 # Is the header present?
24068 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
24069 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
24070 cat >conftest.$ac_ext <<_ACEOF
24071 /* confdefs.h. */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24076 #include <${OGG_DIR}/include/>
24077 _ACEOF
24078 if { (ac_try="$ac_cpp conftest.$ac_ext"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24082 esac
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24085 ac_status=$?
24086 grep -v '^ *+' conftest.er1 >conftest.err
24087 rm -f conftest.er1
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } >/dev/null && {
24091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24092 test ! -s conftest.err
24093 }; then
24094 ac_header_preproc=yes
24095 else
24096 echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24099 ac_header_preproc=no
24102 rm -f conftest.err conftest.$ac_ext
24103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24104 echo "${ECHO_T}$ac_header_preproc" >&6; }
24106 # So? What about this header?
24107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24108 yes:no: )
24109 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
24110 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
24111 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
24112 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
24113 ac_header_preproc=yes
24115 no:yes:* )
24116 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
24117 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
24118 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
24119 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
24120 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
24121 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
24122 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
24123 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
24125 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
24127 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
24128 ( cat <<\_ASBOX
24129 ## ------------------------------- ##
24130 ## Report this to www.asterisk.org ##
24131 ## ------------------------------- ##
24132 _ASBOX
24133 ) | sed "s/^/$as_me: WARNING: /" >&2
24135 esac
24136 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
24137 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
24138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 else
24141 eval "$as_ac_Header=\$ac_header_preproc"
24143 ac_res=`eval echo '${'$as_ac_Header'}'`
24144 { echo "$as_me:$LINENO: result: $ac_res" >&5
24145 echo "${ECHO_T}$ac_res" >&6; }
24148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24149 OGG_HEADER_FOUND=1
24150 else
24151 OGG_HEADER_FOUND=0
24156 CPPFLAGS="${saved_cppflags}"
24157 else
24158 if test "x" != "x" ; then
24159 if test "${ac_cv_header_+set}" = set; then
24160 { echo "$as_me:$LINENO: checking for " >&5
24161 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24162 if test "${ac_cv_header_+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24166 echo "${ECHO_T}$ac_cv_header_" >&6; }
24167 else
24168 # Is the header compilable?
24169 { echo "$as_me:$LINENO: checking usability" >&5
24170 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24171 cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h. */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24177 $ac_includes_default
24178 #include <>
24179 _ACEOF
24180 rm -f conftest.$ac_objext
24181 if { (ac_try="$ac_compile"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24185 esac
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24197 ac_header_compiler=yes
24198 else
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24202 ac_header_compiler=no
24205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24207 echo "${ECHO_T}$ac_header_compiler" >&6; }
24209 # Is the header present?
24210 { echo "$as_me:$LINENO: checking presence" >&5
24211 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24212 cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h. */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 #include <>
24219 _ACEOF
24220 if { (ac_try="$ac_cpp conftest.$ac_ext"
24221 case "(($ac_try" in
24222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24224 esac
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24227 ac_status=$?
24228 grep -v '^ *+' conftest.er1 >conftest.err
24229 rm -f conftest.er1
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } >/dev/null && {
24233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 }; then
24236 ac_header_preproc=yes
24237 else
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ac_header_preproc=no
24244 rm -f conftest.err conftest.$ac_ext
24245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24246 echo "${ECHO_T}$ac_header_preproc" >&6; }
24248 # So? What about this header?
24249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24250 yes:no: )
24251 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24252 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24254 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24255 ac_header_preproc=yes
24257 no:yes:* )
24258 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24259 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24260 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24261 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24262 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24263 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24264 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24265 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24266 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24267 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24268 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24269 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24270 ( cat <<\_ASBOX
24271 ## ------------------------------- ##
24272 ## Report this to www.asterisk.org ##
24273 ## ------------------------------- ##
24274 _ASBOX
24275 ) | sed "s/^/$as_me: WARNING: /" >&2
24277 esac
24278 { echo "$as_me:$LINENO: checking for " >&5
24279 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24280 if test "${ac_cv_header_+set}" = set; then
24281 echo $ECHO_N "(cached) $ECHO_C" >&6
24282 else
24283 ac_cv_header_=$ac_header_preproc
24285 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24286 echo "${ECHO_T}$ac_cv_header_" >&6; }
24289 if test $ac_cv_header_ = yes; then
24290 OGG_HEADER_FOUND=1
24291 else
24292 OGG_HEADER_FOUND=0
24298 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24299 if test -n "${OGG_MANDATORY}" ;
24300 then
24301 { echo "$as_me:$LINENO: ***" >&5
24302 echo "$as_me: ***" >&6;}
24303 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24304 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24305 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24306 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24307 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24308 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24309 exit 1
24311 OGG_LIB=""
24312 OGG_INCLUDE=""
24313 PBX_OGG=0
24314 else
24315 PBX_OGG=1
24317 cat >>confdefs.h <<_ACEOF
24318 #define HAVE_OGG 1
24319 _ACEOF
24322 elif test -n "${OGG_MANDATORY}";
24323 then
24324 { echo "$as_me:$LINENO: ***" >&5
24325 echo "$as_me: ***" >&6;}
24326 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24327 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24328 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24329 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24330 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24331 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24332 exit 1
24337 if test "${USE_OSS}" != "no"; then
24338 PBX_OSS=0
24339 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24340 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24341 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24342 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24346 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24347 else
24348 # Is the header compilable?
24349 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24350 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24351 cat >conftest.$ac_ext <<_ACEOF
24352 /* confdefs.h. */
24353 _ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 $ac_includes_default
24358 #include <linux/soundcard.h>
24359 _ACEOF
24360 rm -f conftest.$ac_objext
24361 if { (ac_try="$ac_compile"
24362 case "(($ac_try" in
24363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364 *) ac_try_echo=$ac_try;;
24365 esac
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367 (eval "$ac_compile") 2>conftest.er1
24368 ac_status=$?
24369 grep -v '^ *+' conftest.er1 >conftest.err
24370 rm -f conftest.er1
24371 cat conftest.err >&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } && {
24374 test -z "$ac_c_werror_flag" ||
24375 test ! -s conftest.err
24376 } && test -s conftest.$ac_objext; then
24377 ac_header_compiler=yes
24378 else
24379 echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24382 ac_header_compiler=no
24385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24387 echo "${ECHO_T}$ac_header_compiler" >&6; }
24389 # Is the header present?
24390 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24391 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24392 cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h. */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 #include <linux/soundcard.h>
24399 _ACEOF
24400 if { (ac_try="$ac_cpp conftest.$ac_ext"
24401 case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24404 esac
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24407 ac_status=$?
24408 grep -v '^ *+' conftest.er1 >conftest.err
24409 rm -f conftest.er1
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } >/dev/null && {
24413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24414 test ! -s conftest.err
24415 }; then
24416 ac_header_preproc=yes
24417 else
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24421 ac_header_preproc=no
24424 rm -f conftest.err conftest.$ac_ext
24425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24426 echo "${ECHO_T}$ac_header_preproc" >&6; }
24428 # So? What about this header?
24429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24430 yes:no: )
24431 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24432 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24433 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24434 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24435 ac_header_preproc=yes
24437 no:yes:* )
24438 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24439 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24440 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24441 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24442 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24443 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24444 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24445 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24446 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24447 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24448 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24449 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24450 ( cat <<\_ASBOX
24451 ## ------------------------------- ##
24452 ## Report this to www.asterisk.org ##
24453 ## ------------------------------- ##
24454 _ASBOX
24455 ) | sed "s/^/$as_me: WARNING: /" >&2
24457 esac
24458 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24459 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24460 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24463 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24465 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24466 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24469 if test $ac_cv_header_linux_soundcard_h = yes; then
24471 PBX_OSS=1
24473 cat >>confdefs.h <<_ACEOF
24474 #define HAVE_OSS 1
24475 _ACEOF
24481 if test "$PBX_OSS" = "0"; then
24482 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24483 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24484 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24485 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24489 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24490 else
24491 # Is the header compilable?
24492 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24493 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <sys/soundcard.h>
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24511 ac_status=$?
24512 grep -v '^ *+' conftest.er1 >conftest.err
24513 rm -f conftest.er1
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.$ac_objext; then
24520 ac_header_compiler=yes
24521 else
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_header_compiler=no
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24530 echo "${ECHO_T}$ac_header_compiler" >&6; }
24532 # Is the header present?
24533 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24534 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24535 cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h. */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <sys/soundcard.h>
24542 _ACEOF
24543 if { (ac_try="$ac_cpp conftest.$ac_ext"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24547 esac
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24550 ac_status=$?
24551 grep -v '^ *+' conftest.er1 >conftest.err
24552 rm -f conftest.er1
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } >/dev/null && {
24556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24558 }; then
24559 ac_header_preproc=yes
24560 else
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_header_preproc=no
24567 rm -f conftest.err conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24569 echo "${ECHO_T}$ac_header_preproc" >&6; }
24571 # So? What about this header?
24572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24573 yes:no: )
24574 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24575 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24576 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24577 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24578 ac_header_preproc=yes
24580 no:yes:* )
24581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24582 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24584 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24586 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24588 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24590 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24592 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24593 ( cat <<\_ASBOX
24594 ## ------------------------------- ##
24595 ## Report this to www.asterisk.org ##
24596 ## ------------------------------- ##
24597 _ASBOX
24598 ) | sed "s/^/$as_me: WARNING: /" >&2
24600 esac
24601 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24602 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24603 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 else
24606 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24609 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24612 if test $ac_cv_header_sys_soundcard_h = yes; then
24614 PBX_OSS=1
24616 cat >>confdefs.h <<_ACEOF
24617 #define HAVE_OSS 1
24618 _ACEOF
24625 if test "$PBX_OSS" = "0"; then
24627 if test "${USE_OSS}" != "no"; then
24628 pbxlibdir=""
24629 if test "x${OSS_DIR}" != "x"; then
24630 if test -d ${OSS_DIR}/lib; then
24631 pbxlibdir="-L${OSS_DIR}/lib"
24632 else
24633 pbxlibdir="-L${OSS_DIR}"
24636 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24637 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24638 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24640 else
24641 ac_check_lib_save_LIBS=$LIBS
24642 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h. */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24650 /* Override any GCC internal prototype to avoid an error.
24651 Use char because int might match the return type of a GCC
24652 builtin and then its argument prototype would still apply. */
24653 #ifdef __cplusplus
24654 extern "C"
24655 #endif
24656 char oss_ioctl_mixer ();
24658 main ()
24660 return oss_ioctl_mixer ();
24662 return 0;
24664 _ACEOF
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (ac_try="$ac_link"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_link") 2>conftest.er1
24673 ac_status=$?
24674 grep -v '^ *+' conftest.er1 >conftest.err
24675 rm -f conftest.er1
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest$ac_exeext &&
24682 $as_test_x conftest$ac_exeext; then
24683 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
24684 else
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24688 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
24691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24692 conftest$ac_exeext conftest.$ac_ext
24693 LIBS=$ac_check_lib_save_LIBS
24695 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24696 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24697 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24698 AST_OSS_FOUND=yes
24699 else
24700 AST_OSS_FOUND=no
24704 if test "${AST_OSS_FOUND}" = "yes"; then
24705 OSS_LIB="-lossaudio "
24706 OSS_HEADER_FOUND="1"
24707 if test "x${OSS_DIR}" != "x"; then
24708 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
24709 OSS_INCLUDE="-I${OSS_DIR}/include"
24710 saved_cppflags="${CPPFLAGS}"
24711 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
24712 if test "xsoundcard.h" != "x" ; then
24713 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24715 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24716 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 ac_res=`eval echo '${'$as_ac_Header'}'`
24721 { echo "$as_me:$LINENO: result: $ac_res" >&5
24722 echo "${ECHO_T}$ac_res" >&6; }
24723 else
24724 # Is the header compilable?
24725 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24726 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h. */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 #include <${OSS_DIR}/include/soundcard.h>
24735 _ACEOF
24736 rm -f conftest.$ac_objext
24737 if { (ac_try="$ac_compile"
24738 case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24741 esac
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_compile") 2>conftest.er1
24744 ac_status=$?
24745 grep -v '^ *+' conftest.er1 >conftest.err
24746 rm -f conftest.er1
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && {
24750 test -z "$ac_c_werror_flag" ||
24751 test ! -s conftest.err
24752 } && test -s conftest.$ac_objext; then
24753 ac_header_compiler=yes
24754 else
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_header_compiler=no
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24763 echo "${ECHO_T}$ac_header_compiler" >&6; }
24765 # Is the header present?
24766 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24767 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h. */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <${OSS_DIR}/include/soundcard.h>
24775 _ACEOF
24776 if { (ac_try="$ac_cpp conftest.$ac_ext"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24783 ac_status=$?
24784 grep -v '^ *+' conftest.er1 >conftest.err
24785 rm -f conftest.er1
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } >/dev/null && {
24789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 }; then
24792 ac_header_preproc=yes
24793 else
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ac_header_preproc=no
24800 rm -f conftest.err conftest.$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6; }
24804 # So? What about this header?
24805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24806 yes:no: )
24807 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24810 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24811 ac_header_preproc=yes
24813 no:yes:* )
24814 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24815 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24817 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24819 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24821 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24823 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24825 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24826 ( cat <<\_ASBOX
24827 ## ------------------------------- ##
24828 ## Report this to www.asterisk.org ##
24829 ## ------------------------------- ##
24830 _ASBOX
24831 ) | sed "s/^/$as_me: WARNING: /" >&2
24833 esac
24834 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24835 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839 eval "$as_ac_Header=\$ac_header_preproc"
24841 ac_res=`eval echo '${'$as_ac_Header'}'`
24842 { echo "$as_me:$LINENO: result: $ac_res" >&5
24843 echo "${ECHO_T}$ac_res" >&6; }
24846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24847 OSS_HEADER_FOUND=1
24848 else
24849 OSS_HEADER_FOUND=0
24854 CPPFLAGS="${saved_cppflags}"
24855 else
24856 if test "xsoundcard.h" != "x" ; then
24857 if test "${ac_cv_header_soundcard_h+set}" = set; then
24858 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24859 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24860 if test "${ac_cv_header_soundcard_h+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24864 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24865 else
24866 # Is the header compilable?
24867 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24868 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24869 cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h. */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 $ac_includes_default
24876 #include <soundcard.h>
24877 _ACEOF
24878 rm -f conftest.$ac_objext
24879 if { (ac_try="$ac_compile"
24880 case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24883 esac
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885 (eval "$ac_compile") 2>conftest.er1
24886 ac_status=$?
24887 grep -v '^ *+' conftest.er1 >conftest.err
24888 rm -f conftest.er1
24889 cat conftest.err >&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } && {
24892 test -z "$ac_c_werror_flag" ||
24893 test ! -s conftest.err
24894 } && test -s conftest.$ac_objext; then
24895 ac_header_compiler=yes
24896 else
24897 echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24900 ac_header_compiler=no
24903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24905 echo "${ECHO_T}$ac_header_compiler" >&6; }
24907 # Is the header present?
24908 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24909 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h. */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916 #include <soundcard.h>
24917 _ACEOF
24918 if { (ac_try="$ac_cpp conftest.$ac_ext"
24919 case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922 esac
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24925 ac_status=$?
24926 grep -v '^ *+' conftest.er1 >conftest.err
24927 rm -f conftest.er1
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } >/dev/null && {
24931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24932 test ! -s conftest.err
24933 }; then
24934 ac_header_preproc=yes
24935 else
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24939 ac_header_preproc=no
24942 rm -f conftest.err conftest.$ac_ext
24943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24944 echo "${ECHO_T}$ac_header_preproc" >&6; }
24946 # So? What about this header?
24947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24948 yes:no: )
24949 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24950 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24951 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24952 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24953 ac_header_preproc=yes
24955 no:yes:* )
24956 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24957 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24958 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24959 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24960 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24961 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24962 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24963 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24964 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24965 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24966 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24967 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24968 ( cat <<\_ASBOX
24969 ## ------------------------------- ##
24970 ## Report this to www.asterisk.org ##
24971 ## ------------------------------- ##
24972 _ASBOX
24973 ) | sed "s/^/$as_me: WARNING: /" >&2
24975 esac
24976 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24977 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24978 if test "${ac_cv_header_soundcard_h+set}" = set; then
24979 echo $ECHO_N "(cached) $ECHO_C" >&6
24980 else
24981 ac_cv_header_soundcard_h=$ac_header_preproc
24983 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24984 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24987 if test $ac_cv_header_soundcard_h = yes; then
24988 OSS_HEADER_FOUND=1
24989 else
24990 OSS_HEADER_FOUND=0
24996 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24997 if test -n "${OSS_MANDATORY}" ;
24998 then
24999 { echo "$as_me:$LINENO: ***" >&5
25000 echo "$as_me: ***" >&6;}
25001 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
25002 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
25003 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
25004 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
25005 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
25006 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
25007 exit 1
25009 OSS_LIB=""
25010 OSS_INCLUDE=""
25011 PBX_OSS=0
25012 else
25013 PBX_OSS=1
25015 cat >>confdefs.h <<_ACEOF
25016 #define HAVE_OSS 1
25017 _ACEOF
25020 elif test -n "${OSS_MANDATORY}";
25021 then
25022 { echo "$as_me:$LINENO: ***" >&5
25023 echo "$as_me: ***" >&6;}
25024 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
25025 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
25026 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25027 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25028 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
25029 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
25030 exit 1
25037 PG_CONFIG=No
25038 if test "${USE_PGSQL}" != "no"; then
25039 if test "x${PGSQL_DIR}" != "x"; then
25040 if test -n "$ac_tool_prefix"; then
25041 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
25042 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
25043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25045 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
25046 echo $ECHO_N "(cached) $ECHO_C" >&6
25047 else
25048 case $PG_CONFIG in
25049 [\\/]* | ?:[\\/]*)
25050 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
25053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25054 for as_dir in ${PGSQL_DIR}/bin
25056 IFS=$as_save_IFS
25057 test -z "$as_dir" && as_dir=.
25058 for ac_exec_ext in '' $ac_executable_extensions; do
25059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25060 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25062 break 2
25064 done
25065 done
25066 IFS=$as_save_IFS
25069 esac
25071 PG_CONFIG=$ac_cv_path_PG_CONFIG
25072 if test -n "$PG_CONFIG"; then
25073 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25074 echo "${ECHO_T}$PG_CONFIG" >&6; }
25075 else
25076 { echo "$as_me:$LINENO: result: no" >&5
25077 echo "${ECHO_T}no" >&6; }
25082 if test -z "$ac_cv_path_PG_CONFIG"; then
25083 ac_pt_PG_CONFIG=$PG_CONFIG
25084 # Extract the first word of "pg_config", so it can be a program name with args.
25085 set dummy pg_config; ac_word=$2
25086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25088 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091 case $ac_pt_PG_CONFIG in
25092 [\\/]* | ?:[\\/]*)
25093 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25097 for as_dir in ${PGSQL_DIR}/bin
25099 IFS=$as_save_IFS
25100 test -z "$as_dir" && as_dir=.
25101 for ac_exec_ext in '' $ac_executable_extensions; do
25102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25103 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25105 break 2
25107 done
25108 done
25109 IFS=$as_save_IFS
25112 esac
25114 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
25115 if test -n "$ac_pt_PG_CONFIG"; then
25116 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25117 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25118 else
25119 { echo "$as_me:$LINENO: result: no" >&5
25120 echo "${ECHO_T}no" >&6; }
25123 if test "x$ac_pt_PG_CONFIG" = x; then
25124 PG_CONFIG="No"
25125 else
25126 case $cross_compiling:$ac_tool_warned in
25127 yes:)
25128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25129 whose name does not start with the host triplet. If you think this
25130 configuration is useful to you, please write to autoconf@gnu.org." >&5
25131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25132 whose name does not start with the host triplet. If you think this
25133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25134 ac_tool_warned=yes ;;
25135 esac
25136 PG_CONFIG=$ac_pt_PG_CONFIG
25138 else
25139 PG_CONFIG="$ac_cv_path_PG_CONFIG"
25142 if test x"${PG_CONFIG}" = xNo; then
25143 { echo "$as_me:$LINENO: ***" >&5
25144 echo "$as_me: ***" >&6;}
25145 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
25146 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
25147 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
25148 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
25149 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25150 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25151 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25152 echo "$as_me: *** including --without-postgres" >&6;}
25153 exit 1
25155 else
25156 if test -n "$ac_tool_prefix"; then
25157 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
25158 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
25159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25161 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164 case $PG_CONFIG in
25165 [\\/]* | ?:[\\/]*)
25166 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
25169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25170 for as_dir in $PATH
25172 IFS=$as_save_IFS
25173 test -z "$as_dir" && as_dir=.
25174 for ac_exec_ext in '' $ac_executable_extensions; do
25175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25176 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25178 break 2
25180 done
25181 done
25182 IFS=$as_save_IFS
25185 esac
25187 PG_CONFIG=$ac_cv_path_PG_CONFIG
25188 if test -n "$PG_CONFIG"; then
25189 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
25190 echo "${ECHO_T}$PG_CONFIG" >&6; }
25191 else
25192 { echo "$as_me:$LINENO: result: no" >&5
25193 echo "${ECHO_T}no" >&6; }
25198 if test -z "$ac_cv_path_PG_CONFIG"; then
25199 ac_pt_PG_CONFIG=$PG_CONFIG
25200 # Extract the first word of "pg_config", so it can be a program name with args.
25201 set dummy pg_config; ac_word=$2
25202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25204 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
25205 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 else
25207 case $ac_pt_PG_CONFIG in
25208 [\\/]* | ?:[\\/]*)
25209 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25213 for as_dir in $PATH
25215 IFS=$as_save_IFS
25216 test -z "$as_dir" && as_dir=.
25217 for ac_exec_ext in '' $ac_executable_extensions; do
25218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25219 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25221 break 2
25223 done
25224 done
25225 IFS=$as_save_IFS
25228 esac
25230 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
25231 if test -n "$ac_pt_PG_CONFIG"; then
25232 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25233 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25234 else
25235 { echo "$as_me:$LINENO: result: no" >&5
25236 echo "${ECHO_T}no" >&6; }
25239 if test "x$ac_pt_PG_CONFIG" = x; then
25240 PG_CONFIG="No"
25241 else
25242 case $cross_compiling:$ac_tool_warned in
25243 yes:)
25244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25245 whose name does not start with the host triplet. If you think this
25246 configuration is useful to you, please write to autoconf@gnu.org." >&5
25247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25248 whose name does not start with the host triplet. If you think this
25249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25250 ac_tool_warned=yes ;;
25251 esac
25252 PG_CONFIG=$ac_pt_PG_CONFIG
25254 else
25255 PG_CONFIG="$ac_cv_path_PG_CONFIG"
25260 if test "${PG_CONFIG}" != No; then
25261 PGSQL_libdir=`${PG_CONFIG} --libdir`
25262 PGSQL_includedir=`${PG_CONFIG} --includedir`
25264 if test "x$?" != "x0" ; then
25265 if test -n "${PGSQL_MANDATORY}" ; then
25266 { echo "$as_me:$LINENO: ***" >&5
25267 echo "$as_me: ***" >&6;}
25268 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25269 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25270 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25271 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25272 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25273 echo "$as_me: *** including --without-postgres" >&6;}
25274 exit 1
25276 else
25277 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25278 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25279 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25281 else
25282 ac_check_lib_save_LIBS=$LIBS
25283 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
25284 cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h. */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25291 /* Override any GCC internal prototype to avoid an error.
25292 Use char because int might match the return type of a GCC
25293 builtin and then its argument prototype would still apply. */
25294 #ifdef __cplusplus
25295 extern "C"
25296 #endif
25297 char PQescapeStringConn ();
25299 main ()
25301 return PQescapeStringConn ();
25303 return 0;
25305 _ACEOF
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (ac_try="$ac_link"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_link") 2>conftest.er1
25314 ac_status=$?
25315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } && {
25320 test -z "$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 } && test -s conftest$ac_exeext &&
25323 $as_test_x conftest$ac_exeext; then
25324 ac_cv_lib_pq_PQescapeStringConn=yes
25325 else
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_cv_lib_pq_PQescapeStringConn=no
25332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25333 conftest$ac_exeext conftest.$ac_ext
25334 LIBS=$ac_check_lib_save_LIBS
25336 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25337 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25338 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_PGSQL 1
25342 _ACEOF
25347 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25348 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25349 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25350 PBX_PGSQL=1
25351 elif test -n "${PGSQL_MANDATORY}";
25352 then
25353 { echo "$as_me:$LINENO: ***" >&5
25354 echo "$as_me: ***" >&6;}
25355 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25356 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25357 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25358 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25359 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25360 echo "$as_me: *** including --without-postgres" >&6;}
25361 exit 1
25364 elif test -n "${PGSQL_MANDATORY}";
25365 then
25366 { echo "$as_me:$LINENO: ***" >&5
25367 echo "$as_me: ***" >&6;}
25368 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25369 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25370 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25371 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25372 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25373 echo "$as_me: *** including --without-postgres" >&6;}
25374 exit 1
25378 if test "${USE_POPT}" != "no"; then
25379 pbxlibdir=""
25380 if test "x${POPT_DIR}" != "x"; then
25381 if test -d ${POPT_DIR}/lib; then
25382 pbxlibdir="-L${POPT_DIR}/lib"
25383 else
25384 pbxlibdir="-L${POPT_DIR}"
25387 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25388 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25389 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25391 else
25392 ac_check_lib_save_LIBS=$LIBS
25393 LIBS="-lpopt ${pbxlibdir} $LIBS"
25394 cat >conftest.$ac_ext <<_ACEOF
25395 /* confdefs.h. */
25396 _ACEOF
25397 cat confdefs.h >>conftest.$ac_ext
25398 cat >>conftest.$ac_ext <<_ACEOF
25399 /* end confdefs.h. */
25401 /* Override any GCC internal prototype to avoid an error.
25402 Use char because int might match the return type of a GCC
25403 builtin and then its argument prototype would still apply. */
25404 #ifdef __cplusplus
25405 extern "C"
25406 #endif
25407 char poptStrerror ();
25409 main ()
25411 return poptStrerror ();
25413 return 0;
25415 _ACEOF
25416 rm -f conftest.$ac_objext conftest$ac_exeext
25417 if { (ac_try="$ac_link"
25418 case "(($ac_try" in
25419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420 *) ac_try_echo=$ac_try;;
25421 esac
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423 (eval "$ac_link") 2>conftest.er1
25424 ac_status=$?
25425 grep -v '^ *+' conftest.er1 >conftest.err
25426 rm -f conftest.er1
25427 cat conftest.err >&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest$ac_exeext &&
25433 $as_test_x conftest$ac_exeext; then
25434 ac_cv_lib_popt_poptStrerror=yes
25435 else
25436 echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25439 ac_cv_lib_popt_poptStrerror=no
25442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25443 conftest$ac_exeext conftest.$ac_ext
25444 LIBS=$ac_check_lib_save_LIBS
25446 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25447 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25448 if test $ac_cv_lib_popt_poptStrerror = yes; then
25449 AST_POPT_FOUND=yes
25450 else
25451 AST_POPT_FOUND=no
25455 if test "${AST_POPT_FOUND}" = "yes"; then
25456 POPT_LIB="-lpopt "
25457 POPT_HEADER_FOUND="1"
25458 if test "x${POPT_DIR}" != "x"; then
25459 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
25460 POPT_INCLUDE="-I${POPT_DIR}/include"
25461 saved_cppflags="${CPPFLAGS}"
25462 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
25463 if test "xpopt.h" != "x" ; then
25464 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25466 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25467 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 ac_res=`eval echo '${'$as_ac_Header'}'`
25472 { echo "$as_me:$LINENO: result: $ac_res" >&5
25473 echo "${ECHO_T}$ac_res" >&6; }
25474 else
25475 # Is the header compilable?
25476 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25477 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h. */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 $ac_includes_default
25485 #include <${POPT_DIR}/include/popt.h>
25486 _ACEOF
25487 rm -f conftest.$ac_objext
25488 if { (ac_try="$ac_compile"
25489 case "(($ac_try" in
25490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25492 esac
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_compile") 2>conftest.er1
25495 ac_status=$?
25496 grep -v '^ *+' conftest.er1 >conftest.err
25497 rm -f conftest.er1
25498 cat conftest.err >&5
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } && {
25501 test -z "$ac_c_werror_flag" ||
25502 test ! -s conftest.err
25503 } && test -s conftest.$ac_objext; then
25504 ac_header_compiler=yes
25505 else
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ac_header_compiler=no
25512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25514 echo "${ECHO_T}$ac_header_compiler" >&6; }
25516 # Is the header present?
25517 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25518 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25519 cat >conftest.$ac_ext <<_ACEOF
25520 /* confdefs.h. */
25521 _ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25525 #include <${POPT_DIR}/include/popt.h>
25526 _ACEOF
25527 if { (ac_try="$ac_cpp conftest.$ac_ext"
25528 case "(($ac_try" in
25529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25531 esac
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25534 ac_status=$?
25535 grep -v '^ *+' conftest.er1 >conftest.err
25536 rm -f conftest.er1
25537 cat conftest.err >&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } >/dev/null && {
25540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25541 test ! -s conftest.err
25542 }; then
25543 ac_header_preproc=yes
25544 else
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ac_header_preproc=no
25551 rm -f conftest.err conftest.$ac_ext
25552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25553 echo "${ECHO_T}$ac_header_preproc" >&6; }
25555 # So? What about this header?
25556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25557 yes:no: )
25558 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25559 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25560 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25561 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25562 ac_header_preproc=yes
25564 no:yes:* )
25565 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25566 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25567 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25568 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25569 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25570 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25571 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25572 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25573 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25574 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25575 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25576 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25577 ( cat <<\_ASBOX
25578 ## ------------------------------- ##
25579 ## Report this to www.asterisk.org ##
25580 ## ------------------------------- ##
25581 _ASBOX
25582 ) | sed "s/^/$as_me: WARNING: /" >&2
25584 esac
25585 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25586 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25588 echo $ECHO_N "(cached) $ECHO_C" >&6
25589 else
25590 eval "$as_ac_Header=\$ac_header_preproc"
25592 ac_res=`eval echo '${'$as_ac_Header'}'`
25593 { echo "$as_me:$LINENO: result: $ac_res" >&5
25594 echo "${ECHO_T}$ac_res" >&6; }
25597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25598 POPT_HEADER_FOUND=1
25599 else
25600 POPT_HEADER_FOUND=0
25605 CPPFLAGS="${saved_cppflags}"
25606 else
25607 if test "xpopt.h" != "x" ; then
25608 if test "${ac_cv_header_popt_h+set}" = set; then
25609 { echo "$as_me:$LINENO: checking for popt.h" >&5
25610 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25611 if test "${ac_cv_header_popt_h+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25615 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25616 else
25617 # Is the header compilable?
25618 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25619 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25620 cat >conftest.$ac_ext <<_ACEOF
25621 /* confdefs.h. */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 $ac_includes_default
25627 #include <popt.h>
25628 _ACEOF
25629 rm -f conftest.$ac_objext
25630 if { (ac_try="$ac_compile"
25631 case "(($ac_try" in
25632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633 *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636 (eval "$ac_compile") 2>conftest.er1
25637 ac_status=$?
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } && {
25643 test -z "$ac_c_werror_flag" ||
25644 test ! -s conftest.err
25645 } && test -s conftest.$ac_objext; then
25646 ac_header_compiler=yes
25647 else
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25651 ac_header_compiler=no
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25656 echo "${ECHO_T}$ac_header_compiler" >&6; }
25658 # Is the header present?
25659 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25660 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25661 cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h. */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 #include <popt.h>
25668 _ACEOF
25669 if { (ac_try="$ac_cpp conftest.$ac_ext"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25673 esac
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25676 ac_status=$?
25677 grep -v '^ *+' conftest.er1 >conftest.err
25678 rm -f conftest.er1
25679 cat conftest.err >&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } >/dev/null && {
25682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25683 test ! -s conftest.err
25684 }; then
25685 ac_header_preproc=yes
25686 else
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25690 ac_header_preproc=no
25693 rm -f conftest.err conftest.$ac_ext
25694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25695 echo "${ECHO_T}$ac_header_preproc" >&6; }
25697 # So? What about this header?
25698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25699 yes:no: )
25700 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25701 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25703 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25704 ac_header_preproc=yes
25706 no:yes:* )
25707 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25708 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25709 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25710 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25711 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25712 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25713 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25714 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25716 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25718 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25719 ( cat <<\_ASBOX
25720 ## ------------------------------- ##
25721 ## Report this to www.asterisk.org ##
25722 ## ------------------------------- ##
25723 _ASBOX
25724 ) | sed "s/^/$as_me: WARNING: /" >&2
25726 esac
25727 { echo "$as_me:$LINENO: checking for popt.h" >&5
25728 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25729 if test "${ac_cv_header_popt_h+set}" = set; then
25730 echo $ECHO_N "(cached) $ECHO_C" >&6
25731 else
25732 ac_cv_header_popt_h=$ac_header_preproc
25734 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25735 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25738 if test $ac_cv_header_popt_h = yes; then
25739 POPT_HEADER_FOUND=1
25740 else
25741 POPT_HEADER_FOUND=0
25747 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25748 if test -n "${POPT_MANDATORY}" ;
25749 then
25750 { echo "$as_me:$LINENO: ***" >&5
25751 echo "$as_me: ***" >&6;}
25752 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25753 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25754 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25755 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25756 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25757 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25758 exit 1
25760 POPT_LIB=""
25761 POPT_INCLUDE=""
25762 PBX_POPT=0
25763 else
25764 PBX_POPT=1
25766 cat >>confdefs.h <<_ACEOF
25767 #define HAVE_POPT 1
25768 _ACEOF
25771 elif test -n "${POPT_MANDATORY}";
25772 then
25773 { echo "$as_me:$LINENO: ***" >&5
25774 echo "$as_me: ***" >&6;}
25775 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25776 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25777 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25778 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25779 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25780 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25781 exit 1
25787 if test "${USE_PRI}" != "no"; then
25788 pbxlibdir=""
25789 if test "x${PRI_DIR}" != "x"; then
25790 if test -d ${PRI_DIR}/lib; then
25791 pbxlibdir="-L${PRI_DIR}/lib"
25792 else
25793 pbxlibdir="-L${PRI_DIR}"
25796 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25797 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25798 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25800 else
25801 ac_check_lib_save_LIBS=$LIBS
25802 LIBS="-lpri ${pbxlibdir} $LIBS"
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. */
25810 /* Override any GCC internal prototype to avoid an error.
25811 Use char because int might match the return type of a GCC
25812 builtin and then its argument prototype would still apply. */
25813 #ifdef __cplusplus
25814 extern "C"
25815 #endif
25816 char pri_keypad_facility ();
25818 main ()
25820 return pri_keypad_facility ();
25822 return 0;
25824 _ACEOF
25825 rm -f conftest.$ac_objext conftest$ac_exeext
25826 if { (ac_try="$ac_link"
25827 case "(($ac_try" in
25828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25829 *) ac_try_echo=$ac_try;;
25830 esac
25831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25832 (eval "$ac_link") 2>conftest.er1
25833 ac_status=$?
25834 grep -v '^ *+' conftest.er1 >conftest.err
25835 rm -f conftest.er1
25836 cat conftest.err >&5
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } && {
25839 test -z "$ac_c_werror_flag" ||
25840 test ! -s conftest.err
25841 } && test -s conftest$ac_exeext &&
25842 $as_test_x conftest$ac_exeext; then
25843 ac_cv_lib_pri_pri_keypad_facility=yes
25844 else
25845 echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25848 ac_cv_lib_pri_pri_keypad_facility=no
25851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25852 conftest$ac_exeext conftest.$ac_ext
25853 LIBS=$ac_check_lib_save_LIBS
25855 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25856 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25857 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25858 AST_PRI_FOUND=yes
25859 else
25860 AST_PRI_FOUND=no
25864 if test "${AST_PRI_FOUND}" = "yes"; then
25865 PRI_LIB="-lpri "
25866 PRI_HEADER_FOUND="1"
25867 if test "x${PRI_DIR}" != "x"; then
25868 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25869 PRI_INCLUDE="-I${PRI_DIR}/include"
25870 saved_cppflags="${CPPFLAGS}"
25871 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25872 if test "xlibpri.h" != "x" ; then
25873 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
25874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25875 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25876 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 ac_res=`eval echo '${'$as_ac_Header'}'`
25881 { echo "$as_me:$LINENO: result: $ac_res" >&5
25882 echo "${ECHO_T}$ac_res" >&6; }
25883 else
25884 # Is the header compilable?
25885 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25886 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25887 cat >conftest.$ac_ext <<_ACEOF
25888 /* confdefs.h. */
25889 _ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893 $ac_includes_default
25894 #include <${PRI_DIR}/include/libpri.h>
25895 _ACEOF
25896 rm -f conftest.$ac_objext
25897 if { (ac_try="$ac_compile"
25898 case "(($ac_try" in
25899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25900 *) ac_try_echo=$ac_try;;
25901 esac
25902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25903 (eval "$ac_compile") 2>conftest.er1
25904 ac_status=$?
25905 grep -v '^ *+' conftest.er1 >conftest.err
25906 rm -f conftest.er1
25907 cat conftest.err >&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } && {
25910 test -z "$ac_c_werror_flag" ||
25911 test ! -s conftest.err
25912 } && test -s conftest.$ac_objext; then
25913 ac_header_compiler=yes
25914 else
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25918 ac_header_compiler=no
25921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25923 echo "${ECHO_T}$ac_header_compiler" >&6; }
25925 # Is the header present?
25926 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25927 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25928 cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h. */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h. */
25934 #include <${PRI_DIR}/include/libpri.h>
25935 _ACEOF
25936 if { (ac_try="$ac_cpp conftest.$ac_ext"
25937 case "(($ac_try" in
25938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939 *) ac_try_echo=$ac_try;;
25940 esac
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25943 ac_status=$?
25944 grep -v '^ *+' conftest.er1 >conftest.err
25945 rm -f conftest.er1
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } >/dev/null && {
25949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25950 test ! -s conftest.err
25951 }; then
25952 ac_header_preproc=yes
25953 else
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 ac_header_preproc=no
25960 rm -f conftest.err conftest.$ac_ext
25961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25962 echo "${ECHO_T}$ac_header_preproc" >&6; }
25964 # So? What about this header?
25965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25966 yes:no: )
25967 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25968 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25969 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25970 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25971 ac_header_preproc=yes
25973 no:yes:* )
25974 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25975 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25977 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25978 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25979 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25980 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25981 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25983 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25985 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25986 ( cat <<\_ASBOX
25987 ## ------------------------------- ##
25988 ## Report this to www.asterisk.org ##
25989 ## ------------------------------- ##
25990 _ASBOX
25991 ) | sed "s/^/$as_me: WARNING: /" >&2
25993 esac
25994 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25995 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999 eval "$as_ac_Header=\$ac_header_preproc"
26001 ac_res=`eval echo '${'$as_ac_Header'}'`
26002 { echo "$as_me:$LINENO: result: $ac_res" >&5
26003 echo "${ECHO_T}$ac_res" >&6; }
26006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26007 PRI_HEADER_FOUND=1
26008 else
26009 PRI_HEADER_FOUND=0
26014 CPPFLAGS="${saved_cppflags}"
26015 else
26016 if test "xlibpri.h" != "x" ; then
26017 if test "${ac_cv_header_libpri_h+set}" = set; then
26018 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26019 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26020 if test "${ac_cv_header_libpri_h+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26023 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26024 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26025 else
26026 # Is the header compilable?
26027 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26028 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26029 cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h. */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26035 $ac_includes_default
26036 #include <libpri.h>
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (ac_try="$ac_compile"
26040 case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26043 esac
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045 (eval "$ac_compile") 2>conftest.er1
26046 ac_status=$?
26047 grep -v '^ *+' conftest.er1 >conftest.err
26048 rm -f conftest.er1
26049 cat conftest.err >&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } && {
26052 test -z "$ac_c_werror_flag" ||
26053 test ! -s conftest.err
26054 } && test -s conftest.$ac_objext; then
26055 ac_header_compiler=yes
26056 else
26057 echo "$as_me: failed program was:" >&5
26058 sed 's/^/| /' conftest.$ac_ext >&5
26060 ac_header_compiler=no
26063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26065 echo "${ECHO_T}$ac_header_compiler" >&6; }
26067 # Is the header present?
26068 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26069 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26070 cat >conftest.$ac_ext <<_ACEOF
26071 /* confdefs.h. */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h. */
26076 #include <libpri.h>
26077 _ACEOF
26078 if { (ac_try="$ac_cpp conftest.$ac_ext"
26079 case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26082 esac
26083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } >/dev/null && {
26091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26092 test ! -s conftest.err
26093 }; then
26094 ac_header_preproc=yes
26095 else
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26099 ac_header_preproc=no
26102 rm -f conftest.err conftest.$ac_ext
26103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26104 echo "${ECHO_T}$ac_header_preproc" >&6; }
26106 # So? What about this header?
26107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26108 yes:no: )
26109 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26110 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26112 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26113 ac_header_preproc=yes
26115 no:yes:* )
26116 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26117 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26118 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26119 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26121 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26122 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26123 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26124 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26125 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26126 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26127 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26128 ( cat <<\_ASBOX
26129 ## ------------------------------- ##
26130 ## Report this to www.asterisk.org ##
26131 ## ------------------------------- ##
26132 _ASBOX
26133 ) | sed "s/^/$as_me: WARNING: /" >&2
26135 esac
26136 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26137 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26138 if test "${ac_cv_header_libpri_h+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 else
26141 ac_cv_header_libpri_h=$ac_header_preproc
26143 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26144 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26147 if test $ac_cv_header_libpri_h = yes; then
26148 PRI_HEADER_FOUND=1
26149 else
26150 PRI_HEADER_FOUND=0
26156 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
26157 if test -n "${PRI_MANDATORY}" ;
26158 then
26159 { echo "$as_me:$LINENO: ***" >&5
26160 echo "$as_me: ***" >&6;}
26161 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26162 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26163 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
26164 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
26165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26166 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26167 exit 1
26169 PRI_LIB=""
26170 PRI_INCLUDE=""
26171 PBX_PRI=0
26172 else
26173 PBX_PRI=1
26175 cat >>confdefs.h <<_ACEOF
26176 #define HAVE_PRI 1
26177 _ACEOF
26180 elif test -n "${PRI_MANDATORY}";
26181 then
26182 { echo "$as_me:$LINENO: ***" >&5
26183 echo "$as_me: ***" >&6;}
26184 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
26185 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
26186 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26187 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26188 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
26189 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
26190 exit 1
26196 if test "${USE_PRI_VERSION}" != "no"; then
26197 pbxlibdir=""
26198 if test "x${PRI_VERSION_DIR}" != "x"; then
26199 if test -d ${PRI_VERSION_DIR}/lib; then
26200 pbxlibdir="-L${PRI_VERSION_DIR}/lib"
26201 else
26202 pbxlibdir="-L${PRI_VERSION_DIR}"
26205 { echo "$as_me:$LINENO: checking for pri_get_version in -lpri" >&5
26206 echo $ECHO_N "checking for pri_get_version in -lpri... $ECHO_C" >&6; }
26207 if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then
26208 echo $ECHO_N "(cached) $ECHO_C" >&6
26209 else
26210 ac_check_lib_save_LIBS=$LIBS
26211 LIBS="-lpri ${pbxlibdir} $LIBS"
26212 cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h. */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26219 /* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26222 #ifdef __cplusplus
26223 extern "C"
26224 #endif
26225 char pri_get_version ();
26227 main ()
26229 return pri_get_version ();
26231 return 0;
26233 _ACEOF
26234 rm -f conftest.$ac_objext conftest$ac_exeext
26235 if { (ac_try="$ac_link"
26236 case "(($ac_try" in
26237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238 *) ac_try_echo=$ac_try;;
26239 esac
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241 (eval "$ac_link") 2>conftest.er1
26242 ac_status=$?
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } && {
26248 test -z "$ac_c_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest$ac_exeext &&
26251 $as_test_x conftest$ac_exeext; then
26252 ac_cv_lib_pri_pri_get_version=yes
26253 else
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 ac_cv_lib_pri_pri_get_version=no
26260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26261 conftest$ac_exeext conftest.$ac_ext
26262 LIBS=$ac_check_lib_save_LIBS
26264 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_get_version" >&5
26265 echo "${ECHO_T}$ac_cv_lib_pri_pri_get_version" >&6; }
26266 if test $ac_cv_lib_pri_pri_get_version = yes; then
26267 AST_PRI_VERSION_FOUND=yes
26268 else
26269 AST_PRI_VERSION_FOUND=no
26273 if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
26274 PRI_VERSION_LIB="-lpri "
26275 PRI_VERSION_HEADER_FOUND="1"
26276 if test "x${PRI_VERSION_DIR}" != "x"; then
26277 PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
26278 PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
26279 saved_cppflags="${CPPFLAGS}"
26280 CPPFLAGS="${CPPFLAGS} -I${PRI_VERSION_DIR}/include"
26281 if test "xlibpri.h" != "x" ; then
26282 as_ac_Header=`echo "ac_cv_header_${PRI_VERSION_DIR}/include/libpri.h" | $as_tr_sh`
26283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26284 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26285 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 ac_res=`eval echo '${'$as_ac_Header'}'`
26290 { echo "$as_me:$LINENO: result: $ac_res" >&5
26291 echo "${ECHO_T}$ac_res" >&6; }
26292 else
26293 # Is the header compilable?
26294 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h usability" >&5
26295 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h. */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 $ac_includes_default
26303 #include <${PRI_VERSION_DIR}/include/libpri.h>
26304 _ACEOF
26305 rm -f conftest.$ac_objext
26306 if { (ac_try="$ac_compile"
26307 case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_compile") 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } && {
26319 test -z "$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 } && test -s conftest.$ac_objext; then
26322 ac_header_compiler=yes
26323 else
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 ac_header_compiler=no
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26332 echo "${ECHO_T}$ac_header_compiler" >&6; }
26334 # Is the header present?
26335 { echo "$as_me:$LINENO: checking ${PRI_VERSION_DIR}/include/libpri.h presence" >&5
26336 echo $ECHO_N "checking ${PRI_VERSION_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
26337 cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h. */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h. */
26343 #include <${PRI_VERSION_DIR}/include/libpri.h>
26344 _ACEOF
26345 if { (ac_try="$ac_cpp conftest.$ac_ext"
26346 case "(($ac_try" in
26347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348 *) ac_try_echo=$ac_try;;
26349 esac
26350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26352 ac_status=$?
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } >/dev/null && {
26358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26359 test ! -s conftest.err
26360 }; then
26361 ac_header_preproc=yes
26362 else
26363 echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26366 ac_header_preproc=no
26369 rm -f conftest.err conftest.$ac_ext
26370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26371 echo "${ECHO_T}$ac_header_preproc" >&6; }
26373 # So? What about this header?
26374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26375 yes:no: )
26376 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26377 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
26379 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
26380 ac_header_preproc=yes
26382 no:yes:* )
26383 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&5
26384 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
26385 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
26386 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
26387 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&5
26388 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
26389 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26390 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26391 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
26392 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
26394 echo "$as_me: WARNING: ${PRI_VERSION_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
26395 ( cat <<\_ASBOX
26396 ## ------------------------------- ##
26397 ## Report this to www.asterisk.org ##
26398 ## ------------------------------- ##
26399 _ASBOX
26400 ) | sed "s/^/$as_me: WARNING: /" >&2
26402 esac
26403 { echo "$as_me:$LINENO: checking for ${PRI_VERSION_DIR}/include/libpri.h" >&5
26404 echo $ECHO_N "checking for ${PRI_VERSION_DIR}/include/libpri.h... $ECHO_C" >&6; }
26405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26406 echo $ECHO_N "(cached) $ECHO_C" >&6
26407 else
26408 eval "$as_ac_Header=\$ac_header_preproc"
26410 ac_res=`eval echo '${'$as_ac_Header'}'`
26411 { echo "$as_me:$LINENO: result: $ac_res" >&5
26412 echo "${ECHO_T}$ac_res" >&6; }
26415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26416 PRI_VERSION_HEADER_FOUND=1
26417 else
26418 PRI_VERSION_HEADER_FOUND=0
26423 CPPFLAGS="${saved_cppflags}"
26424 else
26425 if test "xlibpri.h" != "x" ; then
26426 if test "${ac_cv_header_libpri_h+set}" = set; then
26427 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26428 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26429 if test "${ac_cv_header_libpri_h+set}" = set; then
26430 echo $ECHO_N "(cached) $ECHO_C" >&6
26432 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26433 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26434 else
26435 # Is the header compilable?
26436 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
26437 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
26438 cat >conftest.$ac_ext <<_ACEOF
26439 /* confdefs.h. */
26440 _ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26444 $ac_includes_default
26445 #include <libpri.h>
26446 _ACEOF
26447 rm -f conftest.$ac_objext
26448 if { (ac_try="$ac_compile"
26449 case "(($ac_try" in
26450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451 *) ac_try_echo=$ac_try;;
26452 esac
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454 (eval "$ac_compile") 2>conftest.er1
26455 ac_status=$?
26456 grep -v '^ *+' conftest.er1 >conftest.err
26457 rm -f conftest.er1
26458 cat conftest.err >&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); } && {
26461 test -z "$ac_c_werror_flag" ||
26462 test ! -s conftest.err
26463 } && test -s conftest.$ac_objext; then
26464 ac_header_compiler=yes
26465 else
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26469 ac_header_compiler=no
26472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26474 echo "${ECHO_T}$ac_header_compiler" >&6; }
26476 # Is the header present?
26477 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
26478 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
26479 cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h. */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 #include <libpri.h>
26486 _ACEOF
26487 if { (ac_try="$ac_cpp conftest.$ac_ext"
26488 case "(($ac_try" in
26489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490 *) ac_try_echo=$ac_try;;
26491 esac
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26494 ac_status=$?
26495 grep -v '^ *+' conftest.er1 >conftest.err
26496 rm -f conftest.er1
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } >/dev/null && {
26500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26501 test ! -s conftest.err
26502 }; then
26503 ac_header_preproc=yes
26504 else
26505 echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.$ac_ext >&5
26508 ac_header_preproc=no
26511 rm -f conftest.err conftest.$ac_ext
26512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26513 echo "${ECHO_T}$ac_header_preproc" >&6; }
26515 # So? What about this header?
26516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26517 yes:no: )
26518 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
26519 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26520 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
26521 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
26522 ac_header_preproc=yes
26524 no:yes:* )
26525 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
26526 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
26528 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
26530 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
26532 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
26534 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
26536 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
26537 ( cat <<\_ASBOX
26538 ## ------------------------------- ##
26539 ## Report this to www.asterisk.org ##
26540 ## ------------------------------- ##
26541 _ASBOX
26542 ) | sed "s/^/$as_me: WARNING: /" >&2
26544 esac
26545 { echo "$as_me:$LINENO: checking for libpri.h" >&5
26546 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
26547 if test "${ac_cv_header_libpri_h+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26549 else
26550 ac_cv_header_libpri_h=$ac_header_preproc
26552 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
26553 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
26556 if test $ac_cv_header_libpri_h = yes; then
26557 PRI_VERSION_HEADER_FOUND=1
26558 else
26559 PRI_VERSION_HEADER_FOUND=0
26565 if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
26566 if test -n "${PRI_VERSION_MANDATORY}" ;
26567 then
26568 { echo "$as_me:$LINENO: ***" >&5
26569 echo "$as_me: ***" >&6;}
26570 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
26571 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
26572 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
26573 echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
26574 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26575 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26576 exit 1
26578 PRI_VERSION_LIB=""
26579 PRI_VERSION_INCLUDE=""
26580 PBX_PRI_VERSION=0
26581 else
26582 PBX_PRI_VERSION=1
26584 cat >>confdefs.h <<_ACEOF
26585 #define HAVE_PRI_VERSION 1
26586 _ACEOF
26589 elif test -n "${PRI_VERSION_MANDATORY}";
26590 then
26591 { echo "$as_me:$LINENO: ***" >&5
26592 echo "$as_me: ***" >&6;}
26593 { echo "$as_me:$LINENO: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
26594 echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
26595 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
26596 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
26597 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
26598 echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
26599 exit 1
26604 if test "${USE_PWLIB}" != "no"; then
26605 if test -n "${PWLIB_DIR}"; then
26606 PWLIBDIR="${PWLIB_DIR}"
26610 PWLIB_INCDIR=
26611 PWLIB_LIBDIR=
26612 ac_ext=cpp
26613 ac_cpp='$CXXCPP $CPPFLAGS'
26614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26618 if test "${PWLIBDIR:-unset}" != "unset" ; then
26619 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
26620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26621 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26622 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26626 ac_res=`eval echo '${'$as_ac_Header'}'`
26627 { echo "$as_me:$LINENO: result: $ac_res" >&5
26628 echo "${ECHO_T}$ac_res" >&6; }
26629 else
26630 # Is the header compilable?
26631 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26632 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26633 cat >conftest.$ac_ext <<_ACEOF
26634 /* confdefs.h. */
26635 _ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h. */
26639 $ac_includes_default
26640 #include <${PWLIBDIR}/version.h>
26641 _ACEOF
26642 rm -f conftest.$ac_objext
26643 if { (ac_try="$ac_compile"
26644 case "(($ac_try" in
26645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646 *) ac_try_echo=$ac_try;;
26647 esac
26648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26649 (eval "$ac_compile") 2>conftest.er1
26650 ac_status=$?
26651 grep -v '^ *+' conftest.er1 >conftest.err
26652 rm -f conftest.er1
26653 cat conftest.err >&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } && {
26656 test -z "$ac_cxx_werror_flag" ||
26657 test ! -s conftest.err
26658 } && test -s conftest.$ac_objext; then
26659 ac_header_compiler=yes
26660 else
26661 echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26664 ac_header_compiler=no
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26669 echo "${ECHO_T}$ac_header_compiler" >&6; }
26671 # Is the header present?
26672 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26673 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26674 cat >conftest.$ac_ext <<_ACEOF
26675 /* confdefs.h. */
26676 _ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h. */
26680 #include <${PWLIBDIR}/version.h>
26681 _ACEOF
26682 if { (ac_try="$ac_cpp conftest.$ac_ext"
26683 case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26686 esac
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26689 ac_status=$?
26690 grep -v '^ *+' conftest.er1 >conftest.err
26691 rm -f conftest.er1
26692 cat conftest.err >&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } >/dev/null && {
26695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26696 test ! -s conftest.err
26697 }; then
26698 ac_header_preproc=yes
26699 else
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_header_preproc=no
26706 rm -f conftest.err conftest.$ac_ext
26707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26708 echo "${ECHO_T}$ac_header_preproc" >&6; }
26710 # So? What about this header?
26711 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26712 yes:no: )
26713 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26714 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26715 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26716 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26717 ac_header_preproc=yes
26719 no:yes:* )
26720 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26721 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26723 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26725 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26726 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26727 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26729 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26731 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26732 ( cat <<\_ASBOX
26733 ## ------------------------------- ##
26734 ## Report this to www.asterisk.org ##
26735 ## ------------------------------- ##
26736 _ASBOX
26737 ) | sed "s/^/$as_me: WARNING: /" >&2
26739 esac
26740 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26741 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745 eval "$as_ac_Header=\$ac_header_preproc"
26747 ac_res=`eval echo '${'$as_ac_Header'}'`
26748 { echo "$as_me:$LINENO: result: $ac_res" >&5
26749 echo "${ECHO_T}$ac_res" >&6; }
26752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26753 HAS_PWLIB=1
26758 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26759 if test "${OPENH323DIR:-unset}" != "unset"; then
26760 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26762 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26763 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26765 echo $ECHO_N "(cached) $ECHO_C" >&6
26767 ac_res=`eval echo '${'$as_ac_Header'}'`
26768 { echo "$as_me:$LINENO: result: $ac_res" >&5
26769 echo "${ECHO_T}$ac_res" >&6; }
26770 else
26771 # Is the header compilable?
26772 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26773 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.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 <${OPENH323DIR}/../pwlib/version.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 ${OPENH323DIR}/../pwlib/version.h presence" >&5
26814 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.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 <${OPENH323DIR}/../pwlib/version.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: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26855 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26857 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26858 ac_header_preproc=yes
26860 no:yes:* )
26861 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26862 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26864 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26866 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26868 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26870 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26872 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.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 ${OPENH323DIR}/../pwlib/version.h" >&5
26882 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886 eval "$as_ac_Header=\$ac_header_preproc"
26888 ac_res=`eval echo '${'$as_ac_Header'}'`
26889 { echo "$as_me:$LINENO: result: $ac_res" >&5
26890 echo "${ECHO_T}$ac_res" >&6; }
26893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26894 HAS_PWLIB=1
26899 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26900 PWLIBDIR="${OPENH323DIR}/../pwlib"
26901 else
26902 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26904 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26905 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26907 echo $ECHO_N "(cached) $ECHO_C" >&6
26909 ac_res=`eval echo '${'$as_ac_Header'}'`
26910 { echo "$as_me:$LINENO: result: $ac_res" >&5
26911 echo "${ECHO_T}$ac_res" >&6; }
26912 else
26913 # Is the header compilable?
26914 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26915 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h. */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 $ac_includes_default
26923 #include <${HOME}/pwlib/include/ptlib.h>
26924 _ACEOF
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26930 esac
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } && {
26939 test -z "$ac_cxx_werror_flag" ||
26940 test ! -s conftest.err
26941 } && test -s conftest.$ac_objext; then
26942 ac_header_compiler=yes
26943 else
26944 echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26947 ac_header_compiler=no
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26952 echo "${ECHO_T}$ac_header_compiler" >&6; }
26954 # Is the header present?
26955 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26956 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26957 cat >conftest.$ac_ext <<_ACEOF
26958 /* confdefs.h. */
26959 _ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h. */
26963 #include <${HOME}/pwlib/include/ptlib.h>
26964 _ACEOF
26965 if { (ac_try="$ac_cpp conftest.$ac_ext"
26966 case "(($ac_try" in
26967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968 *) ac_try_echo=$ac_try;;
26969 esac
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26972 ac_status=$?
26973 grep -v '^ *+' conftest.er1 >conftest.err
26974 rm -f conftest.er1
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } >/dev/null && {
26978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26979 test ! -s conftest.err
26980 }; then
26981 ac_header_preproc=yes
26982 else
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26986 ac_header_preproc=no
26989 rm -f conftest.err conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26991 echo "${ECHO_T}$ac_header_preproc" >&6; }
26993 # So? What about this header?
26994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26995 yes:no: )
26996 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26997 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26998 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26999 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
27000 ac_header_preproc=yes
27002 no:yes:* )
27003 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
27004 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
27005 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
27006 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
27008 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27010 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
27012 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
27014 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27015 ( cat <<\_ASBOX
27016 ## ------------------------------- ##
27017 ## Report this to www.asterisk.org ##
27018 ## ------------------------------- ##
27019 _ASBOX
27020 ) | sed "s/^/$as_me: WARNING: /" >&2
27022 esac
27023 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
27024 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
27025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27027 else
27028 eval "$as_ac_Header=\$ac_header_preproc"
27030 ac_res=`eval echo '${'$as_ac_Header'}'`
27031 { echo "$as_me:$LINENO: result: $ac_res" >&5
27032 echo "${ECHO_T}$ac_res" >&6; }
27035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27036 HAS_PWLIB=1
27040 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27041 PWLIBDIR="${HOME}/pwlib"
27042 else
27043 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
27044 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
27045 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
27046 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
27050 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
27051 else
27052 # Is the header compilable?
27053 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
27054 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
27055 cat >conftest.$ac_ext <<_ACEOF
27056 /* confdefs.h. */
27057 _ACEOF
27058 cat confdefs.h >>conftest.$ac_ext
27059 cat >>conftest.$ac_ext <<_ACEOF
27060 /* end confdefs.h. */
27061 $ac_includes_default
27062 #include </usr/local/include/ptlib.h>
27063 _ACEOF
27064 rm -f conftest.$ac_objext
27065 if { (ac_try="$ac_compile"
27066 case "(($ac_try" in
27067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068 *) ac_try_echo=$ac_try;;
27069 esac
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071 (eval "$ac_compile") 2>conftest.er1
27072 ac_status=$?
27073 grep -v '^ *+' conftest.er1 >conftest.err
27074 rm -f conftest.er1
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } && {
27078 test -z "$ac_cxx_werror_flag" ||
27079 test ! -s conftest.err
27080 } && test -s conftest.$ac_objext; then
27081 ac_header_compiler=yes
27082 else
27083 echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27086 ac_header_compiler=no
27089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27091 echo "${ECHO_T}$ac_header_compiler" >&6; }
27093 # Is the header present?
27094 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
27095 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
27096 cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h. */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 #include </usr/local/include/ptlib.h>
27103 _ACEOF
27104 if { (ac_try="$ac_cpp conftest.$ac_ext"
27105 case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } >/dev/null && {
27117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27118 test ! -s conftest.err
27119 }; then
27120 ac_header_preproc=yes
27121 else
27122 echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27125 ac_header_preproc=no
27128 rm -f conftest.err conftest.$ac_ext
27129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27130 echo "${ECHO_T}$ac_header_preproc" >&6; }
27132 # So? What about this header?
27133 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27134 yes:no: )
27135 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27136 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
27138 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
27139 ac_header_preproc=yes
27141 no:yes:* )
27142 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
27143 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
27145 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
27147 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27149 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27150 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
27151 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
27153 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27154 ( cat <<\_ASBOX
27155 ## ------------------------------- ##
27156 ## Report this to www.asterisk.org ##
27157 ## ------------------------------- ##
27158 _ASBOX
27159 ) | sed "s/^/$as_me: WARNING: /" >&2
27161 esac
27162 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
27163 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
27164 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27166 else
27167 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
27169 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
27170 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
27173 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
27174 HAS_PWLIB=1
27178 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27179 # Extract the first word of "ptlib-config", so it can be a program name with args.
27180 set dummy ptlib-config; ac_word=$2
27181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27183 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185 else
27186 case $PTLIB_CONFIG in
27187 [\\/]* | ?:[\\/]*)
27188 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27192 for as_dir in /usr/local/bin
27194 IFS=$as_save_IFS
27195 test -z "$as_dir" && as_dir=.
27196 for ac_exec_ext in '' $ac_executable_extensions; do
27197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27198 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27200 break 2
27202 done
27203 done
27204 IFS=$as_save_IFS
27207 esac
27209 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27210 if test -n "$PTLIB_CONFIG"; then
27211 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27212 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27213 else
27214 { echo "$as_me:$LINENO: result: no" >&5
27215 echo "${ECHO_T}no" >&6; }
27219 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
27220 # Extract the first word of "ptlib-config", so it can be a program name with args.
27221 set dummy ptlib-config; ac_word=$2
27222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27224 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27225 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 else
27227 case $PTLIB_CONFIG in
27228 [\\/]* | ?:[\\/]*)
27229 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27233 for as_dir in /usr/local/share/pwlib/make
27235 IFS=$as_save_IFS
27236 test -z "$as_dir" && as_dir=.
27237 for ac_exec_ext in '' $ac_executable_extensions; do
27238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27239 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27241 break 2
27243 done
27244 done
27245 IFS=$as_save_IFS
27248 esac
27250 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27251 if test -n "$PTLIB_CONFIG"; then
27252 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27253 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27254 else
27255 { echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6; }
27261 PWLIB_INCDIR="/usr/local/include"
27262 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
27263 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27264 if test "x$LIB64" != "x"; then
27265 PWLIB_LIBDIR="/usr/local/lib64"
27266 else
27267 PWLIB_LIBDIR="/usr/local/lib"
27270 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
27271 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27272 else
27273 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27274 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27275 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27276 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27279 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27280 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27281 else
27282 # Is the header compilable?
27283 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
27284 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
27285 cat >conftest.$ac_ext <<_ACEOF
27286 /* confdefs.h. */
27287 _ACEOF
27288 cat confdefs.h >>conftest.$ac_ext
27289 cat >>conftest.$ac_ext <<_ACEOF
27290 /* end confdefs.h. */
27291 $ac_includes_default
27292 #include </usr/include/ptlib.h>
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (ac_try="$ac_compile"
27296 case "(($ac_try" in
27297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27299 esac
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301 (eval "$ac_compile") 2>conftest.er1
27302 ac_status=$?
27303 grep -v '^ *+' conftest.er1 >conftest.err
27304 rm -f conftest.er1
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } && {
27308 test -z "$ac_cxx_werror_flag" ||
27309 test ! -s conftest.err
27310 } && test -s conftest.$ac_objext; then
27311 ac_header_compiler=yes
27312 else
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27316 ac_header_compiler=no
27319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27321 echo "${ECHO_T}$ac_header_compiler" >&6; }
27323 # Is the header present?
27324 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
27325 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
27326 cat >conftest.$ac_ext <<_ACEOF
27327 /* confdefs.h. */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27332 #include </usr/include/ptlib.h>
27333 _ACEOF
27334 if { (ac_try="$ac_cpp conftest.$ac_ext"
27335 case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27338 esac
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } >/dev/null && {
27347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27348 test ! -s conftest.err
27349 }; then
27350 ac_header_preproc=yes
27351 else
27352 echo "$as_me: failed program was:" >&5
27353 sed 's/^/| /' conftest.$ac_ext >&5
27355 ac_header_preproc=no
27358 rm -f conftest.err conftest.$ac_ext
27359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27360 echo "${ECHO_T}$ac_header_preproc" >&6; }
27362 # So? What about this header?
27363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27364 yes:no: )
27365 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27366 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27367 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
27368 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
27369 ac_header_preproc=yes
27371 no:yes:* )
27372 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
27373 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
27375 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
27377 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
27378 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
27379 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27380 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
27381 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
27382 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
27383 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
27384 ( cat <<\_ASBOX
27385 ## ------------------------------- ##
27386 ## Report this to www.asterisk.org ##
27387 ## ------------------------------- ##
27388 _ASBOX
27389 ) | sed "s/^/$as_me: WARNING: /" >&2
27391 esac
27392 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
27393 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
27394 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
27395 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 else
27397 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
27399 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
27400 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
27403 if test $ac_cv_header__usr_include_ptlib_h = yes; then
27404 HAS_PWLIB=1
27408 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27409 # Extract the first word of "ptlib-config", so it can be a program name with args.
27410 set dummy ptlib-config; ac_word=$2
27411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27413 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416 case $PTLIB_CONFIG in
27417 [\\/]* | ?:[\\/]*)
27418 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
27421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27422 for as_dir in /usr/share/pwlib/make
27424 IFS=$as_save_IFS
27425 test -z "$as_dir" && as_dir=.
27426 for ac_exec_ext in '' $ac_executable_extensions; do
27427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27428 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27430 break 2
27432 done
27433 done
27434 IFS=$as_save_IFS
27437 esac
27439 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
27440 if test -n "$PTLIB_CONFIG"; then
27441 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
27442 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
27443 else
27444 { echo "$as_me:$LINENO: result: no" >&5
27445 echo "${ECHO_T}no" >&6; }
27449 PWLIB_INCDIR="/usr/include"
27450 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
27451 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27452 if test "x$LIB64" != "x"; then
27453 PWLIB_LIBDIR="/usr/lib64"
27454 else
27455 PWLIB_LIBDIR="/usr/lib"
27458 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
27459 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
27466 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
27467 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
27468 # exit
27471 if test "${HAS_PWLIB:-unset}" != "unset" ; then
27472 if test "${PWLIBDIR:-unset}" = "unset" ; then
27473 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
27474 PWLIBDIR=`$PTLIB_CONFIG --prefix`
27475 else
27476 echo "Cannot find ptlib-config - please install and try again"
27477 exit
27481 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
27482 PWLIBDIR="/usr/share/pwlib"
27483 PWLIB_INCDIR="/usr/include"
27484 if test "x$LIB64" != "x"; then
27485 PWLIB_LIBDIR="/usr/lib64"
27486 else
27487 PWLIB_LIBDIR="/usr/lib"
27490 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
27491 PWLIBDIR="/usr/local/share/pwlib"
27492 PWLIB_INCDIR="/usr/local/include"
27493 if test "x$LIB64" != "x"; then
27494 PWLIB_LIBDIR="/usr/local/lib64"
27495 else
27496 PWLIB_LIBDIR="/usr/local/lib"
27500 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
27501 PWLIB_INCDIR="${PWLIBDIR}/include"
27503 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
27504 PWLIB_LIBDIR="${PWLIBDIR}/lib"
27511 ac_ext=c
27512 ac_cpp='$CPP $CPPFLAGS'
27513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27519 if test "${HAS_PWLIB:-unset}" != "unset"; then
27520 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27521 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
27522 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
27523 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
27524 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
27525 let PWLIB_REQ=1*10000+9*100+2
27527 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
27528 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27529 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
27530 { echo "$as_me:$LINENO: result: no" >&5
27531 echo "${ECHO_T}no" >&6; }
27532 unset HAS_PWLIB
27533 else
27534 { echo "$as_me:$LINENO: result: yes" >&5
27535 echo "${ECHO_T}yes" >&6; }
27540 if test "${HAS_PWLIB:-unset}" != "unset"; then
27542 PWLIB_OSTYPE=
27543 case "$host_os" in
27544 linux*) PWLIB_OSTYPE=linux ;
27546 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
27548 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
27549 ENDLDLIBS="-lossaudio" ;
27551 netbsd* ) PWLIB_OSTYPE=NetBSD ;
27552 ENDLDLIBS="-lossaudio" ;
27554 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
27556 darwin* ) PWLIB_OSTYPE=Darwin ;
27558 beos*) PWLIB_OSTYPE=beos ;
27559 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
27561 cygwin*) PWLIB_OSTYPE=cygwin ;
27563 mingw*) PWLIB_OSTYPE=mingw ;
27564 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
27565 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
27567 * ) PWLIB_OSTYPE="$host_os" ;
27568 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
27569 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
27571 esac
27573 PWLIB_MACHTYPE=
27574 case "$host_cpu" in
27575 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
27578 x86_64) PWLIB_MACHTYPE=x86_64 ;
27579 P_64BIT=1 ;
27580 LIB64=1 ;
27583 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
27584 P_64BIT=1 ;
27587 sparc ) PWLIB_MACHTYPE=sparc ;
27590 powerpc ) PWLIB_MACHTYPE=ppc ;
27593 ppc ) PWLIB_MACHTYPE=ppc ;
27596 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
27597 P_64BIT=1 ;
27598 LIB64=1 ;
27601 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
27602 P_64BIT=1 ;
27603 LIB64=1 ;
27606 ia64) PWLIB_MACHTYPE=ia64 ;
27607 P_64BIT=1 ;
27610 s390x) PWLIB_MACHTYPE=s390x ;
27611 P_64BIT=1 ;
27612 LIB64=1 ;
27615 s390) PWLIB_MACHTYPE=s390 ;
27618 * ) PWLIB_MACHTYPE="$host_cpu";
27619 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
27620 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27621 esac
27623 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27628 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27631 if test "${HAS_PWLIB:-unset}" != "unset"; then
27632 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27633 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27635 saved_cppflags="${CPPFLAGS}"
27636 saved_libs="${LIBS}"
27637 if test "${PWLIB_LIB:-unset}" != "unset"; then
27638 LIBS="${LIBS} ${PWLIB_LIB} "
27639 else
27640 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27642 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27644 ac_ext=cpp
27645 ac_cpp='$CXXCPP $CPPFLAGS'
27646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27651 cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h. */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h. */
27657 #include "ptlib.h"
27659 main ()
27661 BOOL q = PTime::IsDaylightSavings();
27663 return 0;
27665 _ACEOF
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (ac_try="$ac_link"
27668 case "(($ac_try" in
27669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670 *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673 (eval "$ac_link") 2>conftest.er1
27674 ac_status=$?
27675 grep -v '^ *+' conftest.er1 >conftest.err
27676 rm -f conftest.er1
27677 cat conftest.err >&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); } && {
27680 test -z "$ac_cxx_werror_flag" ||
27681 test ! -s conftest.err
27682 } && test -s conftest$ac_exeext &&
27683 $as_test_x conftest$ac_exeext; then
27684 { echo "$as_me:$LINENO: result: yes" >&5
27685 echo "${ECHO_T}yes" >&6; }
27686 ac_cv_lib_PWLIB="yes"
27688 else
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27692 { echo "$as_me:$LINENO: result: no" >&5
27693 echo "${ECHO_T}no" >&6; }
27694 ac_cv_lib_PWLIB="no"
27699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27700 conftest$ac_exeext conftest.$ac_ext
27702 ac_ext=c
27703 ac_cpp='$CPP $CPPFLAGS'
27704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27709 LIBS="${saved_libs}"
27710 CPPFLAGS="${saved_cppflags}"
27712 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27713 if test "${PWLIB_LIB:-undef}" = "undef"; then
27714 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27715 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27716 else
27717 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27720 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27721 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27723 PBX_PWLIB=1
27725 cat >>confdefs.h <<\_ACEOF
27726 #define HAVE_PWLIB 1
27727 _ACEOF
27735 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27736 { echo "$as_me:$LINENO: ***" >&5
27737 echo "$as_me: ***" >&6;}
27738 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27739 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27740 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27741 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27742 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27743 echo "$as_me: *** including --without-pwlib" >&6;}
27744 exit 1
27747 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27748 if test -n "${OPENH323_DIR}"; then
27749 OPENH323DIR="${OPENH323_DIR}"
27752 OPENH323_INCDIR=
27753 OPENH323_LIBDIR=
27754 ac_ext=cpp
27755 ac_cpp='$CXXCPP $CPPFLAGS'
27756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27760 if test "${OPENH323DIR:-unset}" != "unset" ; then
27761 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27763 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27764 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27768 ac_res=`eval echo '${'$as_ac_Header'}'`
27769 { echo "$as_me:$LINENO: result: $ac_res" >&5
27770 echo "${ECHO_T}$ac_res" >&6; }
27771 else
27772 # Is the header compilable?
27773 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27774 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27775 cat >conftest.$ac_ext <<_ACEOF
27776 /* confdefs.h. */
27777 _ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h. */
27781 $ac_includes_default
27782 #include <${OPENH323DIR}/version.h>
27783 _ACEOF
27784 rm -f conftest.$ac_objext
27785 if { (ac_try="$ac_compile"
27786 case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27789 esac
27790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791 (eval "$ac_compile") 2>conftest.er1
27792 ac_status=$?
27793 grep -v '^ *+' conftest.er1 >conftest.err
27794 rm -f conftest.er1
27795 cat conftest.err >&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } && {
27798 test -z "$ac_cxx_werror_flag" ||
27799 test ! -s conftest.err
27800 } && test -s conftest.$ac_objext; then
27801 ac_header_compiler=yes
27802 else
27803 echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27806 ac_header_compiler=no
27809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27811 echo "${ECHO_T}$ac_header_compiler" >&6; }
27813 # Is the header present?
27814 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27815 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27816 cat >conftest.$ac_ext <<_ACEOF
27817 /* confdefs.h. */
27818 _ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27822 #include <${OPENH323DIR}/version.h>
27823 _ACEOF
27824 if { (ac_try="$ac_cpp conftest.$ac_ext"
27825 case "(($ac_try" in
27826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27828 esac
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27831 ac_status=$?
27832 grep -v '^ *+' conftest.er1 >conftest.err
27833 rm -f conftest.er1
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } >/dev/null && {
27837 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27838 test ! -s conftest.err
27839 }; then
27840 ac_header_preproc=yes
27841 else
27842 echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.$ac_ext >&5
27845 ac_header_preproc=no
27848 rm -f conftest.err conftest.$ac_ext
27849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27850 echo "${ECHO_T}$ac_header_preproc" >&6; }
27852 # So? What about this header?
27853 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27854 yes:no: )
27855 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27856 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27857 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27858 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27859 ac_header_preproc=yes
27861 no:yes:* )
27862 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27863 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27865 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27866 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27867 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27868 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27869 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27870 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27871 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27872 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27873 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27874 ( cat <<\_ASBOX
27875 ## ------------------------------- ##
27876 ## Report this to www.asterisk.org ##
27877 ## ------------------------------- ##
27878 _ASBOX
27879 ) | sed "s/^/$as_me: WARNING: /" >&2
27881 esac
27882 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27883 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27887 eval "$as_ac_Header=\$ac_header_preproc"
27889 ac_res=`eval echo '${'$as_ac_Header'}'`
27890 { echo "$as_me:$LINENO: result: $ac_res" >&5
27891 echo "${ECHO_T}$ac_res" >&6; }
27894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27895 HAS_OPENH323=1
27900 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27901 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27903 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27904 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27908 ac_res=`eval echo '${'$as_ac_Header'}'`
27909 { echo "$as_me:$LINENO: result: $ac_res" >&5
27910 echo "${ECHO_T}$ac_res" >&6; }
27911 else
27912 # Is the header compilable?
27913 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27914 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27915 cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h. */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27921 $ac_includes_default
27922 #include <${PWLIBDIR}/../openh323/version.h>
27923 _ACEOF
27924 rm -f conftest.$ac_objext
27925 if { (ac_try="$ac_compile"
27926 case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_compile") 2>conftest.er1
27932 ac_status=$?
27933 grep -v '^ *+' conftest.er1 >conftest.err
27934 rm -f conftest.er1
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } && {
27938 test -z "$ac_cxx_werror_flag" ||
27939 test ! -s conftest.err
27940 } && test -s conftest.$ac_objext; then
27941 ac_header_compiler=yes
27942 else
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.$ac_ext >&5
27946 ac_header_compiler=no
27949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27951 echo "${ECHO_T}$ac_header_compiler" >&6; }
27953 # Is the header present?
27954 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27955 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27956 cat >conftest.$ac_ext <<_ACEOF
27957 /* confdefs.h. */
27958 _ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h. */
27962 #include <${PWLIBDIR}/../openh323/version.h>
27963 _ACEOF
27964 if { (ac_try="$ac_cpp conftest.$ac_ext"
27965 case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27971 ac_status=$?
27972 grep -v '^ *+' conftest.er1 >conftest.err
27973 rm -f conftest.er1
27974 cat conftest.err >&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } >/dev/null && {
27977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27978 test ! -s conftest.err
27979 }; then
27980 ac_header_preproc=yes
27981 else
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 ac_header_preproc=no
27988 rm -f conftest.err conftest.$ac_ext
27989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27990 echo "${ECHO_T}$ac_header_preproc" >&6; }
27992 # So? What about this header?
27993 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27994 yes:no: )
27995 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27996 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27997 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27998 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27999 ac_header_preproc=yes
28001 no:yes:* )
28002 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
28003 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
28004 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
28005 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
28006 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
28007 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
28008 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
28009 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
28010 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
28011 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
28013 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
28014 ( cat <<\_ASBOX
28015 ## ------------------------------- ##
28016 ## Report this to www.asterisk.org ##
28017 ## ------------------------------- ##
28018 _ASBOX
28019 ) | sed "s/^/$as_me: WARNING: /" >&2
28021 esac
28022 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
28023 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
28024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027 eval "$as_ac_Header=\$ac_header_preproc"
28029 ac_res=`eval echo '${'$as_ac_Header'}'`
28030 { echo "$as_me:$LINENO: result: $ac_res" >&5
28031 echo "${ECHO_T}$ac_res" >&6; }
28034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28035 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
28039 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28040 OPENH323DIR="${PWLIBDIR}/../openh323"
28041 saved_cppflags="${CPPFLAGS}"
28042 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
28043 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
28044 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
28045 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
28046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28047 echo $ECHO_N "(cached) $ECHO_C" >&6
28048 else
28049 cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h. */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28055 #include <ptlib.h>
28057 #include <${OPENH323DIR}/include/h323.h>
28058 _ACEOF
28059 rm -f conftest.$ac_objext
28060 if { (ac_try="$ac_compile"
28061 case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28064 esac
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_compile") 2>conftest.er1
28067 ac_status=$?
28068 grep -v '^ *+' conftest.er1 >conftest.err
28069 rm -f conftest.er1
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } && {
28073 test -z "$ac_cxx_werror_flag" ||
28074 test ! -s conftest.err
28075 } && test -s conftest.$ac_objext; then
28076 eval "$as_ac_Header=yes"
28077 else
28078 echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28081 eval "$as_ac_Header=no"
28084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086 ac_res=`eval echo '${'$as_ac_Header'}'`
28087 { echo "$as_me:$LINENO: result: $ac_res" >&5
28088 echo "${ECHO_T}$ac_res" >&6; }
28089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28091 else
28092 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
28096 CPPFLAGS="${saved_cppflags}"
28097 else
28098 saved_cppflags="${CPPFLAGS}"
28099 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
28100 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
28101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28102 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28103 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28107 ac_res=`eval echo '${'$as_ac_Header'}'`
28108 { echo "$as_me:$LINENO: result: $ac_res" >&5
28109 echo "${ECHO_T}$ac_res" >&6; }
28110 else
28111 # Is the header compilable?
28112 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
28113 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
28114 cat >conftest.$ac_ext <<_ACEOF
28115 /* confdefs.h. */
28116 _ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28120 $ac_includes_default
28121 #include <${HOME}/openh323/include/h323.h>
28122 _ACEOF
28123 rm -f conftest.$ac_objext
28124 if { (ac_try="$ac_compile"
28125 case "(($ac_try" in
28126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127 *) ac_try_echo=$ac_try;;
28128 esac
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_compile") 2>conftest.er1
28131 ac_status=$?
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } && {
28137 test -z "$ac_cxx_werror_flag" ||
28138 test ! -s conftest.err
28139 } && test -s conftest.$ac_objext; then
28140 ac_header_compiler=yes
28141 else
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28145 ac_header_compiler=no
28148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28150 echo "${ECHO_T}$ac_header_compiler" >&6; }
28152 # Is the header present?
28153 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
28154 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
28155 cat >conftest.$ac_ext <<_ACEOF
28156 /* confdefs.h. */
28157 _ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h. */
28161 #include <${HOME}/openh323/include/h323.h>
28162 _ACEOF
28163 if { (ac_try="$ac_cpp conftest.$ac_ext"
28164 case "(($ac_try" in
28165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28166 *) ac_try_echo=$ac_try;;
28167 esac
28168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28170 ac_status=$?
28171 grep -v '^ *+' conftest.er1 >conftest.err
28172 rm -f conftest.er1
28173 cat conftest.err >&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); } >/dev/null && {
28176 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28177 test ! -s conftest.err
28178 }; then
28179 ac_header_preproc=yes
28180 else
28181 echo "$as_me: failed program was:" >&5
28182 sed 's/^/| /' conftest.$ac_ext >&5
28184 ac_header_preproc=no
28187 rm -f conftest.err conftest.$ac_ext
28188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28189 echo "${ECHO_T}$ac_header_preproc" >&6; }
28191 # So? What about this header?
28192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28193 yes:no: )
28194 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28195 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28196 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
28197 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
28198 ac_header_preproc=yes
28200 no:yes:* )
28201 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
28202 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
28204 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
28205 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
28206 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
28207 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28208 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28209 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
28210 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
28211 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
28212 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
28213 ( cat <<\_ASBOX
28214 ## ------------------------------- ##
28215 ## Report this to www.asterisk.org ##
28216 ## ------------------------------- ##
28217 _ASBOX
28218 ) | sed "s/^/$as_me: WARNING: /" >&2
28220 esac
28221 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
28222 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
28223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28224 echo $ECHO_N "(cached) $ECHO_C" >&6
28225 else
28226 eval "$as_ac_Header=\$ac_header_preproc"
28228 ac_res=`eval echo '${'$as_ac_Header'}'`
28229 { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28234 HAS_OPENH323=1
28238 CPPFLAGS="${saved_cppflags}"
28239 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28240 OPENH323DIR="${HOME}/openh323"
28241 else
28242 saved_cppflags="${CPPFLAGS}"
28243 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
28244 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28245 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28246 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28247 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28248 echo $ECHO_N "(cached) $ECHO_C" >&6
28250 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28251 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28252 else
28253 # Is the header compilable?
28254 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
28255 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
28256 cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h. */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28262 $ac_includes_default
28263 #include </usr/local/include/openh323/h323.h>
28264 _ACEOF
28265 rm -f conftest.$ac_objext
28266 if { (ac_try="$ac_compile"
28267 case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28270 esac
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_compile") 2>conftest.er1
28273 ac_status=$?
28274 grep -v '^ *+' conftest.er1 >conftest.err
28275 rm -f conftest.er1
28276 cat conftest.err >&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } && {
28279 test -z "$ac_cxx_werror_flag" ||
28280 test ! -s conftest.err
28281 } && test -s conftest.$ac_objext; then
28282 ac_header_compiler=yes
28283 else
28284 echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.$ac_ext >&5
28287 ac_header_compiler=no
28290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28292 echo "${ECHO_T}$ac_header_compiler" >&6; }
28294 # Is the header present?
28295 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
28296 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
28297 cat >conftest.$ac_ext <<_ACEOF
28298 /* confdefs.h. */
28299 _ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h. */
28303 #include </usr/local/include/openh323/h323.h>
28304 _ACEOF
28305 if { (ac_try="$ac_cpp conftest.$ac_ext"
28306 case "(($ac_try" in
28307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28308 *) ac_try_echo=$ac_try;;
28309 esac
28310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28312 ac_status=$?
28313 grep -v '^ *+' conftest.er1 >conftest.err
28314 rm -f conftest.er1
28315 cat conftest.err >&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } >/dev/null && {
28318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
28319 test ! -s conftest.err
28320 }; then
28321 ac_header_preproc=yes
28322 else
28323 echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28326 ac_header_preproc=no
28329 rm -f conftest.err conftest.$ac_ext
28330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28331 echo "${ECHO_T}$ac_header_preproc" >&6; }
28333 # So? What about this header?
28334 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28335 yes:no: )
28336 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
28337 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28338 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
28339 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
28340 ac_header_preproc=yes
28342 no:yes:* )
28343 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
28344 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
28345 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
28346 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
28347 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
28348 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
28349 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
28350 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
28351 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
28352 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
28353 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
28354 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
28355 ( cat <<\_ASBOX
28356 ## ------------------------------- ##
28357 ## Report this to www.asterisk.org ##
28358 ## ------------------------------- ##
28359 _ASBOX
28360 ) | sed "s/^/$as_me: WARNING: /" >&2
28362 esac
28363 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
28364 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
28365 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
28366 echo $ECHO_N "(cached) $ECHO_C" >&6
28367 else
28368 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
28370 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
28371 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
28374 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
28375 HAS_OPENH323=1
28379 CPPFLAGS="${saved_cppflags}"
28380 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28381 OPENH323DIR="/usr/local/share/openh323"
28382 OPENH323_INCDIR="/usr/local/include/openh323"
28383 if test "x$LIB64" != "x"; then
28384 OPENH323_LIBDIR="/usr/local/lib64"
28385 else
28386 OPENH323_LIBDIR="/usr/local/lib"
28388 else
28389 saved_cppflags="${CPPFLAGS}"
28390 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
28391 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
28392 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
28393 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
28394 echo $ECHO_N "(cached) $ECHO_C" >&6
28395 else
28396 cat >conftest.$ac_ext <<_ACEOF
28397 /* confdefs.h. */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28402 #include <ptlib.h>
28404 #include </usr/include/openh323/h323.h>
28405 _ACEOF
28406 rm -f conftest.$ac_objext
28407 if { (ac_try="$ac_compile"
28408 case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_compile") 2>conftest.er1
28414 ac_status=$?
28415 grep -v '^ *+' conftest.er1 >conftest.err
28416 rm -f conftest.er1
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && {
28420 test -z "$ac_cxx_werror_flag" ||
28421 test ! -s conftest.err
28422 } && test -s conftest.$ac_objext; then
28423 ac_cv_header__usr_include_openh323_h323_h=yes
28424 else
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 ac_cv_header__usr_include_openh323_h323_h=no
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
28434 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
28435 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
28436 HAS_OPENH323=1
28440 CPPFLAGS="${saved_cppflags}"
28441 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28442 OPENH323DIR="/usr/share/openh323"
28443 OPENH323_INCDIR="/usr/include/openh323"
28444 if test "x$LIB64" != "x"; then
28445 OPENH323_LIBDIR="/usr/lib64"
28446 else
28447 OPENH323_LIBDIR="/usr/lib"
28455 if test "${HAS_OPENH323:-unset}" != "unset" ; then
28456 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
28457 OPENH323_INCDIR="${OPENH323DIR}/include"
28459 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
28460 OPENH323_LIBDIR="${OPENH323DIR}/lib"
28463 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
28464 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
28465 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
28471 ac_ext=c
28472 ac_cpp='$CPP $CPPFLAGS'
28473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28479 if test "${HAS_OPENH323:-unset}" != "unset"; then
28480 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
28481 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
28482 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
28483 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
28484 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
28485 let OPENH323_REQ=1*10000+17*100+3
28487 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
28488 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
28489 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
28490 { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28492 unset HAS_OPENH323
28493 else
28494 { echo "$as_me:$LINENO: result: yes" >&5
28495 echo "${ECHO_T}yes" >&6; }
28500 if test "${HAS_OPENH323:-unset}" != "unset"; then
28501 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
28502 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
28503 OPENH323_SUFFIX=
28504 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
28505 for pfx in $prefixes; do
28506 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
28507 libfile=
28508 if test -n "$files"; then
28509 for f in $files; do
28510 if test -f $f -a ! -L $f; then
28511 libfile=`basename $f`
28512 break;
28514 done
28516 if test -n "$libfile"; then
28517 OPENH323_PREFIX=$pfx
28518 break;
28520 done
28521 if test "${libfile:-unset}" != "unset"; then
28522 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
28524 case "${OPENH323_SUFFIX}" in
28526 OPENH323_BUILD="notrace";;
28528 OPENH323_BUILD="opt";;
28530 OPENH323_BUILD="debug";;
28532 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
28533 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
28534 if test "x$notrace" = "x"; then
28535 notrace="0"
28537 if test "$notrace" -ne 0; then
28538 OPENH323_BUILD="notrace"
28539 else
28540 OPENH323_BUILD="opt"
28542 OPENH323_LIB="-l${OPENH323_PREFIX}"
28543 else
28544 OPENH323_BUILD="notrace"
28547 esac
28548 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
28549 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
28555 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
28557 if test "${HAS_OPENH323:-unset}" != "unset"; then
28558 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
28559 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
28561 saved_cppflags="${CPPFLAGS}"
28562 saved_libs="${LIBS}"
28563 if test "${OPENH323_LIB:-unset}" != "unset"; then
28564 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
28565 else
28566 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
28568 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
28570 ac_ext=cpp
28571 ac_cpp='$CXXCPP $CPPFLAGS'
28572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28577 cat >conftest.$ac_ext <<_ACEOF
28578 /* confdefs.h. */
28579 _ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h. */
28583 #include "ptlib.h"
28584 #include "h323.h"
28585 #include "h323ep.h"
28587 main ()
28589 H323EndPoint ep = H323EndPoint();
28591 return 0;
28593 _ACEOF
28594 rm -f conftest.$ac_objext conftest$ac_exeext
28595 if { (ac_try="$ac_link"
28596 case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599 esac
28600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_link") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_cxx_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest$ac_exeext &&
28611 $as_test_x conftest$ac_exeext; then
28612 { echo "$as_me:$LINENO: result: yes" >&5
28613 echo "${ECHO_T}yes" >&6; }
28614 ac_cv_lib_OPENH323="yes"
28616 else
28617 echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28620 { echo "$as_me:$LINENO: result: no" >&5
28621 echo "${ECHO_T}no" >&6; }
28622 ac_cv_lib_OPENH323="no"
28627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28628 conftest$ac_exeext conftest.$ac_ext
28630 ac_ext=c
28631 ac_cpp='$CPP $CPPFLAGS'
28632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28637 LIBS="${saved_libs}"
28638 CPPFLAGS="${saved_cppflags}"
28640 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28641 if test "${OPENH323_LIB:-undef}" = "undef"; then
28642 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28643 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28644 else
28645 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28648 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28649 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28651 PBX_OPENH323=1
28653 cat >>confdefs.h <<\_ACEOF
28654 #define HAVE_OPENH323 1
28655 _ACEOF
28661 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28662 { echo "$as_me:$LINENO: ***" >&5
28663 echo "$as_me: ***" >&6;}
28664 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28665 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28666 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28667 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28668 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28669 echo "$as_me: *** including --without-h323" >&6;}
28670 exit 1
28674 if test "${USE_RADIUS}" != "no"; then
28675 pbxlibdir=""
28676 if test "x${RADIUS_DIR}" != "x"; then
28677 if test -d ${RADIUS_DIR}/lib; then
28678 pbxlibdir="-L${RADIUS_DIR}/lib"
28679 else
28680 pbxlibdir="-L${RADIUS_DIR}"
28683 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28684 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28685 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28687 else
28688 ac_check_lib_save_LIBS=$LIBS
28689 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28690 cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h. */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h. */
28697 /* Override any GCC internal prototype to avoid an error.
28698 Use char because int might match the return type of a GCC
28699 builtin and then its argument prototype would still apply. */
28700 #ifdef __cplusplus
28701 extern "C"
28702 #endif
28703 char rc_read_config ();
28705 main ()
28707 return rc_read_config ();
28709 return 0;
28711 _ACEOF
28712 rm -f conftest.$ac_objext conftest$ac_exeext
28713 if { (ac_try="$ac_link"
28714 case "(($ac_try" in
28715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28717 esac
28718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_link") 2>conftest.er1
28720 ac_status=$?
28721 grep -v '^ *+' conftest.er1 >conftest.err
28722 rm -f conftest.er1
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); } && {
28726 test -z "$ac_c_werror_flag" ||
28727 test ! -s conftest.err
28728 } && test -s conftest$ac_exeext &&
28729 $as_test_x conftest$ac_exeext; then
28730 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28731 else
28732 echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 ac_cv_lib_radiusclient_ng_rc_read_config=no
28738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28739 conftest$ac_exeext conftest.$ac_ext
28740 LIBS=$ac_check_lib_save_LIBS
28742 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28743 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28744 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28745 AST_RADIUS_FOUND=yes
28746 else
28747 AST_RADIUS_FOUND=no
28751 if test "${AST_RADIUS_FOUND}" = "yes"; then
28752 RADIUS_LIB="-lradiusclient-ng "
28753 RADIUS_HEADER_FOUND="1"
28754 if test "x${RADIUS_DIR}" != "x"; then
28755 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28756 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28757 saved_cppflags="${CPPFLAGS}"
28758 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28759 if test "xradiusclient-ng.h" != "x" ; then
28760 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
28761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28762 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28763 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 ac_res=`eval echo '${'$as_ac_Header'}'`
28768 { echo "$as_me:$LINENO: result: $ac_res" >&5
28769 echo "${ECHO_T}$ac_res" >&6; }
28770 else
28771 # Is the header compilable?
28772 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28773 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28774 cat >conftest.$ac_ext <<_ACEOF
28775 /* confdefs.h. */
28776 _ACEOF
28777 cat confdefs.h >>conftest.$ac_ext
28778 cat >>conftest.$ac_ext <<_ACEOF
28779 /* end confdefs.h. */
28780 $ac_includes_default
28781 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28782 _ACEOF
28783 rm -f conftest.$ac_objext
28784 if { (ac_try="$ac_compile"
28785 case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28788 esac
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_compile") 2>conftest.er1
28791 ac_status=$?
28792 grep -v '^ *+' conftest.er1 >conftest.err
28793 rm -f conftest.er1
28794 cat conftest.err >&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } && {
28797 test -z "$ac_c_werror_flag" ||
28798 test ! -s conftest.err
28799 } && test -s conftest.$ac_objext; then
28800 ac_header_compiler=yes
28801 else
28802 echo "$as_me: failed program was:" >&5
28803 sed 's/^/| /' conftest.$ac_ext >&5
28805 ac_header_compiler=no
28808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28810 echo "${ECHO_T}$ac_header_compiler" >&6; }
28812 # Is the header present?
28813 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28814 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28815 cat >conftest.$ac_ext <<_ACEOF
28816 /* confdefs.h. */
28817 _ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h. */
28821 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28822 _ACEOF
28823 if { (ac_try="$ac_cpp conftest.$ac_ext"
28824 case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28827 esac
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28830 ac_status=$?
28831 grep -v '^ *+' conftest.er1 >conftest.err
28832 rm -f conftest.er1
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } >/dev/null && {
28836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28837 test ! -s conftest.err
28838 }; then
28839 ac_header_preproc=yes
28840 else
28841 echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28844 ac_header_preproc=no
28847 rm -f conftest.err conftest.$ac_ext
28848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28849 echo "${ECHO_T}$ac_header_preproc" >&6; }
28851 # So? What about this header?
28852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28853 yes:no: )
28854 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28855 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28857 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28858 ac_header_preproc=yes
28860 no:yes:* )
28861 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28862 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28864 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28866 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28868 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28870 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28872 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28873 ( cat <<\_ASBOX
28874 ## ------------------------------- ##
28875 ## Report this to www.asterisk.org ##
28876 ## ------------------------------- ##
28877 _ASBOX
28878 ) | sed "s/^/$as_me: WARNING: /" >&2
28880 esac
28881 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28882 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886 eval "$as_ac_Header=\$ac_header_preproc"
28888 ac_res=`eval echo '${'$as_ac_Header'}'`
28889 { echo "$as_me:$LINENO: result: $ac_res" >&5
28890 echo "${ECHO_T}$ac_res" >&6; }
28893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894 RADIUS_HEADER_FOUND=1
28895 else
28896 RADIUS_HEADER_FOUND=0
28901 CPPFLAGS="${saved_cppflags}"
28902 else
28903 if test "xradiusclient-ng.h" != "x" ; then
28904 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28905 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28906 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28907 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28911 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28912 else
28913 # Is the header compilable?
28914 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28915 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28916 cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h. */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28922 $ac_includes_default
28923 #include <radiusclient-ng.h>
28924 _ACEOF
28925 rm -f conftest.$ac_objext
28926 if { (ac_try="$ac_compile"
28927 case "(($ac_try" in
28928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929 *) ac_try_echo=$ac_try;;
28930 esac
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_compile") 2>conftest.er1
28933 ac_status=$?
28934 grep -v '^ *+' conftest.er1 >conftest.err
28935 rm -f conftest.er1
28936 cat conftest.err >&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } && {
28939 test -z "$ac_c_werror_flag" ||
28940 test ! -s conftest.err
28941 } && test -s conftest.$ac_objext; then
28942 ac_header_compiler=yes
28943 else
28944 echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28947 ac_header_compiler=no
28950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28952 echo "${ECHO_T}$ac_header_compiler" >&6; }
28954 # Is the header present?
28955 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28956 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28957 cat >conftest.$ac_ext <<_ACEOF
28958 /* confdefs.h. */
28959 _ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h. */
28963 #include <radiusclient-ng.h>
28964 _ACEOF
28965 if { (ac_try="$ac_cpp conftest.$ac_ext"
28966 case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28969 esac
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28972 ac_status=$?
28973 grep -v '^ *+' conftest.er1 >conftest.err
28974 rm -f conftest.er1
28975 cat conftest.err >&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } >/dev/null && {
28978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28979 test ! -s conftest.err
28980 }; then
28981 ac_header_preproc=yes
28982 else
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28986 ac_header_preproc=no
28989 rm -f conftest.err conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28991 echo "${ECHO_T}$ac_header_preproc" >&6; }
28993 # So? What about this header?
28994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28995 yes:no: )
28996 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28997 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28999 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
29000 ac_header_preproc=yes
29002 no:yes:* )
29003 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
29004 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
29006 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
29008 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
29010 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
29012 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
29014 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
29015 ( cat <<\_ASBOX
29016 ## ------------------------------- ##
29017 ## Report this to www.asterisk.org ##
29018 ## ------------------------------- ##
29019 _ASBOX
29020 ) | sed "s/^/$as_me: WARNING: /" >&2
29022 esac
29023 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
29024 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
29025 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
29030 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
29031 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
29034 if test $ac_cv_header_radiusclient_ng_h = yes; then
29035 RADIUS_HEADER_FOUND=1
29036 else
29037 RADIUS_HEADER_FOUND=0
29043 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
29044 if test -n "${RADIUS_MANDATORY}" ;
29045 then
29046 { echo "$as_me:$LINENO: ***" >&5
29047 echo "$as_me: ***" >&6;}
29048 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
29049 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
29050 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
29051 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
29052 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
29053 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
29054 exit 1
29056 RADIUS_LIB=""
29057 RADIUS_INCLUDE=""
29058 PBX_RADIUS=0
29059 else
29060 PBX_RADIUS=1
29062 cat >>confdefs.h <<_ACEOF
29063 #define HAVE_RADIUS 1
29064 _ACEOF
29067 elif test -n "${RADIUS_MANDATORY}";
29068 then
29069 { echo "$as_me:$LINENO: ***" >&5
29070 echo "$as_me: ***" >&6;}
29071 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
29072 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
29073 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29074 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29075 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
29076 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
29077 exit 1
29083 if test "${USE_SPEEX}" != "no"; then
29084 pbxlibdir=""
29085 if test "x${SPEEX_DIR}" != "x"; then
29086 if test -d ${SPEEX_DIR}/lib; then
29087 pbxlibdir="-L${SPEEX_DIR}/lib"
29088 else
29089 pbxlibdir="-L${SPEEX_DIR}"
29092 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
29093 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
29094 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096 else
29097 ac_check_lib_save_LIBS=$LIBS
29098 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
29099 cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h. */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29106 /* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29109 #ifdef __cplusplus
29110 extern "C"
29111 #endif
29112 char speex_encode ();
29114 main ()
29116 return speex_encode ();
29118 return 0;
29120 _ACEOF
29121 rm -f conftest.$ac_objext conftest$ac_exeext
29122 if { (ac_try="$ac_link"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_link") 2>conftest.er1
29129 ac_status=$?
29130 grep -v '^ *+' conftest.er1 >conftest.err
29131 rm -f conftest.er1
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && {
29135 test -z "$ac_c_werror_flag" ||
29136 test ! -s conftest.err
29137 } && test -s conftest$ac_exeext &&
29138 $as_test_x conftest$ac_exeext; then
29139 ac_cv_lib_speex_speex_encode=yes
29140 else
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_lib_speex_speex_encode=no
29147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29148 conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29151 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
29152 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
29153 if test $ac_cv_lib_speex_speex_encode = yes; then
29154 AST_SPEEX_FOUND=yes
29155 else
29156 AST_SPEEX_FOUND=no
29160 if test "${AST_SPEEX_FOUND}" = "yes"; then
29161 SPEEX_LIB="-lspeex -lm"
29162 SPEEX_HEADER_FOUND="1"
29163 if test "x${SPEEX_DIR}" != "x"; then
29164 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
29165 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
29166 saved_cppflags="${CPPFLAGS}"
29167 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
29168 if test "xspeex/speex.h" != "x" ; then
29169 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
29170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29171 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29172 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29176 ac_res=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178 echo "${ECHO_T}$ac_res" >&6; }
29179 else
29180 # Is the header compilable?
29181 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
29182 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29183 cat >conftest.$ac_ext <<_ACEOF
29184 /* confdefs.h. */
29185 _ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29189 $ac_includes_default
29190 #include <${SPEEX_DIR}/include/speex/speex.h>
29191 _ACEOF
29192 rm -f conftest.$ac_objext
29193 if { (ac_try="$ac_compile"
29194 case "(($ac_try" in
29195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29197 esac
29198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199 (eval "$ac_compile") 2>conftest.er1
29200 ac_status=$?
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } && {
29206 test -z "$ac_c_werror_flag" ||
29207 test ! -s conftest.err
29208 } && test -s conftest.$ac_objext; then
29209 ac_header_compiler=yes
29210 else
29211 echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29214 ac_header_compiler=no
29217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29219 echo "${ECHO_T}$ac_header_compiler" >&6; }
29221 # Is the header present?
29222 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
29223 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29224 cat >conftest.$ac_ext <<_ACEOF
29225 /* confdefs.h. */
29226 _ACEOF
29227 cat confdefs.h >>conftest.$ac_ext
29228 cat >>conftest.$ac_ext <<_ACEOF
29229 /* end confdefs.h. */
29230 #include <${SPEEX_DIR}/include/speex/speex.h>
29231 _ACEOF
29232 if { (ac_try="$ac_cpp conftest.$ac_ext"
29233 case "(($ac_try" in
29234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235 *) ac_try_echo=$ac_try;;
29236 esac
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29239 ac_status=$?
29240 grep -v '^ *+' conftest.er1 >conftest.err
29241 rm -f conftest.er1
29242 cat conftest.err >&5
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); } >/dev/null && {
29245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29246 test ! -s conftest.err
29247 }; then
29248 ac_header_preproc=yes
29249 else
29250 echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29253 ac_header_preproc=no
29256 rm -f conftest.err conftest.$ac_ext
29257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29258 echo "${ECHO_T}$ac_header_preproc" >&6; }
29260 # So? What about this header?
29261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29262 yes:no: )
29263 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29264 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29266 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29267 ac_header_preproc=yes
29269 no:yes:* )
29270 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29271 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29273 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29275 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29277 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29279 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29280 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29281 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29282 ( cat <<\_ASBOX
29283 ## ------------------------------- ##
29284 ## Report this to www.asterisk.org ##
29285 ## ------------------------------- ##
29286 _ASBOX
29287 ) | sed "s/^/$as_me: WARNING: /" >&2
29289 esac
29290 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
29291 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295 eval "$as_ac_Header=\$ac_header_preproc"
29297 ac_res=`eval echo '${'$as_ac_Header'}'`
29298 { echo "$as_me:$LINENO: result: $ac_res" >&5
29299 echo "${ECHO_T}$ac_res" >&6; }
29302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29303 SPEEX_HEADER_FOUND=1
29304 else
29305 SPEEX_HEADER_FOUND=0
29310 CPPFLAGS="${saved_cppflags}"
29311 else
29312 if test "xspeex/speex.h" != "x" ; then
29313 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29314 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29315 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29316 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29317 echo $ECHO_N "(cached) $ECHO_C" >&6
29319 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29320 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29321 else
29322 # Is the header compilable?
29323 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29324 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29325 cat >conftest.$ac_ext <<_ACEOF
29326 /* confdefs.h. */
29327 _ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h. */
29331 $ac_includes_default
29332 #include <speex/speex.h>
29333 _ACEOF
29334 rm -f conftest.$ac_objext
29335 if { (ac_try="$ac_compile"
29336 case "(($ac_try" in
29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29339 esac
29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341 (eval "$ac_compile") 2>conftest.er1
29342 ac_status=$?
29343 grep -v '^ *+' conftest.er1 >conftest.err
29344 rm -f conftest.er1
29345 cat conftest.err >&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } && {
29348 test -z "$ac_c_werror_flag" ||
29349 test ! -s conftest.err
29350 } && test -s conftest.$ac_objext; then
29351 ac_header_compiler=yes
29352 else
29353 echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29356 ac_header_compiler=no
29359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29361 echo "${ECHO_T}$ac_header_compiler" >&6; }
29363 # Is the header present?
29364 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29365 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29366 cat >conftest.$ac_ext <<_ACEOF
29367 /* confdefs.h. */
29368 _ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29372 #include <speex/speex.h>
29373 _ACEOF
29374 if { (ac_try="$ac_cpp conftest.$ac_ext"
29375 case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29378 esac
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29381 ac_status=$?
29382 grep -v '^ *+' conftest.er1 >conftest.err
29383 rm -f conftest.er1
29384 cat conftest.err >&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } >/dev/null && {
29387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29388 test ! -s conftest.err
29389 }; then
29390 ac_header_preproc=yes
29391 else
29392 echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29395 ac_header_preproc=no
29398 rm -f conftest.err conftest.$ac_ext
29399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29400 echo "${ECHO_T}$ac_header_preproc" >&6; }
29402 # So? What about this header?
29403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29404 yes:no: )
29405 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29406 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29408 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29409 ac_header_preproc=yes
29411 no:yes:* )
29412 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29413 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29414 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29415 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29417 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29418 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29419 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29420 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29421 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29422 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29423 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29424 ( cat <<\_ASBOX
29425 ## ------------------------------- ##
29426 ## Report this to www.asterisk.org ##
29427 ## ------------------------------- ##
29428 _ASBOX
29429 ) | sed "s/^/$as_me: WARNING: /" >&2
29431 esac
29432 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29433 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29434 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29436 else
29437 ac_cv_header_speex_speex_h=$ac_header_preproc
29439 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29440 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29443 if test $ac_cv_header_speex_speex_h = yes; then
29444 SPEEX_HEADER_FOUND=1
29445 else
29446 SPEEX_HEADER_FOUND=0
29452 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
29453 if test -n "${SPEEX_MANDATORY}" ;
29454 then
29455 { echo "$as_me:$LINENO: ***" >&5
29456 echo "$as_me: ***" >&6;}
29457 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29458 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29459 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
29460 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
29461 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29462 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29463 exit 1
29465 SPEEX_LIB=""
29466 SPEEX_INCLUDE=""
29467 PBX_SPEEX=0
29468 else
29469 PBX_SPEEX=1
29471 cat >>confdefs.h <<_ACEOF
29472 #define HAVE_SPEEX 1
29473 _ACEOF
29476 elif test -n "${SPEEX_MANDATORY}";
29477 then
29478 { echo "$as_me:$LINENO: ***" >&5
29479 echo "$as_me: ***" >&6;}
29480 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
29481 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
29482 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29483 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29484 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
29485 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
29486 exit 1
29491 # See if the main speex library contains the preprocess functions
29493 if test "${USE_SPEEX_PREPROCESS}" != "no"; then
29494 pbxlibdir=""
29495 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29496 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
29497 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
29498 else
29499 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
29502 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeex" >&5
29503 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeex... $ECHO_C" >&6; }
29504 if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then
29505 echo $ECHO_N "(cached) $ECHO_C" >&6
29506 else
29507 ac_check_lib_save_LIBS=$LIBS
29508 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
29509 cat >conftest.$ac_ext <<_ACEOF
29510 /* confdefs.h. */
29511 _ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h. */
29516 /* Override any GCC internal prototype to avoid an error.
29517 Use char because int might match the return type of a GCC
29518 builtin and then its argument prototype would still apply. */
29519 #ifdef __cplusplus
29520 extern "C"
29521 #endif
29522 char speex_preprocess_ctl ();
29524 main ()
29526 return speex_preprocess_ctl ();
29528 return 0;
29530 _ACEOF
29531 rm -f conftest.$ac_objext conftest$ac_exeext
29532 if { (ac_try="$ac_link"
29533 case "(($ac_try" in
29534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29535 *) ac_try_echo=$ac_try;;
29536 esac
29537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29538 (eval "$ac_link") 2>conftest.er1
29539 ac_status=$?
29540 grep -v '^ *+' conftest.er1 >conftest.err
29541 rm -f conftest.er1
29542 cat conftest.err >&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); } && {
29545 test -z "$ac_c_werror_flag" ||
29546 test ! -s conftest.err
29547 } && test -s conftest$ac_exeext &&
29548 $as_test_x conftest$ac_exeext; then
29549 ac_cv_lib_speex_speex_preprocess_ctl=yes
29550 else
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29554 ac_cv_lib_speex_speex_preprocess_ctl=no
29557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29558 conftest$ac_exeext conftest.$ac_ext
29559 LIBS=$ac_check_lib_save_LIBS
29561 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
29562 echo "${ECHO_T}$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
29563 if test $ac_cv_lib_speex_speex_preprocess_ctl = yes; then
29564 AST_SPEEX_PREPROCESS_FOUND=yes
29565 else
29566 AST_SPEEX_PREPROCESS_FOUND=no
29570 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
29571 SPEEX_PREPROCESS_LIB="-lspeex -lm"
29572 SPEEX_PREPROCESS_HEADER_FOUND="1"
29573 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
29574 SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
29575 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
29576 saved_cppflags="${CPPFLAGS}"
29577 CPPFLAGS="${CPPFLAGS} -I${SPEEX_PREPROCESS_DIR}/include"
29578 if test "xspeex/speex.h" != "x" ; then
29579 as_ac_Header=`echo "ac_cv_header_${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" | $as_tr_sh`
29580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29581 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29582 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29584 echo $ECHO_N "(cached) $ECHO_C" >&6
29586 ac_res=`eval echo '${'$as_ac_Header'}'`
29587 { echo "$as_me:$LINENO: result: $ac_res" >&5
29588 echo "${ECHO_T}$ac_res" >&6; }
29589 else
29590 # Is the header compilable?
29591 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability" >&5
29592 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
29593 cat >conftest.$ac_ext <<_ACEOF
29594 /* confdefs.h. */
29595 _ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29599 $ac_includes_default
29600 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29601 _ACEOF
29602 rm -f conftest.$ac_objext
29603 if { (ac_try="$ac_compile"
29604 case "(($ac_try" in
29605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606 *) ac_try_echo=$ac_try;;
29607 esac
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609 (eval "$ac_compile") 2>conftest.er1
29610 ac_status=$?
29611 grep -v '^ *+' conftest.er1 >conftest.err
29612 rm -f conftest.er1
29613 cat conftest.err >&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } && {
29616 test -z "$ac_c_werror_flag" ||
29617 test ! -s conftest.err
29618 } && test -s conftest.$ac_objext; then
29619 ac_header_compiler=yes
29620 else
29621 echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29624 ac_header_compiler=no
29627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29629 echo "${ECHO_T}$ac_header_compiler" >&6; }
29631 # Is the header present?
29632 { echo "$as_me:$LINENO: checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence" >&5
29633 echo $ECHO_N "checking ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29634 cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h. */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29640 #include <${SPEEX_PREPROCESS_DIR}/include/speex/speex.h>
29641 _ACEOF
29642 if { (ac_try="$ac_cpp conftest.$ac_ext"
29643 case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29649 ac_status=$?
29650 grep -v '^ *+' conftest.er1 >conftest.err
29651 rm -f conftest.er1
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } >/dev/null && {
29655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29657 }; then
29658 ac_header_preproc=yes
29659 else
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663 ac_header_preproc=no
29666 rm -f conftest.err conftest.$ac_ext
29667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29668 echo "${ECHO_T}$ac_header_preproc" >&6; }
29670 # So? What about this header?
29671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29672 yes:no: )
29673 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29674 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29675 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29676 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29677 ac_header_preproc=yes
29679 no:yes:* )
29680 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29681 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29682 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29683 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29685 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29687 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29689 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29691 echo "$as_me: WARNING: ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29692 ( cat <<\_ASBOX
29693 ## ------------------------------- ##
29694 ## Report this to www.asterisk.org ##
29695 ## ------------------------------- ##
29696 _ASBOX
29697 ) | sed "s/^/$as_me: WARNING: /" >&2
29699 esac
29700 { echo "$as_me:$LINENO: checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h" >&5
29701 echo $ECHO_N "checking for ${SPEEX_PREPROCESS_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705 eval "$as_ac_Header=\$ac_header_preproc"
29707 ac_res=`eval echo '${'$as_ac_Header'}'`
29708 { echo "$as_me:$LINENO: result: $ac_res" >&5
29709 echo "${ECHO_T}$ac_res" >&6; }
29712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29713 SPEEX_PREPROCESS_HEADER_FOUND=1
29714 else
29715 SPEEX_PREPROCESS_HEADER_FOUND=0
29720 CPPFLAGS="${saved_cppflags}"
29721 else
29722 if test "xspeex/speex.h" != "x" ; then
29723 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29724 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29725 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29726 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29730 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29731 else
29732 # Is the header compilable?
29733 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29734 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29735 cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h. */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 $ac_includes_default
29742 #include <speex/speex.h>
29743 _ACEOF
29744 rm -f conftest.$ac_objext
29745 if { (ac_try="$ac_compile"
29746 case "(($ac_try" in
29747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748 *) ac_try_echo=$ac_try;;
29749 esac
29750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751 (eval "$ac_compile") 2>conftest.er1
29752 ac_status=$?
29753 grep -v '^ *+' conftest.er1 >conftest.err
29754 rm -f conftest.er1
29755 cat conftest.err >&5
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); } && {
29758 test -z "$ac_c_werror_flag" ||
29759 test ! -s conftest.err
29760 } && test -s conftest.$ac_objext; then
29761 ac_header_compiler=yes
29762 else
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29766 ac_header_compiler=no
29769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29771 echo "${ECHO_T}$ac_header_compiler" >&6; }
29773 # Is the header present?
29774 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29775 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29776 cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h. */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29782 #include <speex/speex.h>
29783 _ACEOF
29784 if { (ac_try="$ac_cpp conftest.$ac_ext"
29785 case "(($ac_try" in
29786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29787 *) ac_try_echo=$ac_try;;
29788 esac
29789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29791 ac_status=$?
29792 grep -v '^ *+' conftest.er1 >conftest.err
29793 rm -f conftest.er1
29794 cat conftest.err >&5
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } >/dev/null && {
29797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29798 test ! -s conftest.err
29799 }; then
29800 ac_header_preproc=yes
29801 else
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ac_header_preproc=no
29808 rm -f conftest.err conftest.$ac_ext
29809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29810 echo "${ECHO_T}$ac_header_preproc" >&6; }
29812 # So? What about this header?
29813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29814 yes:no: )
29815 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29816 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29818 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29819 ac_header_preproc=yes
29821 no:yes:* )
29822 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29823 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29824 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29825 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29826 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29827 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29828 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29829 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29830 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29831 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29832 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29833 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29834 ( cat <<\_ASBOX
29835 ## ------------------------------- ##
29836 ## Report this to www.asterisk.org ##
29837 ## ------------------------------- ##
29838 _ASBOX
29839 ) | sed "s/^/$as_me: WARNING: /" >&2
29841 esac
29842 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29843 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29844 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29846 else
29847 ac_cv_header_speex_speex_h=$ac_header_preproc
29849 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29850 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29853 if test $ac_cv_header_speex_speex_h = yes; then
29854 SPEEX_PREPROCESS_HEADER_FOUND=1
29855 else
29856 SPEEX_PREPROCESS_HEADER_FOUND=0
29862 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
29863 if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
29864 then
29865 { echo "$as_me:$LINENO: ***" >&5
29866 echo "$as_me: ***" >&6;}
29867 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
29868 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
29869 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
29870 echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
29871 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29872 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29873 exit 1
29875 SPEEX_PREPROCESS_LIB=""
29876 SPEEX_PREPROCESS_INCLUDE=""
29877 PBX_SPEEX_PREPROCESS=0
29878 else
29879 PBX_SPEEX_PREPROCESS=1
29881 cat >>confdefs.h <<_ACEOF
29882 #define HAVE_SPEEX_PREPROCESS 1
29883 _ACEOF
29886 elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
29887 then
29888 { echo "$as_me:$LINENO: ***" >&5
29889 echo "$as_me: ***" >&6;}
29890 { echo "$as_me:$LINENO: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
29891 echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
29892 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29893 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29894 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
29895 echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
29896 exit 1
29900 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
29901 PBX_SPEEX_PREPROCESS=1
29905 if test "${USE_SPEEXDSP}" != "no"; then
29906 pbxlibdir=""
29907 if test "x${SPEEXDSP_DIR}" != "x"; then
29908 if test -d ${SPEEXDSP_DIR}/lib; then
29909 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
29910 else
29911 pbxlibdir="-L${SPEEXDSP_DIR}"
29914 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
29915 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
29916 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29918 else
29919 ac_check_lib_save_LIBS=$LIBS
29920 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
29921 cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h. */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h. */
29928 /* Override any GCC internal prototype to avoid an error.
29929 Use char because int might match the return type of a GCC
29930 builtin and then its argument prototype would still apply. */
29931 #ifdef __cplusplus
29932 extern "C"
29933 #endif
29934 char speex_preprocess_ctl ();
29936 main ()
29938 return speex_preprocess_ctl ();
29940 return 0;
29942 _ACEOF
29943 rm -f conftest.$ac_objext conftest$ac_exeext
29944 if { (ac_try="$ac_link"
29945 case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_link") 2>conftest.er1
29951 ac_status=$?
29952 grep -v '^ *+' conftest.er1 >conftest.err
29953 rm -f conftest.er1
29954 cat conftest.err >&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); } && {
29957 test -z "$ac_c_werror_flag" ||
29958 test ! -s conftest.err
29959 } && test -s conftest$ac_exeext &&
29960 $as_test_x conftest$ac_exeext; then
29961 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
29962 else
29963 echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29966 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
29969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29970 conftest$ac_exeext conftest.$ac_ext
29971 LIBS=$ac_check_lib_save_LIBS
29973 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
29974 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
29975 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
29976 AST_SPEEXDSP_FOUND=yes
29977 else
29978 AST_SPEEXDSP_FOUND=no
29982 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
29983 SPEEXDSP_LIB="-lspeexdsp -lm"
29984 SPEEXDSP_HEADER_FOUND="1"
29985 if test "x${SPEEXDSP_DIR}" != "x"; then
29986 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
29987 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
29988 saved_cppflags="${CPPFLAGS}"
29989 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
29990 if test "xspeex/speex.h" != "x" ; then
29991 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
29992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29993 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29994 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 ac_res=`eval echo '${'$as_ac_Header'}'`
29999 { echo "$as_me:$LINENO: result: $ac_res" >&5
30000 echo "${ECHO_T}$ac_res" >&6; }
30001 else
30002 # Is the header compilable?
30003 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
30004 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
30005 cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h. */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30011 $ac_includes_default
30012 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
30013 _ACEOF
30014 rm -f conftest.$ac_objext
30015 if { (ac_try="$ac_compile"
30016 case "(($ac_try" in
30017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018 *) ac_try_echo=$ac_try;;
30019 esac
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021 (eval "$ac_compile") 2>conftest.er1
30022 ac_status=$?
30023 grep -v '^ *+' conftest.er1 >conftest.err
30024 rm -f conftest.er1
30025 cat conftest.err >&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); } && {
30028 test -z "$ac_c_werror_flag" ||
30029 test ! -s conftest.err
30030 } && test -s conftest.$ac_objext; then
30031 ac_header_compiler=yes
30032 else
30033 echo "$as_me: failed program was:" >&5
30034 sed 's/^/| /' conftest.$ac_ext >&5
30036 ac_header_compiler=no
30039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30041 echo "${ECHO_T}$ac_header_compiler" >&6; }
30043 # Is the header present?
30044 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
30045 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
30046 cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h. */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
30053 _ACEOF
30054 if { (ac_try="$ac_cpp conftest.$ac_ext"
30055 case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30058 esac
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30061 ac_status=$?
30062 grep -v '^ *+' conftest.er1 >conftest.err
30063 rm -f conftest.er1
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } >/dev/null && {
30067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30068 test ! -s conftest.err
30069 }; then
30070 ac_header_preproc=yes
30071 else
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30075 ac_header_preproc=no
30078 rm -f conftest.err conftest.$ac_ext
30079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30080 echo "${ECHO_T}$ac_header_preproc" >&6; }
30082 # So? What about this header?
30083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30084 yes:no: )
30085 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
30086 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
30088 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
30089 ac_header_preproc=yes
30091 no:yes:* )
30092 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
30093 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
30094 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
30095 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
30096 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
30097 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
30098 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
30099 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
30101 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
30103 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
30104 ( cat <<\_ASBOX
30105 ## ------------------------------- ##
30106 ## Report this to www.asterisk.org ##
30107 ## ------------------------------- ##
30108 _ASBOX
30109 ) | sed "s/^/$as_me: WARNING: /" >&2
30111 esac
30112 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
30113 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
30114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 else
30117 eval "$as_ac_Header=\$ac_header_preproc"
30119 ac_res=`eval echo '${'$as_ac_Header'}'`
30120 { echo "$as_me:$LINENO: result: $ac_res" >&5
30121 echo "${ECHO_T}$ac_res" >&6; }
30124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30125 SPEEXDSP_HEADER_FOUND=1
30126 else
30127 SPEEXDSP_HEADER_FOUND=0
30132 CPPFLAGS="${saved_cppflags}"
30133 else
30134 if test "xspeex/speex.h" != "x" ; then
30135 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30136 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30137 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30138 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30141 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30142 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30143 else
30144 # Is the header compilable?
30145 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
30146 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
30147 cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h. */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h. */
30153 $ac_includes_default
30154 #include <speex/speex.h>
30155 _ACEOF
30156 rm -f conftest.$ac_objext
30157 if { (ac_try="$ac_compile"
30158 case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30161 esac
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_compile") 2>conftest.er1
30164 ac_status=$?
30165 grep -v '^ *+' conftest.er1 >conftest.err
30166 rm -f conftest.er1
30167 cat conftest.err >&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); } && {
30170 test -z "$ac_c_werror_flag" ||
30171 test ! -s conftest.err
30172 } && test -s conftest.$ac_objext; then
30173 ac_header_compiler=yes
30174 else
30175 echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30178 ac_header_compiler=no
30181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30183 echo "${ECHO_T}$ac_header_compiler" >&6; }
30185 # Is the header present?
30186 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
30187 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
30188 cat >conftest.$ac_ext <<_ACEOF
30189 /* confdefs.h. */
30190 _ACEOF
30191 cat confdefs.h >>conftest.$ac_ext
30192 cat >>conftest.$ac_ext <<_ACEOF
30193 /* end confdefs.h. */
30194 #include <speex/speex.h>
30195 _ACEOF
30196 if { (ac_try="$ac_cpp conftest.$ac_ext"
30197 case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30203 ac_status=$?
30204 grep -v '^ *+' conftest.er1 >conftest.err
30205 rm -f conftest.er1
30206 cat conftest.err >&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); } >/dev/null && {
30209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30210 test ! -s conftest.err
30211 }; then
30212 ac_header_preproc=yes
30213 else
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30217 ac_header_preproc=no
30220 rm -f conftest.err conftest.$ac_ext
30221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30222 echo "${ECHO_T}$ac_header_preproc" >&6; }
30224 # So? What about this header?
30225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30226 yes:no: )
30227 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
30228 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30229 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
30230 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
30231 ac_header_preproc=yes
30233 no:yes:* )
30234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
30235 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
30236 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
30237 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
30238 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
30239 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
30240 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
30241 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
30242 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
30243 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
30244 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
30245 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
30246 ( cat <<\_ASBOX
30247 ## ------------------------------- ##
30248 ## Report this to www.asterisk.org ##
30249 ## ------------------------------- ##
30250 _ASBOX
30251 ) | sed "s/^/$as_me: WARNING: /" >&2
30253 esac
30254 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
30255 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
30256 if test "${ac_cv_header_speex_speex_h+set}" = set; then
30257 echo $ECHO_N "(cached) $ECHO_C" >&6
30258 else
30259 ac_cv_header_speex_speex_h=$ac_header_preproc
30261 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
30262 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
30265 if test $ac_cv_header_speex_speex_h = yes; then
30266 SPEEXDSP_HEADER_FOUND=1
30267 else
30268 SPEEXDSP_HEADER_FOUND=0
30274 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
30275 if test -n "${SPEEXDSP_MANDATORY}" ;
30276 then
30277 { echo "$as_me:$LINENO: ***" >&5
30278 echo "$as_me: ***" >&6;}
30279 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
30280 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
30281 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
30282 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
30283 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30284 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30285 exit 1
30287 SPEEXDSP_LIB=""
30288 SPEEXDSP_INCLUDE=""
30289 PBX_SPEEXDSP=0
30290 else
30291 PBX_SPEEXDSP=1
30293 cat >>confdefs.h <<_ACEOF
30294 #define HAVE_SPEEXDSP 1
30295 _ACEOF
30298 elif test -n "${SPEEXDSP_MANDATORY}";
30299 then
30300 { echo "$as_me:$LINENO: ***" >&5
30301 echo "$as_me: ***" >&6;}
30302 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
30303 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
30304 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30305 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30306 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
30307 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
30308 exit 1
30312 if test "${PBX_SPEEXDSP}" = 1; then
30313 PBX_SPEEX_PREPROCESS=1
30319 if test "${USE_SQLITE}" != "no"; then
30320 pbxlibdir=""
30321 if test "x${SQLITE_DIR}" != "x"; then
30322 if test -d ${SQLITE_DIR}/lib; then
30323 pbxlibdir="-L${SQLITE_DIR}/lib"
30324 else
30325 pbxlibdir="-L${SQLITE_DIR}"
30328 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
30329 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
30330 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333 ac_check_lib_save_LIBS=$LIBS
30334 LIBS="-lsqlite ${pbxlibdir} $LIBS"
30335 cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h. */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h. */
30342 /* Override any GCC internal prototype to avoid an error.
30343 Use char because int might match the return type of a GCC
30344 builtin and then its argument prototype would still apply. */
30345 #ifdef __cplusplus
30346 extern "C"
30347 #endif
30348 char sqlite_exec ();
30350 main ()
30352 return sqlite_exec ();
30354 return 0;
30356 _ACEOF
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (ac_try="$ac_link"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_link") 2>conftest.er1
30365 ac_status=$?
30366 grep -v '^ *+' conftest.er1 >conftest.err
30367 rm -f conftest.er1
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest$ac_exeext &&
30374 $as_test_x conftest$ac_exeext; then
30375 ac_cv_lib_sqlite_sqlite_exec=yes
30376 else
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_cv_lib_sqlite_sqlite_exec=no
30383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30384 conftest$ac_exeext conftest.$ac_ext
30385 LIBS=$ac_check_lib_save_LIBS
30387 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
30388 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
30389 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
30390 AST_SQLITE_FOUND=yes
30391 else
30392 AST_SQLITE_FOUND=no
30396 if test "${AST_SQLITE_FOUND}" = "yes"; then
30397 SQLITE_LIB="-lsqlite "
30398 SQLITE_HEADER_FOUND="1"
30399 if test "x${SQLITE_DIR}" != "x"; then
30400 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
30401 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
30402 saved_cppflags="${CPPFLAGS}"
30403 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
30404 if test "xsqlite.h" != "x" ; then
30405 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
30406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30407 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30408 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30410 echo $ECHO_N "(cached) $ECHO_C" >&6
30412 ac_res=`eval echo '${'$as_ac_Header'}'`
30413 { echo "$as_me:$LINENO: result: $ac_res" >&5
30414 echo "${ECHO_T}$ac_res" >&6; }
30415 else
30416 # Is the header compilable?
30417 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
30418 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
30419 cat >conftest.$ac_ext <<_ACEOF
30420 /* confdefs.h. */
30421 _ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h. */
30425 $ac_includes_default
30426 #include <${SQLITE_DIR}/include/sqlite.h>
30427 _ACEOF
30428 rm -f conftest.$ac_objext
30429 if { (ac_try="$ac_compile"
30430 case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30433 esac
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_compile") 2>conftest.er1
30436 ac_status=$?
30437 grep -v '^ *+' conftest.er1 >conftest.err
30438 rm -f conftest.er1
30439 cat conftest.err >&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } && {
30442 test -z "$ac_c_werror_flag" ||
30443 test ! -s conftest.err
30444 } && test -s conftest.$ac_objext; then
30445 ac_header_compiler=yes
30446 else
30447 echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30450 ac_header_compiler=no
30453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30455 echo "${ECHO_T}$ac_header_compiler" >&6; }
30457 # Is the header present?
30458 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
30459 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
30460 cat >conftest.$ac_ext <<_ACEOF
30461 /* confdefs.h. */
30462 _ACEOF
30463 cat confdefs.h >>conftest.$ac_ext
30464 cat >>conftest.$ac_ext <<_ACEOF
30465 /* end confdefs.h. */
30466 #include <${SQLITE_DIR}/include/sqlite.h>
30467 _ACEOF
30468 if { (ac_try="$ac_cpp conftest.$ac_ext"
30469 case "(($ac_try" in
30470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471 *) ac_try_echo=$ac_try;;
30472 esac
30473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30475 ac_status=$?
30476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } >/dev/null && {
30481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30482 test ! -s conftest.err
30483 }; then
30484 ac_header_preproc=yes
30485 else
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ac_header_preproc=no
30492 rm -f conftest.err conftest.$ac_ext
30493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30494 echo "${ECHO_T}$ac_header_preproc" >&6; }
30496 # So? What about this header?
30497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30498 yes:no: )
30499 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30500 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30501 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
30502 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
30503 ac_header_preproc=yes
30505 no:yes:* )
30506 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
30507 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
30508 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
30509 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
30511 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30513 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30514 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
30515 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
30516 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
30517 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
30518 ( cat <<\_ASBOX
30519 ## ------------------------------- ##
30520 ## Report this to www.asterisk.org ##
30521 ## ------------------------------- ##
30522 _ASBOX
30523 ) | sed "s/^/$as_me: WARNING: /" >&2
30525 esac
30526 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
30527 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
30528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30529 echo $ECHO_N "(cached) $ECHO_C" >&6
30530 else
30531 eval "$as_ac_Header=\$ac_header_preproc"
30533 ac_res=`eval echo '${'$as_ac_Header'}'`
30534 { echo "$as_me:$LINENO: result: $ac_res" >&5
30535 echo "${ECHO_T}$ac_res" >&6; }
30538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30539 SQLITE_HEADER_FOUND=1
30540 else
30541 SQLITE_HEADER_FOUND=0
30546 CPPFLAGS="${saved_cppflags}"
30547 else
30548 if test "xsqlite.h" != "x" ; then
30549 if test "${ac_cv_header_sqlite_h+set}" = set; then
30550 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30551 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30552 if test "${ac_cv_header_sqlite_h+set}" = set; then
30553 echo $ECHO_N "(cached) $ECHO_C" >&6
30555 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30556 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30557 else
30558 # Is the header compilable?
30559 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
30560 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
30561 cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h. */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h. */
30567 $ac_includes_default
30568 #include <sqlite.h>
30569 _ACEOF
30570 rm -f conftest.$ac_objext
30571 if { (ac_try="$ac_compile"
30572 case "(($ac_try" in
30573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30575 esac
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_compile") 2>conftest.er1
30578 ac_status=$?
30579 grep -v '^ *+' conftest.er1 >conftest.err
30580 rm -f conftest.er1
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest.$ac_objext; then
30587 ac_header_compiler=yes
30588 else
30589 echo "$as_me: failed program was:" >&5
30590 sed 's/^/| /' conftest.$ac_ext >&5
30592 ac_header_compiler=no
30595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30597 echo "${ECHO_T}$ac_header_compiler" >&6; }
30599 # Is the header present?
30600 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
30601 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
30602 cat >conftest.$ac_ext <<_ACEOF
30603 /* confdefs.h. */
30604 _ACEOF
30605 cat confdefs.h >>conftest.$ac_ext
30606 cat >>conftest.$ac_ext <<_ACEOF
30607 /* end confdefs.h. */
30608 #include <sqlite.h>
30609 _ACEOF
30610 if { (ac_try="$ac_cpp conftest.$ac_ext"
30611 case "(($ac_try" in
30612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30613 *) ac_try_echo=$ac_try;;
30614 esac
30615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30617 ac_status=$?
30618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } >/dev/null && {
30623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30624 test ! -s conftest.err
30625 }; then
30626 ac_header_preproc=yes
30627 else
30628 echo "$as_me: failed program was:" >&5
30629 sed 's/^/| /' conftest.$ac_ext >&5
30631 ac_header_preproc=no
30634 rm -f conftest.err conftest.$ac_ext
30635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30636 echo "${ECHO_T}$ac_header_preproc" >&6; }
30638 # So? What about this header?
30639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30640 yes:no: )
30641 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
30642 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30643 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
30644 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
30645 ac_header_preproc=yes
30647 no:yes:* )
30648 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
30649 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
30650 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
30651 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
30652 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
30653 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
30654 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
30655 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
30656 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
30657 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
30658 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
30659 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
30660 ( cat <<\_ASBOX
30661 ## ------------------------------- ##
30662 ## Report this to www.asterisk.org ##
30663 ## ------------------------------- ##
30664 _ASBOX
30665 ) | sed "s/^/$as_me: WARNING: /" >&2
30667 esac
30668 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
30669 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
30670 if test "${ac_cv_header_sqlite_h+set}" = set; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30672 else
30673 ac_cv_header_sqlite_h=$ac_header_preproc
30675 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
30676 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
30679 if test $ac_cv_header_sqlite_h = yes; then
30680 SQLITE_HEADER_FOUND=1
30681 else
30682 SQLITE_HEADER_FOUND=0
30688 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
30689 if test -n "${SQLITE_MANDATORY}" ;
30690 then
30691 { echo "$as_me:$LINENO: ***" >&5
30692 echo "$as_me: ***" >&6;}
30693 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
30694 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
30695 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
30696 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
30697 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30698 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30699 exit 1
30701 SQLITE_LIB=""
30702 SQLITE_INCLUDE=""
30703 PBX_SQLITE=0
30704 else
30705 PBX_SQLITE=1
30707 cat >>confdefs.h <<_ACEOF
30708 #define HAVE_SQLITE 1
30709 _ACEOF
30712 elif test -n "${SQLITE_MANDATORY}";
30713 then
30714 { echo "$as_me:$LINENO: ***" >&5
30715 echo "$as_me: ***" >&6;}
30716 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
30717 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
30718 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30719 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30720 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
30721 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
30722 exit 1
30728 if test "${USE_OPENSSL}" != "no"; then
30729 pbxlibdir=""
30730 if test "x${OPENSSL_DIR}" != "x"; then
30731 if test -d ${OPENSSL_DIR}/lib; then
30732 pbxlibdir="-L${OPENSSL_DIR}/lib"
30733 else
30734 pbxlibdir="-L${OPENSSL_DIR}"
30737 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
30738 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
30739 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
30740 echo $ECHO_N "(cached) $ECHO_C" >&6
30741 else
30742 ac_check_lib_save_LIBS=$LIBS
30743 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
30744 cat >conftest.$ac_ext <<_ACEOF
30745 /* confdefs.h. */
30746 _ACEOF
30747 cat confdefs.h >>conftest.$ac_ext
30748 cat >>conftest.$ac_ext <<_ACEOF
30749 /* end confdefs.h. */
30751 /* Override any GCC internal prototype to avoid an error.
30752 Use char because int might match the return type of a GCC
30753 builtin and then its argument prototype would still apply. */
30754 #ifdef __cplusplus
30755 extern "C"
30756 #endif
30757 char ssl2_connect ();
30759 main ()
30761 return ssl2_connect ();
30763 return 0;
30765 _ACEOF
30766 rm -f conftest.$ac_objext conftest$ac_exeext
30767 if { (ac_try="$ac_link"
30768 case "(($ac_try" in
30769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30770 *) ac_try_echo=$ac_try;;
30771 esac
30772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30773 (eval "$ac_link") 2>conftest.er1
30774 ac_status=$?
30775 grep -v '^ *+' conftest.er1 >conftest.err
30776 rm -f conftest.er1
30777 cat conftest.err >&5
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); } && {
30780 test -z "$ac_c_werror_flag" ||
30781 test ! -s conftest.err
30782 } && test -s conftest$ac_exeext &&
30783 $as_test_x conftest$ac_exeext; then
30784 ac_cv_lib_ssl_ssl2_connect=yes
30785 else
30786 echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30789 ac_cv_lib_ssl_ssl2_connect=no
30792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30793 conftest$ac_exeext conftest.$ac_ext
30794 LIBS=$ac_check_lib_save_LIBS
30796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
30797 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
30798 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
30799 AST_OPENSSL_FOUND=yes
30800 else
30801 AST_OPENSSL_FOUND=no
30805 if test "${AST_OPENSSL_FOUND}" = "yes"; then
30806 OPENSSL_LIB="-lssl -lcrypto"
30807 OPENSSL_HEADER_FOUND="1"
30808 if test "x${OPENSSL_DIR}" != "x"; then
30809 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
30810 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
30811 saved_cppflags="${CPPFLAGS}"
30812 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
30813 if test "xopenssl/ssl.h" != "x" ; then
30814 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
30815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30816 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30817 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30821 ac_res=`eval echo '${'$as_ac_Header'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823 echo "${ECHO_T}$ac_res" >&6; }
30824 else
30825 # Is the header compilable?
30826 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
30827 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
30828 cat >conftest.$ac_ext <<_ACEOF
30829 /* confdefs.h. */
30830 _ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h. */
30834 $ac_includes_default
30835 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30836 _ACEOF
30837 rm -f conftest.$ac_objext
30838 if { (ac_try="$ac_compile"
30839 case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_compile") 2>conftest.er1
30845 ac_status=$?
30846 grep -v '^ *+' conftest.er1 >conftest.err
30847 rm -f conftest.er1
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } && {
30851 test -z "$ac_c_werror_flag" ||
30852 test ! -s conftest.err
30853 } && test -s conftest.$ac_objext; then
30854 ac_header_compiler=yes
30855 else
30856 echo "$as_me: failed program was:" >&5
30857 sed 's/^/| /' conftest.$ac_ext >&5
30859 ac_header_compiler=no
30862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30864 echo "${ECHO_T}$ac_header_compiler" >&6; }
30866 # Is the header present?
30867 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
30868 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
30869 cat >conftest.$ac_ext <<_ACEOF
30870 /* confdefs.h. */
30871 _ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h. */
30875 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
30876 _ACEOF
30877 if { (ac_try="$ac_cpp conftest.$ac_ext"
30878 case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30881 esac
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30884 ac_status=$?
30885 grep -v '^ *+' conftest.er1 >conftest.err
30886 rm -f conftest.er1
30887 cat conftest.err >&5
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); } >/dev/null && {
30890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30891 test ! -s conftest.err
30892 }; then
30893 ac_header_preproc=yes
30894 else
30895 echo "$as_me: failed program was:" >&5
30896 sed 's/^/| /' conftest.$ac_ext >&5
30898 ac_header_preproc=no
30901 rm -f conftest.err conftest.$ac_ext
30902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30903 echo "${ECHO_T}$ac_header_preproc" >&6; }
30905 # So? What about this header?
30906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30907 yes:no: )
30908 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30909 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30910 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
30911 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
30912 ac_header_preproc=yes
30914 no:yes:* )
30915 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
30916 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
30917 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
30918 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30919 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
30920 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
30921 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30922 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30923 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
30924 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30925 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
30926 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30927 ( cat <<\_ASBOX
30928 ## ------------------------------- ##
30929 ## Report this to www.asterisk.org ##
30930 ## ------------------------------- ##
30931 _ASBOX
30932 ) | sed "s/^/$as_me: WARNING: /" >&2
30934 esac
30935 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
30936 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
30937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30939 else
30940 eval "$as_ac_Header=\$ac_header_preproc"
30942 ac_res=`eval echo '${'$as_ac_Header'}'`
30943 { echo "$as_me:$LINENO: result: $ac_res" >&5
30944 echo "${ECHO_T}$ac_res" >&6; }
30947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30948 OPENSSL_HEADER_FOUND=1
30949 else
30950 OPENSSL_HEADER_FOUND=0
30955 CPPFLAGS="${saved_cppflags}"
30956 else
30957 if test "xopenssl/ssl.h" != "x" ; then
30958 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30959 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30960 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30961 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30962 echo $ECHO_N "(cached) $ECHO_C" >&6
30964 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30965 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30966 else
30967 # Is the header compilable?
30968 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
30969 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h. */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 $ac_includes_default
30977 #include <openssl/ssl.h>
30978 _ACEOF
30979 rm -f conftest.$ac_objext
30980 if { (ac_try="$ac_compile"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30984 esac
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_compile") 2>conftest.er1
30987 ac_status=$?
30988 grep -v '^ *+' conftest.er1 >conftest.err
30989 rm -f conftest.er1
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest.$ac_objext; then
30996 ac_header_compiler=yes
30997 else
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ac_header_compiler=no
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31006 echo "${ECHO_T}$ac_header_compiler" >&6; }
31008 # Is the header present?
31009 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
31010 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 #include <openssl/ssl.h>
31018 _ACEOF
31019 if { (ac_try="$ac_cpp conftest.$ac_ext"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31026 ac_status=$?
31027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } >/dev/null && {
31032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31033 test ! -s conftest.err
31034 }; then
31035 ac_header_preproc=yes
31036 else
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 ac_header_preproc=no
31043 rm -f conftest.err conftest.$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31045 echo "${ECHO_T}$ac_header_preproc" >&6; }
31047 # So? What about this header?
31048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31049 yes:no: )
31050 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31051 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
31053 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
31054 ac_header_preproc=yes
31056 no:yes:* )
31057 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
31058 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
31060 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
31062 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
31064 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
31066 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
31067 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
31068 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
31069 ( cat <<\_ASBOX
31070 ## ------------------------------- ##
31071 ## Report this to www.asterisk.org ##
31072 ## ------------------------------- ##
31073 _ASBOX
31074 ) | sed "s/^/$as_me: WARNING: /" >&2
31076 esac
31077 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
31078 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
31079 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082 ac_cv_header_openssl_ssl_h=$ac_header_preproc
31084 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
31085 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
31088 if test $ac_cv_header_openssl_ssl_h = yes; then
31089 OPENSSL_HEADER_FOUND=1
31090 else
31091 OPENSSL_HEADER_FOUND=0
31097 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
31098 if test -n "${OPENSSL_MANDATORY}" ;
31099 then
31100 { echo "$as_me:$LINENO: ***" >&5
31101 echo "$as_me: ***" >&6;}
31102 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
31103 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
31104 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
31105 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
31106 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
31107 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
31108 exit 1
31110 OPENSSL_LIB=""
31111 OPENSSL_INCLUDE=""
31112 PBX_OPENSSL=0
31113 else
31114 PBX_OPENSSL=1
31116 cat >>confdefs.h <<_ACEOF
31117 #define HAVE_OPENSSL 1
31118 _ACEOF
31121 elif test -n "${OPENSSL_MANDATORY}";
31122 then
31123 { echo "$as_me:$LINENO: ***" >&5
31124 echo "$as_me: ***" >&6;}
31125 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
31126 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
31127 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31128 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31129 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
31130 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
31131 exit 1
31135 if test "$PBX_OPENSSL" = "1";
31136 then
31138 if test "${USE_OSPTK}" != "no"; then
31139 pbxlibdir=""
31140 if test "x${OSPTK_DIR}" != "x"; then
31141 if test -d ${OSPTK_DIR}/lib; then
31142 pbxlibdir="-L${OSPTK_DIR}/lib"
31143 else
31144 pbxlibdir="-L${OSPTK_DIR}"
31147 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
31148 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
31149 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
31150 echo $ECHO_N "(cached) $ECHO_C" >&6
31151 else
31152 ac_check_lib_save_LIBS=$LIBS
31153 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
31154 cat >conftest.$ac_ext <<_ACEOF
31155 /* confdefs.h. */
31156 _ACEOF
31157 cat confdefs.h >>conftest.$ac_ext
31158 cat >>conftest.$ac_ext <<_ACEOF
31159 /* end confdefs.h. */
31161 /* Override any GCC internal prototype to avoid an error.
31162 Use char because int might match the return type of a GCC
31163 builtin and then its argument prototype would still apply. */
31164 #ifdef __cplusplus
31165 extern "C"
31166 #endif
31167 char OSPPCryptoDecrypt ();
31169 main ()
31171 return OSPPCryptoDecrypt ();
31173 return 0;
31175 _ACEOF
31176 rm -f conftest.$ac_objext conftest$ac_exeext
31177 if { (ac_try="$ac_link"
31178 case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181 esac
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_link") 2>conftest.er1
31184 ac_status=$?
31185 grep -v '^ *+' conftest.er1 >conftest.err
31186 rm -f conftest.er1
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } && {
31190 test -z "$ac_c_werror_flag" ||
31191 test ! -s conftest.err
31192 } && test -s conftest$ac_exeext &&
31193 $as_test_x conftest$ac_exeext; then
31194 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
31195 else
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
31202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31203 conftest$ac_exeext conftest.$ac_ext
31204 LIBS=$ac_check_lib_save_LIBS
31206 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
31207 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
31208 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
31209 AST_OSPTK_FOUND=yes
31210 else
31211 AST_OSPTK_FOUND=no
31215 if test "${AST_OSPTK_FOUND}" = "yes"; then
31216 OSPTK_LIB="-losptk -lcrypto -lssl"
31217 OSPTK_HEADER_FOUND="1"
31218 if test "x${OSPTK_DIR}" != "x"; then
31219 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
31220 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
31221 saved_cppflags="${CPPFLAGS}"
31222 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
31223 if test "xosp/osp.h" != "x" ; then
31224 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31227 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31231 ac_res=`eval echo '${'$as_ac_Header'}'`
31232 { echo "$as_me:$LINENO: result: $ac_res" >&5
31233 echo "${ECHO_T}$ac_res" >&6; }
31234 else
31235 # Is the header compilable?
31236 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
31237 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
31238 cat >conftest.$ac_ext <<_ACEOF
31239 /* confdefs.h. */
31240 _ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h. */
31244 $ac_includes_default
31245 #include <${OSPTK_DIR}/include/osp/osp.h>
31246 _ACEOF
31247 rm -f conftest.$ac_objext
31248 if { (ac_try="$ac_compile"
31249 case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31252 esac
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_compile") 2>conftest.er1
31255 ac_status=$?
31256 grep -v '^ *+' conftest.er1 >conftest.err
31257 rm -f conftest.er1
31258 cat conftest.err >&5
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); } && {
31261 test -z "$ac_c_werror_flag" ||
31262 test ! -s conftest.err
31263 } && test -s conftest.$ac_objext; then
31264 ac_header_compiler=yes
31265 else
31266 echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31269 ac_header_compiler=no
31272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31274 echo "${ECHO_T}$ac_header_compiler" >&6; }
31276 # Is the header present?
31277 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
31278 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
31279 cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h. */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 #include <${OSPTK_DIR}/include/osp/osp.h>
31286 _ACEOF
31287 if { (ac_try="$ac_cpp conftest.$ac_ext"
31288 case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31294 ac_status=$?
31295 grep -v '^ *+' conftest.er1 >conftest.err
31296 rm -f conftest.er1
31297 cat conftest.err >&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); } >/dev/null && {
31300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31301 test ! -s conftest.err
31302 }; then
31303 ac_header_preproc=yes
31304 else
31305 echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31308 ac_header_preproc=no
31311 rm -f conftest.err conftest.$ac_ext
31312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31313 echo "${ECHO_T}$ac_header_preproc" >&6; }
31315 # So? What about this header?
31316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31317 yes:no: )
31318 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31319 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31320 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
31321 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
31322 ac_header_preproc=yes
31324 no:yes:* )
31325 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
31326 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
31327 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
31328 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
31329 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
31330 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
31331 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31332 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31333 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
31334 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
31335 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
31336 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
31337 ( cat <<\_ASBOX
31338 ## ------------------------------- ##
31339 ## Report this to www.asterisk.org ##
31340 ## ------------------------------- ##
31341 _ASBOX
31342 ) | sed "s/^/$as_me: WARNING: /" >&2
31344 esac
31345 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
31346 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
31347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31349 else
31350 eval "$as_ac_Header=\$ac_header_preproc"
31352 ac_res=`eval echo '${'$as_ac_Header'}'`
31353 { echo "$as_me:$LINENO: result: $ac_res" >&5
31354 echo "${ECHO_T}$ac_res" >&6; }
31357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31358 OSPTK_HEADER_FOUND=1
31359 else
31360 OSPTK_HEADER_FOUND=0
31365 CPPFLAGS="${saved_cppflags}"
31366 else
31367 if test "xosp/osp.h" != "x" ; then
31368 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31369 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31370 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31371 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31372 echo $ECHO_N "(cached) $ECHO_C" >&6
31374 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31375 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31376 else
31377 # Is the header compilable?
31378 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
31379 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
31380 cat >conftest.$ac_ext <<_ACEOF
31381 /* confdefs.h. */
31382 _ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h. */
31386 $ac_includes_default
31387 #include <osp/osp.h>
31388 _ACEOF
31389 rm -f conftest.$ac_objext
31390 if { (ac_try="$ac_compile"
31391 case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_compile") 2>conftest.er1
31397 ac_status=$?
31398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } && {
31403 test -z "$ac_c_werror_flag" ||
31404 test ! -s conftest.err
31405 } && test -s conftest.$ac_objext; then
31406 ac_header_compiler=yes
31407 else
31408 echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31411 ac_header_compiler=no
31414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31416 echo "${ECHO_T}$ac_header_compiler" >&6; }
31418 # Is the header present?
31419 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
31420 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
31421 cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h. */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31427 #include <osp/osp.h>
31428 _ACEOF
31429 if { (ac_try="$ac_cpp conftest.$ac_ext"
31430 case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31436 ac_status=$?
31437 grep -v '^ *+' conftest.er1 >conftest.err
31438 rm -f conftest.er1
31439 cat conftest.err >&5
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } >/dev/null && {
31442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31443 test ! -s conftest.err
31444 }; then
31445 ac_header_preproc=yes
31446 else
31447 echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31450 ac_header_preproc=no
31453 rm -f conftest.err conftest.$ac_ext
31454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31455 echo "${ECHO_T}$ac_header_preproc" >&6; }
31457 # So? What about this header?
31458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31459 yes:no: )
31460 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31461 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31462 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
31463 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
31464 ac_header_preproc=yes
31466 no:yes:* )
31467 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
31468 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
31469 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
31470 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
31471 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
31472 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
31473 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
31474 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31475 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
31476 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
31477 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
31478 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
31479 ( cat <<\_ASBOX
31480 ## ------------------------------- ##
31481 ## Report this to www.asterisk.org ##
31482 ## ------------------------------- ##
31483 _ASBOX
31484 ) | sed "s/^/$as_me: WARNING: /" >&2
31486 esac
31487 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
31488 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
31489 if test "${ac_cv_header_osp_osp_h+set}" = set; then
31490 echo $ECHO_N "(cached) $ECHO_C" >&6
31491 else
31492 ac_cv_header_osp_osp_h=$ac_header_preproc
31494 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
31495 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
31498 if test $ac_cv_header_osp_osp_h = yes; then
31499 OSPTK_HEADER_FOUND=1
31500 else
31501 OSPTK_HEADER_FOUND=0
31507 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
31508 if test -n "${OSPTK_MANDATORY}" ;
31509 then
31510 { echo "$as_me:$LINENO: ***" >&5
31511 echo "$as_me: ***" >&6;}
31512 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
31513 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
31514 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
31515 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
31516 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31517 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31518 exit 1
31520 OSPTK_LIB=""
31521 OSPTK_INCLUDE=""
31522 PBX_OSPTK=0
31523 else
31524 PBX_OSPTK=1
31526 cat >>confdefs.h <<_ACEOF
31527 #define HAVE_OSPTK 1
31528 _ACEOF
31531 elif test -n "${OSPTK_MANDATORY}";
31532 then
31533 { echo "$as_me:$LINENO: ***" >&5
31534 echo "$as_me: ***" >&6;}
31535 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
31536 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
31537 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31538 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31539 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
31540 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
31541 exit 1
31548 if test "${USE_FREETDS}" != "no"; then
31549 pbxlibdir=""
31550 if test "x${FREETDS_DIR}" != "x"; then
31551 if test -d ${FREETDS_DIR}/lib; then
31552 pbxlibdir="-L${FREETDS_DIR}/lib"
31553 else
31554 pbxlibdir="-L${FREETDS_DIR}"
31557 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
31558 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
31559 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
31560 echo $ECHO_N "(cached) $ECHO_C" >&6
31561 else
31562 ac_check_lib_save_LIBS=$LIBS
31563 LIBS="-ltds ${pbxlibdir} $LIBS"
31564 cat >conftest.$ac_ext <<_ACEOF
31565 /* confdefs.h. */
31566 _ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31571 /* Override any GCC internal prototype to avoid an error.
31572 Use char because int might match the return type of a GCC
31573 builtin and then its argument prototype would still apply. */
31574 #ifdef __cplusplus
31575 extern "C"
31576 #endif
31577 char tds_version ();
31579 main ()
31581 return tds_version ();
31583 return 0;
31585 _ACEOF
31586 rm -f conftest.$ac_objext conftest$ac_exeext
31587 if { (ac_try="$ac_link"
31588 case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31591 esac
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_link") 2>conftest.er1
31594 ac_status=$?
31595 grep -v '^ *+' conftest.er1 >conftest.err
31596 rm -f conftest.er1
31597 cat conftest.err >&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } && {
31600 test -z "$ac_c_werror_flag" ||
31601 test ! -s conftest.err
31602 } && test -s conftest$ac_exeext &&
31603 $as_test_x conftest$ac_exeext; then
31604 ac_cv_lib_tds_tds_version=yes
31605 else
31606 echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.$ac_ext >&5
31609 ac_cv_lib_tds_tds_version=no
31612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31613 conftest$ac_exeext conftest.$ac_ext
31614 LIBS=$ac_check_lib_save_LIBS
31616 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
31617 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
31618 if test $ac_cv_lib_tds_tds_version = yes; then
31619 AST_FREETDS_FOUND=yes
31620 else
31621 AST_FREETDS_FOUND=no
31625 if test "${AST_FREETDS_FOUND}" = "yes"; then
31626 FREETDS_LIB="-ltds "
31627 FREETDS_HEADER_FOUND="1"
31628 if test "x${FREETDS_DIR}" != "x"; then
31629 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
31630 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
31631 saved_cppflags="${CPPFLAGS}"
31632 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
31633 if test "xtds.h" != "x" ; then
31634 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
31635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31636 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31637 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31639 echo $ECHO_N "(cached) $ECHO_C" >&6
31641 ac_res=`eval echo '${'$as_ac_Header'}'`
31642 { echo "$as_me:$LINENO: result: $ac_res" >&5
31643 echo "${ECHO_T}$ac_res" >&6; }
31644 else
31645 # Is the header compilable?
31646 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
31647 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
31648 cat >conftest.$ac_ext <<_ACEOF
31649 /* confdefs.h. */
31650 _ACEOF
31651 cat confdefs.h >>conftest.$ac_ext
31652 cat >>conftest.$ac_ext <<_ACEOF
31653 /* end confdefs.h. */
31654 $ac_includes_default
31655 #include <${FREETDS_DIR}/include/tds.h>
31656 _ACEOF
31657 rm -f conftest.$ac_objext
31658 if { (ac_try="$ac_compile"
31659 case "(($ac_try" in
31660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31661 *) ac_try_echo=$ac_try;;
31662 esac
31663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31664 (eval "$ac_compile") 2>conftest.er1
31665 ac_status=$?
31666 grep -v '^ *+' conftest.er1 >conftest.err
31667 rm -f conftest.er1
31668 cat conftest.err >&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); } && {
31671 test -z "$ac_c_werror_flag" ||
31672 test ! -s conftest.err
31673 } && test -s conftest.$ac_objext; then
31674 ac_header_compiler=yes
31675 else
31676 echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31679 ac_header_compiler=no
31682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31684 echo "${ECHO_T}$ac_header_compiler" >&6; }
31686 # Is the header present?
31687 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
31688 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
31689 cat >conftest.$ac_ext <<_ACEOF
31690 /* confdefs.h. */
31691 _ACEOF
31692 cat confdefs.h >>conftest.$ac_ext
31693 cat >>conftest.$ac_ext <<_ACEOF
31694 /* end confdefs.h. */
31695 #include <${FREETDS_DIR}/include/tds.h>
31696 _ACEOF
31697 if { (ac_try="$ac_cpp conftest.$ac_ext"
31698 case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31701 esac
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31704 ac_status=$?
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } >/dev/null && {
31710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31711 test ! -s conftest.err
31712 }; then
31713 ac_header_preproc=yes
31714 else
31715 echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31718 ac_header_preproc=no
31721 rm -f conftest.err conftest.$ac_ext
31722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31723 echo "${ECHO_T}$ac_header_preproc" >&6; }
31725 # So? What about this header?
31726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31727 yes:no: )
31728 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31729 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31730 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
31731 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
31732 ac_header_preproc=yes
31734 no:yes:* )
31735 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
31736 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
31737 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
31738 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
31739 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
31740 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
31741 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
31742 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31743 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
31744 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
31745 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
31746 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
31747 ( cat <<\_ASBOX
31748 ## ------------------------------- ##
31749 ## Report this to www.asterisk.org ##
31750 ## ------------------------------- ##
31751 _ASBOX
31752 ) | sed "s/^/$as_me: WARNING: /" >&2
31754 esac
31755 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
31756 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
31757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31759 else
31760 eval "$as_ac_Header=\$ac_header_preproc"
31762 ac_res=`eval echo '${'$as_ac_Header'}'`
31763 { echo "$as_me:$LINENO: result: $ac_res" >&5
31764 echo "${ECHO_T}$ac_res" >&6; }
31767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31768 FREETDS_HEADER_FOUND=1
31769 else
31770 FREETDS_HEADER_FOUND=0
31775 CPPFLAGS="${saved_cppflags}"
31776 else
31777 if test "xtds.h" != "x" ; then
31778 if test "${ac_cv_header_tds_h+set}" = set; then
31779 { echo "$as_me:$LINENO: checking for tds.h" >&5
31780 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31781 if test "${ac_cv_header_tds_h+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31784 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31785 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31786 else
31787 # Is the header compilable?
31788 { echo "$as_me:$LINENO: checking tds.h usability" >&5
31789 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
31790 cat >conftest.$ac_ext <<_ACEOF
31791 /* confdefs.h. */
31792 _ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h. */
31796 $ac_includes_default
31797 #include <tds.h>
31798 _ACEOF
31799 rm -f conftest.$ac_objext
31800 if { (ac_try="$ac_compile"
31801 case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
31807 ac_status=$?
31808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } && {
31813 test -z "$ac_c_werror_flag" ||
31814 test ! -s conftest.err
31815 } && test -s conftest.$ac_objext; then
31816 ac_header_compiler=yes
31817 else
31818 echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31821 ac_header_compiler=no
31824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31826 echo "${ECHO_T}$ac_header_compiler" >&6; }
31828 # Is the header present?
31829 { echo "$as_me:$LINENO: checking tds.h presence" >&5
31830 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
31831 cat >conftest.$ac_ext <<_ACEOF
31832 /* confdefs.h. */
31833 _ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h. */
31837 #include <tds.h>
31838 _ACEOF
31839 if { (ac_try="$ac_cpp conftest.$ac_ext"
31840 case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843 esac
31844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31846 ac_status=$?
31847 grep -v '^ *+' conftest.er1 >conftest.err
31848 rm -f conftest.er1
31849 cat conftest.err >&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); } >/dev/null && {
31852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31853 test ! -s conftest.err
31854 }; then
31855 ac_header_preproc=yes
31856 else
31857 echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31860 ac_header_preproc=no
31863 rm -f conftest.err conftest.$ac_ext
31864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31865 echo "${ECHO_T}$ac_header_preproc" >&6; }
31867 # So? What about this header?
31868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31869 yes:no: )
31870 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
31871 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31872 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
31873 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
31874 ac_header_preproc=yes
31876 no:yes:* )
31877 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
31878 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
31879 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
31880 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
31881 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
31882 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
31883 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
31884 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
31885 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
31886 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
31887 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
31888 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
31889 ( cat <<\_ASBOX
31890 ## ------------------------------- ##
31891 ## Report this to www.asterisk.org ##
31892 ## ------------------------------- ##
31893 _ASBOX
31894 ) | sed "s/^/$as_me: WARNING: /" >&2
31896 esac
31897 { echo "$as_me:$LINENO: checking for tds.h" >&5
31898 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
31899 if test "${ac_cv_header_tds_h+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31901 else
31902 ac_cv_header_tds_h=$ac_header_preproc
31904 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
31905 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
31908 if test $ac_cv_header_tds_h = yes; then
31909 FREETDS_HEADER_FOUND=1
31910 else
31911 FREETDS_HEADER_FOUND=0
31917 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
31918 if test -n "${FREETDS_MANDATORY}" ;
31919 then
31920 { echo "$as_me:$LINENO: ***" >&5
31921 echo "$as_me: ***" >&6;}
31922 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
31923 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
31924 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
31925 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
31926 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31927 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31928 exit 1
31930 FREETDS_LIB=""
31931 FREETDS_INCLUDE=""
31932 PBX_FREETDS=0
31933 else
31934 PBX_FREETDS=1
31936 cat >>confdefs.h <<_ACEOF
31937 #define HAVE_FREETDS 1
31938 _ACEOF
31941 elif test -n "${FREETDS_MANDATORY}";
31942 then
31943 { echo "$as_me:$LINENO: ***" >&5
31944 echo "$as_me: ***" >&6;}
31945 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
31946 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
31947 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31948 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31949 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
31950 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
31951 exit 1
31955 if test "${PBX_FREETDS}" != "0";
31956 then
31957 if test "${FREETDS_DIR}x" = "x";
31958 then
31959 for tds_dir in /usr /usr/local;
31961 if test -f "${tds_dir}/include/tdsver.h";
31962 then
31963 FREETDS_DIR="${tds_dir}"
31965 done
31967 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
31968 *0.64*)
31969 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
31971 *0.63*)
31972 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
31974 *0.62*)
31975 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
31978 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
31980 esac
31984 if test "${USE_TERMCAP}" != "no"; then
31985 pbxlibdir=""
31986 if test "x${TERMCAP_DIR}" != "x"; then
31987 if test -d ${TERMCAP_DIR}/lib; then
31988 pbxlibdir="-L${TERMCAP_DIR}/lib"
31989 else
31990 pbxlibdir="-L${TERMCAP_DIR}"
31993 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
31994 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
31995 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
31996 echo $ECHO_N "(cached) $ECHO_C" >&6
31997 else
31998 ac_check_lib_save_LIBS=$LIBS
31999 LIBS="-ltermcap ${pbxlibdir} $LIBS"
32000 cat >conftest.$ac_ext <<_ACEOF
32001 /* confdefs.h. */
32002 _ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h. */
32007 /* Override any GCC internal prototype to avoid an error.
32008 Use char because int might match the return type of a GCC
32009 builtin and then its argument prototype would still apply. */
32010 #ifdef __cplusplus
32011 extern "C"
32012 #endif
32013 char tgetent ();
32015 main ()
32017 return tgetent ();
32019 return 0;
32021 _ACEOF
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (ac_try="$ac_link"
32024 case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_link") 2>conftest.er1
32030 ac_status=$?
32031 grep -v '^ *+' conftest.er1 >conftest.err
32032 rm -f conftest.er1
32033 cat conftest.err >&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); } && {
32036 test -z "$ac_c_werror_flag" ||
32037 test ! -s conftest.err
32038 } && test -s conftest$ac_exeext &&
32039 $as_test_x conftest$ac_exeext; then
32040 ac_cv_lib_termcap_tgetent=yes
32041 else
32042 echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32045 ac_cv_lib_termcap_tgetent=no
32048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32049 conftest$ac_exeext conftest.$ac_ext
32050 LIBS=$ac_check_lib_save_LIBS
32052 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
32053 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
32054 if test $ac_cv_lib_termcap_tgetent = yes; then
32055 AST_TERMCAP_FOUND=yes
32056 else
32057 AST_TERMCAP_FOUND=no
32061 if test "${AST_TERMCAP_FOUND}" = "yes"; then
32062 TERMCAP_LIB="-ltermcap "
32063 TERMCAP_HEADER_FOUND="1"
32064 if test "x${TERMCAP_DIR}" != "x"; then
32065 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
32066 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
32067 saved_cppflags="${CPPFLAGS}"
32068 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
32069 if test "x" != "x" ; then
32070 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
32071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32072 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
32073 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
32074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
32077 ac_res=`eval echo '${'$as_ac_Header'}'`
32078 { echo "$as_me:$LINENO: result: $ac_res" >&5
32079 echo "${ECHO_T}$ac_res" >&6; }
32080 else
32081 # Is the header compilable?
32082 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
32083 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
32084 cat >conftest.$ac_ext <<_ACEOF
32085 /* confdefs.h. */
32086 _ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32090 $ac_includes_default
32091 #include <${TERMCAP_DIR}/include/>
32092 _ACEOF
32093 rm -f conftest.$ac_objext
32094 if { (ac_try="$ac_compile"
32095 case "(($ac_try" in
32096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32097 *) ac_try_echo=$ac_try;;
32098 esac
32099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32100 (eval "$ac_compile") 2>conftest.er1
32101 ac_status=$?
32102 grep -v '^ *+' conftest.er1 >conftest.err
32103 rm -f conftest.er1
32104 cat conftest.err >&5
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); } && {
32107 test -z "$ac_c_werror_flag" ||
32108 test ! -s conftest.err
32109 } && test -s conftest.$ac_objext; then
32110 ac_header_compiler=yes
32111 else
32112 echo "$as_me: failed program was:" >&5
32113 sed 's/^/| /' conftest.$ac_ext >&5
32115 ac_header_compiler=no
32118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32120 echo "${ECHO_T}$ac_header_compiler" >&6; }
32122 # Is the header present?
32123 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
32124 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
32125 cat >conftest.$ac_ext <<_ACEOF
32126 /* confdefs.h. */
32127 _ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h. */
32131 #include <${TERMCAP_DIR}/include/>
32132 _ACEOF
32133 if { (ac_try="$ac_cpp conftest.$ac_ext"
32134 case "(($ac_try" in
32135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136 *) ac_try_echo=$ac_try;;
32137 esac
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32140 ac_status=$?
32141 grep -v '^ *+' conftest.er1 >conftest.err
32142 rm -f conftest.er1
32143 cat conftest.err >&5
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } >/dev/null && {
32146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32147 test ! -s conftest.err
32148 }; then
32149 ac_header_preproc=yes
32150 else
32151 echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32154 ac_header_preproc=no
32157 rm -f conftest.err conftest.$ac_ext
32158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32159 echo "${ECHO_T}$ac_header_preproc" >&6; }
32161 # So? What about this header?
32162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32163 yes:no: )
32164 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
32165 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
32166 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
32167 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
32168 ac_header_preproc=yes
32170 no:yes:* )
32171 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
32172 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
32173 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
32174 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
32175 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
32176 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
32177 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
32178 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
32179 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
32180 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
32181 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
32182 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
32183 ( cat <<\_ASBOX
32184 ## ------------------------------- ##
32185 ## Report this to www.asterisk.org ##
32186 ## ------------------------------- ##
32187 _ASBOX
32188 ) | sed "s/^/$as_me: WARNING: /" >&2
32190 esac
32191 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
32192 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
32193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32194 echo $ECHO_N "(cached) $ECHO_C" >&6
32195 else
32196 eval "$as_ac_Header=\$ac_header_preproc"
32198 ac_res=`eval echo '${'$as_ac_Header'}'`
32199 { echo "$as_me:$LINENO: result: $ac_res" >&5
32200 echo "${ECHO_T}$ac_res" >&6; }
32203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32204 TERMCAP_HEADER_FOUND=1
32205 else
32206 TERMCAP_HEADER_FOUND=0
32211 CPPFLAGS="${saved_cppflags}"
32212 else
32213 if test "x" != "x" ; then
32214 if test "${ac_cv_header_+set}" = set; then
32215 { echo "$as_me:$LINENO: checking for " >&5
32216 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32217 if test "${ac_cv_header_+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32220 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32221 echo "${ECHO_T}$ac_cv_header_" >&6; }
32222 else
32223 # Is the header compilable?
32224 { echo "$as_me:$LINENO: checking usability" >&5
32225 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32226 cat >conftest.$ac_ext <<_ACEOF
32227 /* confdefs.h. */
32228 _ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 $ac_includes_default
32233 #include <>
32234 _ACEOF
32235 rm -f conftest.$ac_objext
32236 if { (ac_try="$ac_compile"
32237 case "(($ac_try" in
32238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239 *) ac_try_echo=$ac_try;;
32240 esac
32241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242 (eval "$ac_compile") 2>conftest.er1
32243 ac_status=$?
32244 grep -v '^ *+' conftest.er1 >conftest.err
32245 rm -f conftest.er1
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } && {
32249 test -z "$ac_c_werror_flag" ||
32250 test ! -s conftest.err
32251 } && test -s conftest.$ac_objext; then
32252 ac_header_compiler=yes
32253 else
32254 echo "$as_me: failed program was:" >&5
32255 sed 's/^/| /' conftest.$ac_ext >&5
32257 ac_header_compiler=no
32260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32262 echo "${ECHO_T}$ac_header_compiler" >&6; }
32264 # Is the header present?
32265 { echo "$as_me:$LINENO: checking presence" >&5
32266 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32267 cat >conftest.$ac_ext <<_ACEOF
32268 /* confdefs.h. */
32269 _ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32273 #include <>
32274 _ACEOF
32275 if { (ac_try="$ac_cpp conftest.$ac_ext"
32276 case "(($ac_try" in
32277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32278 *) ac_try_echo=$ac_try;;
32279 esac
32280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32282 ac_status=$?
32283 grep -v '^ *+' conftest.er1 >conftest.err
32284 rm -f conftest.er1
32285 cat conftest.err >&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } >/dev/null && {
32288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32289 test ! -s conftest.err
32290 }; then
32291 ac_header_preproc=yes
32292 else
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32296 ac_header_preproc=no
32299 rm -f conftest.err conftest.$ac_ext
32300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32301 echo "${ECHO_T}$ac_header_preproc" >&6; }
32303 # So? What about this header?
32304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32305 yes:no: )
32306 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32307 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32308 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32309 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32310 ac_header_preproc=yes
32312 no:yes:* )
32313 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32314 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32315 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32316 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32318 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32320 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32321 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32322 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32323 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32324 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32325 ( cat <<\_ASBOX
32326 ## ------------------------------- ##
32327 ## Report this to www.asterisk.org ##
32328 ## ------------------------------- ##
32329 _ASBOX
32330 ) | sed "s/^/$as_me: WARNING: /" >&2
32332 esac
32333 { echo "$as_me:$LINENO: checking for " >&5
32334 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32335 if test "${ac_cv_header_+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32337 else
32338 ac_cv_header_=$ac_header_preproc
32340 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32341 echo "${ECHO_T}$ac_cv_header_" >&6; }
32344 if test $ac_cv_header_ = yes; then
32345 TERMCAP_HEADER_FOUND=1
32346 else
32347 TERMCAP_HEADER_FOUND=0
32353 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
32354 if test -n "${TERMCAP_MANDATORY}" ;
32355 then
32356 { echo "$as_me:$LINENO: ***" >&5
32357 echo "$as_me: ***" >&6;}
32358 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
32359 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
32360 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
32361 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
32362 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32363 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32364 exit 1
32366 TERMCAP_LIB=""
32367 TERMCAP_INCLUDE=""
32368 PBX_TERMCAP=0
32369 else
32370 PBX_TERMCAP=1
32372 cat >>confdefs.h <<_ACEOF
32373 #define HAVE_TERMCAP 1
32374 _ACEOF
32377 elif test -n "${TERMCAP_MANDATORY}";
32378 then
32379 { echo "$as_me:$LINENO: ***" >&5
32380 echo "$as_me: ***" >&6;}
32381 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
32382 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
32383 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32384 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32385 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
32386 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
32387 exit 1
32393 if test "${USE_TINFO}" != "no"; then
32394 pbxlibdir=""
32395 if test "x${TINFO_DIR}" != "x"; then
32396 if test -d ${TINFO_DIR}/lib; then
32397 pbxlibdir="-L${TINFO_DIR}/lib"
32398 else
32399 pbxlibdir="-L${TINFO_DIR}"
32402 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
32403 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
32404 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32406 else
32407 ac_check_lib_save_LIBS=$LIBS
32408 LIBS="-ltinfo ${pbxlibdir} $LIBS"
32409 cat >conftest.$ac_ext <<_ACEOF
32410 /* confdefs.h. */
32411 _ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h. */
32416 /* Override any GCC internal prototype to avoid an error.
32417 Use char because int might match the return type of a GCC
32418 builtin and then its argument prototype would still apply. */
32419 #ifdef __cplusplus
32420 extern "C"
32421 #endif
32422 char tgetent ();
32424 main ()
32426 return tgetent ();
32428 return 0;
32430 _ACEOF
32431 rm -f conftest.$ac_objext conftest$ac_exeext
32432 if { (ac_try="$ac_link"
32433 case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32436 esac
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_link") 2>conftest.er1
32439 ac_status=$?
32440 grep -v '^ *+' conftest.er1 >conftest.err
32441 rm -f conftest.er1
32442 cat conftest.err >&5
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); } && {
32445 test -z "$ac_c_werror_flag" ||
32446 test ! -s conftest.err
32447 } && test -s conftest$ac_exeext &&
32448 $as_test_x conftest$ac_exeext; then
32449 ac_cv_lib_tinfo_tgetent=yes
32450 else
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32454 ac_cv_lib_tinfo_tgetent=no
32457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32458 conftest$ac_exeext conftest.$ac_ext
32459 LIBS=$ac_check_lib_save_LIBS
32461 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
32462 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
32463 if test $ac_cv_lib_tinfo_tgetent = yes; then
32464 AST_TINFO_FOUND=yes
32465 else
32466 AST_TINFO_FOUND=no
32470 if test "${AST_TINFO_FOUND}" = "yes"; then
32471 TINFO_LIB="-ltinfo "
32472 TINFO_HEADER_FOUND="1"
32473 if test "x${TINFO_DIR}" != "x"; then
32474 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
32475 TINFO_INCLUDE="-I${TINFO_DIR}/include"
32476 saved_cppflags="${CPPFLAGS}"
32477 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
32478 if test "x" != "x" ; then
32479 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
32480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32481 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32482 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32486 ac_res=`eval echo '${'$as_ac_Header'}'`
32487 { echo "$as_me:$LINENO: result: $ac_res" >&5
32488 echo "${ECHO_T}$ac_res" >&6; }
32489 else
32490 # Is the header compilable?
32491 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
32492 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
32493 cat >conftest.$ac_ext <<_ACEOF
32494 /* confdefs.h. */
32495 _ACEOF
32496 cat confdefs.h >>conftest.$ac_ext
32497 cat >>conftest.$ac_ext <<_ACEOF
32498 /* end confdefs.h. */
32499 $ac_includes_default
32500 #include <${TINFO_DIR}/include/>
32501 _ACEOF
32502 rm -f conftest.$ac_objext
32503 if { (ac_try="$ac_compile"
32504 case "(($ac_try" in
32505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32507 esac
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_compile") 2>conftest.er1
32510 ac_status=$?
32511 grep -v '^ *+' conftest.er1 >conftest.err
32512 rm -f conftest.er1
32513 cat conftest.err >&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); } && {
32516 test -z "$ac_c_werror_flag" ||
32517 test ! -s conftest.err
32518 } && test -s conftest.$ac_objext; then
32519 ac_header_compiler=yes
32520 else
32521 echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32524 ac_header_compiler=no
32527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32529 echo "${ECHO_T}$ac_header_compiler" >&6; }
32531 # Is the header present?
32532 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
32533 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
32534 cat >conftest.$ac_ext <<_ACEOF
32535 /* confdefs.h. */
32536 _ACEOF
32537 cat confdefs.h >>conftest.$ac_ext
32538 cat >>conftest.$ac_ext <<_ACEOF
32539 /* end confdefs.h. */
32540 #include <${TINFO_DIR}/include/>
32541 _ACEOF
32542 if { (ac_try="$ac_cpp conftest.$ac_ext"
32543 case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32546 esac
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32549 ac_status=$?
32550 grep -v '^ *+' conftest.er1 >conftest.err
32551 rm -f conftest.er1
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } >/dev/null && {
32555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32556 test ! -s conftest.err
32557 }; then
32558 ac_header_preproc=yes
32559 else
32560 echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32563 ac_header_preproc=no
32566 rm -f conftest.err conftest.$ac_ext
32567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32568 echo "${ECHO_T}$ac_header_preproc" >&6; }
32570 # So? What about this header?
32571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32572 yes:no: )
32573 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
32574 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
32575 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
32576 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
32577 ac_header_preproc=yes
32579 no:yes:* )
32580 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
32581 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
32582 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
32583 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
32584 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
32585 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
32586 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
32587 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
32588 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
32589 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
32590 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
32591 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
32592 ( cat <<\_ASBOX
32593 ## ------------------------------- ##
32594 ## Report this to www.asterisk.org ##
32595 ## ------------------------------- ##
32596 _ASBOX
32597 ) | sed "s/^/$as_me: WARNING: /" >&2
32599 esac
32600 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
32601 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
32602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32603 echo $ECHO_N "(cached) $ECHO_C" >&6
32604 else
32605 eval "$as_ac_Header=\$ac_header_preproc"
32607 ac_res=`eval echo '${'$as_ac_Header'}'`
32608 { echo "$as_me:$LINENO: result: $ac_res" >&5
32609 echo "${ECHO_T}$ac_res" >&6; }
32612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32613 TINFO_HEADER_FOUND=1
32614 else
32615 TINFO_HEADER_FOUND=0
32620 CPPFLAGS="${saved_cppflags}"
32621 else
32622 if test "x" != "x" ; then
32623 if test "${ac_cv_header_+set}" = set; then
32624 { echo "$as_me:$LINENO: checking for " >&5
32625 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32626 if test "${ac_cv_header_+set}" = set; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32629 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32630 echo "${ECHO_T}$ac_cv_header_" >&6; }
32631 else
32632 # Is the header compilable?
32633 { echo "$as_me:$LINENO: checking usability" >&5
32634 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
32635 cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h. */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32641 $ac_includes_default
32642 #include <>
32643 _ACEOF
32644 rm -f conftest.$ac_objext
32645 if { (ac_try="$ac_compile"
32646 case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649 esac
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_compile") 2>conftest.er1
32652 ac_status=$?
32653 grep -v '^ *+' conftest.er1 >conftest.err
32654 rm -f conftest.er1
32655 cat conftest.err >&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); } && {
32658 test -z "$ac_c_werror_flag" ||
32659 test ! -s conftest.err
32660 } && test -s conftest.$ac_objext; then
32661 ac_header_compiler=yes
32662 else
32663 echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32666 ac_header_compiler=no
32669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32671 echo "${ECHO_T}$ac_header_compiler" >&6; }
32673 # Is the header present?
32674 { echo "$as_me:$LINENO: checking presence" >&5
32675 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
32676 cat >conftest.$ac_ext <<_ACEOF
32677 /* confdefs.h. */
32678 _ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32682 #include <>
32683 _ACEOF
32684 if { (ac_try="$ac_cpp conftest.$ac_ext"
32685 case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32688 esac
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32691 ac_status=$?
32692 grep -v '^ *+' conftest.er1 >conftest.err
32693 rm -f conftest.er1
32694 cat conftest.err >&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } >/dev/null && {
32697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32698 test ! -s conftest.err
32699 }; then
32700 ac_header_preproc=yes
32701 else
32702 echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32705 ac_header_preproc=no
32708 rm -f conftest.err conftest.$ac_ext
32709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32710 echo "${ECHO_T}$ac_header_preproc" >&6; }
32712 # So? What about this header?
32713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32714 yes:no: )
32715 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
32716 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
32718 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
32719 ac_header_preproc=yes
32721 no:yes:* )
32722 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
32723 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
32724 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
32725 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
32726 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
32727 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
32728 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
32729 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
32730 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
32731 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
32732 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
32733 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
32734 ( cat <<\_ASBOX
32735 ## ------------------------------- ##
32736 ## Report this to www.asterisk.org ##
32737 ## ------------------------------- ##
32738 _ASBOX
32739 ) | sed "s/^/$as_me: WARNING: /" >&2
32741 esac
32742 { echo "$as_me:$LINENO: checking for " >&5
32743 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
32744 if test "${ac_cv_header_+set}" = set; then
32745 echo $ECHO_N "(cached) $ECHO_C" >&6
32746 else
32747 ac_cv_header_=$ac_header_preproc
32749 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
32750 echo "${ECHO_T}$ac_cv_header_" >&6; }
32753 if test $ac_cv_header_ = yes; then
32754 TINFO_HEADER_FOUND=1
32755 else
32756 TINFO_HEADER_FOUND=0
32762 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
32763 if test -n "${TINFO_MANDATORY}" ;
32764 then
32765 { echo "$as_me:$LINENO: ***" >&5
32766 echo "$as_me: ***" >&6;}
32767 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
32768 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
32769 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
32770 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
32771 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32772 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32773 exit 1
32775 TINFO_LIB=""
32776 TINFO_INCLUDE=""
32777 PBX_TINFO=0
32778 else
32779 PBX_TINFO=1
32781 cat >>confdefs.h <<_ACEOF
32782 #define HAVE_TINFO 1
32783 _ACEOF
32786 elif test -n "${TINFO_MANDATORY}";
32787 then
32788 { echo "$as_me:$LINENO: ***" >&5
32789 echo "$as_me: ***" >&6;}
32790 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
32791 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
32792 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32793 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32794 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
32795 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
32796 exit 1
32801 if test "${host_os}" != "linux-gnu" ; then
32802 tonezone_extra="-lm"
32806 if test "${USE_TONEZONE}" != "no"; then
32807 pbxlibdir=""
32808 if test "x${TONEZONE_DIR}" != "x"; then
32809 if test -d ${TONEZONE_DIR}/lib; then
32810 pbxlibdir="-L${TONEZONE_DIR}/lib"
32811 else
32812 pbxlibdir="-L${TONEZONE_DIR}"
32815 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
32816 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
32817 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
32818 echo $ECHO_N "(cached) $ECHO_C" >&6
32819 else
32820 ac_check_lib_save_LIBS=$LIBS
32821 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
32822 cat >conftest.$ac_ext <<_ACEOF
32823 /* confdefs.h. */
32824 _ACEOF
32825 cat confdefs.h >>conftest.$ac_ext
32826 cat >>conftest.$ac_ext <<_ACEOF
32827 /* end confdefs.h. */
32829 /* Override any GCC internal prototype to avoid an error.
32830 Use char because int might match the return type of a GCC
32831 builtin and then its argument prototype would still apply. */
32832 #ifdef __cplusplus
32833 extern "C"
32834 #endif
32835 char tone_zone_find ();
32837 main ()
32839 return tone_zone_find ();
32841 return 0;
32843 _ACEOF
32844 rm -f conftest.$ac_objext conftest$ac_exeext
32845 if { (ac_try="$ac_link"
32846 case "(($ac_try" in
32847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848 *) ac_try_echo=$ac_try;;
32849 esac
32850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851 (eval "$ac_link") 2>conftest.er1
32852 ac_status=$?
32853 grep -v '^ *+' conftest.er1 >conftest.err
32854 rm -f conftest.er1
32855 cat conftest.err >&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); } && {
32858 test -z "$ac_c_werror_flag" ||
32859 test ! -s conftest.err
32860 } && test -s conftest$ac_exeext &&
32861 $as_test_x conftest$ac_exeext; then
32862 ac_cv_lib_tonezone_tone_zone_find=yes
32863 else
32864 echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32867 ac_cv_lib_tonezone_tone_zone_find=no
32870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32871 conftest$ac_exeext conftest.$ac_ext
32872 LIBS=$ac_check_lib_save_LIBS
32874 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
32875 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
32876 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
32877 AST_TONEZONE_FOUND=yes
32878 else
32879 AST_TONEZONE_FOUND=no
32883 if test "${AST_TONEZONE_FOUND}" = "yes"; then
32884 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
32885 TONEZONE_HEADER_FOUND="1"
32886 if test "x${TONEZONE_DIR}" != "x"; then
32887 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
32888 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
32889 saved_cppflags="${CPPFLAGS}"
32890 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
32891 if test "xzaptel/tonezone.h" != "x" ; then
32892 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
32893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32894 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
32895 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
32896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32897 echo $ECHO_N "(cached) $ECHO_C" >&6
32899 ac_res=`eval echo '${'$as_ac_Header'}'`
32900 { echo "$as_me:$LINENO: result: $ac_res" >&5
32901 echo "${ECHO_T}$ac_res" >&6; }
32902 else
32903 # Is the header compilable?
32904 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
32905 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
32906 cat >conftest.$ac_ext <<_ACEOF
32907 /* confdefs.h. */
32908 _ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h. */
32912 $ac_includes_default
32913 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32914 _ACEOF
32915 rm -f conftest.$ac_objext
32916 if { (ac_try="$ac_compile"
32917 case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32920 esac
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_compile") 2>conftest.er1
32923 ac_status=$?
32924 grep -v '^ *+' conftest.er1 >conftest.err
32925 rm -f conftest.er1
32926 cat conftest.err >&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } && {
32929 test -z "$ac_c_werror_flag" ||
32930 test ! -s conftest.err
32931 } && test -s conftest.$ac_objext; then
32932 ac_header_compiler=yes
32933 else
32934 echo "$as_me: failed program was:" >&5
32935 sed 's/^/| /' conftest.$ac_ext >&5
32937 ac_header_compiler=no
32940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32942 echo "${ECHO_T}$ac_header_compiler" >&6; }
32944 # Is the header present?
32945 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
32946 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
32947 cat >conftest.$ac_ext <<_ACEOF
32948 /* confdefs.h. */
32949 _ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h. */
32953 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
32954 _ACEOF
32955 if { (ac_try="$ac_cpp conftest.$ac_ext"
32956 case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32959 esac
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32962 ac_status=$?
32963 grep -v '^ *+' conftest.er1 >conftest.err
32964 rm -f conftest.er1
32965 cat conftest.err >&5
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); } >/dev/null && {
32968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32969 test ! -s conftest.err
32970 }; then
32971 ac_header_preproc=yes
32972 else
32973 echo "$as_me: failed program was:" >&5
32974 sed 's/^/| /' conftest.$ac_ext >&5
32976 ac_header_preproc=no
32979 rm -f conftest.err conftest.$ac_ext
32980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32981 echo "${ECHO_T}$ac_header_preproc" >&6; }
32983 # So? What about this header?
32984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32985 yes:no: )
32986 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32987 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
32989 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32990 ac_header_preproc=yes
32992 no:yes:* )
32993 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
32994 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
32995 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32996 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32997 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
32998 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32999 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
33000 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
33001 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
33002 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
33003 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
33004 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
33005 ( cat <<\_ASBOX
33006 ## ------------------------------- ##
33007 ## Report this to www.asterisk.org ##
33008 ## ------------------------------- ##
33009 _ASBOX
33010 ) | sed "s/^/$as_me: WARNING: /" >&2
33012 esac
33013 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
33014 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
33015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33017 else
33018 eval "$as_ac_Header=\$ac_header_preproc"
33020 ac_res=`eval echo '${'$as_ac_Header'}'`
33021 { echo "$as_me:$LINENO: result: $ac_res" >&5
33022 echo "${ECHO_T}$ac_res" >&6; }
33025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33026 TONEZONE_HEADER_FOUND=1
33027 else
33028 TONEZONE_HEADER_FOUND=0
33033 CPPFLAGS="${saved_cppflags}"
33034 else
33035 if test "xzaptel/tonezone.h" != "x" ; then
33036 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
33037 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
33038 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
33039 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
33040 echo $ECHO_N "(cached) $ECHO_C" >&6
33042 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
33043 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
33044 else
33045 # Is the header compilable?
33046 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
33047 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
33048 cat >conftest.$ac_ext <<_ACEOF
33049 /* confdefs.h. */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 $ac_includes_default
33055 #include <zaptel/tonezone.h>
33056 _ACEOF
33057 rm -f conftest.$ac_objext
33058 if { (ac_try="$ac_compile"
33059 case "(($ac_try" in
33060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061 *) ac_try_echo=$ac_try;;
33062 esac
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064 (eval "$ac_compile") 2>conftest.er1
33065 ac_status=$?
33066 grep -v '^ *+' conftest.er1 >conftest.err
33067 rm -f conftest.er1
33068 cat conftest.err >&5
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); } && {
33071 test -z "$ac_c_werror_flag" ||
33072 test ! -s conftest.err
33073 } && test -s conftest.$ac_objext; then
33074 ac_header_compiler=yes
33075 else
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 ac_header_compiler=no
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084 echo "${ECHO_T}$ac_header_compiler" >&6; }
33086 # Is the header present?
33087 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
33088 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
33089 cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h. */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h. */
33095 #include <zaptel/tonezone.h>
33096 _ACEOF
33097 if { (ac_try="$ac_cpp conftest.$ac_ext"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } >/dev/null && {
33110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 }; then
33113 ac_header_preproc=yes
33114 else
33115 echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33118 ac_header_preproc=no
33121 rm -f conftest.err conftest.$ac_ext
33122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33123 echo "${ECHO_T}$ac_header_preproc" >&6; }
33125 # So? What about this header?
33126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33127 yes:no: )
33128 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
33129 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33130 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
33131 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
33132 ac_header_preproc=yes
33134 no:yes:* )
33135 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
33136 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
33137 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
33138 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
33139 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
33140 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
33141 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
33142 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
33143 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
33144 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
33145 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
33146 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
33147 ( cat <<\_ASBOX
33148 ## ------------------------------- ##
33149 ## Report this to www.asterisk.org ##
33150 ## ------------------------------- ##
33151 _ASBOX
33152 ) | sed "s/^/$as_me: WARNING: /" >&2
33154 esac
33155 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
33156 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
33157 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
33158 echo $ECHO_N "(cached) $ECHO_C" >&6
33159 else
33160 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
33162 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
33163 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
33166 if test $ac_cv_header_zaptel_tonezone_h = yes; then
33167 TONEZONE_HEADER_FOUND=1
33168 else
33169 TONEZONE_HEADER_FOUND=0
33175 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
33176 if test -n "${TONEZONE_MANDATORY}" ;
33177 then
33178 { echo "$as_me:$LINENO: ***" >&5
33179 echo "$as_me: ***" >&6;}
33180 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
33181 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
33182 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
33183 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
33184 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
33185 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33186 exit 1
33188 TONEZONE_LIB=""
33189 TONEZONE_INCLUDE=""
33190 PBX_TONEZONE=0
33191 else
33192 PBX_TONEZONE=1
33194 cat >>confdefs.h <<_ACEOF
33195 #define HAVE_TONEZONE 1
33196 _ACEOF
33199 elif test -n "${TONEZONE_MANDATORY}";
33200 then
33201 { echo "$as_me:$LINENO: ***" >&5
33202 echo "$as_me: ***" >&6;}
33203 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
33204 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
33205 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33206 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33207 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
33208 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
33209 exit 1
33215 if test "${USE_USB}" != "no"; then
33216 pbxlibdir=""
33217 if test "x${USB_DIR}" != "x"; then
33218 if test -d ${USB_DIR}/lib; then
33219 pbxlibdir="-L${USB_DIR}/lib"
33220 else
33221 pbxlibdir="-L${USB_DIR}"
33224 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
33225 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
33226 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
33227 echo $ECHO_N "(cached) $ECHO_C" >&6
33228 else
33229 ac_check_lib_save_LIBS=$LIBS
33230 LIBS="-lusb ${pbxlibdir} $LIBS"
33231 cat >conftest.$ac_ext <<_ACEOF
33232 /* confdefs.h. */
33233 _ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h. */
33238 /* Override any GCC internal prototype to avoid an error.
33239 Use char because int might match the return type of a GCC
33240 builtin and then its argument prototype would still apply. */
33241 #ifdef __cplusplus
33242 extern "C"
33243 #endif
33244 char usb_init ();
33246 main ()
33248 return usb_init ();
33250 return 0;
33252 _ACEOF
33253 rm -f conftest.$ac_objext conftest$ac_exeext
33254 if { (ac_try="$ac_link"
33255 case "(($ac_try" in
33256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33257 *) ac_try_echo=$ac_try;;
33258 esac
33259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260 (eval "$ac_link") 2>conftest.er1
33261 ac_status=$?
33262 grep -v '^ *+' conftest.er1 >conftest.err
33263 rm -f conftest.er1
33264 cat conftest.err >&5
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); } && {
33267 test -z "$ac_c_werror_flag" ||
33268 test ! -s conftest.err
33269 } && test -s conftest$ac_exeext &&
33270 $as_test_x conftest$ac_exeext; then
33271 ac_cv_lib_usb_usb_init=yes
33272 else
33273 echo "$as_me: failed program was:" >&5
33274 sed 's/^/| /' conftest.$ac_ext >&5
33276 ac_cv_lib_usb_usb_init=no
33279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33280 conftest$ac_exeext conftest.$ac_ext
33281 LIBS=$ac_check_lib_save_LIBS
33283 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
33284 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
33285 if test $ac_cv_lib_usb_usb_init = yes; then
33286 AST_USB_FOUND=yes
33287 else
33288 AST_USB_FOUND=no
33292 if test "${AST_USB_FOUND}" = "yes"; then
33293 USB_LIB="-lusb "
33294 USB_HEADER_FOUND="1"
33295 if test "x${USB_DIR}" != "x"; then
33296 USB_LIB="${pbxlibdir} ${USB_LIB}"
33297 USB_INCLUDE="-I${USB_DIR}/include"
33298 saved_cppflags="${CPPFLAGS}"
33299 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
33300 if test "xusb.h" != "x" ; then
33301 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
33302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33303 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33304 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33306 echo $ECHO_N "(cached) $ECHO_C" >&6
33308 ac_res=`eval echo '${'$as_ac_Header'}'`
33309 { echo "$as_me:$LINENO: result: $ac_res" >&5
33310 echo "${ECHO_T}$ac_res" >&6; }
33311 else
33312 # Is the header compilable?
33313 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
33314 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
33315 cat >conftest.$ac_ext <<_ACEOF
33316 /* confdefs.h. */
33317 _ACEOF
33318 cat confdefs.h >>conftest.$ac_ext
33319 cat >>conftest.$ac_ext <<_ACEOF
33320 /* end confdefs.h. */
33321 $ac_includes_default
33322 #include <${USB_DIR}/include/usb.h>
33323 _ACEOF
33324 rm -f conftest.$ac_objext
33325 if { (ac_try="$ac_compile"
33326 case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33329 esac
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_compile") 2>conftest.er1
33332 ac_status=$?
33333 grep -v '^ *+' conftest.er1 >conftest.err
33334 rm -f conftest.er1
33335 cat conftest.err >&5
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } && {
33338 test -z "$ac_c_werror_flag" ||
33339 test ! -s conftest.err
33340 } && test -s conftest.$ac_objext; then
33341 ac_header_compiler=yes
33342 else
33343 echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33346 ac_header_compiler=no
33349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33351 echo "${ECHO_T}$ac_header_compiler" >&6; }
33353 # Is the header present?
33354 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
33355 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
33356 cat >conftest.$ac_ext <<_ACEOF
33357 /* confdefs.h. */
33358 _ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h. */
33362 #include <${USB_DIR}/include/usb.h>
33363 _ACEOF
33364 if { (ac_try="$ac_cpp conftest.$ac_ext"
33365 case "(($ac_try" in
33366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367 *) ac_try_echo=$ac_try;;
33368 esac
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33371 ac_status=$?
33372 grep -v '^ *+' conftest.er1 >conftest.err
33373 rm -f conftest.er1
33374 cat conftest.err >&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); } >/dev/null && {
33377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33378 test ! -s conftest.err
33379 }; then
33380 ac_header_preproc=yes
33381 else
33382 echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33385 ac_header_preproc=no
33388 rm -f conftest.err conftest.$ac_ext
33389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33390 echo "${ECHO_T}$ac_header_preproc" >&6; }
33392 # So? What about this header?
33393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33394 yes:no: )
33395 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33396 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33397 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
33398 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
33399 ac_header_preproc=yes
33401 no:yes:* )
33402 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
33403 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
33404 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
33405 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
33406 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
33407 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
33408 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
33409 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33410 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
33411 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
33412 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
33413 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
33414 ( cat <<\_ASBOX
33415 ## ------------------------------- ##
33416 ## Report this to www.asterisk.org ##
33417 ## ------------------------------- ##
33418 _ASBOX
33419 ) | sed "s/^/$as_me: WARNING: /" >&2
33421 esac
33422 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
33423 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
33424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33425 echo $ECHO_N "(cached) $ECHO_C" >&6
33426 else
33427 eval "$as_ac_Header=\$ac_header_preproc"
33429 ac_res=`eval echo '${'$as_ac_Header'}'`
33430 { echo "$as_me:$LINENO: result: $ac_res" >&5
33431 echo "${ECHO_T}$ac_res" >&6; }
33434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33435 USB_HEADER_FOUND=1
33436 else
33437 USB_HEADER_FOUND=0
33442 CPPFLAGS="${saved_cppflags}"
33443 else
33444 if test "xusb.h" != "x" ; then
33445 if test "${ac_cv_header_usb_h+set}" = set; then
33446 { echo "$as_me:$LINENO: checking for usb.h" >&5
33447 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33448 if test "${ac_cv_header_usb_h+set}" = set; then
33449 echo $ECHO_N "(cached) $ECHO_C" >&6
33451 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33452 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33453 else
33454 # Is the header compilable?
33455 { echo "$as_me:$LINENO: checking usb.h usability" >&5
33456 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
33457 cat >conftest.$ac_ext <<_ACEOF
33458 /* confdefs.h. */
33459 _ACEOF
33460 cat confdefs.h >>conftest.$ac_ext
33461 cat >>conftest.$ac_ext <<_ACEOF
33462 /* end confdefs.h. */
33463 $ac_includes_default
33464 #include <usb.h>
33465 _ACEOF
33466 rm -f conftest.$ac_objext
33467 if { (ac_try="$ac_compile"
33468 case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33471 esac
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_compile") 2>conftest.er1
33474 ac_status=$?
33475 grep -v '^ *+' conftest.er1 >conftest.err
33476 rm -f conftest.er1
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } && {
33480 test -z "$ac_c_werror_flag" ||
33481 test ! -s conftest.err
33482 } && test -s conftest.$ac_objext; then
33483 ac_header_compiler=yes
33484 else
33485 echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33488 ac_header_compiler=no
33491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33493 echo "${ECHO_T}$ac_header_compiler" >&6; }
33495 # Is the header present?
33496 { echo "$as_me:$LINENO: checking usb.h presence" >&5
33497 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
33498 cat >conftest.$ac_ext <<_ACEOF
33499 /* confdefs.h. */
33500 _ACEOF
33501 cat confdefs.h >>conftest.$ac_ext
33502 cat >>conftest.$ac_ext <<_ACEOF
33503 /* end confdefs.h. */
33504 #include <usb.h>
33505 _ACEOF
33506 if { (ac_try="$ac_cpp conftest.$ac_ext"
33507 case "(($ac_try" in
33508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33509 *) ac_try_echo=$ac_try;;
33510 esac
33511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33513 ac_status=$?
33514 grep -v '^ *+' conftest.er1 >conftest.err
33515 rm -f conftest.er1
33516 cat conftest.err >&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); } >/dev/null && {
33519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33520 test ! -s conftest.err
33521 }; then
33522 ac_header_preproc=yes
33523 else
33524 echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.$ac_ext >&5
33527 ac_header_preproc=no
33530 rm -f conftest.err conftest.$ac_ext
33531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33532 echo "${ECHO_T}$ac_header_preproc" >&6; }
33534 # So? What about this header?
33535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33536 yes:no: )
33537 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
33538 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33539 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
33540 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
33541 ac_header_preproc=yes
33543 no:yes:* )
33544 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
33545 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
33546 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
33547 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
33548 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
33549 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
33550 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
33551 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
33552 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
33553 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
33554 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
33555 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
33556 ( cat <<\_ASBOX
33557 ## ------------------------------- ##
33558 ## Report this to www.asterisk.org ##
33559 ## ------------------------------- ##
33560 _ASBOX
33561 ) | sed "s/^/$as_me: WARNING: /" >&2
33563 esac
33564 { echo "$as_me:$LINENO: checking for usb.h" >&5
33565 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
33566 if test "${ac_cv_header_usb_h+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568 else
33569 ac_cv_header_usb_h=$ac_header_preproc
33571 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
33572 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
33575 if test $ac_cv_header_usb_h = yes; then
33576 USB_HEADER_FOUND=1
33577 else
33578 USB_HEADER_FOUND=0
33584 if test "x${USB_HEADER_FOUND}" = "x0" ; then
33585 if test -n "${USB_MANDATORY}" ;
33586 then
33587 { echo "$as_me:$LINENO: ***" >&5
33588 echo "$as_me: ***" >&6;}
33589 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
33590 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
33591 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
33592 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
33593 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33594 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33595 exit 1
33597 USB_LIB=""
33598 USB_INCLUDE=""
33599 PBX_USB=0
33600 else
33601 PBX_USB=1
33603 cat >>confdefs.h <<_ACEOF
33604 #define HAVE_USB 1
33605 _ACEOF
33608 elif test -n "${USB_MANDATORY}";
33609 then
33610 { echo "$as_me:$LINENO: ***" >&5
33611 echo "$as_me: ***" >&6;}
33612 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
33613 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
33614 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33615 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33616 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
33617 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
33618 exit 1
33624 if test "${USE_VORBIS}" != "no"; then
33625 pbxlibdir=""
33626 if test "x${VORBIS_DIR}" != "x"; then
33627 if test -d ${VORBIS_DIR}/lib; then
33628 pbxlibdir="-L${VORBIS_DIR}/lib"
33629 else
33630 pbxlibdir="-L${VORBIS_DIR}"
33633 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
33634 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
33635 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
33636 echo $ECHO_N "(cached) $ECHO_C" >&6
33637 else
33638 ac_check_lib_save_LIBS=$LIBS
33639 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
33640 cat >conftest.$ac_ext <<_ACEOF
33641 /* confdefs.h. */
33642 _ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33647 /* Override any GCC internal prototype to avoid an error.
33648 Use char because int might match the return type of a GCC
33649 builtin and then its argument prototype would still apply. */
33650 #ifdef __cplusplus
33651 extern "C"
33652 #endif
33653 char vorbis_info_init ();
33655 main ()
33657 return vorbis_info_init ();
33659 return 0;
33661 _ACEOF
33662 rm -f conftest.$ac_objext conftest$ac_exeext
33663 if { (ac_try="$ac_link"
33664 case "(($ac_try" in
33665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33667 esac
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_link") 2>conftest.er1
33670 ac_status=$?
33671 grep -v '^ *+' conftest.er1 >conftest.err
33672 rm -f conftest.er1
33673 cat conftest.err >&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } && {
33676 test -z "$ac_c_werror_flag" ||
33677 test ! -s conftest.err
33678 } && test -s conftest$ac_exeext &&
33679 $as_test_x conftest$ac_exeext; then
33680 ac_cv_lib_vorbis_vorbis_info_init=yes
33681 else
33682 echo "$as_me: failed program was:" >&5
33683 sed 's/^/| /' conftest.$ac_ext >&5
33685 ac_cv_lib_vorbis_vorbis_info_init=no
33688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33689 conftest$ac_exeext conftest.$ac_ext
33690 LIBS=$ac_check_lib_save_LIBS
33692 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
33693 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
33694 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
33695 AST_VORBIS_FOUND=yes
33696 else
33697 AST_VORBIS_FOUND=no
33701 if test "${AST_VORBIS_FOUND}" = "yes"; then
33702 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
33703 VORBIS_HEADER_FOUND="1"
33704 if test "x${VORBIS_DIR}" != "x"; then
33705 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
33706 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
33707 saved_cppflags="${CPPFLAGS}"
33708 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
33709 if test "xvorbis/codec.h" != "x" ; then
33710 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
33711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33712 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33713 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33715 echo $ECHO_N "(cached) $ECHO_C" >&6
33717 ac_res=`eval echo '${'$as_ac_Header'}'`
33718 { echo "$as_me:$LINENO: result: $ac_res" >&5
33719 echo "${ECHO_T}$ac_res" >&6; }
33720 else
33721 # Is the header compilable?
33722 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
33723 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
33724 cat >conftest.$ac_ext <<_ACEOF
33725 /* confdefs.h. */
33726 _ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33730 $ac_includes_default
33731 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33732 _ACEOF
33733 rm -f conftest.$ac_objext
33734 if { (ac_try="$ac_compile"
33735 case "(($ac_try" in
33736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33737 *) ac_try_echo=$ac_try;;
33738 esac
33739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33740 (eval "$ac_compile") 2>conftest.er1
33741 ac_status=$?
33742 grep -v '^ *+' conftest.er1 >conftest.err
33743 rm -f conftest.er1
33744 cat conftest.err >&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } && {
33747 test -z "$ac_c_werror_flag" ||
33748 test ! -s conftest.err
33749 } && test -s conftest.$ac_objext; then
33750 ac_header_compiler=yes
33751 else
33752 echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33755 ac_header_compiler=no
33758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33760 echo "${ECHO_T}$ac_header_compiler" >&6; }
33762 # Is the header present?
33763 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
33764 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
33765 cat >conftest.$ac_ext <<_ACEOF
33766 /* confdefs.h. */
33767 _ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h. */
33771 #include <${VORBIS_DIR}/include/vorbis/codec.h>
33772 _ACEOF
33773 if { (ac_try="$ac_cpp conftest.$ac_ext"
33774 case "(($ac_try" in
33775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33776 *) ac_try_echo=$ac_try;;
33777 esac
33778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33780 ac_status=$?
33781 grep -v '^ *+' conftest.er1 >conftest.err
33782 rm -f conftest.er1
33783 cat conftest.err >&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } >/dev/null && {
33786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33787 test ! -s conftest.err
33788 }; then
33789 ac_header_preproc=yes
33790 else
33791 echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33794 ac_header_preproc=no
33797 rm -f conftest.err conftest.$ac_ext
33798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33799 echo "${ECHO_T}$ac_header_preproc" >&6; }
33801 # So? What about this header?
33802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33803 yes:no: )
33804 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33805 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33806 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
33807 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
33808 ac_header_preproc=yes
33810 no:yes:* )
33811 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
33812 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
33813 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
33814 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33815 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
33816 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
33817 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33818 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33819 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
33820 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33821 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
33822 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33823 ( cat <<\_ASBOX
33824 ## ------------------------------- ##
33825 ## Report this to www.asterisk.org ##
33826 ## ------------------------------- ##
33827 _ASBOX
33828 ) | sed "s/^/$as_me: WARNING: /" >&2
33830 esac
33831 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
33832 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
33833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836 eval "$as_ac_Header=\$ac_header_preproc"
33838 ac_res=`eval echo '${'$as_ac_Header'}'`
33839 { echo "$as_me:$LINENO: result: $ac_res" >&5
33840 echo "${ECHO_T}$ac_res" >&6; }
33843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33844 VORBIS_HEADER_FOUND=1
33845 else
33846 VORBIS_HEADER_FOUND=0
33851 CPPFLAGS="${saved_cppflags}"
33852 else
33853 if test "xvorbis/codec.h" != "x" ; then
33854 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33855 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33856 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33857 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33858 echo $ECHO_N "(cached) $ECHO_C" >&6
33860 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33861 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33862 else
33863 # Is the header compilable?
33864 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
33865 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
33866 cat >conftest.$ac_ext <<_ACEOF
33867 /* confdefs.h. */
33868 _ACEOF
33869 cat confdefs.h >>conftest.$ac_ext
33870 cat >>conftest.$ac_ext <<_ACEOF
33871 /* end confdefs.h. */
33872 $ac_includes_default
33873 #include <vorbis/codec.h>
33874 _ACEOF
33875 rm -f conftest.$ac_objext
33876 if { (ac_try="$ac_compile"
33877 case "(($ac_try" in
33878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33879 *) ac_try_echo=$ac_try;;
33880 esac
33881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882 (eval "$ac_compile") 2>conftest.er1
33883 ac_status=$?
33884 grep -v '^ *+' conftest.er1 >conftest.err
33885 rm -f conftest.er1
33886 cat conftest.err >&5
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); } && {
33889 test -z "$ac_c_werror_flag" ||
33890 test ! -s conftest.err
33891 } && test -s conftest.$ac_objext; then
33892 ac_header_compiler=yes
33893 else
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33897 ac_header_compiler=no
33900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33902 echo "${ECHO_T}$ac_header_compiler" >&6; }
33904 # Is the header present?
33905 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
33906 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
33907 cat >conftest.$ac_ext <<_ACEOF
33908 /* confdefs.h. */
33909 _ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h. */
33913 #include <vorbis/codec.h>
33914 _ACEOF
33915 if { (ac_try="$ac_cpp conftest.$ac_ext"
33916 case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33919 esac
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33922 ac_status=$?
33923 grep -v '^ *+' conftest.er1 >conftest.err
33924 rm -f conftest.er1
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } >/dev/null && {
33928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33929 test ! -s conftest.err
33930 }; then
33931 ac_header_preproc=yes
33932 else
33933 echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33936 ac_header_preproc=no
33939 rm -f conftest.err conftest.$ac_ext
33940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33941 echo "${ECHO_T}$ac_header_preproc" >&6; }
33943 # So? What about this header?
33944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33945 yes:no: )
33946 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
33947 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33948 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
33949 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
33950 ac_header_preproc=yes
33952 no:yes:* )
33953 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
33954 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
33955 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
33956 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
33957 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
33958 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
33959 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
33960 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
33961 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
33962 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
33963 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
33964 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
33965 ( cat <<\_ASBOX
33966 ## ------------------------------- ##
33967 ## Report this to www.asterisk.org ##
33968 ## ------------------------------- ##
33969 _ASBOX
33970 ) | sed "s/^/$as_me: WARNING: /" >&2
33972 esac
33973 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
33974 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
33975 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
33976 echo $ECHO_N "(cached) $ECHO_C" >&6
33977 else
33978 ac_cv_header_vorbis_codec_h=$ac_header_preproc
33980 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
33981 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
33984 if test $ac_cv_header_vorbis_codec_h = yes; then
33985 VORBIS_HEADER_FOUND=1
33986 else
33987 VORBIS_HEADER_FOUND=0
33993 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
33994 if test -n "${VORBIS_MANDATORY}" ;
33995 then
33996 { echo "$as_me:$LINENO: ***" >&5
33997 echo "$as_me: ***" >&6;}
33998 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
33999 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
34000 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
34001 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
34002 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
34003 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
34004 exit 1
34006 VORBIS_LIB=""
34007 VORBIS_INCLUDE=""
34008 PBX_VORBIS=0
34009 else
34010 PBX_VORBIS=1
34012 cat >>confdefs.h <<_ACEOF
34013 #define HAVE_VORBIS 1
34014 _ACEOF
34017 elif test -n "${VORBIS_MANDATORY}";
34018 then
34019 { echo "$as_me:$LINENO: ***" >&5
34020 echo "$as_me: ***" >&6;}
34021 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
34022 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
34023 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34024 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34025 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
34026 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
34027 exit 1
34032 ac_ext=cpp
34033 ac_cpp='$CXXCPP $CPPFLAGS'
34034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34039 if test "${USE_VPB}" != "no"; then
34040 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
34041 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
34042 saved_libs="${LIBS}"
34043 saved_cppflags="${CPPFLAGS}"
34044 if test "x${VPB_DIR}" != "x"; then
34045 if test -d ${VPB_DIR}/lib; then
34046 vpblibdir=${VPB_DIR}/lib
34047 else
34048 vpblibdir=${VPB_DIR}
34050 LIBS="${LIBS} -L${vpblibdir}"
34051 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
34053 LIBS="${LIBS} -lvpb -lpthread"
34054 cat >conftest.$ac_ext <<_ACEOF
34056 /* confdefs.h. */
34057 _ACEOF
34058 cat confdefs.h >>conftest.$ac_ext
34059 cat >>conftest.$ac_ext <<_ACEOF
34060 /* end confdefs.h. */
34061 #include <vpbapi.h>
34063 main ()
34065 int q = vpb_open(0,0);
34067 return 0;
34070 _ACEOF
34071 rm -f conftest.$ac_objext conftest$ac_exeext
34072 if { (ac_try="$ac_link"
34073 case "(($ac_try" in
34074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34075 *) ac_try_echo=$ac_try;;
34076 esac
34077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34078 (eval "$ac_link") 2>conftest.er1
34079 ac_status=$?
34080 grep -v '^ *+' conftest.er1 >conftest.err
34081 rm -f conftest.er1
34082 cat conftest.err >&5
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); } && {
34085 test -z "$ac_cxx_werror_flag" ||
34086 test ! -s conftest.err
34087 } && test -s conftest$ac_exeext &&
34088 $as_test_x conftest$ac_exeext; then
34089 { echo "$as_me:$LINENO: result: yes" >&5
34090 echo "${ECHO_T}yes" >&6; }
34091 ac_cv_lib_vpb_vpb_open="yes"
34093 else
34094 echo "$as_me: failed program was:" >&5
34095 sed 's/^/| /' conftest.$ac_ext >&5
34097 { echo "$as_me:$LINENO: result: no" >&5
34098 echo "${ECHO_T}no" >&6; }
34099 ac_cv_lib_vpb_vpb_open="no"
34104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34105 conftest$ac_exeext conftest.$ac_ext
34106 LIBS="${saved_libs}"
34107 CPPFLAGS="${saved_cppflags}"
34108 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
34109 VPB_LIB="-lvpb"
34110 if test "${VPB_DIR}" != ""; then
34111 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
34112 VPB_INCLUDE="-I${VPB_DIR}/include"
34114 PBX_VPB=1
34116 cat >>confdefs.h <<\_ACEOF
34117 #define HAVE_VPB 1
34118 _ACEOF
34120 elif test -n "${VPB_MANDATORY}"; then
34121 { echo "$as_me:$LINENO: ***" >&5
34122 echo "$as_me: ***" >&6;}
34123 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
34124 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
34125 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34126 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34127 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
34128 echo "$as_me: *** including --without-vpb." >&6;}
34129 exit 1
34133 ac_ext=c
34134 ac_cpp='$CPP $CPPFLAGS'
34135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34141 if test "${USE_ZLIB}" != "no"; then
34142 pbxlibdir=""
34143 if test "x${ZLIB_DIR}" != "x"; then
34144 if test -d ${ZLIB_DIR}/lib; then
34145 pbxlibdir="-L${ZLIB_DIR}/lib"
34146 else
34147 pbxlibdir="-L${ZLIB_DIR}"
34150 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
34151 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
34152 if test "${ac_cv_lib_z_compress+set}" = set; then
34153 echo $ECHO_N "(cached) $ECHO_C" >&6
34154 else
34155 ac_check_lib_save_LIBS=$LIBS
34156 LIBS="-lz ${pbxlibdir} $LIBS"
34157 cat >conftest.$ac_ext <<_ACEOF
34158 /* confdefs.h. */
34159 _ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h. */
34164 /* Override any GCC internal prototype to avoid an error.
34165 Use char because int might match the return type of a GCC
34166 builtin and then its argument prototype would still apply. */
34167 #ifdef __cplusplus
34168 extern "C"
34169 #endif
34170 char compress ();
34172 main ()
34174 return compress ();
34176 return 0;
34178 _ACEOF
34179 rm -f conftest.$ac_objext conftest$ac_exeext
34180 if { (ac_try="$ac_link"
34181 case "(($ac_try" in
34182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34184 esac
34185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186 (eval "$ac_link") 2>conftest.er1
34187 ac_status=$?
34188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } && {
34193 test -z "$ac_c_werror_flag" ||
34194 test ! -s conftest.err
34195 } && test -s conftest$ac_exeext &&
34196 $as_test_x conftest$ac_exeext; then
34197 ac_cv_lib_z_compress=yes
34198 else
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 ac_cv_lib_z_compress=no
34205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34206 conftest$ac_exeext conftest.$ac_ext
34207 LIBS=$ac_check_lib_save_LIBS
34209 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
34210 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
34211 if test $ac_cv_lib_z_compress = yes; then
34212 AST_ZLIB_FOUND=yes
34213 else
34214 AST_ZLIB_FOUND=no
34218 if test "${AST_ZLIB_FOUND}" = "yes"; then
34219 ZLIB_LIB="-lz "
34220 ZLIB_HEADER_FOUND="1"
34221 if test "x${ZLIB_DIR}" != "x"; then
34222 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
34223 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
34224 saved_cppflags="${CPPFLAGS}"
34225 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
34226 if test "xzlib.h" != "x" ; then
34227 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
34228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34229 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34230 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34232 echo $ECHO_N "(cached) $ECHO_C" >&6
34234 ac_res=`eval echo '${'$as_ac_Header'}'`
34235 { echo "$as_me:$LINENO: result: $ac_res" >&5
34236 echo "${ECHO_T}$ac_res" >&6; }
34237 else
34238 # Is the header compilable?
34239 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
34240 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
34241 cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h. */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h. */
34247 $ac_includes_default
34248 #include <${ZLIB_DIR}/include/zlib.h>
34249 _ACEOF
34250 rm -f conftest.$ac_objext
34251 if { (ac_try="$ac_compile"
34252 case "(($ac_try" in
34253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34254 *) ac_try_echo=$ac_try;;
34255 esac
34256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34257 (eval "$ac_compile") 2>conftest.er1
34258 ac_status=$?
34259 grep -v '^ *+' conftest.er1 >conftest.err
34260 rm -f conftest.er1
34261 cat conftest.err >&5
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); } && {
34264 test -z "$ac_c_werror_flag" ||
34265 test ! -s conftest.err
34266 } && test -s conftest.$ac_objext; then
34267 ac_header_compiler=yes
34268 else
34269 echo "$as_me: failed program was:" >&5
34270 sed 's/^/| /' conftest.$ac_ext >&5
34272 ac_header_compiler=no
34275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34277 echo "${ECHO_T}$ac_header_compiler" >&6; }
34279 # Is the header present?
34280 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
34281 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
34282 cat >conftest.$ac_ext <<_ACEOF
34283 /* confdefs.h. */
34284 _ACEOF
34285 cat confdefs.h >>conftest.$ac_ext
34286 cat >>conftest.$ac_ext <<_ACEOF
34287 /* end confdefs.h. */
34288 #include <${ZLIB_DIR}/include/zlib.h>
34289 _ACEOF
34290 if { (ac_try="$ac_cpp conftest.$ac_ext"
34291 case "(($ac_try" in
34292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34293 *) ac_try_echo=$ac_try;;
34294 esac
34295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34297 ac_status=$?
34298 grep -v '^ *+' conftest.er1 >conftest.err
34299 rm -f conftest.er1
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } >/dev/null && {
34303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34304 test ! -s conftest.err
34305 }; then
34306 ac_header_preproc=yes
34307 else
34308 echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34311 ac_header_preproc=no
34314 rm -f conftest.err conftest.$ac_ext
34315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34316 echo "${ECHO_T}$ac_header_preproc" >&6; }
34318 # So? What about this header?
34319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34320 yes:no: )
34321 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34322 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34323 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
34324 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
34325 ac_header_preproc=yes
34327 no:yes:* )
34328 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
34329 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
34330 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
34331 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
34332 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
34333 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
34334 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34335 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34336 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
34337 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
34338 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
34339 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
34340 ( cat <<\_ASBOX
34341 ## ------------------------------- ##
34342 ## Report this to www.asterisk.org ##
34343 ## ------------------------------- ##
34344 _ASBOX
34345 ) | sed "s/^/$as_me: WARNING: /" >&2
34347 esac
34348 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
34349 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
34350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34351 echo $ECHO_N "(cached) $ECHO_C" >&6
34352 else
34353 eval "$as_ac_Header=\$ac_header_preproc"
34355 ac_res=`eval echo '${'$as_ac_Header'}'`
34356 { echo "$as_me:$LINENO: result: $ac_res" >&5
34357 echo "${ECHO_T}$ac_res" >&6; }
34360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34361 ZLIB_HEADER_FOUND=1
34362 else
34363 ZLIB_HEADER_FOUND=0
34368 CPPFLAGS="${saved_cppflags}"
34369 else
34370 if test "xzlib.h" != "x" ; then
34371 if test "${ac_cv_header_zlib_h+set}" = set; then
34372 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34373 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34374 if test "${ac_cv_header_zlib_h+set}" = set; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34377 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34378 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34379 else
34380 # Is the header compilable?
34381 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
34382 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
34383 cat >conftest.$ac_ext <<_ACEOF
34384 /* confdefs.h. */
34385 _ACEOF
34386 cat confdefs.h >>conftest.$ac_ext
34387 cat >>conftest.$ac_ext <<_ACEOF
34388 /* end confdefs.h. */
34389 $ac_includes_default
34390 #include <zlib.h>
34391 _ACEOF
34392 rm -f conftest.$ac_objext
34393 if { (ac_try="$ac_compile"
34394 case "(($ac_try" in
34395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34396 *) ac_try_echo=$ac_try;;
34397 esac
34398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399 (eval "$ac_compile") 2>conftest.er1
34400 ac_status=$?
34401 grep -v '^ *+' conftest.er1 >conftest.err
34402 rm -f conftest.er1
34403 cat conftest.err >&5
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } && {
34406 test -z "$ac_c_werror_flag" ||
34407 test ! -s conftest.err
34408 } && test -s conftest.$ac_objext; then
34409 ac_header_compiler=yes
34410 else
34411 echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34414 ac_header_compiler=no
34417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34419 echo "${ECHO_T}$ac_header_compiler" >&6; }
34421 # Is the header present?
34422 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
34423 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
34424 cat >conftest.$ac_ext <<_ACEOF
34425 /* confdefs.h. */
34426 _ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34430 #include <zlib.h>
34431 _ACEOF
34432 if { (ac_try="$ac_cpp conftest.$ac_ext"
34433 case "(($ac_try" in
34434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435 *) ac_try_echo=$ac_try;;
34436 esac
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34439 ac_status=$?
34440 grep -v '^ *+' conftest.er1 >conftest.err
34441 rm -f conftest.er1
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } >/dev/null && {
34445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34446 test ! -s conftest.err
34447 }; then
34448 ac_header_preproc=yes
34449 else
34450 echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.$ac_ext >&5
34453 ac_header_preproc=no
34456 rm -f conftest.err conftest.$ac_ext
34457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34458 echo "${ECHO_T}$ac_header_preproc" >&6; }
34460 # So? What about this header?
34461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34462 yes:no: )
34463 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34464 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34465 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
34466 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
34467 ac_header_preproc=yes
34469 no:yes:* )
34470 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
34471 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
34472 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
34473 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
34474 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
34475 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
34476 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
34477 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34478 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
34479 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
34480 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
34481 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
34482 ( cat <<\_ASBOX
34483 ## ------------------------------- ##
34484 ## Report this to www.asterisk.org ##
34485 ## ------------------------------- ##
34486 _ASBOX
34487 ) | sed "s/^/$as_me: WARNING: /" >&2
34489 esac
34490 { echo "$as_me:$LINENO: checking for zlib.h" >&5
34491 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
34492 if test "${ac_cv_header_zlib_h+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34494 else
34495 ac_cv_header_zlib_h=$ac_header_preproc
34497 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
34498 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
34501 if test $ac_cv_header_zlib_h = yes; then
34502 ZLIB_HEADER_FOUND=1
34503 else
34504 ZLIB_HEADER_FOUND=0
34510 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
34511 if test -n "${ZLIB_MANDATORY}" ;
34512 then
34513 { echo "$as_me:$LINENO: ***" >&5
34514 echo "$as_me: ***" >&6;}
34515 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
34516 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
34517 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
34518 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
34519 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34520 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34521 exit 1
34523 ZLIB_LIB=""
34524 ZLIB_INCLUDE=""
34525 PBX_ZLIB=0
34526 else
34527 PBX_ZLIB=1
34529 cat >>confdefs.h <<_ACEOF
34530 #define HAVE_ZLIB 1
34531 _ACEOF
34534 elif test -n "${ZLIB_MANDATORY}";
34535 then
34536 { echo "$as_me:$LINENO: ***" >&5
34537 echo "$as_me: ***" >&6;}
34538 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
34539 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
34540 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34541 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34542 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
34543 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
34544 exit 1
34549 if test "${USE_ZAPTEL}" != "no"; then
34550 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
34551 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
34552 saved_cppflags="${CPPFLAGS}"
34553 if test "x${ZAPTEL_DIR}" != "x"; then
34554 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34556 cat >conftest.$ac_ext <<_ACEOF
34558 /* confdefs.h. */
34559 _ACEOF
34560 cat confdefs.h >>conftest.$ac_ext
34561 cat >>conftest.$ac_ext <<_ACEOF
34562 /* end confdefs.h. */
34563 #include <zaptel/zaptel.h>
34565 main ()
34567 int foo = ZT_DIAL_OP_CANCEL;
34569 return 0;
34572 _ACEOF
34573 rm -f conftest.$ac_objext
34574 if { (ac_try="$ac_compile"
34575 case "(($ac_try" in
34576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34577 *) ac_try_echo=$ac_try;;
34578 esac
34579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34580 (eval "$ac_compile") 2>conftest.er1
34581 ac_status=$?
34582 grep -v '^ *+' conftest.er1 >conftest.err
34583 rm -f conftest.er1
34584 cat conftest.err >&5
34585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 (exit $ac_status); } && {
34587 test -z "$ac_c_werror_flag" ||
34588 test ! -s conftest.err
34589 } && test -s conftest.$ac_objext; then
34590 { echo "$as_me:$LINENO: result: yes" >&5
34591 echo "${ECHO_T}yes" >&6; }
34592 ac_cv_zaptel_h="yes"
34594 else
34595 echo "$as_me: failed program was:" >&5
34596 sed 's/^/| /' conftest.$ac_ext >&5
34598 { echo "$as_me:$LINENO: result: no" >&5
34599 echo "${ECHO_T}no" >&6; }
34600 ac_cv_zaptel_h="no"
34605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34606 CPPFLAGS="${saved_cppflags}"
34607 if test "${ac_cv_zaptel_h}" = "yes"; then
34608 if test "${ZAPTEL_DIR}" != ""; then
34609 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
34611 PBX_ZAPTEL=1
34613 cat >>confdefs.h <<\_ACEOF
34614 #define HAVE_ZAPTEL 1
34615 _ACEOF
34617 elif test -n "${ZAPTEL_MANDATORY}";
34618 then
34619 { echo "$as_me:$LINENO: ***" >&5
34620 echo "$as_me: ***" >&6;}
34621 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
34622 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
34623 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
34624 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
34625 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
34626 echo "$as_me: *** including --without-zaptel." >&6;}
34627 exit 1
34631 if test "${PBX_ZAPTEL}" = 1; then
34632 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
34633 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
34634 saved_cppflags="${CPPFLAGS}"
34635 if test "x${ZAPTEL_DIR}" != "x"; then
34636 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34638 cat >conftest.$ac_ext <<_ACEOF
34640 /* confdefs.h. */
34641 _ACEOF
34642 cat confdefs.h >>conftest.$ac_ext
34643 cat >>conftest.$ac_ext <<_ACEOF
34644 /* end confdefs.h. */
34645 #include <zaptel/zaptel.h>
34647 main ()
34649 int foo = ZT_EVENT_REMOVED;
34651 return 0;
34654 _ACEOF
34655 rm -f conftest.$ac_objext
34656 if { (ac_try="$ac_compile"
34657 case "(($ac_try" in
34658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34659 *) ac_try_echo=$ac_try;;
34660 esac
34661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662 (eval "$ac_compile") 2>conftest.er1
34663 ac_status=$?
34664 grep -v '^ *+' conftest.er1 >conftest.err
34665 rm -f conftest.er1
34666 cat conftest.err >&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } && {
34669 test -z "$ac_c_werror_flag" ||
34670 test ! -s conftest.err
34671 } && test -s conftest.$ac_objext; then
34672 { echo "$as_me:$LINENO: result: yes" >&5
34673 echo "${ECHO_T}yes" >&6; }
34674 ac_cv_zaptel_vldtmf="yes"
34676 else
34677 echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34680 { echo "$as_me:$LINENO: result: no" >&5
34681 echo "${ECHO_T}no" >&6; }
34682 ac_cv_zaptel_vldtmf="no"
34687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34688 CPPFLAGS="${saved_cppflags}"
34689 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
34690 PBX_ZAPTEL_VLDTMF=1
34692 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
34693 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
34694 saved_cppflags="${CPPFLAGS}"
34695 if test "x${ZAPTEL_DIR}" != "x"; then
34696 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
34698 cat >conftest.$ac_ext <<_ACEOF
34700 /* confdefs.h. */
34701 _ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h. */
34705 #include <zaptel/zaptel.h>
34707 main ()
34709 int foo = ZT_TCOP_ALLOCATE;
34711 return 0;
34714 _ACEOF
34715 rm -f conftest.$ac_objext
34716 if { (ac_try="$ac_compile"
34717 case "(($ac_try" in
34718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34719 *) ac_try_echo=$ac_try;;
34720 esac
34721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722 (eval "$ac_compile") 2>conftest.er1
34723 ac_status=$?
34724 grep -v '^ *+' conftest.er1 >conftest.err
34725 rm -f conftest.er1
34726 cat conftest.err >&5
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); } && {
34729 test -z "$ac_c_werror_flag" ||
34730 test ! -s conftest.err
34731 } && test -s conftest.$ac_objext; then
34732 { echo "$as_me:$LINENO: result: yes" >&5
34733 echo "${ECHO_T}yes" >&6; }
34734 ac_cv_zaptel_transcode="yes"
34736 else
34737 echo "$as_me: failed program was:" >&5
34738 sed 's/^/| /' conftest.$ac_ext >&5
34740 { echo "$as_me:$LINENO: result: no" >&5
34741 echo "${ECHO_T}no" >&6; }
34742 ac_cv_zaptel_transcode="no"
34747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34748 CPPFLAGS="${saved_cppflags}"
34749 if test "${ac_cv_zaptel_transcode}" = "yes"; then
34750 PBX_ZAPTEL_TRANSCODE=1
34756 EDITLINE_LIB=""
34757 if test "x$TERMCAP_LIB" != "x" ; then
34758 EDITLINE_LIB="$TERMCAP_LIB"
34759 elif test "x$TINFO_LIB" != "x" ; then
34760 EDITLINE_LIB="$TINFO_LIB"
34761 elif test "x$CURSES_LIB" != "x" ; then
34762 EDITLINE_LIB="$CURSES_LIB"
34763 elif test "x$NCURSES_LIB" != "x" ; then
34764 EDITLINE_LIB="$NCURSES_LIB"
34765 else
34766 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
34767 echo "$as_me: error: *** termcap support not found" >&2;}
34768 { (exit 1); exit 1; }; }
34772 if test "${ac_cv_header_h323_h+set}" = set; then
34773 { echo "$as_me:$LINENO: checking for h323.h" >&5
34774 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34775 if test "${ac_cv_header_h323_h+set}" = set; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34778 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34779 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34780 else
34781 # Is the header compilable?
34782 { echo "$as_me:$LINENO: checking h323.h usability" >&5
34783 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
34784 cat >conftest.$ac_ext <<_ACEOF
34785 /* confdefs.h. */
34786 _ACEOF
34787 cat confdefs.h >>conftest.$ac_ext
34788 cat >>conftest.$ac_ext <<_ACEOF
34789 /* end confdefs.h. */
34790 $ac_includes_default
34791 #include <h323.h>
34792 _ACEOF
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34798 esac
34799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800 (eval "$ac_compile") 2>conftest.er1
34801 ac_status=$?
34802 grep -v '^ *+' conftest.er1 >conftest.err
34803 rm -f conftest.er1
34804 cat conftest.err >&5
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } && {
34807 test -z "$ac_c_werror_flag" ||
34808 test ! -s conftest.err
34809 } && test -s conftest.$ac_objext; then
34810 ac_header_compiler=yes
34811 else
34812 echo "$as_me: failed program was:" >&5
34813 sed 's/^/| /' conftest.$ac_ext >&5
34815 ac_header_compiler=no
34818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34820 echo "${ECHO_T}$ac_header_compiler" >&6; }
34822 # Is the header present?
34823 { echo "$as_me:$LINENO: checking h323.h presence" >&5
34824 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
34825 cat >conftest.$ac_ext <<_ACEOF
34826 /* confdefs.h. */
34827 _ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h. */
34831 #include <h323.h>
34832 _ACEOF
34833 if { (ac_try="$ac_cpp conftest.$ac_ext"
34834 case "(($ac_try" in
34835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836 *) ac_try_echo=$ac_try;;
34837 esac
34838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34840 ac_status=$?
34841 grep -v '^ *+' conftest.er1 >conftest.err
34842 rm -f conftest.er1
34843 cat conftest.err >&5
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); } >/dev/null && {
34846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34847 test ! -s conftest.err
34848 }; then
34849 ac_header_preproc=yes
34850 else
34851 echo "$as_me: failed program was:" >&5
34852 sed 's/^/| /' conftest.$ac_ext >&5
34854 ac_header_preproc=no
34857 rm -f conftest.err conftest.$ac_ext
34858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34859 echo "${ECHO_T}$ac_header_preproc" >&6; }
34861 # So? What about this header?
34862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34863 yes:no: )
34864 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
34865 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34866 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
34867 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
34868 ac_header_preproc=yes
34870 no:yes:* )
34871 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
34872 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
34873 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
34874 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
34875 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
34876 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
34877 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
34878 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
34879 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
34880 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
34881 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
34882 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
34883 ( cat <<\_ASBOX
34884 ## ------------------------------- ##
34885 ## Report this to www.asterisk.org ##
34886 ## ------------------------------- ##
34887 _ASBOX
34888 ) | sed "s/^/$as_me: WARNING: /" >&2
34890 esac
34891 { echo "$as_me:$LINENO: checking for h323.h" >&5
34892 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
34893 if test "${ac_cv_header_h323_h+set}" = set; then
34894 echo $ECHO_N "(cached) $ECHO_C" >&6
34895 else
34896 ac_cv_header_h323_h=$ac_header_preproc
34898 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
34899 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
34902 if test $ac_cv_header_h323_h = yes; then
34903 PBX_H323=1
34904 else
34905 PBX_H323=0
34911 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34912 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
34913 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
34914 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
34915 echo $ECHO_N "(cached) $ECHO_C" >&6
34917 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
34918 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
34919 else
34920 # Is the header compilable?
34921 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
34922 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
34923 cat >conftest.$ac_ext <<_ACEOF
34924 /* confdefs.h. */
34925 _ACEOF
34926 cat confdefs.h >>conftest.$ac_ext
34927 cat >>conftest.$ac_ext <<_ACEOF
34928 /* end confdefs.h. */
34929 $ac_includes_default
34930 #include <linux/compiler.h>
34931 _ACEOF
34932 rm -f conftest.$ac_objext
34933 if { (ac_try="$ac_compile"
34934 case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34937 esac
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_compile") 2>conftest.er1
34940 ac_status=$?
34941 grep -v '^ *+' conftest.er1 >conftest.err
34942 rm -f conftest.er1
34943 cat conftest.err >&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); } && {
34946 test -z "$ac_c_werror_flag" ||
34947 test ! -s conftest.err
34948 } && test -s conftest.$ac_objext; then
34949 ac_header_compiler=yes
34950 else
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34954 ac_header_compiler=no
34957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34959 echo "${ECHO_T}$ac_header_compiler" >&6; }
34961 # Is the header present?
34962 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
34963 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
34964 cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h. */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34970 #include <linux/compiler.h>
34971 _ACEOF
34972 if { (ac_try="$ac_cpp conftest.$ac_ext"
34973 case "(($ac_try" in
34974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34975 *) ac_try_echo=$ac_try;;
34976 esac
34977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34979 ac_status=$?
34980 grep -v '^ *+' conftest.er1 >conftest.err
34981 rm -f conftest.er1
34982 cat conftest.err >&5
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } >/dev/null && {
34985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34986 test ! -s conftest.err
34987 }; then
34988 ac_header_preproc=yes
34989 else
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34993 ac_header_preproc=no
34996 rm -f conftest.err conftest.$ac_ext
34997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34998 echo "${ECHO_T}$ac_header_preproc" >&6; }
35000 # So? What about this header?
35001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35002 yes:no: )
35003 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
35004 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35005 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
35006 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
35007 ac_header_preproc=yes
35009 no:yes:* )
35010 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
35011 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
35012 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
35013 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
35014 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
35015 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
35016 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
35017 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
35018 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
35019 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
35020 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
35021 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
35022 ( cat <<\_ASBOX
35023 ## ------------------------------- ##
35024 ## Report this to www.asterisk.org ##
35025 ## ------------------------------- ##
35026 _ASBOX
35027 ) | sed "s/^/$as_me: WARNING: /" >&2
35029 esac
35030 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
35031 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
35032 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35034 else
35035 ac_cv_header_linux_compiler_h=$ac_header_preproc
35037 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
35038 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
35041 if test $ac_cv_header_linux_compiler_h = yes; then
35043 cat >>confdefs.h <<_ACEOF
35044 #define HAVE_LINUX_COMPILER_H 1
35045 _ACEOF
35051 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
35052 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
35053 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056 cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h. */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h. */
35063 #include <linux/version.h>
35064 #ifdef HAVE_LINUX_COMPILER_H
35065 #include <linux/compiler.h>
35066 #endif
35069 #include <linux/ixjuser.h>
35070 _ACEOF
35071 rm -f conftest.$ac_objext
35072 if { (ac_try="$ac_compile"
35073 case "(($ac_try" in
35074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35075 *) ac_try_echo=$ac_try;;
35076 esac
35077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078 (eval "$ac_compile") 2>conftest.er1
35079 ac_status=$?
35080 grep -v '^ *+' conftest.er1 >conftest.err
35081 rm -f conftest.er1
35082 cat conftest.err >&5
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); } && {
35085 test -z "$ac_c_werror_flag" ||
35086 test ! -s conftest.err
35087 } && test -s conftest.$ac_objext; then
35088 ac_cv_header_linux_ixjuser_h=yes
35089 else
35090 echo "$as_me: failed program was:" >&5
35091 sed 's/^/| /' conftest.$ac_ext >&5
35093 ac_cv_header_linux_ixjuser_h=no
35096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35098 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
35099 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
35100 if test $ac_cv_header_linux_ixjuser_h = yes; then
35101 PBX_IXJUSER=1
35102 else
35103 PBX_IXJUSER=0
35109 if test "${cross_compiling}" = "no";
35110 then
35111 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
35112 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
35113 if test "${ac_cv_file__sbin_launchd+set}" = set; then
35114 echo $ECHO_N "(cached) $ECHO_C" >&6
35115 else
35116 test "$cross_compiling" = yes &&
35117 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
35118 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
35119 { (exit 1); exit 1; }; }
35120 if test -r "/sbin/launchd"; then
35121 ac_cv_file__sbin_launchd=yes
35122 else
35123 ac_cv_file__sbin_launchd=no
35126 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
35127 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
35128 if test $ac_cv_file__sbin_launchd = yes; then
35130 cat >>confdefs.h <<\_ACEOF
35131 #define HAVE_SBIN_LAUNCHD 1
35132 _ACEOF
35138 PBX_GTK=0
35139 if test -n "$ac_tool_prefix"; then
35140 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
35141 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
35142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35144 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 else
35147 if test -n "$GTKCONFIG"; then
35148 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
35149 else
35150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35151 for as_dir in $PATH
35153 IFS=$as_save_IFS
35154 test -z "$as_dir" && as_dir=.
35155 for ac_exec_ext in '' $ac_executable_extensions; do
35156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35157 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
35158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35159 break 2
35161 done
35162 done
35163 IFS=$as_save_IFS
35167 GTKCONFIG=$ac_cv_prog_GTKCONFIG
35168 if test -n "$GTKCONFIG"; then
35169 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
35170 echo "${ECHO_T}$GTKCONFIG" >&6; }
35171 else
35172 { echo "$as_me:$LINENO: result: no" >&5
35173 echo "${ECHO_T}no" >&6; }
35178 if test -z "$ac_cv_prog_GTKCONFIG"; then
35179 ac_ct_GTKCONFIG=$GTKCONFIG
35180 # Extract the first word of "gtk-config", so it can be a program name with args.
35181 set dummy gtk-config; ac_word=$2
35182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35184 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
35185 echo $ECHO_N "(cached) $ECHO_C" >&6
35186 else
35187 if test -n "$ac_ct_GTKCONFIG"; then
35188 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
35189 else
35190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35191 for as_dir in $PATH
35193 IFS=$as_save_IFS
35194 test -z "$as_dir" && as_dir=.
35195 for ac_exec_ext in '' $ac_executable_extensions; do
35196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35197 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
35198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35199 break 2
35201 done
35202 done
35203 IFS=$as_save_IFS
35207 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
35208 if test -n "$ac_ct_GTKCONFIG"; then
35209 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
35210 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
35211 else
35212 { echo "$as_me:$LINENO: result: no" >&5
35213 echo "${ECHO_T}no" >&6; }
35216 if test "x$ac_ct_GTKCONFIG" = x; then
35217 GTKCONFIG="No"
35218 else
35219 case $cross_compiling:$ac_tool_warned in
35220 yes:)
35221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35222 whose name does not start with the host triplet. If you think this
35223 configuration is useful to you, please write to autoconf@gnu.org." >&5
35224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35225 whose name does not start with the host triplet. If you think this
35226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35227 ac_tool_warned=yes ;;
35228 esac
35229 GTKCONFIG=$ac_ct_GTKCONFIG
35231 else
35232 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
35235 if test ! "x${GTKCONFIG}" = xNo; then
35236 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
35237 GTK_LIB=$(${GTKCONFIG} --libs gthread)
35238 PBX_GTK=1
35240 cat >>confdefs.h <<\_ACEOF
35241 #define HAVE_GTK 1
35242 _ACEOF
35249 PBX_GTK2=0
35250 if test -n "$ac_tool_prefix"; then
35251 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35252 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35255 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
35256 echo $ECHO_N "(cached) $ECHO_C" >&6
35257 else
35258 if test -n "$PKGCONFIG"; then
35259 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
35260 else
35261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35262 for as_dir in $PATH
35264 IFS=$as_save_IFS
35265 test -z "$as_dir" && as_dir=.
35266 for ac_exec_ext in '' $ac_executable_extensions; do
35267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35268 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
35269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35270 break 2
35272 done
35273 done
35274 IFS=$as_save_IFS
35278 PKGCONFIG=$ac_cv_prog_PKGCONFIG
35279 if test -n "$PKGCONFIG"; then
35280 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
35281 echo "${ECHO_T}$PKGCONFIG" >&6; }
35282 else
35283 { echo "$as_me:$LINENO: result: no" >&5
35284 echo "${ECHO_T}no" >&6; }
35289 if test -z "$ac_cv_prog_PKGCONFIG"; then
35290 ac_ct_PKGCONFIG=$PKGCONFIG
35291 # Extract the first word of "pkg-config", so it can be a program name with args.
35292 set dummy pkg-config; ac_word=$2
35293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35295 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
35296 echo $ECHO_N "(cached) $ECHO_C" >&6
35297 else
35298 if test -n "$ac_ct_PKGCONFIG"; then
35299 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
35300 else
35301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35302 for as_dir in $PATH
35304 IFS=$as_save_IFS
35305 test -z "$as_dir" && as_dir=.
35306 for ac_exec_ext in '' $ac_executable_extensions; do
35307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35308 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
35309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35310 break 2
35312 done
35313 done
35314 IFS=$as_save_IFS
35318 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
35319 if test -n "$ac_ct_PKGCONFIG"; then
35320 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
35321 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
35322 else
35323 { echo "$as_me:$LINENO: result: no" >&5
35324 echo "${ECHO_T}no" >&6; }
35327 if test "x$ac_ct_PKGCONFIG" = x; then
35328 PKGCONFIG="No"
35329 else
35330 case $cross_compiling:$ac_tool_warned in
35331 yes:)
35332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35333 whose name does not start with the host triplet. If you think this
35334 configuration is useful to you, please write to autoconf@gnu.org." >&5
35335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35336 whose name does not start with the host triplet. If you think this
35337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35338 ac_tool_warned=yes ;;
35339 esac
35340 PKGCONFIG=$ac_ct_PKGCONFIG
35342 else
35343 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
35346 if test ! "x${PKGCONFIG}" = xNo; then
35347 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
35348 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
35349 PBX_GTK2=1
35351 cat >>confdefs.h <<\_ACEOF
35352 #define HAVE_GTK2 1
35353 _ACEOF
35360 if test "${USE_CURL}" != "no"; then
35361 if test -n "$ac_tool_prefix"; then
35362 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
35363 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
35364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35366 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35368 else
35369 case $CURL_CONFIG in
35370 [\\/]* | ?:[\\/]*)
35371 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
35374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35375 for as_dir in $PATH
35377 IFS=$as_save_IFS
35378 test -z "$as_dir" && as_dir=.
35379 for ac_exec_ext in '' $ac_executable_extensions; do
35380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35381 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35383 break 2
35385 done
35386 done
35387 IFS=$as_save_IFS
35390 esac
35392 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
35393 if test -n "$CURL_CONFIG"; then
35394 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
35395 echo "${ECHO_T}$CURL_CONFIG" >&6; }
35396 else
35397 { echo "$as_me:$LINENO: result: no" >&5
35398 echo "${ECHO_T}no" >&6; }
35403 if test -z "$ac_cv_path_CURL_CONFIG"; then
35404 ac_pt_CURL_CONFIG=$CURL_CONFIG
35405 # Extract the first word of "curl-config", so it can be a program name with args.
35406 set dummy curl-config; ac_word=$2
35407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35409 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
35410 echo $ECHO_N "(cached) $ECHO_C" >&6
35411 else
35412 case $ac_pt_CURL_CONFIG in
35413 [\\/]* | ?:[\\/]*)
35414 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
35417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35418 for as_dir in $PATH
35420 IFS=$as_save_IFS
35421 test -z "$as_dir" && as_dir=.
35422 for ac_exec_ext in '' $ac_executable_extensions; do
35423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35424 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35426 break 2
35428 done
35429 done
35430 IFS=$as_save_IFS
35433 esac
35435 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
35436 if test -n "$ac_pt_CURL_CONFIG"; then
35437 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
35438 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
35439 else
35440 { echo "$as_me:$LINENO: result: no" >&5
35441 echo "${ECHO_T}no" >&6; }
35444 if test "x$ac_pt_CURL_CONFIG" = x; then
35445 CURL_CONFIG="No"
35446 else
35447 case $cross_compiling:$ac_tool_warned in
35448 yes:)
35449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35450 whose name does not start with the host triplet. If you think this
35451 configuration is useful to you, please write to autoconf@gnu.org." >&5
35452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35453 whose name does not start with the host triplet. If you think this
35454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35455 ac_tool_warned=yes ;;
35456 esac
35457 CURL_CONFIG=$ac_pt_CURL_CONFIG
35459 else
35460 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
35463 if test ! x"${CURL_CONFIG}" = xNo; then
35464 # check for version
35465 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
35466 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
35467 CURL_LIB=$(${CURL_CONFIG} --libs)
35469 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
35470 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
35471 saved_cppflags="${CPPFLAGS}"
35472 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
35473 cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h. */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35479 #include <curl/curl.h>
35481 main ()
35483 curl_version();
35485 return 0;
35488 _ACEOF
35489 rm -f conftest.$ac_objext
35490 if { (ac_try="$ac_compile"
35491 case "(($ac_try" in
35492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35493 *) ac_try_echo=$ac_try;;
35494 esac
35495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35496 (eval "$ac_compile") 2>conftest.er1
35497 ac_status=$?
35498 grep -v '^ *+' conftest.er1 >conftest.err
35499 rm -f conftest.er1
35500 cat conftest.err >&5
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); } && {
35503 test -z "$ac_c_werror_flag" ||
35504 test ! -s conftest.err
35505 } && test -s conftest.$ac_objext; then
35507 { echo "$as_me:$LINENO: result: yes" >&5
35508 echo "${ECHO_T}yes" >&6; }
35509 ac_cv_curl_h="yes"
35511 else
35512 echo "$as_me: failed program was:" >&5
35513 sed 's/^/| /' conftest.$ac_ext >&5
35516 { echo "$as_me:$LINENO: result: no" >&5
35517 echo "${ECHO_T}no" >&6; }
35518 ac_cv_curl_h="no"
35523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35524 CPPFLAGS="${saved_cppflags}"
35525 if test "${ac_cv_curl_h}" = "yes"; then
35526 PBX_CURL=1
35528 cat >>confdefs.h <<\_ACEOF
35529 #define HAVE_CURL 1
35530 _ACEOF
35537 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
35539 cat >confcache <<\_ACEOF
35540 # This file is a shell script that caches the results of configure
35541 # tests run on this system so they can be shared between configure
35542 # scripts and configure runs, see configure's option --config-cache.
35543 # It is not useful on other systems. If it contains results you don't
35544 # want to keep, you may remove or edit it.
35546 # config.status only pays attention to the cache file if you give it
35547 # the --recheck option to rerun configure.
35549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35551 # following values.
35553 _ACEOF
35555 # The following way of writing the cache mishandles newlines in values,
35556 # but we know of no workaround that is simple, portable, and efficient.
35557 # So, we kill variables containing newlines.
35558 # Ultrix sh set writes to stderr and can't be redirected directly,
35559 # and sets the high bit in the cache file unless we assign to the vars.
35561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35562 eval ac_val=\$$ac_var
35563 case $ac_val in #(
35564 *${as_nl}*)
35565 case $ac_var in #(
35566 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35567 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35568 esac
35569 case $ac_var in #(
35570 _ | IFS | as_nl) ;; #(
35571 *) $as_unset $ac_var ;;
35572 esac ;;
35573 esac
35574 done
35576 (set) 2>&1 |
35577 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35578 *${as_nl}ac_space=\ *)
35579 # `set' does not quote correctly, so add quotes (double-quote
35580 # substitution turns \\\\ into \\, and sed turns \\ into \).
35581 sed -n \
35582 "s/'/'\\\\''/g;
35583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35584 ;; #(
35586 # `set' quotes correctly as required by POSIX, so do not add quotes.
35587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35589 esac |
35590 sort
35592 sed '
35593 /^ac_cv_env_/b end
35594 t clear
35595 :clear
35596 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35597 t end
35598 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35599 :end' >>confcache
35600 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35601 if test -w "$cache_file"; then
35602 test "x$cache_file" != "x/dev/null" &&
35603 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35604 echo "$as_me: updating cache $cache_file" >&6;}
35605 cat confcache >$cache_file
35606 else
35607 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35608 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35611 rm -f confcache
35613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35614 # Let make expand exec_prefix.
35615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35617 DEFS=-DHAVE_CONFIG_H
35619 ac_libobjs=
35620 ac_ltlibobjs=
35621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35622 # 1. Remove the extension, and $U if already installed.
35623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35624 ac_i=`echo "$ac_i" | sed "$ac_script"`
35625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35626 # will be set to the directory where LIBOBJS objects are built.
35627 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35628 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35629 done
35630 LIBOBJS=$ac_libobjs
35632 LTLIBOBJS=$ac_ltlibobjs
35636 : ${CONFIG_STATUS=./config.status}
35637 ac_clean_files_save=$ac_clean_files
35638 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35639 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35640 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35641 cat >$CONFIG_STATUS <<_ACEOF
35642 #! $SHELL
35643 # Generated by $as_me.
35644 # Run this file to recreate the current configuration.
35645 # Compiler output produced by configure, useful for debugging
35646 # configure, is in config.log if it exists.
35648 debug=false
35649 ac_cs_recheck=false
35650 ac_cs_silent=false
35651 SHELL=\${CONFIG_SHELL-$SHELL}
35652 _ACEOF
35654 cat >>$CONFIG_STATUS <<\_ACEOF
35655 ## --------------------- ##
35656 ## M4sh Initialization. ##
35657 ## --------------------- ##
35659 # Be more Bourne compatible
35660 DUALCASE=1; export DUALCASE # for MKS sh
35661 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35662 emulate sh
35663 NULLCMD=:
35664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35665 # is contrary to our usage. Disable this feature.
35666 alias -g '${1+"$@"}'='"$@"'
35667 setopt NO_GLOB_SUBST
35668 else
35669 case `(set -o) 2>/dev/null` in
35670 *posix*) set -o posix ;;
35671 esac
35678 # PATH needs CR
35679 # Avoid depending upon Character Ranges.
35680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35683 as_cr_digits='0123456789'
35684 as_cr_alnum=$as_cr_Letters$as_cr_digits
35686 # The user is always right.
35687 if test "${PATH_SEPARATOR+set}" != set; then
35688 echo "#! /bin/sh" >conf$$.sh
35689 echo "exit 0" >>conf$$.sh
35690 chmod +x conf$$.sh
35691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35692 PATH_SEPARATOR=';'
35693 else
35694 PATH_SEPARATOR=:
35696 rm -f conf$$.sh
35699 # Support unset when possible.
35700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35701 as_unset=unset
35702 else
35703 as_unset=false
35707 # IFS
35708 # We need space, tab and new line, in precisely that order. Quoting is
35709 # there to prevent editors from complaining about space-tab.
35710 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35711 # splitting by setting IFS to empty value.)
35712 as_nl='
35714 IFS=" "" $as_nl"
35716 # Find who we are. Look in the path if we contain no directory separator.
35717 case $0 in
35718 *[\\/]* ) as_myself=$0 ;;
35719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35720 for as_dir in $PATH
35722 IFS=$as_save_IFS
35723 test -z "$as_dir" && as_dir=.
35724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35725 done
35726 IFS=$as_save_IFS
35729 esac
35730 # We did not find ourselves, most probably we were run as `sh COMMAND'
35731 # in which case we are not to be found in the path.
35732 if test "x$as_myself" = x; then
35733 as_myself=$0
35735 if test ! -f "$as_myself"; then
35736 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35737 { (exit 1); exit 1; }
35740 # Work around bugs in pre-3.0 UWIN ksh.
35741 for as_var in ENV MAIL MAILPATH
35742 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35743 done
35744 PS1='$ '
35745 PS2='> '
35746 PS4='+ '
35748 # NLS nuisances.
35749 for as_var in \
35750 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35751 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35752 LC_TELEPHONE LC_TIME
35754 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35755 eval $as_var=C; export $as_var
35756 else
35757 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35759 done
35761 # Required to use basename.
35762 if expr a : '\(a\)' >/dev/null 2>&1 &&
35763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35764 as_expr=expr
35765 else
35766 as_expr=false
35769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35770 as_basename=basename
35771 else
35772 as_basename=false
35776 # Name of the executable.
35777 as_me=`$as_basename -- "$0" ||
35778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35779 X"$0" : 'X\(//\)$' \| \
35780 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35781 echo X/"$0" |
35782 sed '/^.*\/\([^/][^/]*\)\/*$/{
35783 s//\1/
35786 /^X\/\(\/\/\)$/{
35787 s//\1/
35790 /^X\/\(\/\).*/{
35791 s//\1/
35794 s/.*/./; q'`
35796 # CDPATH.
35797 $as_unset CDPATH
35801 as_lineno_1=$LINENO
35802 as_lineno_2=$LINENO
35803 test "x$as_lineno_1" != "x$as_lineno_2" &&
35804 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35806 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35807 # uniformly replaced by the line number. The first 'sed' inserts a
35808 # line-number line after each line using $LINENO; the second 'sed'
35809 # does the real work. The second script uses 'N' to pair each
35810 # line-number line with the line containing $LINENO, and appends
35811 # trailing '-' during substitution so that $LINENO is not a special
35812 # case at line end.
35813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35814 # scripts with optimization help from Paolo Bonzini. Blame Lee
35815 # E. McMahon (1931-1989) for sed's syntax. :-)
35816 sed -n '
35818 /[$]LINENO/=
35819 ' <$as_myself |
35820 sed '
35821 s/[$]LINENO.*/&-/
35822 t lineno
35824 :lineno
35826 :loop
35827 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35828 t loop
35829 s/-\n.*//
35830 ' >$as_me.lineno &&
35831 chmod +x "$as_me.lineno" ||
35832 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35833 { (exit 1); exit 1; }; }
35835 # Don't try to exec as it changes $[0], causing all sort of problems
35836 # (the dirname of $[0] is not the place where we might find the
35837 # original and so on. Autoconf is especially sensitive to this).
35838 . "./$as_me.lineno"
35839 # Exit status is that of the last command.
35840 exit
35844 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35845 as_dirname=dirname
35846 else
35847 as_dirname=false
35850 ECHO_C= ECHO_N= ECHO_T=
35851 case `echo -n x` in
35852 -n*)
35853 case `echo 'x\c'` in
35854 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35855 *) ECHO_C='\c';;
35856 esac;;
35858 ECHO_N='-n';;
35859 esac
35861 if expr a : '\(a\)' >/dev/null 2>&1 &&
35862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35863 as_expr=expr
35864 else
35865 as_expr=false
35868 rm -f conf$$ conf$$.exe conf$$.file
35869 if test -d conf$$.dir; then
35870 rm -f conf$$.dir/conf$$.file
35871 else
35872 rm -f conf$$.dir
35873 mkdir conf$$.dir
35875 echo >conf$$.file
35876 if ln -s conf$$.file conf$$ 2>/dev/null; then
35877 as_ln_s='ln -s'
35878 # ... but there are two gotchas:
35879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35881 # In both cases, we have to default to `cp -p'.
35882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35883 as_ln_s='cp -p'
35884 elif ln conf$$.file conf$$ 2>/dev/null; then
35885 as_ln_s=ln
35886 else
35887 as_ln_s='cp -p'
35889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35890 rmdir conf$$.dir 2>/dev/null
35892 if mkdir -p . 2>/dev/null; then
35893 as_mkdir_p=:
35894 else
35895 test -d ./-p && rmdir ./-p
35896 as_mkdir_p=false
35899 if test -x / >/dev/null 2>&1; then
35900 as_test_x='test -x'
35901 else
35902 if ls -dL / >/dev/null 2>&1; then
35903 as_ls_L_option=L
35904 else
35905 as_ls_L_option=
35907 as_test_x='
35908 eval sh -c '\''
35909 if test -d "$1"; then
35910 test -d "$1/.";
35911 else
35912 case $1 in
35913 -*)set "./$1";;
35914 esac;
35915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35916 ???[sx]*):;;*)false;;esac;fi
35917 '\'' sh
35920 as_executable_p=$as_test_x
35922 # Sed expression to map a string onto a valid CPP name.
35923 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35925 # Sed expression to map a string onto a valid variable name.
35926 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35929 exec 6>&1
35931 # Save the log message, to keep $[0] and so on meaningful, and to
35932 # report actual input values of CONFIG_FILES etc. instead of their
35933 # values after options handling.
35934 ac_log="
35935 This file was extended by asterisk $as_me 1.4, which was
35936 generated by GNU Autoconf 2.61. Invocation command line was
35938 CONFIG_FILES = $CONFIG_FILES
35939 CONFIG_HEADERS = $CONFIG_HEADERS
35940 CONFIG_LINKS = $CONFIG_LINKS
35941 CONFIG_COMMANDS = $CONFIG_COMMANDS
35942 $ $0 $@
35944 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35947 _ACEOF
35949 cat >>$CONFIG_STATUS <<_ACEOF
35950 # Files that config.status was made for.
35951 config_files="$ac_config_files"
35952 config_headers="$ac_config_headers"
35954 _ACEOF
35956 cat >>$CONFIG_STATUS <<\_ACEOF
35957 ac_cs_usage="\
35958 \`$as_me' instantiates files from templates according to the
35959 current configuration.
35961 Usage: $0 [OPTIONS] [FILE]...
35963 -h, --help print this help, then exit
35964 -V, --version print version number and configuration settings, then exit
35965 -q, --quiet do not print progress messages
35966 -d, --debug don't remove temporary files
35967 --recheck update $as_me by reconfiguring in the same conditions
35968 --file=FILE[:TEMPLATE]
35969 instantiate the configuration file FILE
35970 --header=FILE[:TEMPLATE]
35971 instantiate the configuration header FILE
35973 Configuration files:
35974 $config_files
35976 Configuration headers:
35977 $config_headers
35979 Report bugs to <bug-autoconf@gnu.org>."
35981 _ACEOF
35982 cat >>$CONFIG_STATUS <<_ACEOF
35983 ac_cs_version="\\
35984 asterisk config.status 1.4
35985 configured by $0, generated by GNU Autoconf 2.61,
35986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35988 Copyright (C) 2006 Free Software Foundation, Inc.
35989 This config.status script is free software; the Free Software Foundation
35990 gives unlimited permission to copy, distribute and modify it."
35992 ac_pwd='$ac_pwd'
35993 srcdir='$srcdir'
35994 INSTALL='$INSTALL'
35995 _ACEOF
35997 cat >>$CONFIG_STATUS <<\_ACEOF
35998 # If no file are specified by the user, then we need to provide default
35999 # value. By we need to know if files were specified by the user.
36000 ac_need_defaults=:
36001 while test $# != 0
36003 case $1 in
36004 --*=*)
36005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36007 ac_shift=:
36010 ac_option=$1
36011 ac_optarg=$2
36012 ac_shift=shift
36014 esac
36016 case $ac_option in
36017 # Handling of the options.
36018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36019 ac_cs_recheck=: ;;
36020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36021 echo "$ac_cs_version"; exit ;;
36022 --debug | --debu | --deb | --de | --d | -d )
36023 debug=: ;;
36024 --file | --fil | --fi | --f )
36025 $ac_shift
36026 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36027 ac_need_defaults=false;;
36028 --header | --heade | --head | --hea )
36029 $ac_shift
36030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36031 ac_need_defaults=false;;
36032 --he | --h)
36033 # Conflict between --help and --header
36034 { echo "$as_me: error: ambiguous option: $1
36035 Try \`$0 --help' for more information." >&2
36036 { (exit 1); exit 1; }; };;
36037 --help | --hel | -h )
36038 echo "$ac_cs_usage"; exit ;;
36039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36041 ac_cs_silent=: ;;
36043 # This is an error.
36044 -*) { echo "$as_me: error: unrecognized option: $1
36045 Try \`$0 --help' for more information." >&2
36046 { (exit 1); exit 1; }; } ;;
36048 *) ac_config_targets="$ac_config_targets $1"
36049 ac_need_defaults=false ;;
36051 esac
36052 shift
36053 done
36055 ac_configure_extra_args=
36057 if $ac_cs_silent; then
36058 exec 6>/dev/null
36059 ac_configure_extra_args="$ac_configure_extra_args --silent"
36062 _ACEOF
36063 cat >>$CONFIG_STATUS <<_ACEOF
36064 if \$ac_cs_recheck; then
36065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36066 CONFIG_SHELL=$SHELL
36067 export CONFIG_SHELL
36068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36071 _ACEOF
36072 cat >>$CONFIG_STATUS <<\_ACEOF
36073 exec 5>>config.log
36075 echo
36076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36077 ## Running $as_me. ##
36078 _ASBOX
36079 echo "$ac_log"
36080 } >&5
36082 _ACEOF
36083 cat >>$CONFIG_STATUS <<_ACEOF
36084 _ACEOF
36086 cat >>$CONFIG_STATUS <<\_ACEOF
36088 # Handling of arguments.
36089 for ac_config_target in $ac_config_targets
36091 case $ac_config_target in
36092 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
36093 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
36094 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
36095 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
36097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36099 { (exit 1); exit 1; }; };;
36100 esac
36101 done
36104 # If the user did not use the arguments to specify the items to instantiate,
36105 # then the envvar interface is used. Set only those that are not.
36106 # We use the long form for the default assignment because of an extremely
36107 # bizarre bug on SunOS 4.1.3.
36108 if $ac_need_defaults; then
36109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36113 # Have a temporary directory for convenience. Make it in the build tree
36114 # simply because there is no reason against having it here, and in addition,
36115 # creating and moving files from /tmp can sometimes cause problems.
36116 # Hook for its removal unless debugging.
36117 # Note that there is a small window in which the directory will not be cleaned:
36118 # after its creation but before its name has been assigned to `$tmp'.
36119 $debug ||
36121 tmp=
36122 trap 'exit_status=$?
36123 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36125 trap '{ (exit 1); exit 1; }' 1 2 13 15
36127 # Create a (secure) tmp directory for tmp files.
36130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36131 test -n "$tmp" && test -d "$tmp"
36132 } ||
36134 tmp=./conf$$-$RANDOM
36135 (umask 077 && mkdir "$tmp")
36136 } ||
36138 echo "$me: cannot create a temporary directory in ." >&2
36139 { (exit 1); exit 1; }
36143 # Set up the sed scripts for CONFIG_FILES section.
36146 # No need to generate the scripts if there are no CONFIG_FILES.
36147 # This happens for instance when ./config.status config.h
36148 if test -n "$CONFIG_FILES"; then
36150 _ACEOF
36154 ac_delim='%!_!# '
36155 for ac_last_try in false false false false false :; do
36156 cat >conf$$subs.sed <<_ACEOF
36157 SHELL!$SHELL$ac_delim
36158 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36159 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36160 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36161 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36162 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36163 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36164 exec_prefix!$exec_prefix$ac_delim
36165 prefix!$prefix$ac_delim
36166 program_transform_name!$program_transform_name$ac_delim
36167 bindir!$bindir$ac_delim
36168 sbindir!$sbindir$ac_delim
36169 libexecdir!$libexecdir$ac_delim
36170 datarootdir!$datarootdir$ac_delim
36171 datadir!$datadir$ac_delim
36172 sysconfdir!$sysconfdir$ac_delim
36173 sharedstatedir!$sharedstatedir$ac_delim
36174 localstatedir!$localstatedir$ac_delim
36175 includedir!$includedir$ac_delim
36176 oldincludedir!$oldincludedir$ac_delim
36177 docdir!$docdir$ac_delim
36178 infodir!$infodir$ac_delim
36179 htmldir!$htmldir$ac_delim
36180 dvidir!$dvidir$ac_delim
36181 pdfdir!$pdfdir$ac_delim
36182 psdir!$psdir$ac_delim
36183 libdir!$libdir$ac_delim
36184 localedir!$localedir$ac_delim
36185 mandir!$mandir$ac_delim
36186 DEFS!$DEFS$ac_delim
36187 ECHO_C!$ECHO_C$ac_delim
36188 ECHO_N!$ECHO_N$ac_delim
36189 ECHO_T!$ECHO_T$ac_delim
36190 LIBS!$LIBS$ac_delim
36191 build_alias!$build_alias$ac_delim
36192 host_alias!$host_alias$ac_delim
36193 target_alias!$target_alias$ac_delim
36194 build!$build$ac_delim
36195 build_cpu!$build_cpu$ac_delim
36196 build_vendor!$build_vendor$ac_delim
36197 build_os!$build_os$ac_delim
36198 host!$host$ac_delim
36199 host_cpu!$host_cpu$ac_delim
36200 host_vendor!$host_vendor$ac_delim
36201 host_os!$host_os$ac_delim
36202 CC!$CC$ac_delim
36203 CFLAGS!$CFLAGS$ac_delim
36204 LDFLAGS!$LDFLAGS$ac_delim
36205 CPPFLAGS!$CPPFLAGS$ac_delim
36206 ac_ct_CC!$ac_ct_CC$ac_delim
36207 EXEEXT!$EXEEXT$ac_delim
36208 OBJEXT!$OBJEXT$ac_delim
36209 CPP!$CPP$ac_delim
36210 GREP!$GREP$ac_delim
36211 EGREP!$EGREP$ac_delim
36212 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
36213 BUILD_CPU!$BUILD_CPU$ac_delim
36214 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
36215 BUILD_OS!$BUILD_OS$ac_delim
36216 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
36217 HOST_CPU!$HOST_CPU$ac_delim
36218 HOST_VENDOR!$HOST_VENDOR$ac_delim
36219 HOST_OS!$HOST_OS$ac_delim
36220 OSARCH!$OSARCH$ac_delim
36221 UNAME!$UNAME$ac_delim
36222 PBX_OSREV!$PBX_OSREV$ac_delim
36223 CXX!$CXX$ac_delim
36224 LD!$LD$ac_delim
36225 RANLIB!$RANLIB$ac_delim
36226 CXXFLAGS!$CXXFLAGS$ac_delim
36227 ac_ct_CXX!$ac_ct_CXX$ac_delim
36228 CXXCPP!$CXXCPP$ac_delim
36229 SED!$SED$ac_delim
36230 AWK!$AWK$ac_delim
36231 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36232 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36233 INSTALL_DATA!$INSTALL_DATA$ac_delim
36234 LN_S!$LN_S$ac_delim
36235 GNU_MAKE!$GNU_MAKE$ac_delim
36236 STRIP!$STRIP$ac_delim
36237 AR!$AR$ac_delim
36238 GNU_LD!$GNU_LD$ac_delim
36239 FIND!$FIND$ac_delim
36240 COMPRESS!$COMPRESS$ac_delim
36241 BASENAME!$BASENAME$ac_delim
36242 ID!$ID$ac_delim
36243 DIRNAME!$DIRNAME$ac_delim
36244 LN!$LN$ac_delim
36245 DOT!$DOT$ac_delim
36246 WGET!$WGET$ac_delim
36247 FETCH!$FETCH$ac_delim
36248 DOWNLOAD!$DOWNLOAD$ac_delim
36249 SOXMIX!$SOXMIX$ac_delim
36250 acx_pthread_config!$acx_pthread_config$ac_delim
36251 PTHREAD_CC!$PTHREAD_CC$ac_delim
36252 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
36253 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
36254 _ACEOF
36256 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36257 break
36258 elif $ac_last_try; then
36259 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36261 { (exit 1); exit 1; }; }
36262 else
36263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36265 done
36267 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36268 if test -n "$ac_eof"; then
36269 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36270 ac_eof=`expr $ac_eof + 1`
36273 cat >>$CONFIG_STATUS <<_ACEOF
36274 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36276 _ACEOF
36277 sed '
36278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36279 s/^/s,@/; s/!/@,|#_!!_#|/
36282 s/'"$ac_delim"'$/,g/; t
36283 s/$/\\/; p
36284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36285 ' >>$CONFIG_STATUS <conf$$subs.sed
36286 rm -f conf$$subs.sed
36287 cat >>$CONFIG_STATUS <<_ACEOF
36288 CEOF$ac_eof
36289 _ACEOF
36292 ac_delim='%!_!# '
36293 for ac_last_try in false false false false false :; do
36294 cat >conf$$subs.sed <<_ACEOF
36295 AST_DEVMODE!$AST_DEVMODE$ac_delim
36296 ALSA_LIB!$ALSA_LIB$ac_delim
36297 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
36298 ALSA_DIR!$ALSA_DIR$ac_delim
36299 PBX_ALSA!$PBX_ALSA$ac_delim
36300 CURL_LIB!$CURL_LIB$ac_delim
36301 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
36302 CURL_DIR!$CURL_DIR$ac_delim
36303 PBX_CURL!$PBX_CURL$ac_delim
36304 CAP_LIB!$CAP_LIB$ac_delim
36305 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
36306 CAP_DIR!$CAP_DIR$ac_delim
36307 PBX_CAP!$PBX_CAP$ac_delim
36308 CURSES_LIB!$CURSES_LIB$ac_delim
36309 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
36310 CURSES_DIR!$CURSES_DIR$ac_delim
36311 PBX_CURSES!$PBX_CURSES$ac_delim
36312 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
36313 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
36314 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
36315 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
36316 GSM_LIB!$GSM_LIB$ac_delim
36317 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
36318 GSM_DIR!$GSM_DIR$ac_delim
36319 PBX_GSM!$PBX_GSM$ac_delim
36320 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
36321 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
36322 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
36323 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
36324 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
36325 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
36326 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
36327 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
36328 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
36329 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
36330 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
36331 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
36332 KDE_LIB!$KDE_LIB$ac_delim
36333 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
36334 KDE_DIR!$KDE_DIR$ac_delim
36335 PBX_KDE!$PBX_KDE$ac_delim
36336 LTDL_LIB!$LTDL_LIB$ac_delim
36337 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
36338 LTDL_DIR!$LTDL_DIR$ac_delim
36339 PBX_LTDL!$PBX_LTDL$ac_delim
36340 MISDN_LIB!$MISDN_LIB$ac_delim
36341 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
36342 MISDN_DIR!$MISDN_DIR$ac_delim
36343 PBX_MISDN!$PBX_MISDN$ac_delim
36344 NBS_LIB!$NBS_LIB$ac_delim
36345 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
36346 NBS_DIR!$NBS_DIR$ac_delim
36347 PBX_NBS!$PBX_NBS$ac_delim
36348 NCURSES_LIB!$NCURSES_LIB$ac_delim
36349 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
36350 NCURSES_DIR!$NCURSES_DIR$ac_delim
36351 PBX_NCURSES!$PBX_NCURSES$ac_delim
36352 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
36353 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
36354 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
36355 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
36356 NEWT_LIB!$NEWT_LIB$ac_delim
36357 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
36358 NEWT_DIR!$NEWT_DIR$ac_delim
36359 PBX_NEWT!$PBX_NEWT$ac_delim
36360 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
36361 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
36362 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
36363 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
36364 OGG_LIB!$OGG_LIB$ac_delim
36365 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
36366 OGG_DIR!$OGG_DIR$ac_delim
36367 PBX_OGG!$PBX_OGG$ac_delim
36368 OSPTK_LIB!$OSPTK_LIB$ac_delim
36369 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
36370 OSPTK_DIR!$OSPTK_DIR$ac_delim
36371 PBX_OSPTK!$PBX_OSPTK$ac_delim
36372 OSS_LIB!$OSS_LIB$ac_delim
36373 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
36374 OSS_DIR!$OSS_DIR$ac_delim
36375 PBX_OSS!$PBX_OSS$ac_delim
36376 POPT_LIB!$POPT_LIB$ac_delim
36377 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
36378 POPT_DIR!$POPT_DIR$ac_delim
36379 PBX_POPT!$PBX_POPT$ac_delim
36380 PGSQL_LIB!$PGSQL_LIB$ac_delim
36381 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
36382 PGSQL_DIR!$PGSQL_DIR$ac_delim
36383 PBX_PGSQL!$PBX_PGSQL$ac_delim
36384 PRI_LIB!$PRI_LIB$ac_delim
36385 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
36386 PRI_DIR!$PRI_DIR$ac_delim
36387 PBX_PRI!$PBX_PRI$ac_delim
36388 PWLIB_LIB!$PWLIB_LIB$ac_delim
36389 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
36390 PWLIB_DIR!$PWLIB_DIR$ac_delim
36391 PBX_PWLIB!$PBX_PWLIB$ac_delim
36392 _ACEOF
36394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36395 break
36396 elif $ac_last_try; then
36397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36399 { (exit 1); exit 1; }; }
36400 else
36401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36403 done
36405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36406 if test -n "$ac_eof"; then
36407 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36408 ac_eof=`expr $ac_eof + 1`
36411 cat >>$CONFIG_STATUS <<_ACEOF
36412 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36414 _ACEOF
36415 sed '
36416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36417 s/^/s,@/; s/!/@,|#_!!_#|/
36420 s/'"$ac_delim"'$/,g/; t
36421 s/$/\\/; p
36422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36423 ' >>$CONFIG_STATUS <conf$$subs.sed
36424 rm -f conf$$subs.sed
36425 cat >>$CONFIG_STATUS <<_ACEOF
36426 CEOF$ac_eof
36427 _ACEOF
36430 ac_delim='%!_!# '
36431 for ac_last_try in false false false false false :; do
36432 cat >conf$$subs.sed <<_ACEOF
36433 OPENH323_LIB!$OPENH323_LIB$ac_delim
36434 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
36435 OPENH323_DIR!$OPENH323_DIR$ac_delim
36436 PBX_OPENH323!$PBX_OPENH323$ac_delim
36437 RADIUS_LIB!$RADIUS_LIB$ac_delim
36438 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
36439 RADIUS_DIR!$RADIUS_DIR$ac_delim
36440 PBX_RADIUS!$PBX_RADIUS$ac_delim
36441 SPEEX_LIB!$SPEEX_LIB$ac_delim
36442 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
36443 SPEEX_DIR!$SPEEX_DIR$ac_delim
36444 PBX_SPEEX!$PBX_SPEEX$ac_delim
36445 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
36446 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
36447 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
36448 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
36449 SQLITE_LIB!$SQLITE_LIB$ac_delim
36450 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
36451 SQLITE_DIR!$SQLITE_DIR$ac_delim
36452 PBX_SQLITE!$PBX_SQLITE$ac_delim
36453 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
36454 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
36455 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
36456 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
36457 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
36458 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
36459 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
36460 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
36461 FREETDS_LIB!$FREETDS_LIB$ac_delim
36462 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
36463 FREETDS_DIR!$FREETDS_DIR$ac_delim
36464 PBX_FREETDS!$PBX_FREETDS$ac_delim
36465 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
36466 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
36467 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
36468 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
36469 TINFO_LIB!$TINFO_LIB$ac_delim
36470 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
36471 TINFO_DIR!$TINFO_DIR$ac_delim
36472 PBX_TINFO!$PBX_TINFO$ac_delim
36473 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
36474 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
36475 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
36476 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
36477 USB_LIB!$USB_LIB$ac_delim
36478 USB_INCLUDE!$USB_INCLUDE$ac_delim
36479 USB_DIR!$USB_DIR$ac_delim
36480 PBX_USB!$PBX_USB$ac_delim
36481 VORBIS_LIB!$VORBIS_LIB$ac_delim
36482 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
36483 VORBIS_DIR!$VORBIS_DIR$ac_delim
36484 PBX_VORBIS!$PBX_VORBIS$ac_delim
36485 VPB_LIB!$VPB_LIB$ac_delim
36486 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
36487 VPB_DIR!$VPB_DIR$ac_delim
36488 PBX_VPB!$PBX_VPB$ac_delim
36489 ZLIB_LIB!$ZLIB_LIB$ac_delim
36490 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
36491 ZLIB_DIR!$ZLIB_DIR$ac_delim
36492 PBX_ZLIB!$PBX_ZLIB$ac_delim
36493 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
36494 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
36495 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
36496 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
36497 ALLOCA!$ALLOCA$ac_delim
36498 LIBOBJS!$LIBOBJS$ac_delim
36499 POW_LIB!$POW_LIB$ac_delim
36500 GC_CFLAGS!$GC_CFLAGS$ac_delim
36501 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
36502 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
36503 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
36504 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
36505 KDEINIT!$KDEINIT$ac_delim
36506 KDEDIR!$KDEDIR$ac_delim
36507 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
36508 PG_CONFIG!$PG_CONFIG$ac_delim
36509 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
36510 PWLIBDIR!$PWLIBDIR$ac_delim
36511 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
36512 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
36513 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
36514 OPENH323DIR!$OPENH323DIR$ac_delim
36515 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
36516 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
36517 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
36518 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
36519 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
36520 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
36521 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
36522 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
36523 PBX_H323!$PBX_H323$ac_delim
36524 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
36525 GTKCONFIG!$GTKCONFIG$ac_delim
36526 PBX_GTK!$PBX_GTK$ac_delim
36527 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
36528 GTK_LIB!$GTK_LIB$ac_delim
36529 PKGCONFIG!$PKGCONFIG$ac_delim
36530 _ACEOF
36532 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36533 break
36534 elif $ac_last_try; then
36535 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36536 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36537 { (exit 1); exit 1; }; }
36538 else
36539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36541 done
36543 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36544 if test -n "$ac_eof"; then
36545 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36546 ac_eof=`expr $ac_eof + 1`
36549 cat >>$CONFIG_STATUS <<_ACEOF
36550 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36552 _ACEOF
36553 sed '
36554 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36555 s/^/s,@/; s/!/@,|#_!!_#|/
36558 s/'"$ac_delim"'$/,g/; t
36559 s/$/\\/; p
36560 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36561 ' >>$CONFIG_STATUS <conf$$subs.sed
36562 rm -f conf$$subs.sed
36563 cat >>$CONFIG_STATUS <<_ACEOF
36564 CEOF$ac_eof
36565 _ACEOF
36568 ac_delim='%!_!# '
36569 for ac_last_try in false false false false false :; do
36570 cat >conf$$subs.sed <<_ACEOF
36571 PBX_GTK2!$PBX_GTK2$ac_delim
36572 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
36573 GTK2_LIB!$GTK2_LIB$ac_delim
36574 CURL_CONFIG!$CURL_CONFIG$ac_delim
36575 LTLIBOBJS!$LTLIBOBJS$ac_delim
36576 _ACEOF
36578 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
36579 break
36580 elif $ac_last_try; then
36581 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36583 { (exit 1); exit 1; }; }
36584 else
36585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36587 done
36589 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36590 if test -n "$ac_eof"; then
36591 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36592 ac_eof=`expr $ac_eof + 1`
36595 cat >>$CONFIG_STATUS <<_ACEOF
36596 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
36597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36598 _ACEOF
36599 sed '
36600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36601 s/^/s,@/; s/!/@,|#_!!_#|/
36604 s/'"$ac_delim"'$/,g/; t
36605 s/$/\\/; p
36606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36607 ' >>$CONFIG_STATUS <conf$$subs.sed
36608 rm -f conf$$subs.sed
36609 cat >>$CONFIG_STATUS <<_ACEOF
36610 :end
36611 s/|#_!!_#|//g
36612 CEOF$ac_eof
36613 _ACEOF
36616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36618 # trailing colons and then remove the whole line if VPATH becomes empty
36619 # (actually we leave an empty line to preserve line numbers).
36620 if test "x$srcdir" = x.; then
36621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36622 s/:*\$(srcdir):*/:/
36623 s/:*\${srcdir}:*/:/
36624 s/:*@srcdir@:*/:/
36625 s/^\([^=]*=[ ]*\):*/\1/
36626 s/:*$//
36627 s/^[^=]*=[ ]*$//
36631 cat >>$CONFIG_STATUS <<\_ACEOF
36632 fi # test -n "$CONFIG_FILES"
36635 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36637 case $ac_tag in
36638 :[FHLC]) ac_mode=$ac_tag; continue;;
36639 esac
36640 case $ac_mode$ac_tag in
36641 :[FHL]*:*);;
36642 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36643 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36644 { (exit 1); exit 1; }; };;
36645 :[FH]-) ac_tag=-:-;;
36646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36647 esac
36648 ac_save_IFS=$IFS
36649 IFS=:
36650 set x $ac_tag
36651 IFS=$ac_save_IFS
36652 shift
36653 ac_file=$1
36654 shift
36656 case $ac_mode in
36657 :L) ac_source=$1;;
36658 :[FH])
36659 ac_file_inputs=
36660 for ac_f
36662 case $ac_f in
36663 -) ac_f="$tmp/stdin";;
36664 *) # Look for the file first in the build tree, then in the source tree
36665 # (if the path is not absolute). The absolute path cannot be DOS-style,
36666 # because $ac_f cannot contain `:'.
36667 test -f "$ac_f" ||
36668 case $ac_f in
36669 [\\/$]*) false;;
36670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36671 esac ||
36672 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36673 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36674 { (exit 1); exit 1; }; };;
36675 esac
36676 ac_file_inputs="$ac_file_inputs $ac_f"
36677 done
36679 # Let's still pretend it is `configure' which instantiates (i.e., don't
36680 # use $as_me), people would be surprised to read:
36681 # /* config.h. Generated by config.status. */
36682 configure_input="Generated from "`IFS=:
36683 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36684 if test x"$ac_file" != x-; then
36685 configure_input="$ac_file. $configure_input"
36686 { echo "$as_me:$LINENO: creating $ac_file" >&5
36687 echo "$as_me: creating $ac_file" >&6;}
36690 case $ac_tag in
36691 *:-:* | *:-) cat >"$tmp/stdin";;
36692 esac
36694 esac
36696 ac_dir=`$as_dirname -- "$ac_file" ||
36697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36698 X"$ac_file" : 'X\(//\)[^/]' \| \
36699 X"$ac_file" : 'X\(//\)$' \| \
36700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36701 echo X"$ac_file" |
36702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36703 s//\1/
36706 /^X\(\/\/\)[^/].*/{
36707 s//\1/
36710 /^X\(\/\/\)$/{
36711 s//\1/
36714 /^X\(\/\).*/{
36715 s//\1/
36718 s/.*/./; q'`
36719 { as_dir="$ac_dir"
36720 case $as_dir in #(
36721 -*) as_dir=./$as_dir;;
36722 esac
36723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36724 as_dirs=
36725 while :; do
36726 case $as_dir in #(
36727 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36728 *) as_qdir=$as_dir;;
36729 esac
36730 as_dirs="'$as_qdir' $as_dirs"
36731 as_dir=`$as_dirname -- "$as_dir" ||
36732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36733 X"$as_dir" : 'X\(//\)[^/]' \| \
36734 X"$as_dir" : 'X\(//\)$' \| \
36735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36736 echo X"$as_dir" |
36737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36738 s//\1/
36741 /^X\(\/\/\)[^/].*/{
36742 s//\1/
36745 /^X\(\/\/\)$/{
36746 s//\1/
36749 /^X\(\/\).*/{
36750 s//\1/
36753 s/.*/./; q'`
36754 test -d "$as_dir" && break
36755 done
36756 test -z "$as_dirs" || eval "mkdir $as_dirs"
36757 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36758 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36759 { (exit 1); exit 1; }; }; }
36760 ac_builddir=.
36762 case "$ac_dir" in
36763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36766 # A ".." for each directory in $ac_dir_suffix.
36767 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36768 case $ac_top_builddir_sub in
36769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36771 esac ;;
36772 esac
36773 ac_abs_top_builddir=$ac_pwd
36774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36775 # for backward compatibility:
36776 ac_top_builddir=$ac_top_build_prefix
36778 case $srcdir in
36779 .) # We are building in place.
36780 ac_srcdir=.
36781 ac_top_srcdir=$ac_top_builddir_sub
36782 ac_abs_top_srcdir=$ac_pwd ;;
36783 [\\/]* | ?:[\\/]* ) # Absolute name.
36784 ac_srcdir=$srcdir$ac_dir_suffix;
36785 ac_top_srcdir=$srcdir
36786 ac_abs_top_srcdir=$srcdir ;;
36787 *) # Relative name.
36788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36789 ac_top_srcdir=$ac_top_build_prefix$srcdir
36790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36791 esac
36792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36795 case $ac_mode in
36798 # CONFIG_FILE
36801 case $INSTALL in
36802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36804 esac
36805 _ACEOF
36807 cat >>$CONFIG_STATUS <<\_ACEOF
36808 # If the template does not know about datarootdir, expand it.
36809 # FIXME: This hack should be removed a few years after 2.60.
36810 ac_datarootdir_hack=; ac_datarootdir_seen=
36812 case `sed -n '/datarootdir/ {
36816 /@datadir@/p
36817 /@docdir@/p
36818 /@infodir@/p
36819 /@localedir@/p
36820 /@mandir@/p
36821 ' $ac_file_inputs` in
36822 *datarootdir*) ac_datarootdir_seen=yes;;
36823 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36824 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36825 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36826 _ACEOF
36827 cat >>$CONFIG_STATUS <<_ACEOF
36828 ac_datarootdir_hack='
36829 s&@datadir@&$datadir&g
36830 s&@docdir@&$docdir&g
36831 s&@infodir@&$infodir&g
36832 s&@localedir@&$localedir&g
36833 s&@mandir@&$mandir&g
36834 s&\\\${datarootdir}&$datarootdir&g' ;;
36835 esac
36836 _ACEOF
36838 # Neutralize VPATH when `$srcdir' = `.'.
36839 # Shell code in configure.ac might set extrasub.
36840 # FIXME: do we really want to maintain this feature?
36841 cat >>$CONFIG_STATUS <<_ACEOF
36842 sed "$ac_vpsub
36843 $extrasub
36844 _ACEOF
36845 cat >>$CONFIG_STATUS <<\_ACEOF
36847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36848 s&@configure_input@&$configure_input&;t t
36849 s&@top_builddir@&$ac_top_builddir_sub&;t t
36850 s&@srcdir@&$ac_srcdir&;t t
36851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36852 s&@top_srcdir@&$ac_top_srcdir&;t t
36853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36854 s&@builddir@&$ac_builddir&;t t
36855 s&@abs_builddir@&$ac_abs_builddir&;t t
36856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36857 s&@INSTALL@&$ac_INSTALL&;t t
36858 $ac_datarootdir_hack
36859 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
36861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36864 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36865 which seems to be undefined. Please make sure it is defined." >&5
36866 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36867 which seems to be undefined. Please make sure it is defined." >&2;}
36869 rm -f "$tmp/stdin"
36870 case $ac_file in
36871 -) cat "$tmp/out"; rm -f "$tmp/out";;
36872 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36873 esac
36877 # CONFIG_HEADER
36879 _ACEOF
36881 # Transform confdefs.h into a sed script `conftest.defines', that
36882 # substitutes the proper values into config.h.in to produce config.h.
36883 rm -f conftest.defines conftest.tail
36884 # First, append a space to every undef/define line, to ease matching.
36885 echo 's/$/ /' >conftest.defines
36886 # Then, protect against being on the right side of a sed subst, or in
36887 # an unquoted here document, in config.status. If some macros were
36888 # called several times there might be several #defines for the same
36889 # symbol, which is useless. But do not sort them, since the last
36890 # AC_DEFINE must be honored.
36891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36892 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36893 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36894 # PARAMS is the parameter list in the macro definition--in most cases, it's
36895 # just an empty string.
36896 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36897 ac_dB='\\)[ (].*,\\1define\\2'
36898 ac_dC=' '
36899 ac_dD=' ,'
36901 uniq confdefs.h |
36902 sed -n '
36903 t rset
36904 :rset
36905 s/^[ ]*#[ ]*define[ ][ ]*//
36906 t ok
36909 s/[\\&,]/\\&/g
36910 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36911 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36912 ' >>conftest.defines
36914 # Remove the space that was appended to ease matching.
36915 # Then replace #undef with comments. This is necessary, for
36916 # example, in the case of _POSIX_SOURCE, which is predefined and required
36917 # on some systems where configure will not decide to define it.
36918 # (The regexp can be short, since the line contains either #define or #undef.)
36919 echo 's/ $//
36920 s,^[ #]*u.*,/* & */,' >>conftest.defines
36922 # Break up conftest.defines:
36923 ac_max_sed_lines=50
36925 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36926 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36927 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36928 # et cetera.
36929 ac_in='$ac_file_inputs'
36930 ac_out='"$tmp/out1"'
36931 ac_nxt='"$tmp/out2"'
36933 while :
36935 # Write a here document:
36936 cat >>$CONFIG_STATUS <<_ACEOF
36937 # First, check the format of the line:
36938 cat >"\$tmp/defines.sed" <<\\CEOF
36939 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36940 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36942 :def
36943 _ACEOF
36944 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36945 echo 'CEOF
36946 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36947 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36948 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36949 grep . conftest.tail >/dev/null || break
36950 rm -f conftest.defines
36951 mv conftest.tail conftest.defines
36952 done
36953 rm -f conftest.defines conftest.tail
36955 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36956 cat >>$CONFIG_STATUS <<\_ACEOF
36957 if test x"$ac_file" != x-; then
36958 echo "/* $configure_input */" >"$tmp/config.h"
36959 cat "$ac_result" >>"$tmp/config.h"
36960 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36962 echo "$as_me: $ac_file is unchanged" >&6;}
36963 else
36964 rm -f $ac_file
36965 mv "$tmp/config.h" $ac_file
36967 else
36968 echo "/* $configure_input */"
36969 cat "$ac_result"
36971 rm -f "$tmp/out12"
36975 esac
36977 done # for ac_tag
36980 { (exit 0); exit 0; }
36981 _ACEOF
36982 chmod +x $CONFIG_STATUS
36983 ac_clean_files=$ac_clean_files_save
36986 # configure is writing to config.log, and then calls config.status.
36987 # config.status does its own redirection, appending to config.log.
36988 # Unfortunately, on DOS this fails, as config.log is still kept open
36989 # by configure, so config.status won't be able to write to it; its
36990 # output is simply discarded. So we exec the FD to /dev/null,
36991 # effectively closing config.log, so it can be properly (re)opened and
36992 # appended to by config.status. When coming back to configure, we
36993 # need to make the FD available again.
36994 if test "$no_create" != yes; then
36995 ac_cs_success=:
36996 ac_config_status_args=
36997 test "$silent" = yes &&
36998 ac_config_status_args="$ac_config_status_args --quiet"
36999 exec 5>/dev/null
37000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37001 exec 5>>config.log
37002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37003 # would make configure fail if this is the last instruction.
37004 $ac_cs_success || { (exit 1); exit 1; }
37008 if test "x${silent}" != "xyes" ; then
37009 echo
37010 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
37011 echo " .\$7\$7.. .7\$\$7:. "
37012 echo " .\$\$:. ,\$7.7 "
37013 echo " .\$7. 7\$\$\$\$ .\$\$77 "
37014 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
37015 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
37016 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
37017 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
37018 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
37019 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
37020 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
37021 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
37022 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
37023 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
37024 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
37025 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
37026 echo " \$\$\$\$\$ \$\$\$ "
37027 echo " \$\$\$\$7. \$\$ (TM) "
37028 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
37029 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
37030 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
37031 echo
37034 { echo "$as_me:$LINENO: Package configured for: " >&5
37035 echo "$as_me: Package configured for: " >&6;}
37036 { echo "$as_me:$LINENO: OS type : $host_os" >&5
37037 echo "$as_me: OS type : $host_os" >&6;}
37038 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
37039 echo "$as_me: Host CPU : $host_cpu" >&6;}
37040 if test "${cross_compiling}" = "yes"; then
37041 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
37042 echo "$as_me: Cross Compilation = YES" >&6;}